Jump to content


Kingskawn

How to find all machines which are not assigned to a site?

Recommended Posts

We migrated from 2007 to 2012 and at the same time to a new domain. In the old domain we had a gpo with a site assignement. In the new domain it isn't used anymore. The new clients which are installed through 2012 have been changed to the old domain we discovered by local IT.

The catch is how we can list all those wrong assigned clients?

 

I want to solve this by executing a simple batch file which will delete the registry keys and restart the ccm service:

:Delete assignment keys
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Mobile Client" /v "GPRequestedSiteAssignmentCode" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Mobile Client" /v "GPSiteAssignmentRetryInterval(Min)" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Mobile Client" /v "GPSiteAssignmentRetryDuration(Hour)" /f

:Restart the CCM service
net stop ccmexec
net start ccmexec

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.