/build/static/layout/Breadcrumb_cap_w.png

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

  1. 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:
Posted by: SMal.tmcc 4 years ago
Red Belt
0

Top Answer



Comments:
  • Your 64bit info works!!
    >> I ran as system btw
    I am most grateful to you --thanks so much. - auntie4life 4 years ago
 
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