I have created the following script which doesnt seem to work and i cant figure out why.
$machines = get-content "C:\Users\noulis\Desktop\User.csv"
foreach($computername in $machines)
$os = gwmi win32_operatingsystem -computername $computername
$os.description = $user
All i need it to do is read a csv file ( which has two columns ,one for a computer name and one for the username ) and then apply the username to the actual computer desciption field. Any suggestions welcome
Thanks in advance
If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.