Dim oShell Dim intSleep intSleep = 10 * 1000 Set oShell = WScript.CreateObject ("WSCript.shell") Set WshNetwork = WScript.CreateObject("WScript.Network") oShell.run "rundll32.exe %SystemRoot%\system32\shimgvw.dll,ImageView_Fullscreen" wscript.sleep intSleep Dim objWMIService, objProcess, colProcess Dim strComputer, strProcessKill strComputer = WshNetwork.ComputerName strProcessKill = "'rundll32.exe'" Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" _ & strComputer & "\root\cimv2") Set colProcess = objWMIService.ExecQuery _ ("Select * from Win32_Process Where Name = " & strProcessKill ) For Each objProcess in colProcess objProcess.Terminate() Next WSCript.Echo "Just killed process " & strProcessKill _ & " on " & strComputer WScript.Quit oShell = Nothing