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:\
Verify
- 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
0 Comments
[ + ] Show comments
Answers (1)
Answer Summary:
Please log in to answer
Posted by:
SMal.tmcc
5 years ago
Top Answer
Comments:
-
Your 64bit info works!!
>> I ran as system btw
I am most grateful to you --thanks so much. - auntie4life 5 years ago