Start-Process "$env:ProgramW6432\Internet Explorer\iexplore. # Start-Process "$env:ProgramFiles\Internet Explorer\iexplore.exe" -NoNewWindow -Wait # $env:ProgramFiles = c:\program files (x86) $WshShell = New-Object -com Wscript.Shell Start-process "$env:windir\DesktopCmd64.exe" "save /f $env:userprofile\Desktop\DesktopIconLayout$a.dtr" Start-process "$env:windir\DesktopRestore64.exe" "/save /silent $env:userprofile\Desktop\DesktopIconLayout$a.dok" # if the app and / or settings windows are open the script will fail. On the machine, I ran a gpupdate /force and rebooted. bat in the SysVol\\\Machine\Scripts\Startup folder.ScreenCapture of the powershell script in action (1.22MB mp4)Ĭ:\Windows\System32\cmd.exe /c start /min "" C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -Command "& "%userprofile%\desktop\1.ps1""Ĭ:\Windows\System32\cmd.exe /c start /min "" C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -ExecutionPolicy Bypass -Command "& "%userprofile%\desktop\1.ps1"" # WINDOWS 10 64-BIT POWERSHELL 5 SCRIPT USING SENDKEYS TO CHANGE DISPLAY SCALE AND RESOLUTION, OPEN APP, AND RESTORE SCALE AND RESOLUTION WHEN APP CLOSES. I placed it in a startup script in Computer Config -> Policies -> Windows Settings -> Scripts and stored the. WINDOWS 10 64-bit powershell 5 script using sendkeys to change display scale and resolution, open app, and restore scale and resolution when app closes. WITH MY COMMENTS ABOVE YOU COULD ALSO USE THIS POWERSHELL SCRIPT. If objWMIService.ExecQuery(strWMIQuery).Count > 0 then 64-bit command line version fails occasionally in Windows 10 64-bit? Put DesktopRestore64.exe somewhere in your PATH, add it to your PATH, or just put it in your windows folder.Ĭhange "PUT THE IMAGENAME OF YOUR APP HERE", "CHANGE THE FOLLOWING !\\" _ Save and restore desktop icon layout from the command line. Put DesktopCmd64.exe somewhere in your PATH, add it to your PATH, or just put it in your windows folder.ÄesktopRestore v1.6.3.031. Download, install, and learn how to use a command line desktop icon layout backup like:ÄesktopOK v4.24. ChangeDisplay.vbs), edit it, and run it.Ĭhanging the scaling and resolution will mess up your desktop icon layout. No restart required.Ĭopy and paste the code into a new text document. Windows 10 64-bit visual basic script using SendKeys to change display scale and resolution, open app, and restore scale and resolution when app closes. Here is a Windows 10 64-bit visual basic script and Powershell 5 script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |