Powershell to uninstall SCCM Client remotely

I use the below command using cmd to uninstall the SCCM client 2007 from a machine manually.

C:\Windows\ccmsetup\{4CD82FBB-0AFC-4864-A089-15364DF5F14B}
msiexec /x client.msi

What i need to do is,

  1. This is for 100 machines remotely
  2. Uninstall the SCCM 2007 client from the same folder mentioned above remotely for 100 machines
  3. Once the uninstallation of this client is completed
  4. Install SCCM 2012 client from C:\Windows\ccmsetup2012\ccmsetup.exe from the same machines

Can this be done with powershel ? for remote machines..i have admin access to all the machines that i am targeting.

September 3rd, 2015 7:47am

OK I will bite, why do you want to uninstall the CM07 client before install the CM!2 client? The CM12 client install will take care of removing the CM07 client first.

BTW the proper uninstall for CM07 is Ccmsetup.exe /uninstall, the MSI method is not supported.

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 8:10am

is there a powershell command to Install/upgrade SCCM client 2012 ?? for remote machines ?
September 3rd, 2015 8:12am

is there a powershell command to Install/upgrade SCCM client 2012 ?? for remote machines ?

Are you talking about Client Push or manually installing the Client?

For Client push, most likely there is.

For Client Install, execute ccmsetup.exe ,with any command line options you need.

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 8:44am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics