/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


need help getting this wmic script to run

06/13/2019 281 views

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
Answer Summary:
0 Comments   [ + ] Show comments

Comments


Answer Chosen by the Author

0


Answered 06/13/2019 by: SMal.tmcc
Red Belt

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