File System
- Get Drive/Folder Owner
- Remove Folder With . At End Of It
- Remove Font Cache
- Shrink Windows Datastore.edb
Get Drive/Folder Owner
GET-ACL “$Path”| Select-Object path, Owner -expand access | Select-Object @{n=”Path”;e={$_.Path.replace(“Microsoft.PowerShell.Core\FileSystem::”,””)}}, Owner, IdentityReference, FileSystemRights, AccessControlType, IsInherited
Remove Folder With . At End Of It
rd /s "\\?\C:\Documents and Settings\User\Desktop\Annoying Folder."
From https://stackoverflow.com/questions/4075753/how-to
Remove Font Cache
forfiles /P C:\Windows\ServiceProfiles\LocalService\AppData\Local /M FontCache* /D -30 /C "cmd /c del @path"
Shrink Windows Datastore.edb
esentutl.exe /d c:\Windows\SoftwareDistribution\DataStore\DataStore.edb