I was able to piece together some code, it works just fine on my local machine, but how do I get it to pull the computer names from my text file and use those, instead of performing the change on my machine?
Remote registry is tricky since you can’t use the registry PSProvider; you’re likely going to have to rewrite the whole thing to use WMI/CIM. Unfortunately, Set-Item ain’t gonna do it.
Lolz, definitely not. RDP is of the devil. PowerShell Remoting; as in, Invoke-Command. Enabled by default on server 2012 and later, I believe (maybe R2?), but you’d have to enable it with Enable-PSRemoting on clients and older servers.
slaps head I knew that
From my understanding, in order to enable PSRemoting, i would have to do that on each individual machine, then run a script that would change the registry value, right?
You can do it with GPO, too, if you’re in a domain environment. It’s in “Secrets of PowerShell Remoting.”
And then, yes, you’d basically just Invoke-Command your existing script (very slightly modified) to a whole list of computers, and sit back and drink whiskey while it runs.