Quantcast
Channel: Configuration Manager 2007 Software Distribution forum
Viewing all articles
Browse latest Browse all 629

"A failure exit code of 1 was returned"

$
0
0

Hello All,

I am using a VB script in sccm 2007 to remove "Google Toolbar" from client computers.

 SCCM removes the "Google Toolbar" OK, but  when I check status of  "advertisement" it shows that the task is failed. Here is the message I get: "A failure exit code of 1 was returned."

Any Suggestion ?

Thanks

Zaher

_______________

Here is the script:

Option Explicit:On Error Resume Next
Dim WshShell,a,i:i=0:Set WshShell=WScript.CreateObject("WScript.Shell")
a=WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2318C2B1-4965-11d4-9B18-009027A5CD4F}\UninstallString")
If a<>"" Then WshShell.Run(a&" /S"),1,True:i=1
WshShell=Nothing:Wscript.Quit(i)

___________________________________


Viewing all articles
Browse latest Browse all 629

Trending Articles