Error message:
Rename-Computer : Cannot convert ‘System.Object’ to the type ‘System.String’ required by parameter ‘ComputerName’. Specified method is not
supported.
At C:\Users\gkantorowitch\Desktop\PowerShell\Rename Computer multiple.ps1:4 char:31
Hi Olaf, all,
This worked like a charm for me except that I have to enter the password for each loop. If I have ten (10) computer names in computers.csv I am being asked for the password ten (10) times.
Is there a way around this by tweaking this script??
Thank you.
I’d run the script with the proper account. Use the account having administrative rights on the target computers to run the script or the console you run this code snippet in.