Powershell Script to Clear CCM Cache on Server 2003

Hello

I have a script to clean CCM cache through configuration manager based on last referenced date.  It works great on Windows Server 2008 but I'm getting errors when I use it on Server 2003.  I spoke with a friend who thinks rewriting it using the following will work:

[system.timezoneinfo]::ConvertTime(....)

I'm having trouble seeing how to convert it to use the code above.  See screen shots below for my current script and the errors I get when I use it on Windows Server 2003.  Any help would be much appreciated, thanks!!!


August 25th, 2015 11:02pm

The problem is that the time string returned on Windows 2003 is null in some cases or does not exist. Changing the converter will not fix this. 

You should post in the ConfigMgr forum for a fix for this.

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 12:30am

I'll move it to the Configuration Manager forum, thanks.
August 26th, 2015 11:29am

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

Other recent topics Other recent topics