Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Client Uninstall 1

Status
Not open for further replies.

jyoungl

IS-IT--Management
Apr 9, 2003
2
SD
Does anyone know if there are any switches for cliunins.exe?
We had a secondary site fail and orphan a host of clients. I would like to remove them "silently" as a task. SMSman.exe doesn't seem to work at all...Thx Jim.
 
Jim,
why don't you use "20clicln.bat" ?
There you can specify the "/SCRUB" option....

You can find 20clicln.bat in the Support-Tools for SMS.

Hope this helps you !

Cheers,
Chris
 
I was hoping to find something that could be run in the background or silently so that the users would not freak out when something "weird" starts running when they logon. The SMSman.exe has a silent switch, but also doesn't seem to remove the client fully.
 
This VBScript will run 20clicln.bat silently and delete the smsini.cfg file:


Dim WshShell, FSO, ScriptPath, smscfgpath, f1, f2
Const slNormal = 0
Set WshShell = CreateObject("Wscript.shell")
Set FSO = CreateObject("scripting.filesystemobject")
ScriptPath = FSO.GetParentFolderName(WScript.ScriptFullname) & "\"
smscfgpath = WshShell.ExpandEnvironmentStrings("%Windir%") & "\smscfg.ini"
f1 = WshShell.Run("%comspec% /c " & Chr(34) & ScriptPath & "20clicln.bat" & Chr(34),0,False)
If FSO.FileExists(smscfgpath) Then
Set f2 = FSO.GetFile(smscfgpath)
f2.Attributes = slNormal
f2.Delete
End If
Set f2 = Nothing
Set FSO = Nothing
Set WshShell = Nothing


If 20clicln.bat doesn't completely remove SMS, in the vbs above try replacing 20clicln.bat with hammer.exe (a component in the 20clicln bundle). My experience has shown that hammer works very well even on totally messed-up SMS installs. 20clicln relies on various component uninstall programs to exist on the client whereas hammer does not.
 
Does the Cliclean.bat /scrub use the smsclient token account? the reason I am asking is that the SMS Client is now on a DC and I need to get it off of there ASAP. The problem is that the local account policy is disabled because it is a DC.

@ndly, how do I get the smsclienttoekn account of the AD Group listing?

Thanks,

Tim Pafford
SMS Administrator
State Street Research
 
20clicln would run under the rights of the user running 20clicln. You could advertise 20clicln to the DC to get SMS off, but it would probably be better to have a DC admin run it.

This should help you keep the client off the DCs:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top