使用powershell重新排列显示

使用powershell重新排列显示,powershell,screen,multiple-monitors,Powershell,Screen,Multiple Monitors,我有一台有两个屏幕的机器。由于某些原因,当我在windows上重新排列显示设置时,我的windows没有保留配置 实际上,我的显示器列为 !-------!!-------! ! !! ! ! 2 !! 1 ! ! !! ! !-------!!-------! 我希望能有一个 !-------!!-------! ! !! ! ! 1 !! 2 ! ! !! ! !

我有一台有两个屏幕的机器。由于某些原因,当我在windows上重新排列显示设置时,我的windows没有保留配置

实际上,我的显示器列为

!-------!!-------!
!       !!       !
!   2   !!   1   !
!       !!       !
!-------!!-------!
我希望能有一个

!-------!!-------!
!       !!       !
!   1   !!   2   !
!       !!       !
!-------!!-------!
此powershell代码将向我返回显示属性:

Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Screen]::AllScreens

BitsPerPixel : 32
Bounds       : {X=0,Y=0,Width=1920,Height=1080}
DeviceName   : \\.\DISPLAY4
Primary      : True
WorkingArea  : {X=0,Y=0,Width=1920,Height=1040}

BitsPerPixel : 32
Bounds       : {X=-1920,Y=0,Width=1920,Height=1080}
DeviceName   : \\.\DISPLAY5
Primary      : False
WorkingArea  : {X=-1920,Y=0,Width=1920,Height=1040}
想知道在powershell中是否有任何方法可以设置秒显示的WorkingArea和Bounds属性

我需要从那开始

Bounds       : {X=-1920,Y=0,Width=1920,Height=1080}
WorkingArea  : {X=-1920,Y=0,Width=1920,Height=1040}

如果我有一个代码可以做到这一点,我可以在登录到电脑时自动运行代码,我将自动完成每天重新排列显示器的繁琐任务


有什么建议吗?

也许你可以用我希望。。但我处于一个受控环境中,无法安装任何第三方软件。我已安装Windows 10 1809和嵌入式Powershell。没什么比这更重要的了。。。这就是为什么我要用Powershell解决这个问题。。。
Bounds       : {X=1920,Y=0,Width=1920,Height=1080}
WorkingArea  : {X=1920,Y=0,Width=1920,Height=1040}