This is a sample command line:
- Code: Select all
psexec /accepteula -c -i \\%MACHINENAME% -u %USERNAME% -p %PASSWORD% %PATH-TO-FILE%\dccmd.exe -monitor="\\.\DISPLAY1" -width=1024 -height=768
The -i switch is required because DC must operate on an active session (otherwise there's no display to operate on).
You don't need the -c switch if dccmd.exe is already on the remote machine and you know its path.
You can use -s to run as the System account, provided the user running PSexec is an administrator of that remote box.
Many thanks to the customer who discovered how to use PSexec with Display Changer.

