need help getting this wmic script to run
I am (desperately) trying to get this wmic to run in KBOX.
Can anyone see where I am going wrong on this? I would really appreciate the input - - thanks in advance Ninjas.
Using this .bat (Shadowcopy.bat)
cmd.exe /c %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -file Shadowcopy.ps1
To run this .ps1 (Shadowcopy.ps1)
wmic shadowcopy call create Volume=c:\
- Run a batch file...
Script Name: Shadowcopy.bat
- It runs fine locally
- I have zipped both and uploaded as dependency
- I have tried running as Local System
- I have tried running with Credentials
- Run Now status shows succeeded - but actually it has not