Category Archives: Batch

Clear GPO Cache on Remote Computer with PowerShell

Clearing the GPO cache on a computer may be the only way to fix a persistent problem.  Doing this involves deleting files, registry entries, and rebuilding the security database.  Clear-GPOCache.ps1 works by creating a custom batch file on the remote … Continue reading

Posted in Active Directory, Batch, Group Policy Objects, PowerShell, Scripting, Windows Administration | Tagged , | Leave a comment

Another User Folder Security Reset Script

This simple batch file resets the inheritance on users folders and then grants them “modify” using the builtin icacls.exe.   This script does not address issues which require you to take ownership — I will post one that does that soon. … Continue reading

Posted in Batch, Scripting, Security, Windows Administration | Tagged , , | Leave a comment

My Windows 10 Fix

I had some issues with my Windows 10 computer at home.  I did some research, and came up with this batch file to freshen and check all of the operating system files.    Save this as Fix10.cmd (or Fix10.bat) and run … Continue reading

Posted in Batch, Scripting, Windows 10 | Tagged , , | Leave a comment

Batch file to Run PowerShell Scripts

I have a couple of PowerShell scripts which I run daily, and the number keeps growing.  I wanted a quick way to run scripts which support alternate credentials.  Drag and drop a PowerShell script onto  the RunPS.cmd  batch and you … Continue reading

Posted in Batch, PowerShell, Scripting | Tagged | Leave a comment

Batch File to Prestage a Computer Account

Batch files are not dead.  Microsoft has said that batch files, and vbscript will be supported into the indefinite future.  And I still write an occasional batch file because the really are quick and easy.  I use the .CMD extension, … Continue reading

Posted in Active Directory, Batch, Scripting, Windows Administration | Leave a comment