+ Post New Thread
Results 1 to 4 of 4
Scripts Thread, Remove Windows Desktop Search 4 in Coding and Web Development; Does anyone have a script that will remove Windows Desktop Search 4 please? The only ones i can find are ...
  1. #1

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,387
    Thank Post
    797
    Thanked 1,585 Times in 1,388 Posts
    Blog Entries
    10
    Rep Power
    427

    Remove Windows Desktop Search 4

    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

  2. #2


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,207
    Thank Post
    218
    Thanked 812 Times in 694 Posts
    Rep Power
    274
    i think this is for v4 file name has v4 in it

    Code:
    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

  3. Thanks to sted from:

    box_l (30th April 2010)

  4. #3

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,387
    Thank Post
    797
    Thanked 1,585 Times in 1,388 Posts
    Blog Entries
    10
    Rep Power
    427
    That works, thanks

  5. #4

    Join Date
    May 2010
    Location
    london
    Posts
    4
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    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.e xe /quiet /norestart

SHARE:
+ Post New Thread

Similar Threads

  1. Remove Search Active directory windows 7
    By andy_nic in forum Windows 7
    Replies: 4
    Last Post: 2nd December 2010, 01:18 PM
  2. Remove files from Desktop
    By TechSupp in forum Scripts
    Replies: 3
    Last Post: 17th September 2009, 11:16 AM
  3. Desktop search choose?
    By nicholab in forum How do you do....it?
    Replies: 0
    Last Post: 12th August 2008, 09:45 AM
  4. Remove shadow from desktop shortcuts
    By dtakias in forum Windows
    Replies: 9
    Last Post: 20th February 2008, 02:12 PM
  5. windows desktop search
    By jonbones in forum Windows
    Replies: 8
    Last Post: 9th November 2007, 05:36 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •