Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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.