Script opens server in background, but I want a window; runas issue


i'm trying game server setup scripts make sure stays date, , there's line here that's particularly troubling. whenever following line runs, opens "runserver.cmd" in background, whereas if "runserver.cmd" manually executed, opens in window. 

runas /trustlevel:0x20000 "$installdirectory\shootergame\saved\config\windowsserver\runserver.cmd" 


if use powershell command start-process have ability define windowstyle

-windowstyle <processwindowstyle> {normal | hidden | minimized | maximized}

you can find out more on following page: https://technet.microsoft.com/en-us/library/hh849848.aspx

hope helps.

regards,

ryan





Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607