KACE Product Support Question

Batch file

05/22/2015 1004 views

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

All Answers

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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ