Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

VB Script does not reboot after countdown. Windows XP SP3

$
0
0

Hi! I am having problem with a VBScript that has to reboot a workstation. I see the count down screen but then nothing is happening. The workstation does not get rebooted. This is XP SP3.There is nothing in the event log about why the reboot failed.

Here's my code snippet. The script waits for some services to stop and once stopped it tries to uninstall one (works fine) and then reboot.

If IsStopped Then
   'Uninstall
   objShell.Run "msiexec.exe   /X{AE8C5E50-F1FB-4C90-8265-B8962DD4EFCC} /quiet"
   ' Reboot
   objShell.Run "shutdown.exe /r /t 120 /c """ & "Program needs to restart the computer. Please save all documents."""
Else
   'NOOP
End If

Any ideas on how to troubleshoot are greatly appreciated.

Many thanks in advance,


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>