Windows - Scripts
File System - Windows
List all Permissions in Share Recursively
Get-childitem \\network\share\ -recurse | Where-Object{$_.psiscontainer} | Get-Acl | ForEach-Obj...
SMB ACL Group Creation Script
Asks you for a root folder, then allows you to enter subfolders until you leave an entry empty. N...
Take Ownership and Change Admins to Full Rights
$folderMask = "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*" $folders = Get-Chil...
Compress WinSxS Folder
Query service status. Track its state. sc query msiserver sc query TrustedInstaller Stop...
Create Directories From List
Script set list=\\192.168.1.41\Emulation\OrganizedRoms\directories.txt set location=\\192.16...
Create-WorkloadFolder
Location Agnostic Version v1.3 ########################################## # AUTHOR : Ryan Mu...
Security
Network
Applications
Performance
Updates
System
Remove Ghost Devices
removeghosts.ps1 <# .SYNOPSIS Removes ghost devices from your system .DESCRIPTION T...
View and Delete Local Profile List
delete_profile_with_gui_v2.ps1 ########################################## # AUTHOR : Ryan Mut...
Extend the Windows RE Partition
Resize_script.ps1 The sample script below can be used to increase the size of recovery par...
Get-AllEventLogsTimeFrame
Make changes to the variables $startTime and $endTime for exact dates/times, otherwise utilize th...
Ping With Log
@echo off set /p host=host Address: set logfile=Log_%host%.log echo Target Host = %host% >...
Send A Message To All Logged On Users
shutdown -r -t 600 -c "This system is restarting in 10 minutes to recover OS stability. Please lo...
Ping-WithTimestampAndLog
Ping With Timestamp and Log Remove line 1 from each code block to remove the logging to file. T...