Tuesday, August 10, 2010

Re assignment of SCCM client into different Hierarchy

when we reassign SCCM Client from one Hierarchy to another, the client already has a trusted root key from its original hierarchy. Reassigning the client to a new hierarchy means that the client will also be assigned to a new management point. When both the trusted root key and the management point changes, by default, the client will become unmanaged. In this scenario, the Advanced Client component will send the status message ID 10822 to the site, with a description that it encountered a certificate for a management point that it could not verify. Additionally, the client log file Locationservices.log will display the errors like : The trusted key, mp certificate and the mp machine have changed on server. The client cannot validate the authentication information.
--------
If you want to just reassign a client to a new hierarchy without reinstalling it, you have two options:

•Pre-provision the client with the trusted root key for the new hierarchy, using one of the procedures in the topic How to Pre-Provision the Trusted Root Key on Clients. This is the recommend method because it is more secure.
•Remove the trusted root key from client, using the procedure in the topic How to Remove the Trusted Root Key.

Alternatively, when you reassign the client, you can also reinstall it by using a method that includes the trusted root key. For example:

•Client push, which automatically includes the trusted root key without your having to specify it.
•CCMSetup and include the option SMSPublicRootKey or SMSROOTKEYPATH.

Tuesday, August 3, 2010

Force DCM Evaluation Remotely

On Error Resume Next
CompName = Wscript.Arguments(0)
If compname = "" Then
CompName = InputBox("Input a Computer name or IP", "Computer Name",CompName)
End If
err.clear
set DCMInvoke = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
CompName & "\root\ccm\dcm:SMS_DesiredConfiguration")
if err.number <> 0 then
msgbox "unable to access " & CompName & vbcr &_
"Error: " & err.description,,"SMS DCM Trigger Evaluation"
else
Set objSWbemServices = GetObject("winmgmts:\\" & CompName & "\root\ccm\dcm")
Set colSWbemObjectSet = objSWbemServices.ExecQuery("SELECT * FROM SMS_DesiredConfiguration")
For Each objSWbemObject In colSWbemObjectSet
DCMInvoke.TriggerEvaluation objSWbemObject.Name,objSWbemObject.Version
Next
end if

Monday, August 2, 2010

Waiting to install package on some DP's

Modify the PkgStatus table on the central site server SQL database and then refresh the affected DP's


update pkgstatus set Status = 2 where id = '' and sitecode = '' and type = 1
update pkgstatus set SourceVersion = 0 where id = '' and sitecode = '' and type = 1