Hi. I am totally new to powershell, just starting to learn it. I’m trying to deploy Java through SCCM 2012. I want to create a script that will check if IE is running on a pc, & if so, display a message that IE will be shutdown in a given amount of time in order for the Java install to complete. After doing some searching I found a script that looks like it will do what I need it to however it gives errors when I run it saying there are syntax errors. If anyone could assist with getting this working below it would be greatly appreciated.
Dim oShell
Set oShell = WScript.CreateObject(“WScript.Shell”)
Set colProcessList = GetObject(“Winmgmts:”).ExecQuery (“Select * from Win32_Process”)
For Each objProcess in colProcessList ’ Loop checks all running processes and sets vFound to True if it finds iexplore.EXE running.
If objProcess.name = “iexplore.exe” then
vFound = True
End if
Next
If vFound = True then
oShell.Popup “Closing IE” & vbCrLf & vbCrLf & “Click OK if you are ready to continue now.”,30,“Software Update”
oShell.Run “taskkill /F /IM iexplore.exe”, 1, True
End If