I posted this in the Windows sub-forum but not sure that was right so I'm re-posting here (Mod(s); please let me know if i'm in the wrong place).
I'm using a stupid little script to test another software and I guess I'm dumb.
Here's the code: Set-ItemProperty 'HKCU
Control Panel\Colors' -Name Background -Value "116 164 2"
This turns the background to some ugly green color; IF typed in the powershell console. If I use the ISE or just notepad and create a .ps1 I get the lovely error: "Set-ItemProperty : A positional parameter cannot be found that accepts argument '' "
So I guess I'm missing something but I can't figure out why it works one way and not the other.
Ideas?
I'm using a stupid little script to test another software and I guess I'm dumb.
Here's the code: Set-ItemProperty 'HKCU
Control Panel\Colors' -Name Background -Value "116 164 2"This turns the background to some ugly green color; IF typed in the powershell console. If I use the ISE or just notepad and create a .ps1 I get the lovely error: "Set-ItemProperty : A positional parameter cannot be found that accepts argument '' "
So I guess I'm missing something but I can't figure out why it works one way and not the other.
Ideas?