You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
597B

  1. Dim DeployMachine:DeployMachine = "KCI-APP01"
  2. Dim WshShell:Set WshShell = WScript.CreateObject("Wscript.Shell")
  3. debug.WriteLine ScriptDirectory & "PsExec64.exe -i \\" & DeployMachine & " -u ntp\daniel_admin -p BarkHornSlam4* cmd.exe /C nircmd.exe " & _
  4. "elevatecmd runassystem powershell ""Stop-WebAppPool -Name tracking"" & exit"
  5. WshShell.Run ScriptDirectory & "PsExec64.exe -i \\" & DeployMachine & " -u ntp\daniel_admin -p BarkHornSlam4* nircmd.exe " & _
  6. "elevatecmd runassystem powershell ""Stop-WebAppPool -Name tracking""" ,1,True
  7. ' powershell -Command "Stop-WebAppPool -Name tracking"

Powered by TurnKey Linux.