Windows 10: Screen switching via batch/powershell file possible?

Discus and support Screen switching via batch/powershell file possible? in Windows 10 Software and Apps to solve the problem; Hi, I have three screens connected to my PC, 1 x TV and 2 x TFT's.I'd like to be able to automatically switch between different screens as being... Discussion in 'Windows 10 Software and Apps' started by JamesClow1, Nov 17, 2022.

  1. Screen switching via batch/powershell file possible?


    Hi, I have three screens connected to my PC, 1 x TV and 2 x TFT's.I'd like to be able to automatically switch between different screens as being primary whilst disabling the others via double click on, perhaps, a batch file.Essentially I would like to be able to have three scripts on my desktop.TV Gaming Script - Enable TV screen, set as primary, set refresh rate to 120hz, disable the other twoDesktop Gaming Script - Enable desktop monitor 1, set as primary, , set refresh rate to 120hz, disable TV screen and desktop monitor 2.Productivity Script - Enable desktop monitor 1 and 2, set TFT 1 as

    :)
     
    JamesClow1, Nov 17, 2022
    #1

  2. Running PowerShell script as a batch file

    Hello Baldo,



    Thank you for writing to Microsoft Community Forums.



    I understand that you want to execute the PowerShell commands as a batch file.



    I tried executing the batch file on my machine but I was unable to execute it as the command was incomplete. However, after making some changes in the command I was able to execute the batch file.



    You can try the following command by saving it in a batch file and check if that helps.



    powershell –Command Get-AppxPackage Microsoft.3dBuilder | Remove-AppxPackage



    Also, as the query is related to running a PowerShell script using a batch file, I suggest you to post the issue on

    TechNet
    forums where we have professionals who have more knowledge about the issue.



    Hope it helps.



    Regards,

    Prakhar Khare

    Microsoft Community – Moderator
     
    Prakhar_Khare, Nov 17, 2022
    #2
  3. OneMoar Win User
    OneMoar, Nov 17, 2022
    #3
  4. Screen switching via batch/powershell file possible?

    Batch Numbering Files through Powershell

    Hi,



    Thank you for writing to Microsoft Community Forums.



    I understand that you want to create a batch file to number some files using PowerShell.



    Since your query is related to creating a batch file, let me point you in the right direction for get assistance with your issue.



    I would suggest you to post your query on
    MSDN forums
    , where we have expertise and support professionals who are well equipped with the knowledge to assist you with your query.



    Regards,

    Prakhar Khare

    Microsoft Community – Moderator
     
    Prakhar_Khare, Nov 17, 2022
    #4
Thema:

Screen switching via batch/powershell file possible?

Loading...
  1. Screen switching via batch/powershell file possible? - Similar Threads - Screen switching via

  2. Screen switching via batch/powershell file possible?

    in Windows 10 Gaming
    Screen switching via batch/powershell file possible?: Hi, I have three screens connected to my PC, 1 x TV and 2 x TFT's.I'd like to be able to automatically switch between different screens as being primary whilst disabling the others via double click on, perhaps, a batch file.Essentially I would like to be able to have three...
  3. How to programmatically create a desktop shortcut link via Powershell or batch file command...

    in Microsoft Windows 10 Store
    How to programmatically create a desktop shortcut link via Powershell or batch file command...: Currently the *.appxbundle installs into the StartMenu, which is fine, but I'd also like to include a shortcut link on the destkop. I see from this link that it's possible to create a short-cut manually for a sideloaded or Windows Store application....
  4. run a powershell command like a batch file

    in Windows 10 Installation and Upgrade
    run a powershell command like a batch file: I am working as a temp on a Windows 7 to Windows 10 migration team. We've encountered a problem with some software, and a solution has been found that requires us to execute a a single command with PowerShell. However, the command is extremely long and complex, and very...
  5. Batch Rename in Powershell

    in Windows 10 Network and Sharing
    Batch Rename in Powershell: I'm trying to rename all the image files in a folder by appending a 1- in front of each file name using this command: Dir Rename-Item -NewName {$_.name -replace "IMG_*.*","1-IMG_*.*"} A typical file name is IMG_0001-Wolf.jpg. I get the following error message for each...
  6. Switch between screens via keyboard -- Possible?

    in Windows 10 Customization
    Switch between screens via keyboard -- Possible?: Win10-1803. My set up: I have 2 screens: 1, my laptop, and 2, an HDMI TV. Screen 2 is extended desktop. What I do: Move the mouse between 1 & 2. -- too much mouse distance. What I'd prefer: Hit a keyboard key to switch between 1 & 2. The mouse jumpping with the...
  7. Batch Numbering Files through Powershell

    in Windows 10 Network and Sharing
    Batch Numbering Files through Powershell: Hello, I'm trying to come up with a solution through Powershell that batch numbers files at the beginning of a file name without interrupting the rest of the file name. For example: Current File Names: John Smith.pdf Abel Anderson.pdf Mary Trinity.pdf ..... Rocky...
  8. Running PowerShell script as a batch file

    in Windows 10 Network and Sharing
    Running PowerShell script as a batch file: Can I run the Power Shell line: "C:\Windows\System32>get-appxpackage *3dbuilder* | remove-appxpackage" from a .Bat file? ***Original title: Removing bloatware***...
  9. Update Screensaver via batch file

    in Windows 10 Customization
    Update Screensaver via batch file: Ok ... Just found this forum couple weeks ago and was able to get some bang up batch file stuff. So ... figure I'd join. Especially, since my last piece of information retrieved from here isn't working. Ok ... this is for my computer and personal use only so the advice...
  10. How to run batch file with powershell

    in Windows 10 Network and Sharing
    How to run batch file with powershell: I created a basic batch file that uses "net share" to share a local path. I saved the batch file. When I double click the file I get "access is denied"... note, I am logged on as a admin. Anyways... I figure it has to be run using power shell. I do not know much about...