Hi there

I run into a client ticket where he asked to change the client cache after an Office 365 Pro Plus click-to-run failed.

My initial thought was the default client push configuration settings.

Then I checked the following:

  • SCCM client push settings at SCCM console \Administration\Overview\Site Configuration\Sites
  • SCCM client cache at a domain joined workstation
  • Simulated the Office 365 Pro Plus click-to-run on a sandbox machine (that can be also a real user domain joined workstation) which you have access to
  • Restarted the sccm services (SMS Agent Host service) under services.msc (Windows Services Management Console)

SCCM console view

SCCM services on windows

Fixes

  1. VBS script to clear cache, set new value
  2. PowerShell Script to clear cache and set new value
  3. Change default client push settings at SCCM for any “agent / client” automatic deployment
  4. Created a script at SCCM console to make changes on the fly (have in mind that in large environments that might take longer to fix a simple step missed during SCCM deployment)
  5. Script to clear SCCM local cache (c:\windows\ccmcache\ folder)
  6. Restart SMS Agent Host (SCCM agent service remotely)

Tip!
Use psexec to run VBS or Powershell remotely against any domain joined workstation you might need to. To do so, please download the PsExec from Sysinternals here or the full Sysinternals Suite here.

open a cmd.exe as administrator from the SCCM console (primary server or any DP “Distribution Point” available on network).

Do the following

Copy the sccm-cache.vbs to the desired workstation on its \\dESKTOP-LVTEST\admin$ share. Remember that the admin$ share it’s the c:\windows\ folder on the target machine where you run your psexec.exe remote against.

psexec.exe \\dESKTOP-LVTEST "c:\windows\inceraase-sccm-cache.vbs"
psexec.exe \\dESKTOP-LVTEST "c:\windows\SCCM-client-wmi-queries.cmd"
psexec.exe \\dESKTOP-LVTEST "c:\windows\sccm-clear-local-cache.vbs"

Tip!
Restarting the SCCM
service remotely also force SCCM agent/client to download its policies from MP (Management Point) – one single command.

psexec.exe \\dESKTOP-LVTEST net stop ccmexec && psexec.exe \\dESKTOP-LVTEST net start ccmexec

You can repeat the same psexec remote to clear SCCM cache and to trigger agent from WMI command line if you don’t want to open the configuration manager properties.

Files used (copy from your SCCM server)

To the workstation over the network (remember the admin$ it’s the c:\windows\ folder locally)

Logs files

Please look at the logs files at CCM\Logs\ folder at the client as well as at ccmsetup\logs\ and if you need ccmcache\ folder to make sure all the scripts covered at this post worked properly.

SCCM main folders at the client

CCM Logs folder

CCMSetup Logs folder

Files Download

thanks,

Thiago Beier
TwitterLinkedInFacebookRSS