cwstad2
asked on
Powershell list OS against txt file list
Hi guys, im trying to get the following list from a txt file i have but it returns all of the ad computers instead of the ones in the file. Any ideas?
thanks
$computers = Get-Content -Path C:\it\computers.txt
Get-ADComputer -Filter * -Property * | Format-Table Name,OperatingSystem,Opera tingSystem ServicePac k,Operatin gSystemVer sion -Wrap -Auto
thanks
$computers = Get-Content -Path C:\it\computers.txt
Get-ADComputer -Filter * -Property * | Format-Table Name,OperatingSystem,Opera
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
perfect works great
Above post beat me to it.
It should be like,
Open in new window