I am having an issue getting a batch file to run through kace correctly. The batch file renames the computer and then reboots it. When I run the batch through kace it will reboot the machine but does not change the name. I can run the batch file locally on the pc and it works great. Below is the batch file I am using

cd %WINDIR%\system32
WMIC computersystem where caption='%computername%' rename IT1234567
shutdown /r /t 0

What am I doing wrong?

4 Comments   [ + ] Show Comments


  • Are you running it as a script? If so, Offline or Online KScript?
  • Sorry forgot that information, yes as a script online
  • When you run it locally, are you running it with administrative privileges? Is the machine joined to a domain? If so, you need to execute the script with appropriate credentials to perform the operation.
  • thank you very much, I thought I had tried that but apparently I did not. Thank you for your help
Please log in to comment


Kscripts by default run as the LocalSystem account.  In order to change the machine name, you will need administrator access, something LocalSystem does not have.
Answered 05/25/2015 by: jknox
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity