This PowerShell script will check the registry for the last time the policy ran, calculate the current date and compare to a set value (30 Days). It will then return $true or $false if Group Policy has not run in more than 30 days.
I wrote this script to run during an operating system upgrade, you can capture the current Power Config and store it to the system drive. Then after the system has upgraded, you can run the following command to restore the Power Config. If you use SCCM, this can be added as a PowerShell script before […]
I’ve run into issues where an SCCM client will get repaired and the cache size automatically goes back to 5120MB. This causes a problem if you have applications that you are advertising that are bigger than 5GB. So my solution was to created a PowerShell script that first checks to see what the current cache […]