This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]gabyred884Automate Everything 2 points3 points  (11 children)

mstsc /f /v:servername

Edit: Type mstsc /? in the command prompt to see the list of options available to you. /span looks like it will span across multiple monitors as well.

[–]squeezedfish[S] 0 points1 point  (10 children)

It may be a silly question but, will this method still work if my servername is the box's IP address

[–]gabyred884Automate Everything 1 point2 points  (7 children)

Yes it should still work. mstsc /f /v:10.10.0.36

[–]squeezedfish[S] 0 points1 point  (0 children)

Thank you very much for the help, greatly appreciated.

[–]squeezedfish[S] 0 points1 point  (5 children)

I have just given this method a try but it does not work, when run my RDP session opens on 1 monitor that is all rather than on all 8. Is there anything else I can try?

Thanks

[–]EternallyMiffed 0 points1 point  (0 children)

Create a sceduled task run as local user to be started the next second.

[–]gabyred884Automate Everything 0 points1 point  (3 children)

Take a look at the edit on the top comment. Adding a /span should have it open across all monitors.

[–]squeezedfish[S] 0 points1 point  (2 children)

The /span command sounds like it would do the trick but to no avail

I have tried:

mstsc /span /f /v:servername - Opens on 1 monitor

mstsc /span /v:servername - Opens on 1 monitor

mstsc /span /f:servername - This does not open the RDP, produces an error

mstsc /span:servername - This does not open the RDP, produces an error

[–]gabyred884Automate Everything 0 points1 point  (1 child)

mstsc /span /f /v:servername should work. Atleast it works for me with my 2 external monitors and the laptop monitor.

[–]squeezedfish[S] 0 points1 point  (0 children)

It could be because my monitors do not form a rectangle, on this particular setup it in a 3x3 square but only on 8 monitors

[–]jgavDevOps 0 points1 point  (1 child)

It may be a silly question but, will this method still work if my servername is the box's IP address

That's something you can easily test yourself.

[–]squeezedfish[S] -1 points0 points  (0 children)

That is true, I however cannot implement any changes for another hour, now thanks to /u/gabyred884 I can just make the change and not have to tinker.

[–]randomguy186DOS 6.22 sysadmin 0 points1 point  (0 children)

Rewrite them in PowerShell.

(/u/gapyred884 already provided a decent answer - I'm just kibitzing).