Powershell – SCCM Client Sledgehammer aka Reset-CMClient

The following code forces a reset/repair of the SCCM Client on a device. It is very basic, but it succeeds where Install-CMClient fails  even if you force the uninstall before installing

A few prerequisites:

  1. PSExec from https://docs.microsoft.com/en-us/sysinternals/downloads/psexec
  2. Assumption that you are running  a session that has  the ability to PSEXEC to the remote Device AND is already setup to run the SCCMCmdlets

I have commented out the Install Client section , just because, for me it was easier to go into the SCCM Console and push the client when testing and additionally I have two sets of credentials, one for SCCM and one for Device Access.





Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.