Uninstall script
Uninstall script
(OP)
Hi Everyone,
I've just been tasked with removing our backup agent client software of from 71 random servers, which would require me to logon to each server, add/remove programs and then remove the agent software. After this has been done it requires a reboot. Is there any way that I could script this at all?
Many thanks in advance.
Shaun
I've just been tasked with removing our backup agent client software of from 71 random servers, which would require me to logon to each server, add/remove programs and then remove the agent software. After this has been done it requires a reboot. Is there any way that I could script this at all?
Many thanks in advance.
Shaun
RE: Uninstall script
CODE
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery _
("Select * from Win32_Product Where Name = 'Name of software'")
For Each objSoftware in colSoftware
objSoftware.Uninstall()
Next
RE: Uninstall script