Microsoft Active Directory, Windows Server 2003, 2008, 2012, Computer Tips, Internet, Information Technology, Mobile Apps and other info....
$Computer = Import-Csv -path “C:\Temp\computers.csv”
$Computer| foreach{Get-ADComputer -Identity $_.name -Properties * |select name, samaccountname, LastLogonDate} | Export-Csv output.csv -NoTypeInformation
Input csv Header:Name
Post a Comment
No comments:
Post a Comment