SCCM Client Issue - Reassigning Site Code
Hello,I'm trying to manually reassign an SCCM client to a new site code, but I'm getting this error message:"Method SetAssignedSite failed with error code 80004005"Any ideas on why this might be? Google is light on info for this problem.Thanks,Trevor SullivanSystems EngineerOfficeMax Corporation
October 9th, 2008 10:13pm
In all the sources I have looked, that specific error 80004005, is listed as "undefined" :-( So that doesn't help a whole lot.
Error 5, if that is what this is meant to be, is access denied, which I do know only admins can change site assignment of a client.
Are you using our Control Panel app, a script, or what?
Free Windows Admin Tool Kit Click here and download it now
October 9th, 2008 10:25pm
Wally,I'm using the SMS client center tool, and I also tried using the right-click SCCM tools also. I was not doing it through the control panel applet directly.I'm an administrator of the remote system in question.The error message was in one of the SCCM client log files. I believe it was LocationServices.log.Thanks,Trevor SullivanSystems EngineerOfficeMax Corporation
October 9th, 2008 11:00pm
I can't help you with either of those tools unfortunately, as they are not our tools.
If you do use our Configuration Manager program, does it work locally? That will tell you if it is a client issue, or a tool issue.
Free Windows Admin Tool Kit Click here and download it now
October 9th, 2008 11:19pm
Wally,I understand. I don't have any need to reassign the site at the moment, but if it crops up again, I'll try to set it using the applet instead of other tools.Thanks,Trevor SullivanSystems EngineerOfficeMax Corporation
October 9th, 2008 11:40pm
Well, you could do so now for a test anyway so we know if it is a 3rd party tool issue or not :-)
Free Windows Admin Tool Kit Click here and download it now
October 10th, 2008 12:12am
Regarding using the Remote tools; you might be an admin; but is there a firewall or some GPO policies in place preventing your ability to look at WMI remotely? I think most remote tools expect "Remote Administration" ports to be open.
Instead of trying to change the site code; perhaps try something a little less intensefor the client; perhaps changing cache size? That would be a similar remote admin request. Changing site code means the client has to go get policies/compile/etc.
October 10th, 2008 12:18am
Sherry,We are not blocking WMI or remote management (RPC?) ports on these systems. If there is a specific port you'd like me to look at, I can.Wally: I don't want to disturb the client, but I can probably give it a go on a different system at some point Trevor SullivanSystems EngineerOfficeMax Corporation
Free Windows Admin Tool Kit Click here and download it now
October 10th, 2008 5:25am
Why are you not doing it through script? you can distribute this script thru software distribution method or can apply as logon script.
below is the vbscript to reassign sitecode to clients-
sSiteCode = "xxx"
sMachine = "."
set oCCMNamespace = GetObject("winmgmts://" & sMachine & "/root/ccm")
Set oInstance = oCCMNamespace.Get("SMS_Client")
set oParams = oInstance.Methods_("SetAssignedSite").inParameters.SpawnInstance_()
oParams.sSiteCode = sSiteCode
oCCMNamespace.ExecMethod "SMS_Client", "SetAssignedSite", oParams
'xxx - refers to site code
thx.
June 21st, 2010 10:12am
Why are you not doing it through script? you can distribute this script thru software distribution method or can apply as logon script.
below is the vbscript to reassign sitecode to clients-
sSiteCode = "xxx"
sMachine = "."
set oCCMNamespace = GetObject("winmgmts://" & sMachine & "/root/ccm")
Set oInstance = oCCMNamespace.Get("SMS_Client")
set oParams = oInstance.Methods_("SetAssignedSite").inParameters.SpawnInstance_()
oParams.sSiteCode = sSiteCode
oCCMNamespace.ExecMethod "SMS_Client", "SetAssignedSite", oParams
'xxx - refers to site code
thx.
Is there a way to add a command line to this script? I have an issue whewre we have mulitple forest and we need to use SLP for ths client to install correctly. I tried to reassgn using a basic script but because it cant find the SLP ( Locationservices.log told
me this 0 it wont reassign.
Free Windows Admin Tool Kit Click here and download it now
May 10th, 2011 11:37am