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
WMIC computersystem where caption='%computername%' rename IT1234567
shutdown /r /t 0
What am I doing wrong?