How to manually install SCCM 2012 client with PSEXEC.EXE remotely.

Obviously the preferred client installation method is either via an automatic client push or manually pushing out the client using the SCCM Administration Console:

Install Client

However, this method sometimes doesn’t work either because of permissions issues or WMI corruption.  Of course, you want to fix the underlying problem that is causing a manual client push not to work.

For those of you interested in an alternative way to install the client, you can use the excellent PSEXEC.EXE command-line tool from Mark Russinovich Sysinternals Suite:

PSEXEC.EXEPSEXEC.EXE command window with server names blurred.

psexec.exe \\RemoteComputer -s -d \\SCCMServer\SMS_SiteCode\Client\ccmsetup.exe /logon SMSSITECODE=ABC /MP:MPServer.domain.local CCMHOSTNAME=cm.domain.com

In the above example, PSEXEC.EXE initiates a remote connection to “\\RemoteComputer” using the System Account (/S) and then passes the command and terminates immediately (/D).

For a list of PSEXEC.EXE switches go to http://technet.microsoft.com/en-us/sysinternals/bb897553.

For a list of CCMSETUP.EXE switches go to http://technet.microsoft.com/en-us/library/gg699356.aspx.

Advertisements

6 thoughts on “How to manually install SCCM 2012 client with PSEXEC.EXE remotely.

  1. William

    Is the SMSSITECODE=ABC /MP:MPServer.domain.local CCMHOSTNAME=cm.domain.com all the same server. For example smssitecode CAS MP:blablabla_server CCMHOSTNAME=blablabla_server.US.com

    Reply
    1. rcheing Post author

      Hi William, thanks for reading. The CCMHOSTNAME value is equal to the public facing hostname you have specified for your Internet Management Point in your Public DNS zone. For example, let’s say your internal MP server is SCCM01.company.local (I know non-public routable UPN is no longer best practice, but bear with me) and you point CM.company.com in your Public DNS to the external IP of SCCM01.company.local. Then your connection string would be SMSSITECODE=CAS /MP:SCCM01.company.local CCMHOSTNAME=CM.company.com. In this case, the /MP is pointing CCMSetup.exe to SCCM01.company.local to download the Client.msi file and also setting the Internet MP to CM.company.com. I hope this clears things up.

      Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s