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.
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 site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.