Das ist eine der besten Anschaffungen, die Burnet in den letzten zwölf Jahren gemacht hat. Wir sind alle tief beeindruckt.
Damon Warren, IT-Verantwortlicher
Burnet Institute

How to mimic running a script as Local System User

The KACE K1000 appliance currently run scripts, managed installs, patches, etc as local system user.

Windows XP Test

One test to mimic a script to be run as Local system account is to use the following commands to create a new command prompt window.
  1. Open a command prompt
  2. Type the following commands:
    sc create testsvc binpath= "cmd /K start" type= own type= interact
    sc start testsvc

You might get a 1053 error, but that's fine as long as a new command prompt window is generated the script can be run in that window to see if it will succeed or fail. If it works, the script should be able to execute using the K1000 appliance.

If you have more than one command window open you can tell which command window is running under system by looking at the windows task manger process list and killing all the command prompts that are run under different users.

Windows 7 Test

On Windows 7 you can get the same result by doing this:
  1. Download PsExec 
  2. Copy it to c:\pstools
  3. Make sure the local Administrator account is enabled. In Windows 7 the default is for this account to be disabled. To enable the local administrator account, open a command prompt in administrator mode by right clicking on it and selecting “Run as administrator”. Type in: net user administrator /active:yes
  4. From a command prompt launch it with
    c:\pstools\psexec.exe -accepteula -i -s "%windir%\system32\cmd.exe" -accepteula
    yes, you need the accepteula twice
    .
A new command prompt window will be generated and the script can be run in that window to see if it will succeed or fail. If it works, the script should be able to execute using the K1000 appliance.

If you have more than one command window open you can tell which command window is running under system by looking at the windows task manger process list and killing all the command prompts that are run under different users.