Curious if anyone has a way of executing VBScript remotely via any web browser(not IE) that will initiate the shut down a system, or just execute any VBScript on demand.
To be clear, the VBScript sits on the local Windows system and is remotely activated over the web using any web browser enabled device.
For instance, here is a simple script that is located on the Windows system and will initiate the shutdown of the system. What methods are used to activate or run this VBScript from a smart phone or any web browser (non IE)?
strComputer = "." ' Local Computer
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\" & _
strComputer & "\root\cimv2")
Set colOs = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
For Each objOs in colOs
objOs.Win32Shutdown(1)
Next
To be clear, the VBScript sits on the local Windows system and is remotely activated over the web using any web browser enabled device.
For instance, here is a simple script that is located on the Windows system and will initiate the shutdown of the system. What methods are used to activate or run this VBScript from a smart phone or any web browser (non IE)?
strComputer = "." ' Local Computer
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\" & _
strComputer & "\root\cimv2")
Set colOs = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
For Each objOs in colOs
objOs.Win32Shutdown(1)
Next