I was asked by a client's IT admin to "write a powershell script that sets the resolution manually on bootup". Presumably it is possible if they're asking me to do this. I have absolutely no experience with powershell. My scripts/commands and their errors are as follows:
Set-DisplayResolution -Width 1024 -Height 768
Set-DisplayResolution
is not recognized as the name of a cmdlet, function, script file, or operable program.
Set-ScreenResolution -Width 1024 -Height 768
Set-ScreenResolution
is not recognized as the name of a cmdlet, function, script file, or operable program.
SetDisplayResolution -Width 1024 -Height 768
SetDisplayResolution
is not recognized as the name of a cmdlet, function, script file, or operable program.
What am I missing? Thank you.
Best Answer
Not sure where you got your example from but in a native powershell there is no command to set the resolution.
I use AutoHotKey. You can build your own script there or use an example from the net.
Or you could write your own function, that can be called from powershell: see here
And of course there are several 3rd party tools depending on your requirements. Here's one example that works with a script as well or here are 7 others. What exactly are you trying to do?