allows you to run a command on local or remote machine as the SYSTEM account or using the SYSTEM account to impersonate the currently logged in user and run command as them. Provide a switch (-Interactive) to allow command to be invoked in the currently logged on user's interactive session by using SeviceUI.exe.
Parameter [ValidateSet(CurrentUser,System)]
Idea Credit: Reddit user /u/zanatwo
allows you to run a command on local or remote machine as the SYSTEM account or using the SYSTEM account to impersonate the currently logged in user and run command as them. Provide a switch (-Interactive) to allow command to be invoked in the currently logged on user's interactive session by using SeviceUI.exe.
Parameter [ValidateSet(CurrentUser,System)]
Idea Credit: Reddit user /u/zanatwo