Jump to content

Recommended Posts

Posted

Does anyone have a script that will remove Windows Desktop Search 4 please? The only ones i can find are the ones for old versions.

 

Thanks

Posted

i think this is for v4 file name has v4 in it

 

Option Explicit


'See http://blogs.spsk12.net/econroy/2007/10/30/disableremove-windows-desktop-search/ for more info
'modified js 08-10-08

call subRemoveDesktopSearch

wscript.quit


Sub subRemoveDesktopSearch ()
Dim objFSO, objWshShell
Dim objScriptExec
Dim strWinDir, intTimeOut

intTimeOut = 0

if WScript.Version >= 5.6 Then
	Set objFSO = CreateObject("Scripting.FileSystemObject")
	Set objWshShell = CreateObject("WScript.Shell")
	
	strWinDir = objWshShell.ExpandEnvironmentStrings("%WinDir%")
	
	If objFSO.FileExists(strWinDir & "\$NtUninstallKB940157$\spuninst\spuninst.exe") Then
		Set objScriptExec = objWshShell.Exec("%windir%\$NtUninstallKB940157$\spuninst\spuninst.exe /passive /warnrestart")
		Do While objScriptExec.Status = 0
			if intTimeOut > 300 then
				exit do
			end if
			intTimeOut = intTimeOut + 1
			WScript.Sleep 1000
		Loop
	End if	
	
	Set objScriptExec = Nothing
	Set objWshShell = Nothing
	Set objFSO = Nothing
	
End if 

End Sub

  • Thanks 1
Posted

Well i too have a idea could be easy to you. Like many others, Windows Desktop Search 3.01 was installed on all XP computers even though I never approved it in WSUS.

So to remove it through logon script add this line to the script:

%windir%\$NtUninstallKB917013$\spuninst\spuninst.exe /quiet /norestart

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...