├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── custom.md │ └── feature_request.md ├── LICENSE ├── LocalScripts ├── Backup │ ├── Browsers │ │ └── Bookmark-Export-Import │ │ │ ├── Chrome │ │ │ ├── ChromeBookmarks │ │ │ │ ├── ChromeBookmarImport.ps1 │ │ │ │ └── ChromeBookmarkExport.ps1 │ │ │ └── ReadMe.txt │ │ │ └── Edge │ │ │ ├── EdgeBookmarks │ │ │ ├── EdgeBookmarkExport.ps1 │ │ │ └── EdgeBookmarkImport.ps1 │ │ │ └── ReadMe.txt │ ├── OneDrive │ │ ├── OneDrive-Differential-Backup.ps1 │ │ └── OneDrive-Full-Backup.ps1 │ ├── ReadMe.md │ └── Restore-Point │ │ ├── Automated-Restore-Point │ │ ├── ReadMe.md │ │ └── User │ │ │ ├── Automated-Restore-Point.ps1 │ │ │ ├── Script-Check │ │ │ ├── Auto-Resto-Point-Check.ps1 │ │ │ └── Task-Scheduler-Import.ps1 │ │ │ └── Task-Scheduler-Import.ps1 │ │ ├── Get-Restore-Points │ │ ├── Get-Restore-Points.ps1 │ │ └── ReadMe.md │ │ ├── Manually-Create-Restore-Point │ │ ├── Manually-Create-Restore-Point.ps1 │ │ └── ReadMe.md │ │ └── ReadMe.md ├── CSV │ ├── Combine-CSVs-From-Dir │ │ ├── Combine-CU-Program-CSVs.ps1 │ │ └── ReadMe.md │ ├── Export-CSV-Headers │ │ ├── Export-CSV-Headers.ps1 │ │ └── ReadMe.md │ └── ReadMe.md ├── Computer │ ├── Delete-Downloads-30-Day │ │ └── Delete-Downloads-30-Day.ps1 │ ├── Get-Last-Reboot │ │ └── Get-Last-Reboot.ps1 │ ├── GetPCTimeAndZone.ps1 │ ├── LockPC │ │ ├── LockPD.ps1 │ │ └── ReadMe.md │ ├── MouseMovement │ │ ├── DetectMouseMovement-PS5-1.ps1 │ │ ├── DetectMouseMovement.ps1 │ │ └── ReadMe.md │ ├── PCUpTimeAndLastBoot.ps1 │ ├── ReadMe.txt │ └── Restart-PC-Force │ │ ├── Blank-Script-Template.ps1 │ │ └── ReadMe.md ├── Event-Log │ └── Reboots │ │ ├── Last-10-Reboots │ │ └── Last-10-Reboots.ps1 │ │ └── Power-Events │ │ └── Last-5-Power-Events.ps1 ├── Games │ └── Dice-Dungeon │ │ ├── Character-Classes │ │ └── Rouge.psm1 │ │ ├── Dice │ │ ├── D10.psm1 │ │ ├── D20.psm1 │ │ └── D4.psm1 │ │ ├── Helper-Functions │ │ ├── Get-All-Functions.ps1 │ │ └── Get-All-psm1.ps1 │ │ ├── Menus │ │ └── Test-Level-01.psm1 │ │ ├── Module-Files │ │ ├── Dice-Dungeon-Main.psm1 │ │ └── Dice-Dungeon-Manifest.psd1 │ │ ├── Monsters │ │ └── Goblin.psm1 │ │ └── Weapons │ │ ├── Bow-and-Arrows.psm1 │ │ └── Dagger.psm1 ├── Hardware │ ├── Bios │ │ ├── Bios.ps1 │ │ ├── SleepStates │ │ │ ├── Readme.md │ │ │ └── SleepStateStates.ps1 │ │ └── UEFI-Or-Legacy.ps1 │ ├── CDROM │ │ └── CDROM.ps1 │ ├── CPU │ │ └── CPU.ps1 │ ├── Device-Type │ │ └── Device-Type.ps1 │ ├── GPU │ │ └── GPU.ps1 │ ├── LocalDiskDrives │ │ ├── Get-Drive-Letters.ps1 │ │ └── LocalDiskDrives.ps1 │ ├── NetworkAdapter │ │ ├── IPv4&6EnableCheck.ps1 │ │ ├── NetworkAdapter.ps1 │ │ └── ResetNetworkAdatpter.ps1 │ ├── PCInfo │ │ └── PCInfo.ps1 │ ├── Power │ │ └── Lid-Do-Nothing │ │ │ └── Lid-Do-Nothing.ps1 │ ├── Printer │ │ ├── InstalledPrinterDrivers │ │ │ └── InstalledPrinterDrivers.ps1 │ │ ├── InstalledPrinters │ │ │ └── InstalledPrinters.ps1 │ │ └── Spooler │ │ │ └── RestartLocalPrintSpooler.ps1 │ ├── RAM │ │ └── RAM.ps1 │ └── ReadMe.txt ├── IP │ ├── GetDeviceNameByIP.ps1 │ ├── GetIP.ps1 │ └── IPRenewal.ps1 ├── LICENSE ├── Learning │ ├── Random Get-Help of the day.ps1 │ ├── Random PS Concepts.ps1 │ └── ReadMe.txt ├── Modules │ ├── Find-Module │ │ ├── Find-Module.ps1 │ │ └── ReadMe.md │ ├── Get-InstalledModule │ │ ├── Get-InstalledModule.ps1 │ │ └── ReadMe.md │ ├── Install-Module │ │ ├── Install-Module.ps1 │ │ └── ReadMe.md │ ├── Modules │ │ ├── AD │ │ │ ├── New-ADUSer-From-CSV │ │ │ │ └── New-ADUSer-From-CSV.ps1 │ │ │ └── Set-ADUser-From-CSV │ │ │ │ └── Set-ADUser-From-CSV.ps1 │ │ ├── Automation-Lab │ │ │ ├── Config-Files │ │ │ │ ├── Hyper-V │ │ │ │ │ ├── ReadMe.md │ │ │ │ │ └── Win-10-64Bit │ │ │ │ │ │ ├── ReadMe.md │ │ │ │ │ │ └── Single-Machine-Creation │ │ │ │ │ │ ├── ReadMe.md │ │ │ │ │ │ ├── Single-Machine-Creation-DHCP.ps1 │ │ │ │ │ │ └── Single-Machine-Creation-Static-IP.ps1 │ │ │ │ └── ReadMe.md │ │ │ └── ReadMe.md │ │ ├── Azure │ │ │ ├── Azure Az 8.0.0 │ │ │ │ ├── Connect │ │ │ │ │ ├── ConnectAzureAD.ps1 │ │ │ │ │ └── ReadMe.txt │ │ │ │ ├── Disconnect │ │ │ │ │ ├── Disconnect.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ ├── Install │ │ │ │ │ ├── InstallAzure8.0.0.ps1 │ │ │ │ │ └── ReadMe.txt │ │ │ │ ├── ReadMe.txt │ │ │ │ └── Unistall │ │ │ │ │ ├── ReadMe.txt │ │ │ │ │ └── UninstallAzure8.0.0.ps1 │ │ │ └── AzureAD │ │ │ │ ├── Add-User-To-Group │ │ │ │ ├── Add-User-To-Group.ps1 │ │ │ │ └── ReadMe.md │ │ │ │ ├── Add-User │ │ │ │ └── Add-User-Manually │ │ │ │ │ ├── AddUser.ps1 │ │ │ │ │ └── README.md │ │ │ │ ├── Block-User-Signin │ │ │ │ ├── Block-User-Signin.ps1 │ │ │ │ └── ReadMe.md │ │ │ │ ├── Connect │ │ │ │ ├── Connect.ps1 │ │ │ │ └── README.md │ │ │ │ ├── Disconnect │ │ │ │ ├── Disconnect.ps1 │ │ │ │ └── ReadMe.md │ │ │ │ ├── Get-Groups │ │ │ │ ├── All-AzureAD-Groups │ │ │ │ │ ├── All-AzureAD-Users.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ ├── Distribution-Lists │ │ │ │ │ ├── Distribution-Lists.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ └── Search-AzureAD-Groups │ │ │ │ │ ├── ReadMe.md │ │ │ │ │ └── Search-AzureAD-User.ps1 │ │ │ │ ├── Get-User-Memberships │ │ │ │ ├── Get-User-Memberships.ps1 │ │ │ │ └── ReadMe.md │ │ │ │ ├── Get-User │ │ │ │ ├── All-AzureAD-Users │ │ │ │ │ ├── All-AzureAD-Users.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ ├── Domain-UPN │ │ │ │ │ ├── Domain-UPN.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ └── Search-AzureAD-User │ │ │ │ │ ├── ReadMe.md │ │ │ │ │ └── Search-AzureAD-User.ps1 │ │ │ │ ├── Install │ │ │ │ ├── Install.ps1 │ │ │ │ └── ReadMe.md │ │ │ │ ├── Remove-User │ │ │ │ ├── README.md │ │ │ │ └── Remove-User.ps1 │ │ │ │ ├── Unblock-User-Signin │ │ │ │ ├── ReadMe.md │ │ │ │ └── Unblock-User-Signin.ps1 │ │ │ │ └── Unistall │ │ │ │ ├── ReadMe.txt │ │ │ │ └── UninstallAzure8.0.0.ps1 │ │ ├── BurntToast │ │ │ ├── Install-BurntToast │ │ │ │ ├── 0.8.5 │ │ │ │ │ ├── 0.8.5.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ └── 1.0.0-Preview2 │ │ │ │ │ ├── 1.0.0-Preview2.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ └── Notifications │ │ │ │ └── Custom-Notification │ │ │ │ ├── Custom-Notification.ps1 │ │ │ │ └── friendly neighborhoodPS.png │ │ ├── Created-Modules │ │ │ └── Module-Createtion-Test │ │ │ │ └── Module-Creation-Test.psm1 │ │ ├── ExchangeOnline │ │ │ ├── Exchange-Online-V2 │ │ │ │ ├── Connect │ │ │ │ │ ├── Connect.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ ├── Disconnect │ │ │ │ │ ├── Disconnect.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ ├── Install-EXO-2.0.5 │ │ │ │ │ ├── Install-EXO-2.0.5.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ └── ReadMe.md │ │ │ ├── Exchange-Online-V3 │ │ │ │ ├── Connect-Delegated │ │ │ │ │ └── Connect-Deligated.ps1 │ │ │ │ ├── Connect │ │ │ │ │ ├── Connect.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ ├── Disconnect │ │ │ │ │ ├── Disconnect.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ ├── Get-EXOMailboxFolderStatistics │ │ │ │ │ ├── Get-EXOMailboxFolderStatistics.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ ├── Get-RetentionPolicy │ │ │ │ │ └── Get-RetentionPolicy.ps1 │ │ │ │ ├── Install-EXO-3.0.0 │ │ │ │ │ ├── Install-EXO-3.0.0.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ ├── New-MailboxRestoreRequest-Deligated │ │ │ │ │ └── New-MailboxRestoreRequest-Deligated.ps1 │ │ │ │ ├── Roles │ │ │ │ │ ├── All-Roles-Assigned-To-User │ │ │ │ │ │ ├── All-Roles-Assigned-To-User.ps1 │ │ │ │ │ │ └── ReadMe.md │ │ │ │ │ ├── All-Roles │ │ │ │ │ │ ├── All-Roles.ps1 │ │ │ │ │ │ └── ReadMe.md │ │ │ │ │ ├── ReadMe.md │ │ │ │ │ └── Role-Required-To-Rum-CMDLet │ │ │ │ │ │ ├── ReadMe.md │ │ │ │ │ │ └── Role-Required-To-Rum-CMDLet.ps1 │ │ │ │ ├── SCC │ │ │ │ │ ├── Connect-to-SCC │ │ │ │ │ │ ├── Connect-to-SCC.ps1 │ │ │ │ │ │ └── ReadMe.md │ │ │ │ │ ├── Get-ComplianceSearch copy │ │ │ │ │ │ ├── Get-ComplianceSearch.ps1 │ │ │ │ │ │ └── ReadMe.md │ │ │ │ │ ├── Get-ComplianceSearch │ │ │ │ │ │ ├── Get-ComplianceSearch.ps1 │ │ │ │ │ │ └── ReadMe.md │ │ │ │ │ ├── Mailbox-to-PST │ │ │ │ │ │ ├── Mailbox-to-PST.ps1 │ │ │ │ │ │ └── ReadMe.md │ │ │ │ │ ├── ReadMe.md │ │ │ │ │ └── Remove-ComplianceSearch │ │ │ │ │ │ ├── ReadMe.md │ │ │ │ │ │ └── Remove-ComplianceSearch.ps1 │ │ │ │ └── SharedMailbox │ │ │ │ │ └── SendAs │ │ │ │ │ └── SendAs-Permissions-Set.ps1 │ │ │ ├── Inbox-Rules │ │ │ │ ├── Delete-Inbox-Rule │ │ │ │ │ └── Delete-Inbox-Rule.ps1 │ │ │ │ ├── Get-All-Inbox-Rules │ │ │ │ │ └── Get-All-Inbox-Rules.ps1 │ │ │ │ └── What-Inbox-Rules-Doing │ │ │ │ │ └── What-Inbox-Rules-Doing.ps1 │ │ │ └── ReadMe.md │ │ ├── MS-Graph │ │ │ ├── Connect │ │ │ │ ├── Connect-MgGraph.ps1 │ │ │ │ └── ReadMe.md │ │ │ ├── Disconnect │ │ │ │ ├── Disconnect-MgGraph.ps1 │ │ │ │ └── ReadMe.md │ │ │ ├── Mail │ │ │ │ ├── ReadMe.md │ │ │ │ └── Send-MGUserMail │ │ │ │ │ ├── ReadMe.md │ │ │ │ │ └── Send-MGUserMail.ps1 │ │ │ ├── ReadMe.md │ │ │ └── Users │ │ │ │ ├── Get-All-MgUser │ │ │ │ ├── Get-All-MgUser.ps1 │ │ │ │ └── ReadMe.md │ │ │ │ ├── Get-Specific-MgUser │ │ │ │ ├── Get-Specific-MgUser.ps1 │ │ │ │ └── ReadMe.md │ │ │ │ ├── Password │ │ │ │ ├── Change-Password.ps1 │ │ │ │ └── ReadMe.md │ │ │ │ └── ReadMe.md │ │ └── ReadMe.md │ ├── ReadMe.md │ ├── Search-and-Install-Module │ │ ├── ReadMe.md │ │ └── Search-and-Install-Module.ps1 │ ├── Uninstall-Module │ │ ├── ReadMe.md │ │ └── Uninstall-Module.ps1 │ └── Update-Module │ │ ├── ReadMe.md │ │ └── Update-Module.ps1 ├── Network │ ├── Drives │ │ ├── Dir-Largest-to-Small-Export │ │ │ ├── Dir-Largest-to-Small-Export-PathLength.ps1 │ │ │ ├── Dir-Largest-to-Small-Export.ps1 │ │ │ └── ReadMe.md │ │ ├── Map-Domain-Network-Drive │ │ │ ├── Map-Domain-Network-Drive.ps1 │ │ │ └── ReadMe.md │ │ ├── Remove-Mapped-Network-Drive │ │ │ ├── ReadMe.md │ │ │ └── Remove-Mapped-Network-Drive.ps1 │ │ ├── RemoveDrive │ │ │ └── RemoveDrive.bat │ │ ├── View-Mapped-Network-Drive-Letters │ │ │ ├── ReadMe.md │ │ │ └── View-Mapped-Network-Drive-Letters.ps1 │ │ └── View-Mapped-Network-Drives │ │ │ ├── ReadMe.md │ │ │ └── View-Mapped-Network-Drives.ps1 │ ├── Net-Adapters │ │ └── Disable-IPv6-All-NICs │ │ │ └── Disable-IPv6-All-NICs.ps1 │ ├── NetBios │ │ ├── Check-NetBio-Enabled.ps1 │ │ ├── Check-NetBios-Use.ps1 │ │ ├── Disable-NetBios.ps1 │ │ └── Enable-NetBios.ps1 │ ├── Printers │ │ ├── AddNetworkPrinterTemplate.ps1 │ │ └── RemoveNetworkPrinterTemplate.ps1 │ ├── ReadMe.txt │ └── ipconfig │ │ └── ipconfig-Release-Renew-Flush │ │ └── ipconfig-Release-Renew-Flush.ps1 ├── PowerShell │ ├── CheckPSVersion.ps1 │ ├── EnablePSRemoting.ps1 │ ├── EnterPSSession │ │ └── User_PCName.ps1 │ ├── Get-ExecutionPolicy.ps1 │ ├── Get-InstalledModules.ps1 │ ├── ListAvailableModules.ps1 │ ├── PS7 │ │ ├── Enable-PS7Core-GPO.ps1 │ │ │ ├── Enable-PS7Core-GPO.ps1 │ │ │ └── ReadMe.md │ │ └── ReadMe.md │ ├── ReadMe.txt │ └── UpdateHelp │ │ └── 7.2.3 │ │ ├── Update-Help.ps1 │ │ └── UpdatePSHelp7.X.XTaskSchedulerImport.ps1 ├── Programs │ ├── All-Install-Programs.ps1 │ ├── Current-User-Installed-Progs.ps1 │ ├── Export-All-Install-Programs.ps1 │ ├── FindESET.ps1 │ ├── Get-All-Running-Program │ │ ├── Get-All-Running-Program.ps1 │ │ └── ReadMe.md │ ├── Get-Specific-Running-Program │ │ ├── Get-Specific-Running-Program.ps1 │ │ └── ReadMe.md │ ├── MachineWide-Installed-Progs.ps1 │ └── ReadMe.txt ├── ReadMe.txt ├── Security │ └── Remote-Wipe │ │ └── Remote-Wipe.ps1 ├── Server │ ├── DC │ │ ├── All-DC-In-Forest.ps1 │ │ └── Get-FISMO-Roles.ps1 │ └── NPS │ │ └── New-NpsRadiusClient-Bulk │ │ └── New-NpsRadiusClient-Bulk.ps1 ├── Services │ └── Check-If-Service-Running │ │ └── Check-If-Service-Running.ps1 ├── Software │ ├── Error-Fixes │ │ ├── OneDrive │ │ │ └── OneDrive-Force-Sync │ │ │ │ └── OneDrive-Force-Sync.ps1 │ │ ├── ReadMe.md │ │ ├── Trane-3D-and-Trace-700 │ │ │ ├── Cant-Activate-License │ │ │ │ ├── License-Reactivation-Fix.ps1 │ │ │ │ ├── ReadMe.md │ │ │ │ └── image │ │ │ │ │ └── Cant-Activate-License │ │ │ │ │ └── 1678112611338.png │ │ │ └── ReadMe.md │ │ └── UserLock │ │ │ └── UL-PC-Check │ │ │ └── UL-PC-Check.ps1 │ ├── File-Hashes │ │ └── MD5 │ │ │ └── MD5-File-Hash.ps1 │ ├── Invoke-WebRequest │ │ ├── C++ │ │ │ └── c++-14.28.29325-Installer.ps1 │ │ ├── Cloud-Contact-Center-AccentDesktop-64Bit-Installer │ │ │ └── CCC-AccentDesktop-64Bit-2.0.1-Installer │ │ │ │ └── CCC-AccentDesktop-64Bit-2.0.1-Installer.ps1 │ │ ├── Cloud-Contact-Center-MXReport-4.2.1.25 │ │ │ └── Cloud-Contact-Center-MXReport-4.2.1.25 │ │ │ │ └── Cloud-Contact-Center-MXReport-4.2.1.25.ps1 │ │ ├── Cloud-Contact-Center-ZAC │ │ │ ├── Cloud-Contact-Center-ZAC-Installer │ │ │ │ ├── Cloud-Contact-Center-ZAC-Installer.ps1 │ │ │ │ └── ReadMe.md │ │ │ └── Cloud-Contact-Center-ZAC │ │ │ │ └── Cloud-Contact-Center-ZAC-Installer.ps1 │ │ ├── DL-and-Install-KB │ │ │ ├── DL-and-Install-KB.ps1 │ │ │ └── README.md │ │ ├── DesktopConnector │ │ │ ├── DesktopConnector copy.ps1 │ │ │ ├── DesktopConnector.ps1 │ │ │ └── ReadMe.md │ │ ├── ESET │ │ │ ├── Installer │ │ │ │ ├── ESET.ps1 │ │ │ │ └── ReadMe.md │ │ │ └── ReadMe.md │ │ ├── FireFox │ │ │ ├── Installer │ │ │ │ ├── FireFox.ps1 │ │ │ │ └── ReadMe.md │ │ │ ├── ReadMe.md │ │ │ └── Update │ │ │ │ └── Update-FireFox.ps1 │ │ ├── Git │ │ │ └── Git-2.44.0-64Bit │ │ │ │ ├── Git-2.44.0-64Bit.ps1 │ │ │ │ └── ReadMe.md │ │ ├── Google-Drive │ │ │ └── Google-Drive-Setup │ │ │ │ ├── Google-Drive-Setup.ps1 │ │ │ │ └── ReadMe.md │ │ ├── MS365 │ │ │ ├── MS365-Installer.ps1 │ │ │ └── OneDrive-Installer.ps1 │ │ ├── Mitel_Connect │ │ │ ├── Installer │ │ │ │ ├── Mitel-Connect-Installer.ps1 │ │ │ │ └── ReadMe.md │ │ │ ├── ReadMe.md │ │ │ └── Uninstaller │ │ │ │ ├── Mitel_Connect.ps1 │ │ │ │ └── ReadMe.md │ │ ├── PowerShell │ │ │ ├── Installers │ │ │ │ ├── Admin │ │ │ │ │ ├── PowerShell7-LTS │ │ │ │ │ │ ├── PowerShell7-LTS.ps1 │ │ │ │ │ │ └── ReadMe.md │ │ │ │ │ ├── PowerShell7-Stable │ │ │ │ │ │ ├── PowerShell7-Stable.ps1 │ │ │ │ │ │ └── ReadMe.md │ │ │ │ │ └── ReadMe.md │ │ │ │ ├── ReadMe.md │ │ │ │ └── Users │ │ │ │ │ ├── PowerShell7-LTS │ │ │ │ │ ├── PowerShell7-LTS.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ │ ├── PowerShell7-Stable │ │ │ │ │ ├── PowerShell7-Stable.ps1 │ │ │ │ │ └── ReadMe.md │ │ │ │ │ └── ReadMe.md │ │ │ ├── ReadMe.md │ │ │ └── Uninstallers │ │ │ │ ├── PowerShell7-LTS │ │ │ │ ├── PowerShell7-LTS.ps1 │ │ │ │ └── ReadMe.md │ │ │ │ ├── PowerShell7-Stable │ │ │ │ ├── PowerShell7-Stable.ps1 │ │ │ │ └── ReadMe.md │ │ │ │ └── ReadMe.md │ │ ├── PowerToys │ │ │ └── Power-Toys-79-64Bit-Machine │ │ │ │ ├── Power-Toys-79-64Bit-Machine.ps1 │ │ │ │ └── ReadMe.md │ │ ├── Terminal │ │ │ └── 64Bit-v1.20.11271.0 │ │ │ │ └── Install-Terminal-AppX-64Bit-v1.20.11271.0.ps1 │ │ │ │ └── Install-Terminal-AppX-64Bit-v1.20.11271.0.ps1 │ │ ├── VS-Code │ │ │ ├── ReadMe.md │ │ │ └── VSCode-x64-Machine-1.87.2.ps1 │ │ ├── VulScan │ │ │ ├── Installer │ │ │ │ ├── ReadMe.md │ │ │ │ └── VulScan-Discovery-Agent-Installer-WIN.ps1 │ │ │ └── ReadMe.md │ │ ├── WebRequestDL&Install.ps1 │ │ └── WebRoot │ │ │ ├── ReadMe.md │ │ │ └── Win-Installer-WebRoot │ │ │ ├── ReadMe.md │ │ │ └── Win-Installer-WebRoot.ps1 │ ├── MSI │ │ ├── 7-Zip │ │ │ └── 7-Zip-64Bit-23.01 │ │ │ │ ├── 7-Zip-64Bit-23.01.ps1 │ │ │ │ └── ReadMe.md │ │ └── Install-Chrome.ps1 │ ├── NinjaRMM │ │ └── NRMM-Service-Start-Task-Scheduler │ │ │ └── NRMM-Service-Start-Task-Scheduler.ps1 │ ├── PSModules │ │ └── ReadMe.txt │ ├── ReadMe.txt │ ├── Sophos │ │ └── Create-Import-pro.ps1 │ ├── Uninstall │ │ ├── Any-Desk │ │ │ └── Any-Desk-Uninstaller.ps1 │ │ ├── CCC-AccentDesktop-64Bit │ │ │ └── CCC-AccentDesktop-64Bit-2.0.1-Uninstaller │ │ │ │ └── CCC-AccentDesktop-64Bit-2.0.1-Uninstaller.ps1 │ │ ├── Cloud-Contact-Center-MXReport-4.2.1.25 │ │ │ └── Cloud-Contact-Center-MXReport-4.2.1.25.ps1 │ │ ├── Cloud-Contact-Center-ZAC │ │ │ ├── Cloud-Contact-Center-ZAC-Uninstall.ps1 │ │ │ └── ReadMe.md │ │ ├── Datto-RMM-Uninstaller │ │ │ └── Datto-RMM-Uninstaller.ps1 │ │ ├── Huntress │ │ │ ├── ReadMe.md │ │ │ └── Win-Uninstaller-Huntress │ │ │ │ ├── ReadMe.md │ │ │ │ └── Win-Uninstaller-Huntress.ps1 │ │ ├── MS-Office-Uninstaller │ │ │ └── Uninstall-All-Office │ │ │ │ └── Uninstall-All-Office.ps1 │ │ ├── Sophos-Intercept-X │ │ │ ├── ReadMe.md │ │ │ └── Win-Uninstaller-Sophos-Intercept-X │ │ │ │ ├── ReadMe.md │ │ │ │ └── Win-Uninstaller-Sophos-Intercept-X.ps1 │ │ ├── Sophos-MDR │ │ │ ├── ReadMe.md │ │ │ └── Win-Uninstaller-Sophos-MDR │ │ │ │ ├── ReadMe.md │ │ │ │ ├── Win-Uninstaller-Sophos-MDR-P1.ps1 │ │ │ │ └── Win-Uninstaller-Sophos-MDR-P2.ps1 │ │ ├── Terminal │ │ │ └── Uninstall-MS-Terminal-AppX.ps1 │ │ │ │ └── Uninstall-MS-Terminal-AppX.ps1.ps1 │ │ ├── Uninstall-Quick-Assist-Win10 │ │ │ └── Uninstall-Quick-Assist-Win10.ps1 │ │ ├── Uninstall-Quick-Assist-Win11 │ │ │ └── Uninstall-Quick-Assist-Win11.ps1 │ │ ├── Uninstall-VulScan │ │ │ └── Uninstall-VulScan.ps1 │ │ └── UserLock │ │ │ └── UL-Agent-Uninstall.ps1 │ │ │ └── UL-Agent-Uninstall.ps1 │ └── WinGet │ │ ├── Installers │ │ ├── 7-Zip │ │ │ ├── 7-Zip.ps1 │ │ │ └── ReadMe.md │ │ ├── Adobe-Reader │ │ │ ├── Adobe-Reader.ps1 │ │ │ └── ReadMe.md │ │ ├── Audacity │ │ │ ├── Audacity.ps1 │ │ │ └── ReadMe.md │ │ ├── Box │ │ │ ├── Box.ps1 │ │ │ └── ReadMe.md │ │ ├── BulkRenameUtility │ │ │ ├── BulkRenameUtility.ps1 │ │ │ └── ReadMe.md │ │ ├── Chrome-Remote-Desktop │ │ │ ├── Chrome-Remote-Desktop.ps1 │ │ │ └── ReadMe.md │ │ ├── Chrome │ │ │ ├── Chrome.ps1 │ │ │ └── ReadMe.md │ │ ├── Cisco-Webex │ │ │ ├── Cisco-Webex.ps1 │ │ │ └── ReadMe.md │ │ ├── Corsair-iCue-4 │ │ │ ├── Corsair-iCue-4.ps1 │ │ │ └── ReadMe.md │ │ ├── CrystalDiskInfo │ │ │ ├── CrystalDiskInfo.ps1 │ │ │ └── ReadMe.md │ │ ├── Discord │ │ │ ├── Discord.ps1 │ │ │ └── ReadMe.md │ │ ├── DropBox │ │ │ ├── DropBox.ps1 │ │ │ └── ReadMe.md │ │ ├── FireFox │ │ │ ├── FireFox.ps1 │ │ │ └── ReadMe.md │ │ ├── GIMP │ │ │ ├── GIMP.ps1 │ │ │ └── ReadMe.md │ │ ├── GitHub Desktop │ │ │ ├── GitHub Desktop.ps1 │ │ │ └── ReadMe.md │ │ ├── GoToMeeting │ │ │ ├── GoToMeeting.ps1 │ │ │ └── ReadMe.md │ │ ├── Google-Drive │ │ │ ├── Google-Drive.ps1 │ │ │ └── ReadMe.md │ │ ├── Google-Earth-Pro │ │ │ ├── Google-Earth-Pro.ps1 │ │ │ └── ReadMe.md │ │ ├── Logitech-Options-Plus │ │ │ ├── Logitech-Options-Plus.ps1 │ │ │ └── ReadMe.md │ │ ├── MS365-Apps │ │ │ ├── MS365-Apps.ps1 │ │ │ └── ReadMe.md │ │ ├── Nvidia-Gforce │ │ │ ├── Nvidia-Gforce.ps1 │ │ │ └── ReadMe.md │ │ ├── OBS │ │ │ ├── OBS.ps1 │ │ │ └── ReadMe.md │ │ ├── OneDrive │ │ │ ├── OneDrive.ps1 │ │ │ └── ReadMe.md │ │ ├── Power-Toys │ │ │ ├── Power-Toys-0.68.1 │ │ │ │ ├── Power-Toys-0.68.1.ps1 │ │ │ │ └── ReadMe.md │ │ │ ├── Power-Toys-0.70.0 │ │ │ │ ├── Power-Toys-0.70.0.ps1 │ │ │ │ └── ReadMe.md │ │ │ └── Power-Toys-Latest │ │ │ │ ├── Power-Toys-Latest.ps1 │ │ │ │ └── ReadMe.md │ │ ├── ReadMe.md │ │ ├── Spotify │ │ │ ├── ReadMe.md │ │ │ └── Spotify.ps1 │ │ ├── Teams │ │ │ ├── ReadMe.md │ │ │ └── Teams.ps1 │ │ ├── Visual-Studio-Code │ │ │ ├── ReadMe.md │ │ │ └── Visual-Studio-Code.ps1 │ │ ├── Zoom-Outlook-Plugin │ │ │ ├── ReadMe.md │ │ │ └── Zoom-Outlook-Plugin.ps1 │ │ ├── Zoom │ │ │ ├── ReadMe.md │ │ │ └── Zoom.ps1 │ │ └── iTunes │ │ │ ├── ReadMe.md │ │ │ └── iTunes.ps1 │ │ ├── Logs │ │ ├── Get-Log-Content.ps1 │ │ │ ├── Get-Log-Content.ps1 │ │ │ └── ReadMe.md │ │ └── ReadMe.md │ │ ├── Uninstallers │ │ ├── 7-Zip │ │ │ ├── 7-Zip.ps1 │ │ │ └── ReadMe.md │ │ ├── Adobe-Reader │ │ │ ├── Adobe-Reader.ps1 │ │ │ └── ReadMe.md │ │ ├── Audacity │ │ │ ├── Audacity.ps1 │ │ │ └── ReadMe.md │ │ ├── Box │ │ │ ├── Box.ps1 │ │ │ └── ReadMe.md │ │ ├── BulkRenameUtility │ │ │ ├── BulkRenameUtility.ps1 │ │ │ └── ReadMe.md │ │ ├── Chrome │ │ │ ├── Chrome.ps1 │ │ │ └── ReadMe.md │ │ ├── Cisco-Webex │ │ │ ├── Cisco-Webex.ps1 │ │ │ └── ReadMe.md │ │ ├── Corsair-iCue-4 │ │ │ ├── Corsair-iCue-4.ps1 │ │ │ └── ReadMe.md │ │ ├── CrystalDiskInfo │ │ │ ├── CrystalDiskInfo.ps1 │ │ │ └── ReadMe.md │ │ ├── Discord │ │ │ ├── Discord.ps1 │ │ │ └── ReadMe.md │ │ ├── FireFox │ │ │ ├── FireFox.ps1 │ │ │ └── ReadMe.md │ │ ├── GIMP │ │ │ ├── GIMP.ps1 │ │ │ └── ReadMe.md │ │ ├── GitHub Desktop │ │ │ ├── GitHub Desktop.ps1 │ │ │ └── ReadMe.md │ │ ├── Google-Earth-Pro │ │ │ ├── Google-Earth-Pro.ps1 │ │ │ └── ReadMe.md │ │ ├── Logitech-Options-Plus │ │ │ ├── Logitech-Options-Plus.ps1 │ │ │ └── ReadMe.md │ │ ├── MS365-Apps │ │ │ ├── MS365-Apps.ps1 │ │ │ └── ReadMe.md │ │ ├── OneDrive │ │ │ ├── OneDrive.ps1 │ │ │ └── ReadMe.md │ │ ├── Power-Toys │ │ │ ├── Power-Toys.ps1 │ │ │ └── ReadMe.md │ │ ├── ReadMe.md │ │ ├── Teams │ │ │ ├── ReadMe.md │ │ │ └── Teams.ps1 │ │ ├── Visual-Studio-Code │ │ │ ├── ReadMe.md │ │ │ └── Visual-Studio-Code.ps1 │ │ ├── Zoom-Outlook-Plugin │ │ │ ├── ReadMe.md │ │ │ └── Zoom-Outlook-Plugin.ps1 │ │ ├── Zoom │ │ │ ├── ReadMe.md │ │ │ └── Zoom.ps1 │ │ └── iTunes │ │ │ ├── ReadMe.md │ │ │ └── iTunes.ps1 │ │ ├── Update │ │ ├── ReadMe.md │ │ └── View-Updates-&-Update │ │ │ ├── ReadMe.md │ │ │ └── View-Updates-&-Update.ps1 │ │ ├── WinGetInstall.ps1 │ │ └── WinGetSearch.ps1 ├── Templates │ ├── BatToRunPSScripts.bat │ ├── Blank-CMDLet │ │ ├── Blank-CMDlet-Template.ps1 │ │ └── ReadMe.md │ ├── Blank-Script │ │ ├── Blank-Script-Template.ps1 │ │ └── ReadMe.md │ ├── CMDlets-Templates │ │ ├── Checkpoint-Computer │ │ │ ├── Checkpoint-Computer.ps1 │ │ │ └── ReadMe.md │ │ ├── Comparison_Operators │ │ │ ├── Comparison_Operators.ps1 │ │ │ └── ReadMe.md │ │ ├── Copy-Item │ │ │ ├── Copy-Item.md │ │ │ └── Copy-Item.ps1 │ │ ├── Do-Until │ │ │ ├── Do-Until.ps1 │ │ │ └── ReadMe.md │ │ ├── Exchange-Online-V2 │ │ │ ├── Connect │ │ │ │ ├── Connect.ps1 │ │ │ │ └── ReadMe.md │ │ │ ├── Disconnect │ │ │ │ ├── Disconnect.ps1 │ │ │ │ └── ReadMe.md │ │ │ └── ReadMe.md │ │ ├── Export-Csv │ │ │ ├── Blank-CMDlet-Template.ps1 │ │ │ └── ReadMe.md │ │ ├── Functions │ │ │ ├── Functions.ps1 │ │ │ └── ReadMe.md │ │ ├── Get-ComputerRestorePoint │ │ │ ├── Get-ComputerRestorePoint.ps1 │ │ │ └── ReadMe.md │ │ ├── Get-Item │ │ │ ├── Get-Item.ps1 │ │ │ └── ReadMe.md │ │ ├── Get-ItemProperty │ │ │ ├── Get-ItemProperty.ps1 │ │ │ └── ReadMe.md │ │ ├── Get-PSSession │ │ │ ├── Get-PSSession.ps1 │ │ │ └── ReadMe.md │ │ ├── Get-ScheduledTask │ │ │ ├── Get-ScheduledTask.ps1 │ │ │ └── ReadMe.md │ │ ├── Get-ScheduledTaskInfo │ │ │ ├── Get-ScheduledTaskInfo.ps1 │ │ │ └── ReadMe.md │ │ ├── Get-WindowsOptionalFeature │ │ │ ├── Get-WindowsOptionalFeature.ps1 │ │ │ └── ReadMe.md │ │ ├── If-ElseIf-Else │ │ │ ├── If-ElseIf-Else.ps1 │ │ │ └── ReadMe.md │ │ ├── New-Item │ │ │ ├── New-Item.ps1 │ │ │ └── ReadMe.md │ │ ├── New-ItemProperty │ │ │ ├── New-ItemProperty.ps1 │ │ │ └── ReadMe.md │ │ ├── Operators │ │ │ ├── Operators.ps1 │ │ │ └── ReadMe.md │ │ ├── Registry │ │ │ ├── Add-Reg-Key-Dword-Value │ │ │ │ ├── Add-Reg-Key-Dword-Value.ps1 │ │ │ │ └── ReadMe.md │ │ │ ├── Add-Reg-Vaule │ │ │ │ ├── Add-Reg-Vaule.ps1 │ │ │ │ └── ReadMe.md │ │ │ ├── Get-Reg-Key-Dword-Value │ │ │ │ ├── Get-Reg-Key-Dword-Value.ps1 │ │ │ │ └── ReadMe.md │ │ │ ├── Get-Reg-Key-Value │ │ │ │ ├── Get-Reg-Key-Value.ps1 │ │ │ │ └── ReadMe.md │ │ │ ├── Remove-Reg-Key-Dword-Value │ │ │ │ ├── ReadMe.md │ │ │ │ └── Remove-Reg-Key-Dword-Value.ps1 │ │ │ └── Remove-Reg-Key │ │ │ │ ├── ReadMe.md │ │ │ │ └── Remove-Reg-Key.ps1 │ │ ├── Remove-Item │ │ │ ├── ReadMe.md │ │ │ └── Remove-Item.ps1 │ │ ├── Remove-ItemProperty │ │ │ ├── ReadMe.md │ │ │ └── Remove-ItemProperty.ps1 │ │ ├── Restart-Computer │ │ │ ├── ReadMe.md │ │ │ └── Restart-Computer.ps1 │ │ ├── Test-Connection │ │ │ ├── ReadMe.md │ │ │ └── Test-Connection.ps1 │ │ ├── Test-NetConnection │ │ │ ├── ReadMe.md │ │ │ └── Test-NetConnection.ps1 │ │ ├── Test-Path │ │ │ ├── ReadMe.md │ │ │ └── Test-Path.ps1 │ │ ├── Trim │ │ │ ├── ReadMe.md │ │ │ └── Trim.ps1 │ │ └── Uninstall-Module │ │ │ ├── ReadMe.md │ │ │ └── Uninstall-Module.ps1 │ ├── Create-Folder-N-File-Write-To-File │ │ └── Create-Folder-N-File-Write-To-File.ps1 │ ├── DetectProgram.ps1 │ ├── EXE-Template │ │ ├── EXE-Template.ps1 │ │ └── ReadMe.md │ ├── FindSpecificProgramTemplate.ps1 │ ├── MSI-Template │ │ ├── MSI-Installer-Template.ps1 │ │ ├── MSI-Uninstaller-Template.ps1 │ │ └── ReadMe.md │ ├── OpenAURL.ps1 │ ├── ReadMe.txt │ ├── TaskScheduleRunCheck.ps1 │ ├── TaskSchedulerImport5.1Template.ps1 │ ├── TaskSchedulerImport7.XTemplate.ps1 │ ├── TerminalChecks │ │ ├── PSVersionCheck │ │ │ ├── PSTerm5.XCheck.ps1 │ │ │ ├── PSTerm7.XCheck.ps1 │ │ │ └── ReadMe.txt │ │ └── TerminalElevationCheck │ │ │ ├── AdminTerminalelevationCheck.ps1 │ │ │ ├── ReadMe.txt │ │ │ └── UnelevatedTerminalCheck.ps1 │ ├── TestIfDirExst │ │ ├── ReadMe.txt │ │ └── TestIfDirExst.ps1 │ ├── Write-ErrorLog │ │ ├── ReadMe.md │ │ └── Write-ErrorLog.ps1 │ ├── Write-Script-Steps │ │ ├── ReadMe.md │ │ └── Write-Script-Steps.ps1 │ └── XMLTaskSchedulerImportTemplate.ps1 ├── Test & WIP │ ├── Add-User │ │ ├── Add-User.ps1 │ │ └── ReadMe.md │ ├── CHKDSKandLog.ps1 │ ├── FileSearch.ps1 │ ├── Get w error handeling.ps1 │ ├── InstallBurntToast.ps1 │ ├── InstallMSTeams64Bit.ps1 │ ├── OutlookSigCreate.ps1 │ ├── PCNotification.ps1 │ ├── Quize-Module │ │ ├── Question-Builder.ps1 │ │ ├── Question-Template.ps1 │ │ └── ReadMe.md │ ├── ReadMe.txt │ ├── TaskSchedulerScriptMonitor.ps1 │ ├── URL-DownTime-Check │ │ ├── ReadMe.md │ │ └── URL-DownTime-Check.ps1 │ ├── UserAccts │ │ ├── AddUser │ │ │ └── AddUser.ps1 │ │ ├── ListAllUsers │ │ │ └── ListAllUsers.ps1 │ │ └── RemoveUser │ │ │ └── RemoveUser.ps1 │ └── remove network drive.ps1 ├── Users │ ├── Add-Domain-User │ │ └── Add-Domain-User.ps1 │ ├── Check-Admin-Rights │ │ └── Check-Admin-Rights.ps1 │ ├── Create-Local-Admin │ │ └── Create-Local-Admin.ps1 │ └── Get-All-Users │ │ └── Get-All-Users.ps1 ├── Virtualization │ └── Hyper-V │ │ ├── New-VM │ │ └── New-VM-NewVHDX │ │ │ ├── New-VM-NewVHDX.ps1 │ │ │ └── ReadMe.md │ │ ├── Remove-VM │ │ ├── Readme.md │ │ └── Remove-VM.ps1 │ │ ├── Restart-VM │ │ ├── Restart-VM-Force │ │ │ ├── Restart-VM-Force.md │ │ │ └── Restart-VM-Force.ps1 │ │ └── Restart-VM │ │ │ ├── Restart-VM.md │ │ │ └── Restart-VM.ps1 │ │ ├── Set-VMFirmware │ │ ├── Readme.md │ │ └── VM-First-Boot │ │ │ ├── DVD-ISO-Boot │ │ │ ├── DVD-ISO-Boot.ps1 │ │ │ └── Readme.md │ │ │ └── VHD-HDD-Boot │ │ │ ├── Readme.md │ │ │ └── VHD-HDD-Boot.ps1 │ │ ├── Shutdown-VM │ │ ├── Force-Shutdown-VM │ │ │ ├── Force-Shutdown-VM.ps1 │ │ │ └── Readme.md │ │ └── Shutdown-VM │ │ │ ├── Readme.md │ │ │ └── Shutdown-VM.ps1 │ │ ├── Start-VM │ │ └── Start-VM │ │ │ ├── Start-VM.md │ │ │ └── Start-VM.ps1 │ │ ├── Turn-Off-VM │ │ ├── Force-Turn-Off │ │ │ ├── Force-Turn-Off.ps1 │ │ │ └── Readme.md │ │ └── Turn-Off-VM │ │ │ ├── Readme.md │ │ │ └── Turn-Off-VM.ps1 │ │ └── VHD-VHDX │ │ ├── New-VHDX │ │ ├── New-VHDX.ps1 │ │ └── ReadMe.md │ │ └── ReadMe.md ├── Win11 │ ├── ConctexedMenu │ │ └── ShowMoreOptionsChange │ │ │ ├── OldWin10ContextMenu.ps1 │ │ │ └── RevertToWin11ShowMoreOptionsContextMenu.ps1 │ └── ReadMe.txt └── Windows │ ├── BitLocker │ ├── Get-BitLockerDrivesAndRecoveryPassword │ │ ├── Get-BitLockerDrivesAndRecoveryPassword.ps1 │ │ └── ReadMe.md │ ├── Get-BitLockerRecoveryPassword │ │ ├── Get-BitLockerRecoveryPassword.ps1 │ │ └── ReadMe.md │ └── ReadMe.md │ ├── Domain │ └── JoinDomain.ps1 │ ├── Drive-Size-Export │ ├── Drive-Size-Export.ps1 │ └── ReadMe.md │ ├── Drives │ └── Drive-Remap │ │ └── Drive-Remap.ps1 │ ├── Event-Viewer │ ├── ReadMe.md │ └── System │ │ ├── Bad-Block │ │ ├── Bad-Block.ps1 │ │ └── ReadMe.md │ │ ├── Datto-RMM │ │ └── Datto-RMM-Error │ │ │ ├── Datto-RRM-Error.ps1 │ │ │ └── ReadMe.md │ │ ├── Disk-Critial │ │ ├── Disk-Critial.ps1 │ │ └── ReadMe.md │ │ ├── Disk-Warning │ │ ├── Disk-Warning.ps1 │ │ └── ReadMe.md │ │ ├── Kernal-Power-Loss │ │ ├── Kernal-Power-Loss.ps1 │ │ └── ReadMe.md │ │ ├── ReadMe.md │ │ ├── System-Uptime │ │ ├── ReadMe.md │ │ └── System-Uptime.ps1 │ │ ├── Unexpected-Shutdown │ │ ├── ReadMe.md │ │ └── Unexpected-Shutdown.ps1 │ │ ├── Windows-Update-Download-Started │ │ ├── ReadMe.md │ │ └── Windows-Update-Download-Started.ps1 │ │ ├── Windows-Update-Failure │ │ ├── ReadMe.md │ │ └── Windows-Update-Failure.ps1 │ │ ├── Windows-Update-Install-Started │ │ ├── ReadMe.md │ │ └── Windows-Update-Install-Started.ps1 │ │ ├── Windows-Update-Install-Successful │ │ ├── ReadMe.md │ │ └── Windows-Update-Install-Successful.ps1 │ │ └── Windows-Update │ │ ├── ReadMe.md │ │ └── Windows-Update.ps1 │ ├── File Search │ └── File Search.txt │ ├── FileExplorer │ └── StopStartFileExplorer.ps1 │ ├── Hibernate │ ├── Get-Hybernate-Status.ps1 │ ├── TurnOffHibernate.ps1 │ └── TurnOnHibernate.ps1 │ ├── OSAndUpdatesCheck │ └── OSVerAndUpdates.ps1 │ ├── OptionalFeatures │ ├── DotNet3.5 │ │ ├── Disable-DotNet-3.5.ps1 │ │ ├── Enable-DotNet-3.5.ps1 │ │ └── Get-DotNet-3.5.ps1 │ ├── Hyper-V │ │ ├── DisablePS2.0.ps1 │ │ ├── EnablePS2.0.ps1 │ │ └── GetHyper-VOptionalFeature.ps1 │ ├── PowerShell2.0 │ │ ├── DisablePS2.0.ps1 │ │ ├── EnablePS2.0.ps1 │ │ └── GetPS2.0OptionalFeature.ps1 │ └── SMB1.0 │ │ ├── DisableSMB1 │ │ └── DisableSMB1.ps1 │ │ ├── EnableSMB1 │ │ └── EnableSMB1.ps1 │ │ └── GetSMB1Status │ │ └── GetSMB1Status.ps1 │ ├── ReadMe.txt │ ├── RenamePC │ └── RenamePC.ps1 │ ├── Services │ ├── GetAllServices.ps1 │ └── Restart-A-Service │ │ └── Restart-Datto-RMM │ │ └── Restart-Datto-RMM.ps1 │ ├── TaskScheduler │ ├── Get-Specific-Running-Task │ │ ├── Get-Running-Task.ps1 │ │ └── ReadMe.md │ ├── GetScheduledTasks │ │ └── GetScheduledTasks.ps1 │ ├── Start-SchduledTask │ │ └── Start-Task.ps1 │ ├── TaskRunInfo │ │ └── TaskRunInfo.ps1 │ ├── TaskSchedulerImport │ │ ├── Task-Scheduler-Import-PS5.ps1 │ │ └── Task-Scheduler-Import-Template-PS7.ps1 │ ├── UnregisterTask │ │ └── UnregisterTask.ps1 │ └── XMLTaskSchedulerImportTemplate.ps1 │ ├── UserProfiles │ └── Get-LoggedIn-Users │ │ └── Get-LoggedIn-Users.ps1 │ └── WindowsProductKey │ ├── Win-Product-Key-On-Mobo.ps1 │ └── Win-Product-Key.ps1 ├── README.md ├── windows10.0-kb4589210-v2-x64_bbbf54336d6e22da5de8d63891401d8f6077d2ce.msu └── windows11.0-kb5028948-x64_f0a16634fec67620f8d861dd3ef0b43e81e1a9ab /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/custom.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Custom issue template 3 | about: Describe this issue template's purpose here. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /LocalScripts/Backup/Browsers/Bookmark-Export-Import/Chrome/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for my Chrome related scripts. -------------------------------------------------------------------------------- /LocalScripts/Backup/Browsers/Bookmark-Export-Import/Edge/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for my Edge related scripts. -------------------------------------------------------------------------------- /LocalScripts/Backup/ReadMe.md: -------------------------------------------------------------------------------- 1 | # .DESCRIPTION 2 | A place for my Backup Scripts -------------------------------------------------------------------------------- /LocalScripts/Backup/Restore-Point/Automated-Restore-Point/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | # .SYNOPSIS 3 | Adds a file name extension to a supplied name. 4 | 5 | # .DESCRIPTION 6 | Adds a file name extension to a supplied name. 7 | Takes any strings for the file name or extension. 8 | 9 | # .PARAMETER Name 10 | Specifies the file name. 11 | 12 | # .PARAMETER Extension 13 | Specifies the extension. "Txt" is the default. 14 | 15 | # .INPUTS 16 | None. You cannot pipe objects to Add-Extension. 17 | 18 | # .OUTPUTS 19 | System.String. Add-Extension returns a string with the extension or file name. 20 | 21 | # .EXAMPLE 22 | PS> extension -name "File" 23 | File.txt 24 | 25 | # .EXAMPLE 26 | PS> extension -name "File" -extension "doc" 27 | File.doc 28 | 29 | # .LINK 30 | https://knowledge.autodesk.com/support/revit/troubleshooting/caas/CloudHelp/cloudhelp/2021/ENU/Revit-Troubleshooting/files/GUID-3562A7E7-7112-4B6D-97F6-D922BACC0CDF-htm.html 31 | -------------------------------------------------------------------------------- /LocalScripts/Backup/Restore-Point/Automated-Restore-Point/User/Script-Check/Auto-Resto-Point-Check.ps1: -------------------------------------------------------------------------------- 1 | $PCName = $env:computername 2 | $UserName = $env:UserName 3 | 4 | $CSV = Get-ScheduledTask -TaskPath "\Automated-Restore-Point\" | Get-ScheduledTaskInfo 5 | 6 | $CSV | Export-Csv -Path (Join-Path -Path "\\Server\Folder\Automated-Restore-Point\User\Script-Check\Script-Output" -ChildPath $UserName-$PCName'-Automated-Restore-Point'.csv) 7 | -------------------------------------------------------------------------------- /LocalScripts/Backup/Restore-Point/Get-Restore-Points/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | # .SYNOPSIS 3 | Adds a file name extension to a supplied name. 4 | 5 | # .DESCRIPTION 6 | Adds a file name extension to a supplied name. 7 | Takes any strings for the file name or extension. 8 | 9 | # .PARAMETER Name 10 | Specifies the file name. 11 | 12 | # .PARAMETER Extension 13 | Specifies the extension. "Txt" is the default. 14 | 15 | # .INPUTS 16 | None. You cannot pipe objects to Add-Extension. 17 | 18 | # .OUTPUTS 19 | System.String. Add-Extension returns a string with the extension or file name. 20 | 21 | # .EXAMPLE 22 | PS> extension -name "File" 23 | File.txt 24 | 25 | # .EXAMPLE 26 | PS> extension -name "File" -extension "doc" 27 | File.doc 28 | 29 | # .LINK 30 | https://knowledge.autodesk.com/support/revit/troubleshooting/caas/CloudHelp/cloudhelp/2021/ENU/Revit-Troubleshooting/files/GUID-3562A7E7-7112-4B6D-97F6-D922BACC0CDF-htm.html 31 | -------------------------------------------------------------------------------- /LocalScripts/Backup/Restore-Point/ReadMe.md: -------------------------------------------------------------------------------- 1 | # .DESCRIPTION 2 | A place for my Restore Point Scripts -------------------------------------------------------------------------------- /LocalScripts/CSV/Combine-CSVs-From-Dir/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Combine-CSVs-From-Dir 2 | 3 | ## DESCRIPTION 4 | 5 | Grabs .csv's in a dir, sorts A-Z, weeds out repeates and combines them into one .csv. 6 | 7 | ## Notes 8 | 9 | Works in PS 5.1 and later. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | None. 18 | 19 | ## LINK 20 | 21 | [Get-ChildItem Online Version](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-childitem?view=powershell-7.3) 22 | 23 | [Sort-Object Online Version](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/sort-object?view=powershell-7.3) 24 | 25 | [Import-CSV Online Version](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/import-csv?view=powershell-7.3) 26 | 27 | [Export-CSV Online Version](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/export-csv?view=powershell-7.3) 28 | -------------------------------------------------------------------------------- /LocalScripts/Computer/Delete-Downloads-30-Day/Delete-Downloads-30-Day.ps1: -------------------------------------------------------------------------------- 1 | # Specify the base path where user profiles are stored 2 | $userProfilesPath = "C:\Users" 3 | 4 | # Loop through each user profile 5 | Get-ChildItem -Path $userProfilesPath -Directory | ForEach-Object { 6 | $userDownloadsPath = Join-Path -Path $_.FullName -ChildPath "Downloads" 7 | $cutoffDate = (Get-Date).AddDays(-30) 8 | 9 | # Delete files older than 30 days in the Downloads folder 10 | Get-ChildItem -Path $userDownloadsPath -File | Where-Object { 11 | $_.LastWriteTime -lt $cutoffDate 12 | } | Remove-Item -Force 13 | } 14 | -------------------------------------------------------------------------------- /LocalScripts/Computer/Get-Last-Reboot/Get-Last-Reboot.ps1: -------------------------------------------------------------------------------- 1 | Get-BitlockerVolume 2 | # Define the event IDs related to system reboots 3 | $eventIDs = @(41, 1074, 6006, 6008) 4 | # Get the last 10 events matching the specified event IDs 5 | Get-EventLog -LogName System | Where-Object { $eventIDs -contains $_.EventID } | 6 | Select-Object -First 1 TimeGenerated, EntryType, Source, EventID, Message 7 | -------------------------------------------------------------------------------- /LocalScripts/Computer/GetPCTimeAndZone.ps1: -------------------------------------------------------------------------------- 1 | Get-CimInstance Win32_OperatingSystem | Select-Object CurrentTimeZone, LocalDateTime -------------------------------------------------------------------------------- /LocalScripts/Computer/LockPC/LockPD.ps1: -------------------------------------------------------------------------------- 1 | #Locks the PC if no mouse movment is detected. 2 | 3 | #https://docs.microsoft.com/en-us/powershell/scripting/samples/changing-computer-state?view=powershell-7.2 4 | 5 | Add-Type -AssemblyName System.Windows.Forms 6 | 7 | $SleepTime = 60 8 | 9 | $p1 = [System.Windows.Forms.Cursor]::Position 10 | 11 | Start-Sleep -Seconds $SleepTime # The wait time from mouse P1 leading to P2. 12 | 13 | $p2 = [System.Windows.Forms.Cursor]::Position 14 | 15 | if($p1.X -eq $p2.X -and $p1.Y -eq $p2.Y) { 16 | 17 | Write-Host "The mouse did not move...Locking the PC" 18 | 19 | rundll32.exe user32.dll,LockWorkStation 20 | 21 | } else { 22 | 23 | Write-Host "PC is Active" 24 | 25 | } -------------------------------------------------------------------------------- /LocalScripts/Computer/LockPC/ReadMe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XXLMandalorian013/PowerShellScripts/ee2d2c7a1a71f395be24f864361c9827cb6abd70/LocalScripts/Computer/LockPC/ReadMe.md -------------------------------------------------------------------------------- /LocalScripts/Computer/MouseMovement/DetectMouseMovement.ps1: -------------------------------------------------------------------------------- 1 | # Works in PS 7+ 2 | 3 | #Detects to see if the mouse is moving on a PC. 4 | 5 | #https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms?view=windowsdesktop-6.0 6 | 7 | #https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.cursors?view=windowsdesktop-6.0 8 | 9 | #https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.cursor?view=windowsdesktop-6.0 10 | 11 | #https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.control.cursor?view=windowsdesktop-6.0 12 | 13 | Add-Type -AssemblyName System.Windows.Forms 14 | 15 | $p1 = [System.Windows.Forms.Cursor]::Position 16 | Start-Sleep -Seconds 5 # or use a shorter intervall with the -milliseconds parameter 17 | $p2 = [System.Windows.Forms.Cursor]::Position 18 | if($p1.X -eq $p2.X -and $p1.Y -eq $p2.Y) { 19 | Write-Host "The mouse did not move" 20 | } else { 21 | Write-Host "The mouse moved" 22 | } 23 | -------------------------------------------------------------------------------- /LocalScripts/Computer/MouseMovement/ReadMe.md: -------------------------------------------------------------------------------- 1 | #Detects to see if the mouse is moving on a PC. -------------------------------------------------------------------------------- /LocalScripts/Computer/PCUpTimeAndLastBoot.ps1: -------------------------------------------------------------------------------- 1 | $bootuptime = (Get-CimInstance -ClassName Win32_OperatingSystem).LastBootUpTime 2 | $CurrentDate = Get-Date 3 | $uptime = $CurrentDate - $bootuptime 4 | $uptime 5 | 6 | Get-CimInstance Win32_OperatingSystem | Select-Object LastBootUpTime 7 | 8 | -------------------------------------------------------------------------------- /LocalScripts/Computer/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for all things in general for a Computer -------------------------------------------------------------------------------- /LocalScripts/Computer/Restart-PC-Force/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Title 2 | 3 | ## .SYNOPSIS 4 | 5 | Adds a file name extension to a supplied name. 6 | 7 | ## .DESCRIPTION 8 | 9 | Adds a file name extension to a supplied name. 10 | Takes any strings for the file name or extension. 11 | 12 | ## .PARAMETER Name 13 | 14 | Specifies the file name. 15 | 16 | ## .PARAMETER Extension 17 | 18 | Specifies the extension. "Txt" is the default. 19 | 20 | ## .INPUTS 21 | None. You cannot pipe objects to Add-Extension. 22 | 23 | ## .OUTPUTS 24 | System.String. Add-Extension returns a string with the extension or file name. 25 | 26 | ## .EXAMPLE 27 | PS> extension -name "File" 28 | File.txt 29 | 30 | ## .EXAMPLE 31 | PS> extension -name "File" -extension "doc" 32 | File.doc 33 | 34 | ## LINK 35 | 36 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 37 | 38 | -------------------------------------------------------------------------------- /LocalScripts/Event-Log/Reboots/Last-10-Reboots/Last-10-Reboots.ps1: -------------------------------------------------------------------------------- 1 | # Define the event IDs related to system reboots 2 | $eventIDs = @(41, 1074, 6006, 6008) 3 | # Get the last 10 events matching the specified event IDs 4 | Get-EventLog -LogName System | Where-Object { $eventIDs -contains $_.EventID } | 5 | Select-Object -First 10 TimeGenerated, EntryType, Source, EventID, Message 6 | -------------------------------------------------------------------------------- /LocalScripts/Event-Log/Reboots/Power-Events/Last-5-Power-Events.ps1: -------------------------------------------------------------------------------- 1 | Write-Verbose -Message "Getting the last 5 Power Events...please wait" -verbose 2 | # Define the event IDs to filter 3 | $eventIDs = @(41, 1074, 6006, 6008) 4 | # Get the last 10 events for the specified event IDs 5 | Get-EventLog -LogName System | Where-Object { $eventIDs -contains $_.EventID } | Select-Object -Property TimeGenerated, EntryType, Source, EventID, Message -Last 5 -------------------------------------------------------------------------------- /LocalScripts/Games/Dice-Dungeon/Character-Classes/Rouge.psm1: -------------------------------------------------------------------------------- 1 | 2 | $RougeSkillChart = @{ 3 | Strength = '10' 4 | Dexterity = '16' 5 | Constitution = '15' 6 | Intelligence = '12' 7 | Wisdom = '13' 8 | charisma = '15' 9 | } 10 | $RougeSkillCheck = $RougeSkillChart 11 | 12 | -------------------------------------------------------------------------------- /LocalScripts/Games/Dice-Dungeon/Dice/D10.psm1: -------------------------------------------------------------------------------- 1 | function Roll-D10 { 2 | $D10 = @( 3 | '0' 4 | '1' 5 | '2' 6 | '3' 7 | '4' 8 | '5' 9 | '6' 10 | '7' 11 | '8' 12 | '9' 13 | '10' 14 | ) 15 | $D10 | Get-Random 16 | } 17 | 18 | -------------------------------------------------------------------------------- /LocalScripts/Games/Dice-Dungeon/Dice/D20.psm1: -------------------------------------------------------------------------------- 1 | function Roll-D20 { 2 | $D20 = @( 3 | '0' 4 | '1' 5 | '2' 6 | '3' 7 | '4' 8 | '5' 9 | '6' 10 | '7' 11 | '8' 12 | '9' 13 | '10' 14 | '11' 15 | '12' 16 | '13' 17 | '14' 18 | '15' 19 | '16' 20 | '17' 21 | '18' 22 | '19' 23 | '20' 24 | ) 25 | $D20 | Get-Random 26 | } 27 | 28 | -------------------------------------------------------------------------------- /LocalScripts/Games/Dice-Dungeon/Dice/D4.psm1: -------------------------------------------------------------------------------- 1 | function Roll-D4 { 2 | $D4 = @( 3 | '0' 4 | '1' 5 | '2' 6 | '3' 7 | '4' 8 | ) 9 | $D4 | Get-Random 10 | } 11 | 12 | -------------------------------------------------------------------------------- /LocalScripts/Games/Dice-Dungeon/Helper-Functions/Get-All-Functions.ps1: -------------------------------------------------------------------------------- 1 | Function Get-AllFunctions { 2 | param ( 3 | [string]$FolderPath = "C:\Users\XXLMandalorian\Desktop\Dice-Dungeon" 4 | ) 5 | if (-Not (Test-Path $FolderPath)) { 6 | Write-Error "Folder path '$FolderPath' does not exist." 7 | return 8 | } 9 | $functionNames = @() 10 | Get-ChildItem -Path $FolderPath -Recurse -Include *.psm1 | ForEach-Object { 11 | $fileContent = Get-Content -Path $_.FullName -Raw 12 | $functionsInFile = $fileContent | Select-String -Pattern "Function\s+([^\s{]+)" -AllMatches | ForEach-Object { 13 | $_.Matches.Groups[1].Value 14 | } 15 | $functionNames += $functionsInFile 16 | } 17 | return $functionNames 18 | } 19 | Get-AllFunctions -------------------------------------------------------------------------------- /LocalScripts/Games/Dice-Dungeon/Helper-Functions/Get-All-psm1.ps1: -------------------------------------------------------------------------------- 1 | Function Get-psm1 { 2 | param ( 3 | [string]$FolderPath = "C:\Users\XXLMandalorian\Desktop\Dice-Dungeon" 4 | ) 5 | if (-Not (Test-Path $FolderPath)) { 6 | Write-Error "Folder path '$FolderPath' does not exist." 7 | return 8 | } 9 | # Initialize an array to hold the file names 10 | $moduleNames = @() 11 | # Get all .psm1 files recursively in the specified folder 12 | Get-ChildItem -Path $FolderPath -Recurse -Include *.psm1 | ForEach-Object { 13 | # Add the file name (without path) to the array 14 | $moduleNames += $_.Name 15 | } 16 | # Return the array of module names 17 | return $moduleNames 18 | } 19 | # Example usage 20 | Get-psm1 21 | -------------------------------------------------------------------------------- /LocalScripts/Games/Dice-Dungeon/Menus/Test-Level-01.psm1: -------------------------------------------------------------------------------- 1 | #Function to show the options menu. 2 | function Show-Menu { 3 | param ( 4 | [string]$Title = 'Dice-Dungeon' 5 | ) 6 | Write-Information -MessageData "Dice Dungeon!" -InformationAction Continue 7 | Write-Information -MessageData "Hello adventurer. Please pick an option" -InformationAction Continue 8 | Write-Host "===== $Title =====" 9 | Write-Host "1: Press '1' to start a new game." 10 | Write-Host "2: Press '2' to read how this game works." 11 | Write-Host "3: Press '3' to view the playable character sheets." 12 | Write-Host "Q: Press 'Q' to quit." 13 | } 14 | 15 | Show-Menu -Title 'My Menu' 16 | $selection = Read-Host "Enter your selection" 17 | 18 | switch ($selection) { 19 | '1' { 'You chose option #1' } 20 | '2' { 'You chose option #2' } 21 | '3' { 'You chose option #3' } 22 | 'q' { exit } 23 | } 24 | -------------------------------------------------------------------------------- /LocalScripts/Games/Dice-Dungeon/Module-Files/Dice-Dungeon-Main.psm1: -------------------------------------------------------------------------------- 1 | #Dice-Dungeon.psm1 2 | ##Character Classes 3 | Import-Module -Name (Join-Path $PSScriptRoot 'C:\Users\XXLMandalorian\Desktop\Dice-Dungeon\Character-Classes\Rouge.psm1') 4 | ##Dice 5 | ###D4 6 | Import-Module -Name (Join-Path $PSScriptRoot 'Dice\D4.psm1') 7 | ###D10 8 | Import-Module -Name (Join-Path $PSScriptRoot 'Dice\D10.psm1') 9 | ###D20 10 | Import-Module -Name (Join-Path $PSScriptRoot 'Dice\D20.psm1') 11 | ##Menus 12 | Import-Module -Name (Join-Path $PSScriptRoot 'Menus\Test-Level-01.psm1') 13 | ##Monsters 14 | ###Goblin 15 | Import-Module -Name (Join-Path $PSScriptRoot 'Monsters\Goblin.psm1') 16 | ##Weapons 17 | ###Bow-and-Arrows 18 | Import-Module -Name (Join-Path $PSScriptRoot '.\Weapons\Bow-and-Arrows.psm1') 19 | ###Bow-and-Arrows 20 | Import-Module -Name (Join-Path $PSScriptRoot '.\Weapons\Dagger.psm1') -------------------------------------------------------------------------------- /LocalScripts/Games/Dice-Dungeon/Module-Files/Dice-Dungeon-Manifest.psd1: -------------------------------------------------------------------------------- 1 | #Dice-Dungeon.psd1 2 | @{ 3 | RootModule = 'Dice-Dungeon.psm1' 4 | ModuleVersion = '1.0' 5 | GUID = '00000000-0000-0000-0000-000000000000' 6 | Author = 'Drew McClellan' 7 | Description = 'A text based dungeon crawler ruled by dice.' 8 | FunctionsToExport = @('Roll-D10', 'Roll-D20', 'Roll-D4', 'Roll-BowAndArrows', 'Roll-Dagger') 9 | FileList = @('Rouge.psm1', 'D10.psm1', 'D20.psm1', 'D4.psm1', 'Test-Level-01.psm1', 'Goblin.psm1', 'Bow-and-Arrows.psm1', 'Dagger.psm1', 'Dice-Dungeon.psm1') 10 | PrivateData = @{} 11 | } 12 | 13 | -------------------------------------------------------------------------------- /LocalScripts/Games/Dice-Dungeon/Monsters/Goblin.psm1: -------------------------------------------------------------------------------- 1 | 2 | $GoblinSkillChart = @{ 3 | Strength = '10' 4 | Dexterity = '13' 5 | Constitution = '5' 6 | Intelligence = '12' 7 | Wisdom = '13' 8 | charisma = '15' 9 | } 10 | $GoblinSkillCheck = $GoblinSkillChart 11 | 12 | -------------------------------------------------------------------------------- /LocalScripts/Games/Dice-Dungeon/Weapons/Bow-and-Arrows.psm1: -------------------------------------------------------------------------------- 1 | function Roll-BowAndArrows { 2 | $BowAndArrows = @( 3 | '2' 4 | '3' 5 | '4' 6 | ) 7 | $BowandArrows | Get-Random 8 | } 9 | 10 | -------------------------------------------------------------------------------- /LocalScripts/Games/Dice-Dungeon/Weapons/Dagger.psm1: -------------------------------------------------------------------------------- 1 | function Roll-Dagger { 2 | $Dagger = @( 3 | '1' 4 | '2' 5 | '3' 6 | ) 7 | $Dagger | Get-Random 8 | } 9 | 10 | -------------------------------------------------------------------------------- /LocalScripts/Hardware/Bios/Bios.ps1: -------------------------------------------------------------------------------- 1 | #Bios 2 | $Bios = Get-CimInstance -Class CIM_BIOSElement |Select-Object Manufacturer,Name,SMBIOSBIOSVersion 3 | 4 | Write-Host "Bios"`r 5 | 6 | $Bios | Format-List -------------------------------------------------------------------------------- /LocalScripts/Hardware/Bios/SleepStates/Readme.md: -------------------------------------------------------------------------------- 1 | Reports the sleep states available on the computer & reasons why sleep states are unavailable. -------------------------------------------------------------------------------- /LocalScripts/Hardware/Bios/SleepStates/SleepStateStates.ps1: -------------------------------------------------------------------------------- 1 | #Reports the sleep states available on the computer & reasons why sleep states are unavailable. 2 | 3 | #https://docs.microsoft.com/en-us/windows-hardware/design/device-experiences/tools-available 4 | 5 | Write-Host " 6 | 7 | S0 – System is fully powered on, 8 | 9 | S1 – Power on Suspend(POS): Power to the CPU and RAM is maintained, 10 | 11 | S2 – CPU powered off, 12 | 13 | S3 – Standby, Sleep or Suspend: RAM still has power, 14 | 15 | S4 – Hibernation: Memory is saved to the hard drive and the system is powered down, 16 | 17 | S5 – Shut Down: The power supply still supplies power to the power button. 18 | 19 | " 20 | 21 | Powercfg /a -------------------------------------------------------------------------------- /LocalScripts/Hardware/Bios/UEFI-Or-Legacy.ps1: -------------------------------------------------------------------------------- 1 | #Check for UEFI or Legacy Bios 2 | 3 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-computerinfo?view=powershell-7.2 4 | 5 | Write-Host 'UEFI will show as UEFI, if Legacy/MBR Bios then it will just say Bios.' 6 | 7 | Get-ComputerInfo | Select-Object 'BiosFirmwareType' -------------------------------------------------------------------------------- /LocalScripts/Hardware/CDROM/CDROM.ps1: -------------------------------------------------------------------------------- 1 | #CD Rom Drive 2 | $CDRomDrive = Get-CimInstance -Class CIM_CDROMDrive 3 | 4 | Write-Host "CD Rom Drive"`r 5 | 6 | $CDRomDrive | Format-List -------------------------------------------------------------------------------- /LocalScripts/Hardware/CPU/CPU.ps1: -------------------------------------------------------------------------------- 1 | #CPU 2 | $CPU = Get-CimInstance -Class CIM_Processor |Select-Object Status,SocketDesignation,Manufacturer,Name,NumberOfCores,NumberOfEnabledCore,NumberOfLogicalProcessors,ThreadCount,CurrentClockSpeed,MaxClockSpeed,L2CacheSize,L3CacheSize,VoltageCaps 3 | 4 | Write-Host "CPU"`r 5 | 6 | $CPU | Format-List -------------------------------------------------------------------------------- /LocalScripts/Hardware/GPU/GPU.ps1: -------------------------------------------------------------------------------- 1 | #GPU 2 | $GPU = Get-CimInstance CIM_VideoController | Select-Object "InstallDate","VideoProcessor","Name","DriverVersion","DriverDate","MaxRefreshRate","MinRefreshRate","CurrentRefreshRate", 3 | "videoModeDescription","CurrentHorizontalResolution","CurrentVerticalResolution" 4 | 5 | Write-Host "GPU"`r 6 | 7 | $GPU | Format-List 8 | 9 | $GPURAM = (Get-CimInstance CIM_VideoController | Measure-Object -Property AdapterRAM -Sum).sum /1gb 10 | 11 | Write-Host "GPU RAM $GPURAM GB"`r 12 | -------------------------------------------------------------------------------- /LocalScripts/Hardware/LocalDiskDrives/Get-Drive-Letters.ps1: -------------------------------------------------------------------------------- 1 | $Drives = Get-PSDrive 2 | 3 | $Drives | Where-Object {$_.Name -like '?'} 4 | -------------------------------------------------------------------------------- /LocalScripts/Hardware/LocalDiskDrives/LocalDiskDrives.ps1: -------------------------------------------------------------------------------- 1 | #Local Disk Drive 2 | $DiskDriveSize = Get-CimInstance CIM_DiskDrive 3 | 4 | Write-Host "Local Storage Media Size"`r 5 | 6 | $DiskDriveSize | Format-Table 7 | 8 | $DiskDriveSizeRemaining = Get-Volume 9 | 10 | Write-Host "Local Storage Media Remaining Size"`r 11 | 12 | $DiskDriveSizeRemaining | Format-Table -------------------------------------------------------------------------------- /LocalScripts/Hardware/NetworkAdapter/IPv4&6EnableCheck.ps1: -------------------------------------------------------------------------------- 1 | Get-NetAdapterBinding -DisplayName *IPv4*, *IPv6* | Sort-Object -Descending DisplayName 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /LocalScripts/Hardware/NetworkAdapter/NetworkAdapter.ps1: -------------------------------------------------------------------------------- 1 | #NetworkAdapter 2 | $NetworkAdapter = Get-CimInstance CIM_NetworkAdapter | FL 3 | 4 | Write-Host "Network Adapter"`r 5 | 6 | $NetworkAdapter | Format-Table -------------------------------------------------------------------------------- /LocalScripts/Hardware/NetworkAdapter/ResetNetworkAdatpter.ps1: -------------------------------------------------------------------------------- 1 | #Resets the network adapter back to defualt settings 2 | netsh winsock reset -------------------------------------------------------------------------------- /LocalScripts/Hardware/Power/Lid-Do-Nothing/Lid-Do-Nothing.ps1: -------------------------------------------------------------------------------- 1 | powercfg /setACvalueIndex scheme_current sub_buttons lidAction 0 2 | powercfg /setDCvalueIndex scheme_current sub_buttons lidAction 0 -------------------------------------------------------------------------------- /LocalScripts/Hardware/Printer/InstalledPrinterDrivers/InstalledPrinterDrivers.ps1: -------------------------------------------------------------------------------- 1 | #https://docs.microsoft.com/en-us/powershell/module/printmanagement/get-printerdriver?view=windowsserver2022-ps 2 | #Gets a list of installed Printer Drivers 3 | Get-PrinterDriver -------------------------------------------------------------------------------- /LocalScripts/Hardware/Printer/InstalledPrinters/InstalledPrinters.ps1: -------------------------------------------------------------------------------- 1 | #https://docs.microsoft.com/en-us/powershell/module/printmanagement/get-printer?view=windowsserver2022-ps 2 | #Get installed printers info 3 | Get-Printer -------------------------------------------------------------------------------- /LocalScripts/Hardware/RAM/RAM.ps1: -------------------------------------------------------------------------------- 1 | $RAM = Get-CimInstance CIM_PhysicalMemory | Select-Object Tag,DeviceLocator,Manufacturer,PartNumber,SerialNumber,FormFactor,DataWidth,Speed,ConfiguredClockSpeed,ConfiguredVoltage 2 | 3 | $RAM | Format-table 4 | 5 | $RAMTotal = (Get-CimInstance CIM_PhysicalMemory | Measure-Object -Property capacity -Sum).sum /1gb 6 | 7 | Write-Host "Total RAM $RAMTotal GB " 8 | -------------------------------------------------------------------------------- /LocalScripts/Hardware/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for all things Hardware related. -------------------------------------------------------------------------------- /LocalScripts/IP/GetDeviceNameByIP.ps1: -------------------------------------------------------------------------------- 1 | $ipAddress= "IPAdressHere" 2 | [System.Net.Dns]::GetHostByAddress($ipAddress).Hostname -------------------------------------------------------------------------------- /LocalScripts/IP/GetIP.ps1: -------------------------------------------------------------------------------- 1 | ipconfig 2 | 3 | Read-Host -Prompt "Press Enter to exit" -------------------------------------------------------------------------------- /LocalScripts/IP/IPRenewal.ps1: -------------------------------------------------------------------------------- 1 | #Checks to see if the code is being ran "As Admin". 2 | Write-Host "Checking for elevated permissions..." 3 | if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(` 4 | [Security.Principal.WindowsBuiltInRole] "Administrator")) { 5 | Write-Warning "This Terminal is not running as Admin, open a Terminal console as an administrator and run this script again." 6 | Break 7 | } 8 | else { 9 | Write-Host "The Terminal is running in a administrator...Running Code" -ForegroundColor Green 10 | } 11 | 12 | Write-host "Starting ipconfig /release" 13 | 14 | ipconfig /release 15 | 16 | Start-Sleep -Seconds 45 17 | 18 | Write-host "ipconfig /flushdns" 19 | 20 | ipconfig /flushdns 21 | 22 | Start-Sleep -Seconds 45 23 | 24 | Write-host "ipconfig /renew" 25 | 26 | ipconfig /renew 27 | 28 | Start-Sleep -Seconds 29 | 30 | Read-Host -Prompt "Press Enter to exit" -------------------------------------------------------------------------------- /LocalScripts/Learning/Random Get-Help of the day.ps1: -------------------------------------------------------------------------------- 1 | Get-Command -Module Microsoft*,Cim*,PS* | Get-Random | Get-Help -ShowWindow -------------------------------------------------------------------------------- /LocalScripts/Learning/Random PS Concepts.ps1: -------------------------------------------------------------------------------- 1 | Get-Random -input (Get-Help about*) | Get-Help -ShowWindow -------------------------------------------------------------------------------- /LocalScripts/Learning/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for learning PowerShell! -------------------------------------------------------------------------------- /LocalScripts/Modules/Find-Module/Find-Module.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | .SYNOPSIS 5 | 6 | Finds a Module by searching for it by name. 7 | 8 | 9 | .Notes 10 | 11 | Works in 5.1 and later. 12 | 13 | 14 | .LINK 15 | 16 | [Find-Module Online Version](https://learn.microsoft.com/en-us/powershell/module/powershellget/find-module?view=powershell-7.2) 17 | 18 | #> 19 | 20 | #Script 21 | 22 | param( 23 | [Parameter(Mandatory,HelpMessage='Type a name or pharase you wish to search.')] 24 | [string]$ModuleName) 25 | 26 | Find-Module -Filter $ModuleName -ErrorAction SilentlyContinue 27 | 28 | $EModuleName = Read-Host "To search deeper on a specific module, type exact name." 29 | 30 | Find-Module -Name $EModuleName -AllVersions -ErrorAction SilentlyContinue -------------------------------------------------------------------------------- /LocalScripts/Modules/Find-Module/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Find-Module 2 | 3 | ## Links 4 | 5 | [Find-Module Online Version](https://learn.microsoft.com/en-us/powershell/module/powershellget/find-module?view=powershell-7.2) 6 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Get-InstalledModule/Get-InstalledModule.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | # Get-InstalledModule 5 | 6 | ## Notes 7 | 8 | Works in 5.1 and newer. 9 | 10 | ## Links 11 | 12 | [Get-InstalledModule OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/powershellget/get-installedmodule?view=powershell-7.2) 13 | #> 14 | 15 | 16 | #Script 17 | 18 | #Get all installed Module 19 | 20 | Get-installedmodule 21 | 22 | #Get specific installed Module by name 23 | 24 | Get-installedmodule -Name ExchangeOnlineManagement 25 | 26 | #Get specific installed Module by name 27 | 28 | $ModuleName = Get-InstalledModule -Name 'ExchangeOnlineManagement' 29 | 30 | $Module = $ModuleName.Name 31 | 32 | $Module 33 | 34 | 35 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Get-InstalledModule/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Get-InstalledModule 2 | 3 | ## Links 4 | 5 | [Get-InstalledModule OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/powershellget/get-installedmodule?view=powershell-7.2) 6 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Install-Module/Install-Module.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | # Install-Module 5 | 6 | ## Links 7 | 8 | [install-module OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/powershellget/install-module?view=powershell-7.2) 9 | 10 | #> 11 | 12 | 13 | #Script 14 | 15 | #Install Module 16 | 17 | Install-Module -Name ExchangeOnlineManagement 18 | 19 | 20 | #Install Module w/ version minimum 21 | 22 | Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.5 23 | 24 | 25 | #Module install check. 26 | 27 | $ModuleName = Get-InstalledModule -Name 'ExchangeOnlineManagement' 28 | 29 | 30 | $Module = $ModuleName.Name 31 | 32 | 33 | if ($Module | Select-Object -Property 'Name', 'Version' -erroraction silentlycontinue) 34 | { 35 | Write-Host "$Module Module is installed" 36 | } 37 | else 38 | { 39 | Write-Host "ExampleModule is not installed...Installing" 40 | 41 | Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.5 42 | } 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Install-Module/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Install-Module 2 | 3 | ## Links 4 | 5 | [install-module OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/powershellget/install-module?view=powershell-7.2) 6 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Automation-Lab/Config-Files/Hyper-V/ReadMe.md: -------------------------------------------------------------------------------- 1 | # A place for my Hyper-V Config Files. 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Automation-Lab/Config-Files/Hyper-V/Win-10-64Bit/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Windows 10 64 Bit Config Files. 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Automation-Lab/Config-Files/Hyper-V/Win-10-64Bit/Single-Machine-Creation/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Title 2 | 3 | ## .SYNOPSIS 4 | 5 | Adds a file name extension to a supplied name. 6 | 7 | ## .DESCRIPTION 8 | 9 | Adds a file name extension to a supplied name. 10 | Takes any strings for the file name or extension. 11 | 12 | ## .PARAMETER Name 13 | 14 | Specifies the file name. 15 | 16 | ## .PARAMETER Extension 17 | 18 | Specifies the extension. "Txt" is the default. 19 | 20 | ## .INPUTS 21 | None. You cannot pipe objects to Add-Extension. 22 | 23 | ## .OUTPUTS 24 | System.String. Add-Extension returns a string with the extension or file name. 25 | 26 | ## .EXAMPLE 27 | PS> extension -name "File" 28 | File.txt 29 | 30 | ## .EXAMPLE 31 | PS> extension -name "File" -extension "doc" 32 | File.doc 33 | 34 | ## LINK 35 | 36 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 37 | 38 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Automation-Lab/Config-Files/ReadMe.md: -------------------------------------------------------------------------------- 1 | # A place for my Autimation-Lab Config Files. 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Automation-Lab/ReadMe.md: -------------------------------------------------------------------------------- 1 | # A place for my Autimation-Lab Stuff. 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/Azure Az 8.0.0/Connect/ConnectAzureAD.ps1: -------------------------------------------------------------------------------- 1 | #Connect to Azure Az w/ PS. A browser will open and prompt for Credential. 2 | 3 | #https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-8.0.0#sign-in 4 | 5 | Write-Host "Connecting to Azure A/D..." 6 | 7 | Start-Sleep -Seconds 1 8 | 9 | Write-Host "Opening browser...Please enter credential and close the browser after authentication" 10 | 11 | Start-Sleep -Seconds 1 12 | 13 | Connect-AzAccount 14 | 15 | Write-Host "Happy Clouding!" -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/Azure Az 8.0.0/Connect/ReadMe.txt: -------------------------------------------------------------------------------- 1 | # Connect to Azure AZ via PS. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/Azure Az 8.0.0/Disconnect/Disconnect.ps1: -------------------------------------------------------------------------------- 1 | Disconnect-AzAccount -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/Azure Az 8.0.0/Disconnect/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Disconnect from Azure Az. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/Azure Az 8.0.0/Install/InstallAzure8.0.0.ps1: -------------------------------------------------------------------------------- 1 | #Install the Azure Az Module from the PSGallery 2 | 3 | #https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-8.0.0#installation 4 | 5 | #https://docs.microsoft.com/en-us/powershell/module/powershellget/install-module?view=powershell-7.2 6 | 7 | Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/Azure Az 8.0.0/Install/ReadMe.txt: -------------------------------------------------------------------------------- 1 | # Install Azure AZ Module. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/Azure Az 8.0.0/ReadMe.txt: -------------------------------------------------------------------------------- 1 | # Azure Az 8.0.0 -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/Azure Az 8.0.0/Unistall/ReadMe.txt: -------------------------------------------------------------------------------- 1 | # Uninstall Azure AZ Module. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/Azure Az 8.0.0/Unistall/UninstallAzure8.0.0.ps1: -------------------------------------------------------------------------------- 1 | #Install the Azure Az Module from the PSGallery 2 | 3 | #https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-8.0.0#installation 4 | 5 | #https://docs.microsoft.com/en-us/powershell/module/powershellget/uninstall-module?view=powershell-7.2 6 | 7 | Uninstall-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Add-User-To-Group/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Adds a user to a AzureAD group. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Add-User/Add-User-Manually/README.md: -------------------------------------------------------------------------------- 1 | 2 | # .SYNOPSIS 3 | 4 | ## Adds a user to Azure AD. 5 | 6 | 7 | # .DESCRIPTION 8 | 9 | ## Prompts for imput to be enter for a new user. All required imputs are noted by #Is required. 10 | 11 | 12 | # .OUTPUTS 13 | 14 | ## ObjectId DisplayName UserPrincipalName UserType 15 | ## -------- ----------- ----------------- -------- 16 | ## 1232Sc2-6sac-111-b2b2-d07e889344543s Test A. User TAUser@domain.com Member 17 | 18 | 19 | # .LINK 20 | 21 | # #https://docs.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-if?view=powershell-7.2 22 | 23 | # #https://docs.microsoft.com/en-us/powershell/module/azuread/new-azureaduser?view=azureadps-2.0 -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Block-User-Signin/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Block-User-Signin 2 | 3 | ## DESCRIPTION 4 | 5 | Blocks the sign in of a user for all MS365 programs. 6 | 7 | ## Notes 8 | 9 | Only works in 5.1 as Azure A/D currently only works in 5.1. 10 | 11 | ## INPUTS 12 | 13 | A user principal name. 14 | 15 | ## OUTPUTS 16 | 17 | Already Blocked accts : 18 | 19 | That users signins are already blocked. 20 | 21 | Once blocked : 22 | 23 | useremail@domain.com Account Signin blocked. 24 | 25 | ## LINK 26 | 27 | https://learn.microsoft.com/en-us/microsoft-365/enterprise/block-user-accounts-with-microsoft-365-powershell?view=o365-worldwide 28 | 29 | https://learn.microsoft.com/en-us/powershell/module/azuread/get-azureaduser?view=azureadps-2.0 30 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Connect/README.md: -------------------------------------------------------------------------------- 1 | # Azure 2 | 3 | ## Connect to Azure AD/MS365. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Disconnect/Disconnect.ps1: -------------------------------------------------------------------------------- 1 | #Disconnect from Azure AD 2 | 3 | #https://docs.microsoft.com/en-us/powershell/module/azuread/disconnect-azuread?view=azureadps-2.0 4 | 5 | Disconnect-AzureAD -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Disconnect/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Disconnect from Azure AD. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Get-Groups/All-AzureAD-Groups/All-AzureAD-Users.ps1: -------------------------------------------------------------------------------- 1 | #Get all AzureAD groups. 2 | 3 | #https://docs.microsoft.com/en-us/powershell/module/azuread/get-azureadgroup?view=azureadps-2.0 4 | 5 | Get-AzureADGroup 6 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Get-Groups/All-AzureAD-Groups/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Get all groups in Azure AD. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Get-Groups/Search-AzureAD-Groups/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Search for a group in Azure AD. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Get-Groups/Search-AzureAD-Groups/Search-AzureAD-User.ps1: -------------------------------------------------------------------------------- 1 | #Search for an AD group by Object ID, DisplayName or UserPrincipalName 2 | 3 | #https://docs.microsoft.com/en-us/powershell/module/azuread/get-azureadgroup?view=azureadps-2.0 4 | 5 | 6 | $Search = Read-Host "Search for a Object ID, DisplayName or UserPrincipalName" 7 | 8 | Get-AzureADGroup -SearchString "$Search" -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Get-User-Memberships/Get-User-Memberships.ps1: -------------------------------------------------------------------------------- 1 | #Gets a list of all users AzureAD groups they are currently appart of. 2 | 3 | #https://docs.microsoft.com/en-us/powershell/module/azuread/get-azureaduser?view=azureadps-2.0 4 | 5 | #https://docs.microsoft.com/en-us/powershell/module/azuread/get-azureadusermembership?view=azureadps-2.0 6 | 7 | 8 | $Search = Read-Host "Search for a Object ID, DisplayName or UserPrincipalName" 9 | 10 | Get-AzureADUser -SearchString "$Search" 11 | 12 | $ObjectID = Read-Host "Enter users ObjectID" 13 | 14 | $UserMembership = Get-AzureADUserMembership -ObjectID $ObjectID 15 | 16 | $UserMembership | Select-Object DisplayName 17 | 18 | Get-AzureADUser | Format-List -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Get-User-Memberships/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Gets users AzureAD memberships. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Get-User/All-AzureAD-Users/All-AzureAD-Users.ps1: -------------------------------------------------------------------------------- 1 | #Get all AzureAD users. 2 | 3 | #https://docs.microsoft.com/en-us/powershell/module/azuread/get-azureaduser?view=azureadps-2.0 4 | 5 | Get-AzureADUser -Top 99999999 -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Get-User/All-AzureAD-Users/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Get all users in Azure AD. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Get-User/Domain-UPN/Domain-UPN.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | .SYNOPSIS 5 | 6 | Domain User Principal Name. 7 | 8 | 9 | .DESCRIPTION 10 | 11 | Grabs all emails with the specified domain. 12 | 13 | 14 | .OUTPUTS 15 | 16 | UserPrincipalName 17 | ----------------- 18 | JMDoe@domain.com 19 | BMFartz@domain.com 20 | 21 | 22 | 23 | 24 | 25 | .LINK 26 | 27 | https://docs.microsoft.com/en-us/powershell/module/azuread/get-azureaduser?view=azureadps-2.0 28 | 29 | https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7.2 30 | 31 | #> 32 | 33 | #Script 34 | 35 | $AllUsers = Get-AzureADUser | Select-Object UserPrincipalName 36 | 37 | $AllUsers -match 'domainhere.com' #Change to your Org 38 | 39 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Get-User/Domain-UPN/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | # .SYNOPSIS 3 | ## Adds a file name extension to a supplied name. 4 | 5 | # .DESCRIPTION 6 | ## Adds a file name extension to a supplied name. 7 | ## Takes any strings for the file name or extension. 8 | 9 | # .PARAMETER Name 10 | ## Specifies the file name. 11 | 12 | # .PARAMETER Extension 13 | ## Specifies the extension. "Txt" is the default. 14 | 15 | # .INPUTS 16 | ## None. You cannot pipe objects to Add-Extension. 17 | 18 | # .OUTPUTS 19 | ## System.String. Add-Extension returns a string with the extension or file name. 20 | 21 | # .EXAMPLE 22 | ## PS> extension -name "File" 23 | ## File.txt 24 | 25 | # .EXAMPLE 26 | ## PS> extension -name "File" -extension "doc" 27 | ## File.doc 28 | 29 | # .LINK 30 | ## Online version: http://www.fabrikam.com/extension.html 31 | 32 | # .LINK 33 | ## Set-Item 34 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Get-User/Search-AzureAD-User/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Search for a users in Azure AD. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Get-User/Search-AzureAD-User/Search-AzureAD-User.ps1: -------------------------------------------------------------------------------- 1 | #Search for an AD user by Object ID, DisplayName or UserPrincipalName 2 | 3 | #https://docs.microsoft.com/en-us/powershell/module/azuread/get-azureaduser?view=azureadps-2.0 4 | 5 | 6 | $Search = Read-Host "Search for a Object ID, DisplayName or UserPrincipalName" 7 | 8 | Get-AzureADUser -SearchString "$Search" 9 | 10 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Install/Install.ps1: -------------------------------------------------------------------------------- 1 | #Install the AzureAD Module from the PSGallery 2 | 3 | #https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-8.0.0#installation 4 | 5 | #https://docs.microsoft.com/en-us/powershell/module/powershellget/install-module?view=powershell-7.2 6 | 7 | Install-Module -Name AzureAD -Scope CurrentUser -Repository PSGallery -Force -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Install/ReadMe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XXLMandalorian013/PowerShellScripts/ee2d2c7a1a71f395be24f864361c9827cb6abd70/LocalScripts/Modules/Modules/Azure/AzureAD/Install/ReadMe.md -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Remove-User/README.md: -------------------------------------------------------------------------------- 1 | ## Remove Azure AD/MS365 user. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Remove-User/Remove-User.ps1: -------------------------------------------------------------------------------- 1 | #Removes a AzureAD user. 2 | 3 | #https://docs.microsoft.com/en-us/powershell/module/activedirectory/remove-aduser?view=windowsserver2022-ps 4 | 5 | Get-AzureADUser -Top 99999999 6 | 7 | $ObjectID = Read-Host "Please type a User ObjectId to remove the user." 8 | 9 | Remove-AzureADUser -ObjectId $ObjectID 10 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Unblock-User-Signin/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Unblock-User-Signin 2 | 3 | ## DESCRIPTION 4 | 5 | Unblocks the sign in of a user for all MS365 programs. 6 | 7 | ## Notes 8 | 9 | Only works in 5.1 as Azure A/D currently only works in 5.1. 10 | 11 | ## INPUTS 12 | 13 | A user principal name. 14 | 15 | ## OUTPUTS 16 | 17 | Already unblocked accts : 18 | 19 | That users signins are already unblocked. 20 | 21 | Once unblocked : 22 | 23 | useremail@domain.com Account Signin unblocked. 24 | 25 | ## LINK 26 | 27 | https://learn.microsoft.com/en-us/microsoft-365/enterprise/block-user-accounts-with-microsoft-365-powershell?view=o365-worldwide 28 | 29 | https://learn.microsoft.com/en-us/powershell/module/azuread/get-azureaduser?view=azureadps-2.0 30 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Unistall/ReadMe.txt: -------------------------------------------------------------------------------- 1 | # Uninstall Azure A/D Module. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Azure/AzureAD/Unistall/UninstallAzure8.0.0.ps1: -------------------------------------------------------------------------------- 1 | #Install the Azure Module from the PSGallery 2 | 3 | #https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-8.0.0#installation 4 | 5 | #https://docs.microsoft.com/en-us/powershell/module/powershellget/uninstall-module?view=powershell-7.2 6 | 7 | Uninstall-Module -Name AzureAD -Scope CurrentUser -Repository PSGallery -Force -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/BurntToast/Install-BurntToast/0.8.5/0.8.5.ps1: -------------------------------------------------------------------------------- 1 | Get-InstalledModule -Name "BurntToast" -MinimumVersion 0.8.5 2 | 3 | Import-Module -Name burnttoast 4 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/BurntToast/Install-BurntToast/0.8.5/ReadMe.md: -------------------------------------------------------------------------------- 1 | Installs and imports the Burnt Toast module. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/BurntToast/Install-BurntToast/1.0.0-Preview2/1.0.0-Preview2.ps1: -------------------------------------------------------------------------------- 1 | Install-Module -Name BurntToast -AllowPrerelease -Force 2 | 3 | Import-Module -Name burnttoast -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/BurntToast/Install-BurntToast/1.0.0-Preview2/ReadMe.md: -------------------------------------------------------------------------------- 1 | Installs and imports the Burnt Toast module. -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/BurntToast/Notifications/Custom-Notification/Custom-Notification.ps1: -------------------------------------------------------------------------------- 1 | $ToastPeram = @{ 2 | 3 | #Path to a custom pic 4 | AppLogo = "C:\LOCAL\$env:UserName\My Documents\PowerShell\Modules\BurntToast\1.0.0\Images\friendly neighborhoodPS.png" 5 | 6 | #The header of the notification is enclosed with "" while the body must be enclosed with ''. They both need to be seperated by a , 7 | Text = "Local File Backup",'PowerShell Core (7) has started the local file backup.','-DAM' 8 | } 9 | 10 | New-BurntToastNotification @ToastPeram -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/BurntToast/Notifications/Custom-Notification/friendly neighborhoodPS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XXLMandalorian013/PowerShellScripts/ee2d2c7a1a71f395be24f864361c9827cb6abd70/LocalScripts/Modules/Modules/BurntToast/Notifications/Custom-Notification/friendly neighborhoodPS.png -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/Created-Modules/Module-Createtion-Test/Module-Creation-Test.psm1: -------------------------------------------------------------------------------- 1 | function Show-Calendar { 2 | param( 3 | [DateTime] $start = [DateTime]::Today, 4 | [DateTime] $end = $start, 5 | $firstDayOfWeek, 6 | [int[]] $highlightDay, 7 | [string[]] $highlightDate = [DateTime]::Today.ToString('yyyy-MM-dd') 8 | ) 9 | 10 | #actual code for the function goes here see the end of the topic for the complete code sample 11 | } 12 | Export-ModuleMember -Function Show-Calendar -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V2/Disconnect/Disconnect.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | .SYNOPSIS 5 | 6 | Disconnect from Exchange Online. 7 | 8 | 9 | .Notes 10 | 11 | Works in 7.X.X. 12 | 13 | .INPUTS 14 | 15 | Disconnect-ExchangeOnline 16 | 17 | 18 | .OUTPUTS 19 | 20 | Running this cmdlet clears all active sessions created using Connect-ExchangeOnline or Connect-IPPSSession. 21 | Press(Y/y/A/a) if you want to continue. 22 | [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y 23 | 24 | Removed the PSSession ExchangeOnlineInternalSession_1 connected to outlook.office365.com 25 | 26 | Disconnected successfully ! 27 | 28 | 29 | .LINK 30 | 31 | https://learn.microsoft.com/en-us/powershell/module/exchange/disconnect-exchangeonline?view=exchange-ps 32 | 33 | #> 34 | 35 | #Script 36 | 37 | Disconnect-ExchangeOnline -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V2/Disconnect/ReadMe.md: -------------------------------------------------------------------------------- 1 | # .SYNOPSIS 2 | 3 | Disconnect from Exchange Online. 4 | 5 | # .Notes 6 | 7 | Works in 7.X.X. 8 | 9 | # .INPUTS 10 | 11 | Disconnect-ExchangeOnline 12 | 13 | # .OUTPUTS 14 | 15 | Running this cmdlet clears all active sessions created using Connect-ExchangeOnline or Connect-IPPSSession. 16 | 17 | Press(Y/y/A/a) if you want to continue. 18 | 19 | [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y 20 | 21 | Removed the PSSession ExchangeOnlineInternalSession_1 connected to outlook.office365.com 22 | 23 | Disconnected successfully ! 24 | 25 | # .LINK 26 | 27 | [Disconnect-ExchangeOnline OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/exchange/disconnect-exchangeonline?view=exchange-ps) 28 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V2/Install-EXO-2.0.5/ReadMe.md: -------------------------------------------------------------------------------- 1 | ## Install-EXO-2.0.5 2 | 3 | ## Links 4 | 5 | [install-module OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/powershellget/install-module?view=powershell-7.2) 6 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V2/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Exchange-Online-V2 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/Connect-Delegated/Connect-Deligated.ps1: -------------------------------------------------------------------------------- 1 | $OrgName = 'DemaskHoldings' 2 | 3 | Connect-ExchangeOnline -DelegatedOrganization $OrgName.onmicrosoft.com -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/Disconnect/Disconnect.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | .SYNOPSIS 5 | 6 | Disconnect from Exchange Online. 7 | 8 | 9 | .Notes 10 | 11 | Works in 7.X.X. 12 | 13 | .INPUTS 14 | 15 | Disconnect-ExchangeOnline 16 | 17 | 18 | .OUTPUTS 19 | 20 | Running this cmdlet clears all active sessions created using Connect-ExchangeOnline or Connect-IPPSSession. 21 | Press(Y/y/A/a) if you want to continue. 22 | [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y 23 | 24 | Removed the PSSession ExchangeOnlineInternalSession_1 connected to outlook.office365.com 25 | 26 | Disconnected successfully ! 27 | 28 | 29 | .LINK 30 | 31 | https://learn.microsoft.com/en-us/powershell/module/exchange/disconnect-exchangeonline?view=exchange-ps 32 | 33 | #> 34 | 35 | #Script 36 | 37 | Disconnect-ExchangeOnline -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/Disconnect/ReadMe.md: -------------------------------------------------------------------------------- 1 | # .SYNOPSIS 2 | 3 | Disconnect from Exchange Online. 4 | 5 | # .Notes 6 | 7 | Works in 7.X.X. 8 | 9 | # .INPUTS 10 | 11 | Disconnect-ExchangeOnline 12 | 13 | # .OUTPUTS 14 | 15 | Running this cmdlet clears all active sessions created using Connect-ExchangeOnline or Connect-IPPSSession. 16 | 17 | Press(Y/y/A/a) if you want to continue. 18 | 19 | [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y 20 | 21 | Removed the PSSession ExchangeOnlineInternalSession_1 connected to outlook.office365.com 22 | 23 | Disconnected successfully ! 24 | 25 | # .LINK 26 | 27 | [Disconnect-ExchangeOnline OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/exchange/disconnect-exchangeonline?view=exchange-ps) 28 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/Get-RetentionPolicy/Get-RetentionPolicy.ps1: -------------------------------------------------------------------------------- 1 | Get-RetentionPolicy -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/Install-EXO-3.0.0/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Install-EXO-3.0.0 2 | 3 | ## Links 4 | 5 | [install-module OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/powershellget/install-module?view=powershell-7.2) 6 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/Roles/All-Roles/ReadMe.md: -------------------------------------------------------------------------------- 1 | # All-Roles 2 | 3 | ## DESCRIPTION 4 | 5 | Gets all Roles 6 | 7 | ## Notes 8 | 9 | ExchangeOnlineManagment Module only workin in PS 7.X.X. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String. 18 | 19 | ## EXAMPLE 20 | 21 | Role RoleAssignee RoleAssigneeType 22 | 23 | --- 24 | 25 | Retention Management Organization Management RoleGroup 26 | 27 | My Custom Apps Organization Management RoleGroup 28 | 29 | Recipient Policies Organization Management RoleGroup 30 | 31 | # LINK 32 | 33 | [Find the permissions required to run any Exchange cmdlet](https://learn.microsoft.com/en-us/powershell/exchange/find-exchange-cmdlet-permissions?view=exchange-ps) 34 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/Roles/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Roles Relating to Exchange Online 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/Roles/Role-Required-To-Rum-CMDLet/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Role-Required-To-Rum-CMDLet 2 | 3 | ## DESCRIPTION 4 | 5 | Gets all roles required to run a CMDLet in Exchange Online. 6 | 7 | ## Notes 8 | 9 | ExchangeOnlineManagement Module only works in in PS 7.X.X. 10 | 11 | ## INPUTS 12 | 13 | A CMDLet name. 14 | 15 | ## OUTPUTS 16 | 17 | System.String. 18 | 19 | ## EXAMPLE 20 | 21 | CMDlet: New-ComplianceSearch 22 | 23 | Name RoleType 24 | 25 | ---- -------- 26 | 27 | Mailbox Search MailboxSearch 28 | 29 | ## LINK 30 | 31 | [Get-ManagementRole Online Version](https://learn.microsoft.com/en-us/powershell/module/exchange/get-managementrole?view=exchange-ps) 32 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/SCC/Connect-to-SCC/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Connect-to-SCC 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/SCC/Get-ComplianceSearch copy/Get-ComplianceSearch.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | .SYNOPSIS 5 | 6 | Shows all the pending and compleated Compliance Searches. 7 | 8 | 9 | .DESCRIPTION 10 | 11 | . 12 | 13 | 14 | .Notes 15 | 16 | Works in 7.X.X. 17 | 18 | 19 | #> 20 | 21 | #Script 22 | 23 | Get-ComplianceSearch 24 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/SCC/Get-ComplianceSearch copy/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Get-ComplianceSearch 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/SCC/Get-ComplianceSearch/Get-ComplianceSearch.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | .SYNOPSIS 5 | 6 | Shows all the pending and compleated Compliance Searches. 7 | 8 | 9 | .DESCRIPTION 10 | 11 | . 12 | 13 | 14 | .Notes 15 | 16 | Works in 7.X.X. 17 | 18 | 19 | #> 20 | 21 | #Script 22 | 23 | Get-ComplianceSearch 24 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/SCC/Get-ComplianceSearch/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Get-ComplianceSearch 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/SCC/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Security-and-Compliance 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/SCC/Remove-ComplianceSearch/ReadMe.md: -------------------------------------------------------------------------------- 1 | # .SYNOPSIS 2 | 3 | Delete a Compliance Search and Export. 4 | 5 | ## .DESCRIPTION 6 | 7 | Prompts for a Compliance Search Name and deletes it if found. It also deletes the export if the search was exported. 8 | 9 | ## .Notes 10 | 11 | Exchange Online module 2.0.5 (V2) and newer requires PS 7.X.X. SCC requires you to be connected to Exchange first. 12 | 13 | ## .INPUTS 14 | 15 | System.String. 16 | 17 | ## .OUTPUTS 18 | 19 | System.String. Add-Extension returns a string with the extension or file name. 20 | 21 | ## .LINK 22 | 23 | [Remove-ComplianceSearch Online Version](https://learn.microsoft.com/en-us/powershell/module/exchange/remove-compliancesearch?view=exchange-ps) 24 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Exchange-Online-V3/SharedMailbox/SendAs/SendAs-Permissions-Set.ps1: -------------------------------------------------------------------------------- 1 | #Must be connected to ExchangeOnline already as the client or through deligated permissions befor running this script. 2 | 3 | #The shared mailbox. 4 | $mailbox = 'MailboxName@domain.com' 5 | 6 | #The user to be granted access to the maailbox. 7 | $User = 'UsersEmail@domain.com' 8 | 9 | Add-RecipientPermission -Identity $mailbox -Trustee $user -AccessRights SendAs -Confirm:$false 10 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Inbox-Rules/Delete-Inbox-Rule/Delete-Inbox-Rule.ps1: -------------------------------------------------------------------------------- 1 | Remove-InboxRule -Mailbox email@domain.com -Identity "RuleNameHere" -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Inbox-Rules/Get-All-Inbox-Rules/Get-All-Inbox-Rules.ps1: -------------------------------------------------------------------------------- 1 | Get-InboxRule -Mailbox email@domain.com -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/Inbox-Rules/What-Inbox-Rules-Doing/What-Inbox-Rules-Doing.ps1: -------------------------------------------------------------------------------- 1 | Get-InboxRule -Mailbox username@domaint.com | fl -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ExchangeOnline/ReadMe.md: -------------------------------------------------------------------------------- 1 | # ExchangeOnline 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/MS-Graph/Connect/Connect-MgGraph.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Connect to MS Graph 5 | 6 | .SYNOPSIS 7 | 8 | Connect to MS Graph. 9 | 10 | .Notes 11 | 12 | Works in 5.1 and later. 13 | 14 | 15 | .INPUTS 16 | 17 | None. 18 | 19 | 20 | .OUTPUTS 21 | 22 | System.String, 23 | 24 | Welcome To Microsoft Graph! 25 | 26 | 27 | .LINK 28 | 29 | [Get started with the Microsoft Graph PowerShell SDK](https://learn.microsoft.com/en-us/powershell/microsoftgraph/get-started?view=graph-powershell-1.0) 30 | 31 | [Authentication module cmdlets in Microsoft Graph PowerShell](https://learn.microsoft.com/en-us/powershell/microsoftgraph/authentication-commands?view=graph-powershell-1.0) 32 | 33 | #> 34 | 35 | #Script 36 | 37 | 38 | Connect-MgGraph -Scopes "User.Read.All","Group.ReadWrite.All" -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/MS-Graph/Connect/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | #Connect to MS Graph 3 | 4 | ## SYNOPSIS 5 | 6 | Connect to MS Graph. 7 | 8 | ## Notes 9 | 10 | Works in 5.1 and later. 11 | 12 | 13 | ## INPUTS 14 | 15 | None. 16 | 17 | 18 | ## OUTPUTS 19 | 20 | System.String, 21 | 22 | Welcome To Microsoft Graph! 23 | 24 | 25 | ## LINK 26 | 27 | [Get started with the Microsoft Graph PowerShell SDK](https://learn.microsoft.com/en-us/powershell/microsoftgraph/get-started?view=graph-powershell-1.0) 28 | 29 | [Authentication module cmdlets in Microsoft Graph PowerShell](https://learn.microsoft.com/en-us/powershell/microsoftgraph/authentication-commands?view=graph-powershell-1.0) 30 | 31 | 32 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/MS-Graph/Mail/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Mail -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/MS-Graph/Mail/Send-MGUserMail/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Title 2 | 3 | ## .SYNOPSIS 4 | 5 | Adds a file name extension to a supplied name. 6 | 7 | ## .DESCRIPTION 8 | 9 | Adds a file name extension to a supplied name. 10 | Takes any strings for the file name or extension. 11 | 12 | ## .PARAMETER Name 13 | 14 | Specifies the file name. 15 | 16 | ## .PARAMETER Extension 17 | 18 | Specifies the extension. "Txt" is the default. 19 | 20 | ## .INPUTS 21 | None. You cannot pipe objects to Add-Extension. 22 | 23 | ## .OUTPUTS 24 | System.String. Add-Extension returns a string with the extension or file name. 25 | 26 | ## .EXAMPLE 27 | PS> extension -name "File" 28 | File.txt 29 | 30 | ## .EXAMPLE 31 | PS> extension -name "File" -extension "doc" 32 | File.doc 33 | 34 | ## LINK 35 | 36 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 37 | 38 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/MS-Graph/ReadMe.md: -------------------------------------------------------------------------------- 1 | # MS Graph 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/MS-Graph/Users/Get-All-MgUser/Get-All-MgUser.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Get-All-MgUser.ps1 5 | 6 | .SYNOPSIS 7 | 8 | Gets all MG users. 9 | 10 | .Notes 11 | 12 | Works in PS 5.1 and later. 13 | 14 | 15 | .INPUTS 16 | 17 | None. 18 | 19 | 20 | .OUTPUTS 21 | 22 | System.String, 23 | 24 | Id : 5asd77-9a18-42-1d6-sd6fe41 25 | DisplayName : User Name 26 | Mail : user.name@domain.com 27 | UserPrincipalName : user.name_domain.com#EXT#@namehere23523123238.onmicrosoft.com 28 | 29 | 30 | .LINK 31 | 32 | [Get-MgUser](https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/get-mguser?view=graph-powershell-1.0) 33 | 34 | #> 35 | 36 | #Script 37 | 38 | 39 | #Gets all Mg users. 40 | 41 | Get-MgUser -All | Format-List ID, DisplayName, Mail, UserPrincipalName 42 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/MS-Graph/Users/Get-All-MgUser/ReadMe.md: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | # Get-All-MgUser.ps1 5 | 6 | ## SYNOPSIS 7 | 8 | Gets all MG users. 9 | 10 | ## Notes 11 | 12 | Works in PS 5.1 and later. 13 | 14 | 15 | ## INPUTS 16 | 17 | None. 18 | 19 | 20 | ## OUTPUTS 21 | 22 | System.String, 23 | 24 | Id : 5asd77-9a18-42-1d6-sd6fe41 25 | DisplayName : User Name 26 | Mail : user.name@domain.com 27 | UserPrincipalName : user.name_domain.com#EXT#@namehere23523123238.onmicrosoft.com 28 | 29 | 30 | ## LINK 31 | 32 | [Get-MgUser](https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/get-mguser?view=graph-powershell-1.0) 33 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/MS-Graph/Users/Get-Specific-MgUser/Get-Specific-MgUser.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Get-All-MgUser.ps1 5 | 6 | .SYNOPSIS 7 | 8 | Gets all MG users. 9 | 10 | .Notes 11 | 12 | Works in PS 5.1 and later. 13 | 14 | 15 | .INPUTS 16 | 17 | None. 18 | 19 | 20 | .OUTPUTS 21 | 22 | System.String, 23 | 24 | Id : 5asd77-9a18-42-1d6-sd6fe41 25 | DisplayName : User Name 26 | Mail : user.name@domain.com 27 | UserPrincipalName : user.name_domain.com#EXT#@namehere23523123238.onmicrosoft.com 28 | 29 | 30 | .LINK 31 | 32 | [Get-MgUser](https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/get-mguser?view=graph-powershell-1.0) 33 | 34 | #> 35 | 36 | #Script 37 | 38 | 39 | #Gets all Mg users. 40 | 41 | $user = Get-MgUser -Filter "displayName eq 'Megan S. Bowen'" 42 | 43 | $user | Format-List ID, DisplayName, Mail, UserPrincipalName 44 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/MS-Graph/Users/Get-Specific-MgUser/ReadMe.md: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | # Get-All-MgUser.ps1 5 | 6 | ## SYNOPSIS 7 | 8 | Gets all MG users. 9 | 10 | ## Notes 11 | 12 | Works in PS 5.1 and later. 13 | 14 | 15 | ## INPUTS 16 | 17 | None. 18 | 19 | 20 | ## OUTPUTS 21 | 22 | System.String, 23 | 24 | Id : 5asd77-9a18-42-1d6-sd6fe41 25 | DisplayName : User Name 26 | Mail : user.name@domain.com 27 | UserPrincipalName : user.name_domain.com#EXT#@namehere23523123238.onmicrosoft.com 28 | 29 | 30 | ## LINK 31 | 32 | [Get-MgUser](https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/get-mguser?view=graph-powershell-1.0) 33 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/MS-Graph/Users/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Users -------------------------------------------------------------------------------- /LocalScripts/Modules/Modules/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Modules 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Modules 2 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Search-and-Install-Module/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Find-Module 2 | 3 | ## Links 4 | 5 | [Find-Module Online Version](https://learn.microsoft.com/en-us/powershell/module/powershellget/find-module?view=powershell-7.2) 6 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Uninstall-Module/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Uninstall-ModuleName 2 | 3 | ## Links 4 | 5 | [Uninstall-module OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/powershellget/uninstall-module?view=powershell-7.2) 6 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Uninstall-Module/Uninstall-Module.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | # Uninstall-ModuleName 4 | 5 | ## Links 6 | 7 | [Uninstall-module OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/powershellget/uninstall-module?view=powershell-7.2) 8 | 9 | #> 10 | 11 | #Script 12 | 13 | #Uninstall Module by name 14 | 15 | Uninstall-Module -Name 'ExchangeOnlineManagement' 16 | 17 | #Uninstall Module if installed 18 | 19 | $ModuleName = Get-InstalledModule -Name 'ExchangeOnlineManagement' 20 | 21 | $Module = $ModuleName.Name 22 | 23 | if ($Module | Select-Object -Property 'Name' -erroraction silentlycontinue) 24 | { 25 | Write-Host "$Module Module is installed...uninstalling" 26 | 27 | Uninstall-Module -Name $Module 28 | 29 | Get-InstalledModule -Name $Module 30 | } 31 | else 32 | { 33 | Write-Host "ExampleModule is not installed" 34 | } 35 | 36 | -------------------------------------------------------------------------------- /LocalScripts/Modules/Update-Module/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Update-Help 2 | 3 | ## Link 4 | 5 | [Update-Help Online Version](https://learn.microsoft.com/en-us/powershell/module/powershellget/update-module?view=powershell-7.2) 6 | -------------------------------------------------------------------------------- /LocalScripts/Network/Drives/Dir-Largest-to-Small-Export/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | # ReadMe 3 | 4 | ## DESCRIPTION 5 | 6 | Gets all folders/files in a dir and sorts them largest to smallest and exports it to a .csv. 7 | 8 | ## Notes 9 | 10 | Works in PS 5.1 and later. 11 | 12 | ## INPUTS 13 | 14 | None. 15 | 16 | ## OUTPUTS 17 | 18 | System.String. 19 | 20 | ## LINK 21 | 22 | [Get-ChildItem Online Version](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-childitem?view=powershell-7.3) 23 | 24 | [Sort-Object Online Version](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/sort-object?view=powershell-7.3) 25 | 26 | [Format-Table Online Version](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/format-table?view=powershell-7.3) 27 | 28 | [Export-CSV Online Version](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/export-csv?view=powershell-7.3) 29 | -------------------------------------------------------------------------------- /LocalScripts/Network/Drives/Map-Domain-Network-Drive/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | # .SYNOPSIS 3 | ## Maps a domain network drive. 4 | 5 | # .INPUTS 6 | ## The script grabs the login users name, just imput their credentials. 7 | 8 | # .OUTPUTS 9 | ## PowerShell credential request 10 | ## Enter your credentials. 11 | ## Password for user \User: ************ 12 | ### Name Used (GB) Free (GB) Provider Root CurrentLocation 13 | ### ---- --------- --------- -------- ---- --------------- 14 | ### q 2672.54 119.21 FileSystem \\Server\Folder 15 | 16 | # .LINK 17 | ## https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-psdrive?view=powershell-7.2 18 | -------------------------------------------------------------------------------- /LocalScripts/Network/Drives/Remove-Mapped-Network-Drive/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | # .SYNOPSIS 3 | ## Removes a mapped network drive. 4 | 5 | # .DESCRIPTION 6 | ## Removes a mapped network drive by prompting the host. 7 | 8 | # .OUTPUTS 9 | ## Type Drive letter to remove: Q 10 | ## Type Drive letter to remove: Q 11 | ## PS C:\Windows\System32> 12 | 13 | # .LINK 14 | ## https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-psdrive?view=powershell-7.2 15 | -------------------------------------------------------------------------------- /LocalScripts/Network/Drives/Remove-Mapped-Network-Drive/Remove-Mapped-Network-Drive.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | .SYNOPSIS 5 | 6 | Removes a mapped network drive. 7 | 8 | 9 | .DESCRIPTION 10 | Removes a mapped network drive by prompting the host. 11 | 12 | 13 | .OUTPUTS 14 | 15 | Type Drive letter to remove: Q 16 | Type Drive letter to remove: Q 17 | PS C:\Windows\System32> 18 | 19 | 20 | 21 | 22 | .LINK 23 | 24 | https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-psdrive?view=powershell-7.2 25 | 26 | #> 27 | 28 | #Script 29 | 30 | $DriveName = Read-Host 'Type Drive letter to remove' 31 | 32 | Remove-PSDrive -Name $DriveName -------------------------------------------------------------------------------- /LocalScripts/Network/Drives/RemoveDrive/RemoveDrive.bat: -------------------------------------------------------------------------------- 1 | net use Q: /delete -------------------------------------------------------------------------------- /LocalScripts/Network/Drives/View-Mapped-Network-Drive-Letters/ReadMe.md: -------------------------------------------------------------------------------- 1 | ## DESCRIPTION 2 | 3 | Grabs all mapped network drives via the registry. 4 | 5 | ## Notes 6 | 7 | Works in 5.1 or later. 8 | 9 | ## INPUTS 10 | 11 | None. 12 | 13 | ## OUTPUTS 14 | 15 | System.String, 16 | 17 | PSChildName 18 | 19 | --- 20 | 21 | A 22 | 23 | K 24 | 25 | M 26 | 27 | Q 28 | 29 | R 30 | 31 | T 32 | -------------------------------------------------------------------------------- /LocalScripts/Network/Drives/View-Mapped-Network-Drive-Letters/View-Mapped-Network-Drive-Letters.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | .DESCRIPTION 5 | 6 | Grabs all mapped network drives via the registry. 7 | 8 | 9 | .Notes 10 | 11 | Works in 5.1 or later. 12 | 13 | 14 | .INPUTS 15 | 16 | None. 17 | 18 | 19 | .OUTPUTS 20 | 21 | System.String. 22 | 23 | PSChildName 24 | ----------- 25 | A 26 | K 27 | M 28 | Q 29 | R 30 | T 31 | 32 | #> 33 | 34 | #Script 35 | 36 | $user = New-Object System.Security.Principal.NTAccount($env:UserName) 37 | $sid = $user.Translate([System.Security.Principal.SecurityIdentifier]) 38 | $SIDValue = $sid.Value 39 | 40 | Get-ChildItem -Path "Registry::HKEY_USERS\$SIDValue\Network" | Select-Object "PSChildName" 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /LocalScripts/Network/Drives/View-Mapped-Network-Drives/ReadMe.md: -------------------------------------------------------------------------------- 1 | ## DESCRIPTION 2 | 3 | Grabs all mapped network drives via the registry. 4 | 5 | ## Notes 6 | 7 | Works in 5.1 or later. 8 | 9 | ## INPUTS 10 | 11 | None. 12 | 13 | ## OUTPUTS 14 | 15 | System.String, 16 | 17 | PSChildName 18 | 19 | --- 20 | 21 | A 22 | 23 | K 24 | 25 | M 26 | 27 | Q 28 | 29 | R 30 | 31 | T 32 | -------------------------------------------------------------------------------- /LocalScripts/Network/Drives/View-Mapped-Network-Drives/View-Mapped-Network-Drives.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | .DESCRIPTION 5 | 6 | Grabs all mapped network drives via the registry. 7 | 8 | 9 | .Notes 10 | 11 | Works in 5.1 or later. 12 | 13 | 14 | .INPUTS 15 | 16 | None. 17 | 18 | 19 | .OUTPUTS 20 | 21 | System.String. 22 | 23 | PSChildName 24 | ----------- 25 | A 26 | K 27 | M 28 | Q 29 | R 30 | T 31 | 32 | #> 33 | 34 | #Script 35 | 36 | $user = New-Object System.Security.Principal.NTAccount($env:UserName) 37 | $sid = $user.Translate([System.Security.Principal.SecurityIdentifier]) 38 | $SIDValue = $sid.Value 39 | 40 | Get-ChildItem -Path "Registry::HKEY_USERS\$SIDValue\Network" 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /LocalScripts/Network/Net-Adapters/Disable-IPv6-All-NICs/Disable-IPv6-All-NICs.ps1: -------------------------------------------------------------------------------- 1 | Disable-NetAdapterBinding -Name "*Ethernet*" -DisplayName "Internet Protocol Version 6 (TCP/IPv6)" -------------------------------------------------------------------------------- /LocalScripts/Network/NetBios/Check-NetBio-Enabled.ps1: -------------------------------------------------------------------------------- 1 | Write-Verbose -Message "Checking Each Nic's NetBios setting...Please wait..." -Verbose 2 | Get-CimInstance -ClassName 'Win32_NetworkAdapterConfiguration' | Select-Object ServiceName, Description, TcpipNetbiosOptions 3 | Write-Verbose -Message "TcpipNetbiosOptions Vaules: 0=Default 1=Enabled 2=Disabled. No Vaulue=Not Active Nic" -Verbose -------------------------------------------------------------------------------- /LocalScripts/Network/NetBios/Check-NetBios-Use.ps1: -------------------------------------------------------------------------------- 1 | # Get all network interfaces 2 | $networkAdapters = Get-NetAdapter | Where-Object {$_.Status -eq "Up"} 3 | foreach ($adapter in $networkAdapters) { 4 | # Get the IP addresses for each network adapter 5 | $ipAddresses = (Get-NetIPAddress -InterfaceAlias $adapter.Name -AddressFamily IPv4).IPAddress 6 | foreach ($ip in $ipAddresses) { 7 | # Run nbtstat -a for each IP address 8 | Write-Host "Running nbtstat -a for IP: $ip" 9 | nbtstat -a $ip 10 | } 11 | } -------------------------------------------------------------------------------- /LocalScripts/Network/NetBios/Disable-NetBios.ps1: -------------------------------------------------------------------------------- 1 | #Disable NetBios 2 | $i = 'HKLM:\SYSTEM\CurrentControlSet\Services\netbt\Parameters\interfaces' 3 | Get-ChildItem $i | ForEach-Object { 4 | Set-ItemProperty -Path "$i\$($_.pschildname)" -name NetBiosOptions -value 2 5 | } -------------------------------------------------------------------------------- /LocalScripts/Network/NetBios/Enable-NetBios.ps1: -------------------------------------------------------------------------------- 1 | #Enable NetBios 2 | $i = 'HKLM:\SYSTEM\CurrentControlSet\Services\netbt\Parameters\interfaces' 3 | Get-ChildItem $i | ForEach-Object { 4 | Set-ItemProperty -Path "$i\$($_.pschildname)" -name NetBiosOptions -value 0 5 | } -------------------------------------------------------------------------------- /LocalScripts/Network/Printers/AddNetworkPrinterTemplate.ps1: -------------------------------------------------------------------------------- 1 | Add-Printer -ConnectionName "\\ServerName\PrinterName" -------------------------------------------------------------------------------- /LocalScripts/Network/Printers/RemoveNetworkPrinterTemplate.ps1: -------------------------------------------------------------------------------- 1 | Remove-Printer -Name "\\ServerName\PrinterName" -------------------------------------------------------------------------------- /LocalScripts/Network/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for Network related scripts. -------------------------------------------------------------------------------- /LocalScripts/PowerShell/CheckPSVersion.ps1: -------------------------------------------------------------------------------- 1 | #Checks the PS version this is ran in. 2 | $PSVersionTable -------------------------------------------------------------------------------- /LocalScripts/PowerShell/EnablePSRemoting.ps1: -------------------------------------------------------------------------------- 1 | Enable-PSRemoting -Force -------------------------------------------------------------------------------- /LocalScripts/PowerShell/EnterPSSession/User_PCName.ps1: -------------------------------------------------------------------------------- 1 | Enter-PSSession -ComputerName PCName -Credential XYZ@domain.com -------------------------------------------------------------------------------- /LocalScripts/PowerShell/Get-ExecutionPolicy.ps1: -------------------------------------------------------------------------------- 1 | Get-ExecutionPolicy -------------------------------------------------------------------------------- /LocalScripts/PowerShell/Get-InstalledModules.ps1: -------------------------------------------------------------------------------- 1 | #Gets a list of installed moduels 2 | #https://docs.microsoft.com/en-us/powershell/module/powershellget/get-installedmodule?view=powershell-7.2 3 | Get-InstalledModule -------------------------------------------------------------------------------- /LocalScripts/PowerShell/ListAvailableModules.ps1: -------------------------------------------------------------------------------- 1 | Get-Module -ListAvailable -------------------------------------------------------------------------------- /LocalScripts/PowerShell/PS7/Enable-PS7Core-GPO.ps1/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | # .SYNOPSIS 3 | Adds a file name extension to a supplied name. 4 | 5 | # .DESCRIPTION 6 | Adds a file name extension to a supplied name. 7 | Takes any strings for the file name or extension. 8 | 9 | # .PARAMETER Name 10 | Specifies the file name. 11 | 12 | # .PARAMETER Extension 13 | Specifies the extension. "Txt" is the default. 14 | 15 | # .INPUTS 16 | None. You cannot pipe objects to Add-Extension. 17 | 18 | # .OUTPUTS 19 | System.String. Add-Extension returns a string with the extension or file name. 20 | 21 | # .EXAMPLE 22 | PS> extension -name "File" 23 | File.txt 24 | 25 | # .EXAMPLE 26 | PS> extension -name "File" -extension "doc" 27 | File.doc 28 | 29 | # .LINK 30 | https://knowledge.autodesk.com/support/revit/troubleshooting/caas/CloudHelp/cloudhelp/2021/ENU/Revit-Troubleshooting/files/GUID-3562A7E7-7112-4B6D-97F6-D922BACC0CDF-htm.html 31 | -------------------------------------------------------------------------------- /LocalScripts/PowerShell/PS7/ReadMe.md: -------------------------------------------------------------------------------- 1 | # PowerShell 7 (Core) 2 | -------------------------------------------------------------------------------- /LocalScripts/PowerShell/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for all things PowerShell related. -------------------------------------------------------------------------------- /LocalScripts/PowerShell/UpdateHelp/7.2.3/Update-Help.ps1: -------------------------------------------------------------------------------- 1 | Update-Help -------------------------------------------------------------------------------- /LocalScripts/Programs/Current-User-Installed-Progs.ps1: -------------------------------------------------------------------------------- 1 | #Gets all logged in profile installed programs from the resgistry. 2 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-itemproperty?view=powershell-7.2 3 | $CUProg = Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Sort-Object "DisplayName" 4 | 5 | $CUProg | Format-List 6 | 7 | 8 | -------------------------------------------------------------------------------- /LocalScripts/Programs/FindESET.ps1: -------------------------------------------------------------------------------- 1 | #Pass the function into a variable, the Get-ItemProperty is grabbing the installed programs in the Registry. Make sure to never add formatting like Formate-Table, -AutoSize when passing a function to a variable, 2 | #or it wont output anything make sure to do it below when out-putting the variable. See second part of the code. 3 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-itemproperty?view=powershell-7.2 4 | $Programs = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate 5 | 6 | 7 | #Sort the Installed Programs in the Registry to equil a specific programs DisplayName. Be sure to find the exact Display name and enter after the -eq 8 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/where-object?view=powershell-7.2 9 | $Programs | Where-Object -Property "DisplayName" -eq "ESET Endpoint Antivirus" | Format-Table –AutoSize -------------------------------------------------------------------------------- /LocalScripts/Programs/MachineWide-Installed-Progs.ps1: -------------------------------------------------------------------------------- 1 | #Gets all machine wide installed programs from the resgistry. 2 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-itemproperty?view=powershell-7.2 3 | $LMProg = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Sort-Object "DisplayName" 4 | 5 | $LMProg | Format-List 6 | 7 | 8 | -------------------------------------------------------------------------------- /LocalScripts/Programs/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for all things Program related. -------------------------------------------------------------------------------- /LocalScripts/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for all my Local PS scripts. -------------------------------------------------------------------------------- /LocalScripts/Security/Remote-Wipe/Remote-Wipe.ps1: -------------------------------------------------------------------------------- 1 | #Must be ran as system, an admin account is not enough. ie an RMM or Task Scheduler. 2 | $namespaceName = "root\cimv2\mdm\dmmap" 3 | $className = "MDM_RemoteWipe" 4 | $methodName = "doWipeMethod" 5 | 6 | $session = New-CimSession 7 | 8 | $params = New-Object Microsoft.Management.Infrastructure.CimMethodParametersCollection 9 | $param = [Microsoft.Management.Infrastructure.CimMethodParameter]::Create("param", "", "String", "In") 10 | $params.Add($param) 11 | 12 | $instance = Get-CimInstance -Namespace $namespaceName -ClassName $className -Filter "ParentID='./Vendor/MSFT' and InstanceID='RemoteWipe'" 13 | $session.InvokeMethod($namespaceName, $instance, $methodName, $params) -------------------------------------------------------------------------------- /LocalScripts/Server/DC/All-DC-In-Forest.ps1: -------------------------------------------------------------------------------- 1 | Get-ADDomainController -Filter * | Select-Object Name, IPv4Address, Site, OperatingSystem -------------------------------------------------------------------------------- /LocalScripts/Server/DC/Get-FISMO-Roles.ps1: -------------------------------------------------------------------------------- 1 | Get-ADDomain | Select-Object PDCEmulator, RIDMaster, InfrastructureMaster -------------------------------------------------------------------------------- /LocalScripts/Services/Check-If-Service-Running/Check-If-Service-Running.ps1: -------------------------------------------------------------------------------- 1 | $ServiceName = "Sophos Connect Service" 2 | 3 | $TestService = Get-Service -Name "Sophos Connect Service" -ErrorAction SilentlyContinue 4 | 5 | $PreferedServiceStatus = "Running" 6 | 7 | if ($PreferedServiceStatus -match $TestService.Status) { 8 | Write-Verbose -Message "$ServiceName is running...all is good." -Verbose 9 | }else { 10 | Write-Verbose -Message "$ServiceName is not running...starting service." -Verbose 11 | Start-Service -Name "$ServiceName" 12 | Get-Service -Name "$ServiceName" 13 | } 14 | -------------------------------------------------------------------------------- /LocalScripts/Software/Error-Fixes/ReadMe.md: -------------------------------------------------------------------------------- 1 | ## A place for software error fixes. -------------------------------------------------------------------------------- /LocalScripts/Software/Error-Fixes/Trane-3D-and-Trace-700/Cant-Activate-License/image/Cant-Activate-License/1678112611338.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XXLMandalorian013/PowerShellScripts/ee2d2c7a1a71f395be24f864361c9827cb6abd70/LocalScripts/Software/Error-Fixes/Trane-3D-and-Trace-700/Cant-Activate-License/image/Cant-Activate-License/1678112611338.png -------------------------------------------------------------------------------- /LocalScripts/Software/Error-Fixes/Trane-3D-and-Trace-700/ReadMe.md: -------------------------------------------------------------------------------- 1 | ## A place for Trane 3D and Trace 700 scripts 2 | -------------------------------------------------------------------------------- /LocalScripts/Software/File-Hashes/MD5/MD5-File-Hash.ps1: -------------------------------------------------------------------------------- 1 | Get-FileHash 'C:\Program Files\Google\Chrome\Application\chrome.exe' -Algorithm 'MD5' | Format-List -------------------------------------------------------------------------------- /LocalScripts/Software/Invoke-WebRequest/DL-and-Install-KB/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XXLMandalorian013/PowerShellScripts/ee2d2c7a1a71f395be24f864361c9827cb6abd70/LocalScripts/Software/Invoke-WebRequest/DL-and-Install-KB/README.md -------------------------------------------------------------------------------- /LocalScripts/Software/Invoke-WebRequest/DesktopConnector/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Title 2 | 3 | ## .SYNOPSIS 4 | 5 | Adds a file name extension to a supplied name. 6 | 7 | ## .DESCRIPTION 8 | 9 | Adds a file name extension to a supplied name. 10 | Takes any strings for the file name or extension. 11 | 12 | ## .PARAMETER Name 13 | 14 | Specifies the file name. 15 | 16 | ## .PARAMETER Extension 17 | 18 | Specifies the extension. "Txt" is the default. 19 | 20 | ## .INPUTS 21 | None. You cannot pipe objects to Add-Extension. 22 | 23 | ## .OUTPUTS 24 | System.String. Add-Extension returns a string with the extension or file name. 25 | 26 | ## .EXAMPLE 27 | PS> extension -name "File" 28 | File.txt 29 | 30 | ## .EXAMPLE 31 | PS> extension -name "File" -extension "doc" 32 | File.doc 33 | 34 | ## LINK 35 | 36 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 37 | 38 | -------------------------------------------------------------------------------- /LocalScripts/Software/Invoke-WebRequest/ESET/ReadMe.md: -------------------------------------------------------------------------------- 1 | # ESET -------------------------------------------------------------------------------- /LocalScripts/Software/Invoke-WebRequest/FireFox/Installer/ReadMe.md: -------------------------------------------------------------------------------- 1 | # ESET Endpoint Security installer 2 | 3 | ## SYNOPSIS 4 | 5 | Downloads and installs ESET Endpoint Security installer if not already installed. 6 | 7 | 8 | ## Notes 9 | 10 | This ESET Installer uses the link created in the ESET Cloud Protect SAS. ESET's installers expire, so a new installer may need made and relinked below. 11 | 12 | 13 | ## INPUTS 14 | 15 | None. 16 | 17 | 18 | ## OUTPUTS 19 | 20 | System.String, 21 | 22 | ESET Endpoint Security installer script starting...Written by DAM on 2023-02-01 23 | epi_win_live_installer.exe install script starting...Written by DAM on 2023-01-18 24 | Checking download link... 25 | Download link good! 26 | Downloading .exe installer for epi_win_live_installer.exe... 27 | Installing epi_win_live_installer.exe 28 | epi_win_live_installer.exe installer is running...Please wait 29 | epi_win_live_installer.exe installed! 30 | 31 | ## LINK 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /LocalScripts/Software/Invoke-WebRequest/FireFox/ReadMe.md: -------------------------------------------------------------------------------- 1 | # ESET -------------------------------------------------------------------------------- /LocalScripts/Software/Invoke-WebRequest/Mitel_Connect/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Mitel Connect 2 | -------------------------------------------------------------------------------- /LocalScripts/Software/Invoke-WebRequest/PowerShell/Installers/Admin/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | # PowerShell Installers for users PC w/ the PS context menu additions. 3 | -------------------------------------------------------------------------------- /LocalScripts/Software/Invoke-WebRequest/PowerShell/Installers/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | # PowerShell Installers 3 | -------------------------------------------------------------------------------- /LocalScripts/Software/Invoke-WebRequest/PowerShell/Installers/Users/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | # PowerShell Installers for users PC w/ out the PS context menu additions. 3 | -------------------------------------------------------------------------------- /LocalScripts/Software/Invoke-WebRequest/PowerShell/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Invoke-WebResquest PowerShell 2 | -------------------------------------------------------------------------------- /LocalScripts/Software/Invoke-WebRequest/PowerShell/Uninstallers/ReadMe.md: -------------------------------------------------------------------------------- 1 | # PowerShell Uinstallers 2 | -------------------------------------------------------------------------------- /LocalScripts/Software/Invoke-WebRequest/VulScan/ReadMe.md: -------------------------------------------------------------------------------- 1 | # ESET -------------------------------------------------------------------------------- /LocalScripts/Software/PSModules/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for Installers for Modules. -------------------------------------------------------------------------------- /LocalScripts/Software/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for different ways to install things. -------------------------------------------------------------------------------- /LocalScripts/Software/Uninstall/Any-Desk/Any-Desk-Uninstaller.ps1: -------------------------------------------------------------------------------- 1 | #Anydesk Programfiles 86 uninstall check. 2 | $DirName = "C:\Program Files (x86)\AnyDesk" 3 | $FileName = "anydesk.exe" 4 | try { 5 | if (Test-Path -Path "$DirName") { 6 | Write-Verbose -Message "$DirName exsist...Moving to next step." -Verbose 7 | try { 8 | Write-Verbose -Message "Starting uninstall" -Verbose 9 | Set-Location -path "$DirName" 10 | Start-Process -FilePath "$FileName" -ArgumentList "--remove" 11 | Start-Sleep -Seconds 30 12 | Write-Verbose -Message "uninstall complete?" -Verbose 13 | } 14 | catch { 15 | Get-Error -Newest 1 16 | } 17 | }else { 18 | Write-Verbose -Message "$DirName not found..." -Verbose 19 | } 20 | }catch { 21 | Get-Error -Newest 1 22 | } 23 | -------------------------------------------------------------------------------- /LocalScripts/Software/Uninstall/Huntress/ReadMe.md: -------------------------------------------------------------------------------- 1 | # ESET -------------------------------------------------------------------------------- /LocalScripts/Software/Uninstall/Sophos-Intercept-X/ReadMe.md: -------------------------------------------------------------------------------- 1 | # ESET -------------------------------------------------------------------------------- /LocalScripts/Software/Uninstall/Sophos-MDR/ReadMe.md: -------------------------------------------------------------------------------- 1 | # ESET -------------------------------------------------------------------------------- /LocalScripts/Software/Uninstall/Uninstall-Quick-Assist-Win10/Uninstall-Quick-Assist-Win10.ps1: -------------------------------------------------------------------------------- 1 | #Uninstall Quick Assist win 10 2 | 3 | $checkQuickAssist = Get-WindowsCapability -online | where-object {$_.name -like "*QuickAssist*"} 4 | 5 | if ($checkQuickAssist.state -eq 'Installed') { 6 | 7 | try { 8 | 9 | Remove-WindowsCapability -online -name $checkQuickAssist.name -ErrorAction Stop 10 | 11 | } catch { 12 | 13 | $error[0].Exception.Message 14 | 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /LocalScripts/Software/Uninstall/Uninstall-Quick-Assist-Win11/Uninstall-Quick-Assist-Win11.ps1: -------------------------------------------------------------------------------- 1 | #Uninstall Quick Assist Win 11 2 | $AppXPackage = Get-AppXPackage -Name "*QuickAssist" 3 | $AppXPackageName = $AppXPackage.Name 4 | Remove-AppxPackage -Package $AppXPackageName -------------------------------------------------------------------------------- /LocalScripts/Software/Uninstall/UserLock/UL-Agent-Uninstall.ps1/UL-Agent-Uninstall.ps1: -------------------------------------------------------------------------------- 1 | 2 | $SoftwareName = UlAgentService 3 | 4 | taskkill /f /im "$SoftwareName" 5 | 6 | Set-Location -Path 'C:\Windows\SysWOW64' 7 | 8 | Start-Process -FilePath 'C:\Windows\SysWOW64\ULAgentExe.exe /SERVICE U' 9 | 10 | Start-Process -FilePath 'C:\Windows\SysWOW64\ULAgentExe.exe /UNREGISTER' -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/7-Zip/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet 7-Zip Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs 7-Zip. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Adobe-Reader/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Adobe Reader Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Adobe Reader. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Audacity/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Audacity Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Audacity. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Box/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Box Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Box. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/BulkRenameUtility/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet BulkRenameUtility Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs BulkRenameUtility. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Chrome-Remote-Desktop/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Chrome Remote Desktop Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Chrome Remote Desktop. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Chrome/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Chrome Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Chrome. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Cisco-Webex/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Cisco Webex Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Cisco Webex. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Corsair-iCue-4/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Corsair iCue 4.X Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Corsair iCue 4.X. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/CrystalDiskInfo/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet CrystalDiskInfo Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs CrystalDiskInfo. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Discord/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Discord Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Discord. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/DropBox/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet DropBox Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs DropBox. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/FireFox/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet FireFox Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs FireFox. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/GIMP/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet GIMP Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs GIMP. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/GitHub Desktop/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet GitHub Desktop Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs GitHub Desktop machine wide. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/GoToMeeting/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet GoToMeeting Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs GoToMeeting. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. A PC restart is required to show up. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Google-Drive/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Google Drive Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Google Drive. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Google-Earth-Pro/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Google Earth Pro Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Google Earth Pro. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Logitech-Options-Plus/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Logitech-Options-Plus Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Logitech-Options-Plus. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/MS365-Apps/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet MS365 Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs MS 365 Office products (Word, Excel, Outlook, Publisher, PowerPoint, OneNote, and Access). Sign-in is required post install of a licened acct. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Nvidia-Gforce/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Nvidia-Gforce Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Nvidia-Gforce. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/OBS/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet OBS Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs OSB. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/OneDrive/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet OneDrive Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs OneDrive. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Power-Toys/Power-Toys-0.68.1/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Adobe Reader Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Power Toys Installs Power Toys version 0.68.1 . 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I don't have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Power-Toys/Power-Toys-0.70.0/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Adobe Reader Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Power Toys Installs Power Toys version 0.70.0. . 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I don't have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Power-Toys/Power-Toys-Latest/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Adobe Reader Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Power Toys. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I don't have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Installers (64 Bit) 2 | 3 | ## Disclamer: 4 | 5 | Most of these packages already exsisted and all credit goes to those who created and currently manage them. I just played with the peramiters to work for my needs. Some packages require a PC restart for them to show up, those are noted in the MD and the script. 6 | 7 | ## NOTES: 8 | 9 | All installs are silent if ran via some form of PS Remoting. When ran locally they are unattended installs. 10 | 11 | --Scope: Script with the "--Scope Machine" will install Machine wide, scripts with "--Scope User" or miss the "--Scope" perimeter are only installed on the profile running the WinGet CMD. Some installs are machine wide though ""--Scope Machine"" was not used, it will be noted in the script and .md of the installer. 12 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Spotify/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Spotify Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Spotify (not machine wide). 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Teams/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Teams Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Teams. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Visual-Studio-Code/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Visual Studio Code Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Visual Studio Code. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Zoom-Outlook-Plugin/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Zoom OutlookPlugin Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Zoom OutlookPlugin. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/Zoom/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Zoom Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Zoom. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Installers/iTunes/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet iTunes Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Installs iTunes. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Logs/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Logs 2 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/7-Zip/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet 7-Zip Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls 7-Zip. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Adobe-Reader/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Adobe Reader Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls Adobe Reader. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Audacity/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Audacity Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Installs Audacity. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Box/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Box Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls Box. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/BulkRenameUtility/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet BulkRenameUtility Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Installs BulkRenameUtility. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Chrome/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Chrome Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls Chrome. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Starting package uninstall... 20 | 21 | Successfully uninstalled 22 | 23 | ## LINK 24 | 25 | [WinGet Uninstall Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/uninstall) 26 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Cisco-Webex/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Cisco Webex Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls Cisco Webex. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Corsair-iCue-4/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Corsair iCue 4.X Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls Corsair iCue 4.X. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/CrystalDiskInfo/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet CrystalDiskInfo Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls CrystalDiskInfo. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Discord/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Discord Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls Discord. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/FireFox/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet FireFox Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls FireFox. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/GIMP/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet GIMP Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls GIMP. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/GitHub Desktop/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet GitHub Desktop Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls GitHub Desktop machine wide. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Google-Earth-Pro/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Google Earth Pro Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls Google Earth Pro. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Logitech-Options-Plus/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Logitech-Options-Plus Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls Logitech-Options-Plus. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/MS365-Apps/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet MS365 Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls MS 365 Office products (Word, Excel, Outlook, Publisher, PowerPoint, OneNote, and Access). 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Starting package uninstall... 20 | 21 | Successfully uninstalled 22 | 23 | ## LINK 24 | 25 | [WinGet Uninstall Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/uninstall) 26 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/OneDrive/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet OneDrive Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls OneDrive. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Starting package uninstall... 20 | 21 | Successfully uninstalled 22 | 23 | ## LINK 24 | 25 | [WinGet Uninstall Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/uninstall) 26 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Power-Toys/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet 7-Zip Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls Power Toys. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I don't have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Uninstallers (64 Bit) 2 | 3 | ## Winget package manifests do not have uninstallers as its baked into the installer. If an uninstaller is missing but an installer exists, that means the installer manifest does not silently uninstalls the program. 4 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Teams/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Teams Installer 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls MS Teams. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Visual-Studio-Code/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Visual Studio Code Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls Visual Studio Code. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Zoom-Outlook-Plugin/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Zoom OutlookPlugin Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls Zoom OutlookPlugin. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | WARNING: Outlook needs to be closed...Preparing to Taskkill Outlook.exe 20 | 21 | Confirm 22 | 23 | Continue with this operation? 24 | 25 | [Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): Y 26 | 27 | Starting package uninstall... 28 | 29 | Successfully uninstalled 30 | 31 | ## LINK 32 | 33 | [WinGet Uninstall Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/uninstall) 34 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/Zoom/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Zoom Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls Zoom. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Starting package uninstall... 20 | 21 | Successfully uninstalled 22 | 23 | ## LINK 24 | 25 | [WinGet Uninstall Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/uninstall) 26 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Uninstallers/iTunes/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet iTunes Uninstaller 2 | 3 | ## DESCRIPTION 4 | 5 | Uninstalls iTunes. 6 | 7 | ## Notes 8 | 9 | Written for PS7.X so I dont have to install Nuget. Nuget is required for PS5.1. 10 | 11 | ## INPUTS 12 | 13 | None. 14 | 15 | ## OUTPUTS 16 | 17 | System.String : 18 | 19 | Successfully verified installer hash 20 | 21 | Starting package install... 22 | 23 | Successfully installed. 24 | 25 | ## LINK 26 | 27 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 28 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/Update/ReadMe.md: -------------------------------------------------------------------------------- 1 | # WinGet Updates 2 | -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/WinGetInstall.ps1: -------------------------------------------------------------------------------- 1 | #To install a program search for it for to get its ID and the version you want and relpace them blelow acordingly 2 | #Additional peramiters can be found @ https://docs.microsoft.com/en-us/windows/package-manager/winget/install 3 | 4 | winget install --ID "Microsoft.PowerShell" --version 7.2.6.0 -------------------------------------------------------------------------------- /LocalScripts/Software/WinGet/WinGetSearch.ps1: -------------------------------------------------------------------------------- 1 | # Replace Powershell with a program you want to look for, 2 | #MS will ask if you have not ran this before to type Y to accept before searching 3 | #Additional peramiters can be found @ https://docs.microsoft.com/en-us/windows/package-manager/winget/search 4 | 5 | winget search "Powershell" 6 | 7 | -------------------------------------------------------------------------------- /LocalScripts/Templates/BatToRunPSScripts.bat: -------------------------------------------------------------------------------- 1 | PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""\\ServerName\Foler\995.ps1""' -Verb RunAs}" -------------------------------------------------------------------------------- /LocalScripts/Templates/Blank-CMDLet/Blank-CMDlet-Template.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | 5 | .SYNOPSIS 6 | 7 | 8 | 9 | .Notes 10 | 11 | Works in 12 | 13 | .Link 14 | 15 | [ Online Version]() 16 | #> 17 | 18 | 19 | #Script 20 | 21 | 22 | # 23 | 24 | -------------------------------------------------------------------------------- /LocalScripts/Templates/Blank-CMDLet/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Name 2 | 3 | ## Links 4 | 5 | [OnlineVersion]() 6 | -------------------------------------------------------------------------------- /LocalScripts/Templates/Blank-Script/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Title 2 | 3 | ## .SYNOPSIS 4 | 5 | Adds a file name extension to a supplied name. 6 | 7 | ## .DESCRIPTION 8 | 9 | Adds a file name extension to a supplied name. 10 | Takes any strings for the file name or extension. 11 | 12 | ## .PARAMETER Name 13 | 14 | Specifies the file name. 15 | 16 | ## .PARAMETER Extension 17 | 18 | Specifies the extension. "Txt" is the default. 19 | 20 | ## .INPUTS 21 | None. You cannot pipe objects to Add-Extension. 22 | 23 | ## .OUTPUTS 24 | System.String. Add-Extension returns a string with the extension or file name. 25 | 26 | ## .EXAMPLE 27 | PS> extension -name "File" 28 | File.txt 29 | 30 | ## .EXAMPLE 31 | PS> extension -name "File" -extension "doc" 32 | File.doc 33 | 34 | ## LINK 35 | 36 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 37 | 38 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Checkpoint-Computer/Checkpoint-Computer.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | NAME 5 | Checkpoint-Computer 6 | 7 | RELATED LINKS 8 | Online Version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/checkpoin 9 | 10 | #> 11 | 12 | #Script 13 | 14 | Checkpoint-Computer -Description "Backup Test" -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Comparison_Operators/Comparison_Operators.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Comparison_Operators 5 | 6 | [Oneline Version](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7.2) 7 | 8 | #> 9 | 10 | #Script 11 | 12 | # -match 13 | $PS2State = Get-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2Root | Select-Object 'State' 14 | 15 | if ( $PS2State -match 'Enabled' ) 16 | { 17 | Write-Host "Disabling PowerShell 2.0" 18 | 19 | Disable-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2Root 20 | 21 | Get-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2Root | Select-Object 'State' 22 | } 23 | else 24 | { 25 | Write-Host "PowerShell 2.0 is already disabled." 26 | } 27 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Copy-Item/Copy-Item.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | NAME 5 | Copy-Item 6 | 7 | # RELATED LINKS 8 | 9 | [https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/copy-item?view=powershell-7.2](URL "Online Version:") 10 | 11 | #> 12 | 13 | #Script 14 | 15 | Copy-Item "C:\MyRemoteData\scripts" -Destination "D:\MyLocalData\scripts" -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Do-Until/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Do-Until 2 | 3 | ## Links 4 | 5 | [Do-Until Online Version](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_do?view=powershell-7.2) 6 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Exchange-Online-V2/Connect/Connect.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Connect-ExchangeOnline 5 | 6 | .Notes 7 | 8 | V2 Works in 7.X.X or later 9 | 10 | .Link 11 | 12 | [OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/exchange/connect-exchangeonline?view=exchange-ps) 13 | 14 | 15 | #> 16 | 17 | 18 | #Script 19 | 20 | 21 | #Connect to Exchange Online V2 w/ Modern Auth and MFA enabled. 22 | 23 | Connect-ExchangeOnline -UserPrincipalName emailname@domain.com 24 | 25 | 26 | 27 | #Connect to Exchange Online V2 w/ Modern Auth and MFA enabled w/ module check. 28 | 29 | $ModuleName = 'ExchangeOnlineManagement' 30 | 31 | $Module = Get-InstalledModule -Name "$ModuleName" | Select-Object 'Name' 32 | 33 | if ( $Module -eq $Module ) 34 | { 35 | Write-Host "$Module installed" 36 | } 37 | else 38 | { 39 | Write-Host "$Module is not installed" 40 | } 41 | 42 | $Email = Read-Host 'Enter UserPrincialName' 43 | 44 | Connect-ExchangeOnline -UserPrincipalName $Email -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Exchange-Online-V2/Connect/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Connect-ExchangeOnline 2 | 3 | ## Links 4 | 5 | [OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/exchange/connect-exchangeonline?view=exchange-ps) 6 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Exchange-Online-V2/Disconnect/Disconnect.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | .SYNOPSIS 5 | 6 | Disconnect from Exchange Online. 7 | 8 | 9 | .Notes 10 | 11 | Works in 7.X.X. 12 | 13 | .INPUTS 14 | 15 | Disconnect-ExchangeOnline 16 | 17 | 18 | .OUTPUTS 19 | 20 | Running this cmdlet clears all active sessions created using Connect-ExchangeOnline or Connect-IPPSSession. 21 | Press(Y/y/A/a) if you want to continue. 22 | [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y 23 | 24 | Removed the PSSession ExchangeOnlineInternalSession_1 connected to outlook.office365.com 25 | 26 | Disconnected successfully ! 27 | 28 | 29 | .LINK 30 | 31 | https://learn.microsoft.com/en-us/powershell/module/exchange/disconnect-exchangeonline?view=exchange-ps 32 | 33 | #> 34 | 35 | #Script 36 | 37 | Disconnect-ExchangeOnline -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Exchange-Online-V2/Disconnect/ReadMe.md: -------------------------------------------------------------------------------- 1 | # .SYNOPSIS 2 | 3 | Disconnect from Exchange Online. 4 | 5 | # .Notes 6 | 7 | Works in 7.X.X. 8 | 9 | # .INPUTS 10 | 11 | Disconnect-ExchangeOnline 12 | 13 | # .OUTPUTS 14 | 15 | Running this cmdlet clears all active sessions created using Connect-ExchangeOnline or Connect-IPPSSession. 16 | 17 | Press(Y/y/A/a) if you want to continue. 18 | 19 | [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y 20 | 21 | Removed the PSSession ExchangeOnlineInternalSession_1 connected to outlook.office365.com 22 | 23 | Disconnected successfully ! 24 | 25 | # .LINK 26 | 27 | [Disconnect-ExchangeOnline OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/exchange/disconnect-exchangeonline?view=exchange-ps) 28 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Exchange-Online-V2/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Exchange Online V2 2 | 3 | ## Links 4 | 5 | [Exchange PowerShell V2 OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/exchange/?view=exchange-ps#powershell-v2-module) 6 | 7 | 8 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Export-Csv/Blank-CMDlet-Template.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Name 5 | 6 | Export-Csv 7 | 8 | ## Related Links 9 | 10 | [OnlineVersion](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/export-csv?view=powershell-7.2) 11 | 12 | #> 13 | 14 | #Script 15 | 16 | $CSV = Get-ScheduledTaskInfo -TaskName "Automated-Restore-Point" 17 | 18 | $CSV | Export-Csv -Path (Join-Path -Path "\\hawa-col04\Support_Tools\Scripts\PS\Local Scripts\Automated-Restore-Point\Script-Check\Script-Output" -ChildPath $UserName-$PCName'-Automated-Restore-Point'.csv) 19 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Functions/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Name 2 | 3 | ## Links 4 | 5 | [OnlineVersion]() 6 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Get-ComputerRestorePoint/Get-ComputerRestorePoint.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | NAME 5 | Get-ComputerRestorePoint 6 | 7 | RELATED LINKS 8 | Online Version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/get-compu 9 | 10 | #> 11 | 12 | #Script 13 | 14 | Get-ComputerRestorePoint -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Get-Item/Get-Item.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | NAME 5 | Get-Item 6 | 7 | Links 8 | https://go.microsoft.com/fwlink/?LinkID=113319. 9 | 10 | #> 11 | 12 | #Script 13 | 14 | #Reg key 15 | 16 | #When working w/ the Reg, make sure to keep the Registry:: before the actual Reg key. 17 | 18 | Get-Item -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore' 19 | 20 | 21 | #Get's file in a folder 22 | 23 | #Double quotes used here due to variable. 24 | 25 | Get-Item -Path "$env:TEM\UnlimitedSystemRestorePoints.reg" 26 | 27 | 28 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Get-ItemProperty/Get-ItemProperty.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Get-ItemProperty 5 | 6 | ## Related Links 7 | 8 | * [OnlineVersion](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-itemproperty?view=powershell-7.2) 9 | 10 | #> 11 | 12 | #Script 13 | 14 | #Get Reg Key 15 | 16 | #When working w/ the Reg, make sure to keep the Registry:: before the actual Reg key. 17 | 18 | Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore' 19 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Get-PSSession/Get-PSSession.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | 5 | .SYNOPSIS 6 | 7 | Gets info on a PS session. 8 | 9 | .Notes 10 | 11 | Works in 5.1 and newer 12 | 13 | .Link 14 | 15 | [Get-PSSession OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/get-pssession?view=powershell-7.2) 16 | 17 | [about_PSSessions OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_pssessions?view=powershell-7.2) 18 | #> 19 | 20 | 21 | #Script 22 | 23 | #Am I already connected to ExchangeOnline? 24 | 25 | $PSSessionsName = Get-PSSession | Select-Object -Property "Name" 26 | 27 | if ("$PSSessionsName" -match 'ExchangeOnlineInternalSession') 28 | { 29 | Throw "Your are already connected to $PSSessionsName" 30 | } 31 | else 32 | { 33 | Write-Host 'Starting connection to ExchangeOnlineInternalSession' 34 | } -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Get-PSSession/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Get-PSSessio 2 | 3 | ## Links 4 | 5 | [Get-PSSession OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/get-pssession?view=powershell-7.2) 6 | 7 | [about_PSSessions OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_pssessions?view=powershell-7.2) 8 | 9 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Get-ScheduledTask/Get-ScheduledTask.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | NAME 5 | Get-ScheduledTask 6 | 7 | RELATED LINKS 8 | [https://docs.microsoft.com/en-us/powershell/module/scheduledtasks/get-scheduledtask?view=windowsserver2022-ps](URL "Online Version:") 9 | 10 | 11 | #> 12 | 13 | #Script 14 | 15 | Get-ScheduledTask -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Get-ScheduledTask/ReadMe.md: -------------------------------------------------------------------------------- 1 | # NAME 2 | 3 | Get-ScheduledTask 4 | 5 | # RELATED LINKS 6 | 7 | [https://docs.microsoft.com/en-us/powershell/module/scheduledtasks/get-scheduledtask?view=windowsserver2022-ps](URL "Online Version:") 8 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Get-ScheduledTaskInfo/Get-ScheduledTaskInfo.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | Name 4 | Get-ScheduledTaskInfo 5 | 6 | Related Links 7 | [OnlineVersion](https://docs.microsoft.com/en-us/powershell/module/scheduledtasks/get-scheduledtaskinfo?view=windowsserver2022-ps) 8 | 9 | #> 10 | 11 | #Script 12 | 13 | Get-ScheduledTaskInfo -TaskName "MicrosoftEdgeUpdateTaskMachineUA" 14 | 15 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Get-WindowsOptionalFeature/Get-WindowsOptionalFeature.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Get-WindowsOptionalFeature 5 | 6 | [OnlineVersion](https://docs.microsoft.com/en-us/powershell/module/dism/get-windowsoptionalfeature?view=winserver2012r2-ps&redirectedfrom=MSDN) 7 | 8 | #> 9 | 10 | #Script 11 | 12 | Disable-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2Root -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/If-ElseIf-Else/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Everything you wanted to know about the `if` statement 2 | 3 | ## Links 4 | 5 | * [OnlineVersion](https://docs.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-if?view=powershell-7.2) 6 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/New-Item/New-Item.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | New-Item 5 | 6 | [Online Version](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-item?view=powershell-7.2) 7 | 8 | #> 9 | 10 | #Script 11 | 12 | 13 | 14 | #Add Reg Key 15 | 16 | #Make sure to keep the Registry:: before the actual Reg key. 17 | 18 | New-Item -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\TestKey' –Force 19 | 20 | 21 | #New Folder/Dir 22 | 23 | #Creates a folder called "LogFiles" in the C:\ folder. 24 | 25 | New-Item -Path "c:\" -Name "logfiles" -ItemType "directory" 26 | 27 | 28 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/New-ItemProperty/New-ItemProperty.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Name 5 | New-ItemProperty 6 | 7 | ## Related Links 8 | 9 | [OnlineVersion] (https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Management/New-ItemProperty?view=powershell-7.2&viewFallbackFrom=powershell-3.0) 10 | 11 | #> 12 | 13 | #Script 14 | 15 | New-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore' -Name 'SystemRestorePointCreationFrequency' -Value '0' -Type 'DWORD' –Force -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Operators/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | # about_Operators 3 | 4 | ## Links 5 | 6 | [OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_operators?view=powershell-7.2) 7 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Registry/Add-Reg-Key-Dword-Value/Add-Reg-Key-Dword-Value.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Name 5 | New-ItemProperty 6 | 7 | ## Related Links 8 | 9 | [OnlineVersion] (https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Management/New-ItemProperty?view=powershell-7.2&viewFallbackFrom=powershell-3.0) 10 | 11 | #> 12 | 13 | #Script 14 | 15 | #Make sure to keep the Registry:: before the actual Reg key. 16 | 17 | New-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore' -Name 'SystemRestorePointCreationFrequency' -Value '0' -Type 'DWORD' -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Registry/Add-Reg-Vaule/Add-Reg-Vaule.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Name 5 | New-ItemProperty 6 | 7 | ## Related Links 8 | 9 | [OnlineVersion] (https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Management/New-ItemProperty?view=powershell-7.2&viewFallbackFrom=powershell-3.0) 10 | 11 | #> 12 | 13 | #Script 14 | 15 | #Make sure to keep the Registry:: before the actual Reg key. 16 | 17 | New-Item -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\TEST' –Force -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Registry/Remove-Reg-Key-Dword-Value/ReadMe.md: -------------------------------------------------------------------------------- 1 | # .DESCRIPTION 2 | 3 | Removes Reg Key DWORD Value. 4 | 5 | # .Notes 6 | 7 | Works in 5.1 and later. 8 | 9 | # .LINK 10 | 11 | Online version: https://docs.microsoft.com/en-us/powershell/scripting/samples/working-with-registry-keys?view=powershell-7.2 12 | 13 | Online Version(https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-item?view=powershell-7.2) 14 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Registry/Remove-Reg-Key/ReadMe.md: -------------------------------------------------------------------------------- 1 | # .DESCRIPTION 2 | 3 | Removes a Reg key. 4 | 5 | # .Notes 6 | 7 | 5.1 and newer. 8 | 9 | #.OUTPUTS 10 | 11 | None 12 | 13 | # LINK 14 | 15 | [working-with-registry-keys](https://docs.microsoft.com/en-us/powershell/scripting/samples/working-with-registry-keys?view=powershell-7.2) 16 | 17 | [remove-item](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-item?view=powershell-7.2) 18 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Remove-Item/Remove-Item.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Remove-Item 5 | 6 | [Online Version](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-item?view=powershell-7.2) 7 | 8 | #> 9 | 10 | #Script 11 | 12 | #Remove Reg Key 13 | 14 | #When working w/ the Reg, make sure to keep the Registry:: before the actual Reg key. 15 | 16 | Remove-Item -Path 'Registry::HKEY_CURRENT_USER\TestKey' –Force -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Remove-ItemProperty/Remove-ItemProperty.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Remove-ItemProperty 5 | 6 | [Oneline Version](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-itemproperty?view=powershell-7.2) 7 | 8 | [Online Version](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-item?view=powershell-7.2) 9 | 10 | 11 | #> 12 | 13 | #Script 14 | 15 | #Remove a RegKey "DWORD" 16 | 17 | #When working w/ the Reg make sure to keep the Registry:: before the actual Reg key. 18 | 19 | Remove-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\SOFTWARE\Autodesk\AutoCAD\R19.1\ACAD-D006:409\Profiles\HAWA MEP 2018' -Name 'Test' –Force 20 | 21 | 22 | #Remove a RegKey 23 | 24 | #When working w/ the Reg make sure to keep the Registry:: before the actual Reg key. 25 | 26 | Remove-Item -Path 'Registry::HKEY_CURRENT_USER\TestKey' –Force -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Restart-Computer/Restart-Computer.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | Restart-Computer 5 | 6 | .Notes 7 | 8 | Works in 5.1 or later and does not need elevated perm. 9 | 10 | [Online Version](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/restart-computer?view=powershell-7.2) 11 | 12 | #> 13 | 14 | #Script 15 | 16 | # Force even if programs are open and restarts the PC imediatly 17 | 18 | Restart-Computer -Force 19 | 20 | 21 | # Confirms its ok to restart w/ a promt. 22 | 23 | Restart-Computer -Confirm 24 | 25 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Test-Connection/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Test Connection 2 | 3 | ## Links 4 | 5 | [Test Connection OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/test-connection?view=powershell-7.2) 6 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Test-Connection/Test-Connection.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | 3 | <# 4 | 5 | .SYNOPSIS 6 | 7 | #Tests the connection of a target 8 | 9 | .Notes 10 | 11 | #Works in 5.1 and Later 12 | 13 | .Link 14 | 15 | [Test-Connection Online](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/test-connection?view=powershell-7.2) 16 | 17 | #> 18 | 19 | #Script 20 | 21 | #Test a website/web-host 22 | 23 | Test-Connection -TargetName google.com 24 | 25 | 26 | #Is Exchange down? 27 | 28 | if (Test-Connection -TargetName outlook.office365.com -ErrorAction SilentlyContinue) 29 | { 30 | Write-Host "outlook.office365.com is up!" 31 | }else 32 | { 33 | Throw "No Network connection or outlook.office365.com is down...see https://portal.office.com/adminportal/home?#/servicehealth" 34 | } 35 | 36 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Test-NetConnection/ReadMe.md: -------------------------------------------------------------------------------- 1 | ## Test-NetConnection 2 | 3 | ## Links 4 | 5 | [Test-NetConnection OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection?view=windowsserver2022-ps) 6 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Test-NetConnection/Test-NetConnection.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | 5 | .SYNOPSIS 6 | 7 | Diag info on a connection 8 | 9 | .Notes 10 | 11 | Works in 5.1 and newer 12 | 13 | .Link 14 | 15 | [Test-NetConnection OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection?view=windowsserver2022-ps) 16 | 17 | #> 18 | 19 | 20 | #Script 21 | 22 | 23 | # 24 | 25 | #Can I dial out?/do I have a network connection 26 | 27 | $NetworkConnection = Test-NetConnection | Select-Object 'PingSucceeded' 28 | 29 | if ($NetworkConnection -match 'True') 30 | { 31 | Write-Host "Network connection confirmed!" 32 | } 33 | else 34 | { 35 | Throw "Check network connection" 36 | } -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Test-Path/Test-Path.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | NAME 3 | Test-Path 4 | 5 | RELATED LINKS 6 | Online Version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/test-path?v 7 | 8 | #> 9 | 10 | #Script 11 | 12 | Test-Path -Path "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Trim/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Trim 2 | 3 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Trim/Trim.ps1: -------------------------------------------------------------------------------- 1 | #ReadMe 2 | <# 3 | 4 | 5 | .SYNOPSIS 6 | 7 | Trims characters off 8 | #> 9 | 10 | 11 | #Script 12 | 13 | 14 | #Trims out specific character 15 | 16 | $Server = '\\Server\Share' 17 | 18 | $Trim = $Server.trim('\') 19 | 20 | $NameTrim = $Trim 21 | 22 | $NameTrim 23 | 24 | #Output of $NameTrim 25 | 26 | Server\Share 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /LocalScripts/Templates/CMDlets-Templates/Uninstall-Module/ReadMe.md: -------------------------------------------------------------------------------- 1 | ## Uninstall-Module 2 | 3 | ## Links 4 | 5 | [Uninstall-Module OnlineVersion](https://learn.microsoft.com/en-us/powershell/module/powershellget/uninstall-module?view=powershell-7.2) 6 | -------------------------------------------------------------------------------- /LocalScripts/Templates/DetectProgram.ps1: -------------------------------------------------------------------------------- 1 | #Detects if a program is installed before contuning. 2 | 3 | #https://docs.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-if?view=powershell-7.2 4 | 5 | $PCName = $env:computername 6 | $UserName = $env:UserName 7 | 8 | $ProgramName = "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" 9 | 10 | if(Get-Item -Path $ProgramName -ErrorAction Ignore) 11 | { 12 | 13 | Write-Host "Edge is Installed, backing up Favorites for $UserName" 14 | 15 | } 16 | 17 | else 18 | 19 | { 20 | 21 | Write-Host "Edge is not insalled, ending script" 22 | 23 | Start-Sleep -seconds 5 24 | 25 | Exit 26 | 27 | } 28 | -------------------------------------------------------------------------------- /LocalScripts/Templates/FindSpecificProgramTemplate.ps1: -------------------------------------------------------------------------------- 1 | #Pass the function into a variable, the Get-ItemProperty is grabbing the installed programs in the Registry. Make sure to never add formatting like Formate-Table, -AutoSize when passing a function to a variable, 2 | #or it wont output anything make sure to do it below when out-putting the variable. See second part of the code. 3 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-itemproperty?view=powershell-7.2 4 | $Programs = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate 5 | 6 | 7 | #Sort the Installed Programs in the Registry to equil a specific programs DisplayName. Be sure to find the exact Display name and enter after the -eq 8 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/where-object?view=powershell-7.2 9 | $Programs | Where-Object -Property "DisplayName" -eq "ESET Endpoint Antivirus" | Format-Table –AutoSize -------------------------------------------------------------------------------- /LocalScripts/Templates/OpenAURL.ps1: -------------------------------------------------------------------------------- 1 | #Opens a web URL. 2 | 3 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/start-process?view=powershell-7.2 4 | 5 | Start-Process -FilePath "https://apps.microsoft.com/store/detail/one-photo-viewer/9PM6W4F0XW3H" -------------------------------------------------------------------------------- /LocalScripts/Templates/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for my templates. -------------------------------------------------------------------------------- /LocalScripts/Templates/TaskScheduleRunCheck.ps1: -------------------------------------------------------------------------------- 1 | Get-ScheduledTask -TaskName SFC | Get-ScheduledTaskInfo -------------------------------------------------------------------------------- /LocalScripts/Templates/TerminalChecks/PSVersionCheck/PSTerm5.XCheck.ps1: -------------------------------------------------------------------------------- 1 | #Checks the PS terminal version this is ran in 5.X.X. 2 | 3 | #https://docs.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-if?view=powershell-7.2 4 | 5 | 6 | if ($PSVersionTable.PSVersion.Major -eq 5) { 7 | 8 | Write-Host "This script is running in $($PSVersionTable.PSVersion)." 9 | 10 | } 11 | 12 | else { 13 | 14 | Write-Warning "This script is running in PowerShell $($PSVersionTable.PSVersion)...Please run this script in PowerShell Version 5.X.X...Ending Script" -WarningAction Inquire 15 | 16 | Start-Sleep -Seconds 3 17 | 18 | Exit 19 | } -------------------------------------------------------------------------------- /LocalScripts/Templates/TerminalChecks/PSVersionCheck/PSTerm7.XCheck.ps1: -------------------------------------------------------------------------------- 1 | #Checks the PS terminal version this is ran in 7.X.X. 2 | 3 | #https://docs.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-if?view=powershell-7.2 4 | 5 | 6 | 7 | 8 | if ($PSVersionTable.PSVersion.Major -eq 7) { 9 | 10 | Write-Host "This script is running in $($PSVersionTable.PSVersion)." 11 | 12 | } 13 | 14 | else { 15 | 16 | Write-Warning "This script is running in PowerShell $($PSVersionTable.PSVersion)...Please run this script in PowerShell Version 7.X.X...Ending Script" -WarningAction Inquire 17 | 18 | Start-Sleep -Seconds 3 19 | 20 | Exit 21 | } -------------------------------------------------------------------------------- /LocalScripts/Templates/TerminalChecks/PSVersionCheck/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Checks to see what Ver. of PS the script is running in Terminal Version. -------------------------------------------------------------------------------- /LocalScripts/Templates/TerminalChecks/TerminalElevationCheck/AdminTerminalelevationCheck.ps1: -------------------------------------------------------------------------------- 1 | if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { 2 | 3 | Throw "This script requires Administrator rights. To run this script, start PowerShell with the `"Run as administrator`" option." 4 | 5 | } 6 | 7 | 8 | -------------------------------------------------------------------------------- /LocalScripts/Templates/TerminalChecks/TerminalElevationCheck/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Checks to see if the Terminal is running a script as elevated or not. -------------------------------------------------------------------------------- /LocalScripts/Templates/TerminalChecks/TerminalElevationCheck/UnelevatedTerminalCheck.ps1: -------------------------------------------------------------------------------- 1 | if (([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) 2 | { 3 | Throw "This script DOES NOT requires Administrator rights. To run this script, start PowerShell unelevated." 4 | 5 | } 6 | 7 | -------------------------------------------------------------------------------- /LocalScripts/Templates/TestIfDirExst/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Checks for a Dir and makes one if not. -------------------------------------------------------------------------------- /LocalScripts/Templates/TestIfDirExst/TestIfDirExst.ps1: -------------------------------------------------------------------------------- 1 | #Created a folder temp folder for downloading. 2 | 3 | #https://docs.microsoft.com/en-us/powershell/scripting/samples/working-with-files-and-folders?view=powershell-7.2 4 | 5 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/test-path?view=powershell-7.2 6 | 7 | $TestPath = "C:\TEMP\" 8 | 9 | if(Test-Path -Path "$TestPath") 10 | { 11 | 12 | Write-Host "Directory Exists..." 13 | 14 | Start-Sleep -Seconds 3 15 | 16 | } 17 | 18 | else 19 | 20 | { 21 | 22 | Write-Host "Creating Directory..." 23 | 24 | Start-Sleep -Seconds 2 25 | 26 | New-Item -Path 'C:\TEMP\' -ItemType Directory -ErrorAction Ignore 27 | 28 | } -------------------------------------------------------------------------------- /LocalScripts/Templates/XMLTaskSchedulerImportTemplate.ps1: -------------------------------------------------------------------------------- 1 | # Checks to see if PS 7 is installed, if not it will install it 2 | #Make sure to add the file name & type after the last sub folder 3 | $ProgramName = "C:\Program Files\PowerShell\7\pwsh.exe" 4 | 5 | if(Get-Item -Path $ProgramName -ErrorAction Ignore) 6 | { 7 | 8 | Write-Host "Program Exists" 9 | 10 | } 11 | else 12 | { 13 | Write-Host "Program Doesn't Exists" 14 | 15 | # Silently installs Program PS 7.2 w/ all the options selected 16 | winget install --ID Microsoft.PowerShell --version 7.2.1.0 --silent 17 | } 18 | 19 | #Import task to task scheduler 20 | # Registers the task scheduler xport file and changes the credentails on the task to be ran as the logged in PC. 21 | # Make sure to make create task locally on my PC first, make sure it runs then swap out the TaskScheduler export location below 22 | $Domain = $env:USERDNSDOMAIN 23 | $UserName = $env:UserName 24 | 25 | Register-ScheduledTask -Xml (Get-Content "\\Server\Folder\SFC.xml" | Out-String) -TaskName "SFC" -User $Domain\$UserName –Force 26 | -------------------------------------------------------------------------------- /LocalScripts/Test & WIP/Add-User/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | # .SYNOPSIS 3 | ## Adds a file name extension to a supplied name. 4 | 5 | # .DESCRIPTION 6 | ## Adds a file name extension to a supplied name. 7 | ## Takes any strings for the file name or extension. 8 | 9 | # .PARAMETER Name 10 | ## Specifies the file name. 11 | 12 | # .PARAMETER Extension 13 | ## Specifies the extension. "Txt" is the default. 14 | 15 | # .INPUTS 16 | ## None. You cannot pipe objects to Add-Extension. 17 | 18 | # .OUTPUTS 19 | ## System.String. Add-Extension returns a string with the extension or file name. 20 | 21 | # .EXAMPLE 22 | ## PS> extension -name "File" 23 | ## File.txt 24 | 25 | # .EXAMPLE 26 | ## PS> extension -name "File" -extension "doc" 27 | ## File.doc 28 | 29 | # .LINK 30 | ## Online version: http://www.fabrikam.com/extension.html 31 | 32 | # .LINK 33 | ## Set-Item 34 | -------------------------------------------------------------------------------- /LocalScripts/Test & WIP/CHKDSKandLog.ps1: -------------------------------------------------------------------------------- 1 | #https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/chkdsk 2 | #Checks File System Data and Meta Data of a Volume for Logical and Physical Errors 3 | CHKDSK C: 4 | 5 | 6 | 7 | #Get Logged Username and PC to exported CSV Naming 8 | $UserName = $env:UserName 9 | $PCName = $env:computername 10 | 11 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.diagnostics/get-winevent?view=powershell-7.2#syntax 12 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/export-csv?view=powershell-7.2 13 | #Accesses the Event Log for CHKDSK Log 14 | $CSV = Get-WinEvent -FilterHashtable @{LogName = "Application"; ID = "26212"} 15 | $CSV | Export-Csv -Path (Join-Path -Path "\\ServerName\Folder\CHKDSK\ScriptOutput" -ChildPath $PCName-$UserName'-CHKDSK'.csv) 16 | 17 | -------------------------------------------------------------------------------- /LocalScripts/Test & WIP/FileSearch.ps1: -------------------------------------------------------------------------------- 1 | $Path = Read-Host -Prompt "Please enter the file location you want to search" 2 | 3 | $FilePath = Read-Host -Prompt "Please type an astrics for all files or a posible file name ie test.docx" 4 | 5 | 6 | Get-ChildItem -Path $Path -Recurse -file -Force -ErrorAction SilentlyContinue -include $FileName | Select-Object FullName 7 | 8 | 9 | Get-ChildItem -Path C:/ -Recurse -file -Force -ErrorAction SilentlyContinue -include * 10 | 11 | 12 | $Dir = Read-Host -Prompt "Please enter a directory." 13 | 14 | $FileNameOrExtention = Read-Host -Prompt "Please type an * for all files or a posible file name w/ file type ie test.docx" 15 | 16 | Get-ChildItem -Path $Dir -include $FileNameOrExtention | Sort-Object -Property {$_.Directory - $_.Name} 17 | -------------------------------------------------------------------------------- /LocalScripts/Test & WIP/Get w error handeling.ps1: -------------------------------------------------------------------------------- 1 | #Get w/ error handeling 2 | 3 | $UserName = $env:UserName 4 | 5 | Get-Process -Name Agent | Out-File -Path C:\LOCAL\$UserName\Desktop\$UserName'CDriveFullOutput'.txt -NoClobber -ErrorVariable ProcessError; 6 | $ProcessError; 7 | 8 | if ($ProcessError) { 9 | Get-Process -Name Agent | Out-File -Path C:\LOCAL\$UserName\Desktop\$UserName'2CDriveFullOutput'.txt -NoClobber 10 | } -------------------------------------------------------------------------------- /LocalScripts/Test & WIP/PCNotification.ps1: -------------------------------------------------------------------------------- 1 | $value = Get-ChildItem -path "\\ServerName\Folder\FullC\ScriptOutput" -recurse | Select-Object Length 2 | 3 | if ($value.length -gt 0 ) 4 | { 5 | #Must install Nuget and BurntToast first use the Install-Module -Name BurntToast in PS w/ admind to get both 6 | 7 | New-BurntToastNotification -Text "C:\ Drive IS FULL!!!", "Check \\Server\Folder as someones C:\ Drive is Full!!! " -AppLogo C:\PS\'friendly neighborhood.png' 8 | 9 | Write-Host "Checks to see if anyone has outputed a file in "\\ServerName\Folder\FullC\ScriptOutput" saying their C is = or >20GB " 10 | 11 | Read-Host -Prompt "Press Enter to exit" 12 | } 13 | 14 | -------------------------------------------------------------------------------- /LocalScripts/Test & WIP/Quize-Module/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | # .SYNOPSIS 3 | Adds a file name extension to a supplied name. 4 | 5 | # .DESCRIPTION 6 | Adds a file name extension to a supplied name. 7 | Takes any strings for the file name or extension. 8 | 9 | # .PARAMETER Name 10 | Specifies the file name. 11 | 12 | # .PARAMETER Extension 13 | Specifies the extension. "Txt" is the default. 14 | 15 | # .INPUTS 16 | None. You cannot pipe objects to Add-Extension. 17 | 18 | # .OUTPUTS 19 | System.String. Add-Extension returns a string with the extension or file name. 20 | 21 | # .EXAMPLE 22 | PS> extension -name "File" 23 | File.txt 24 | 25 | # .EXAMPLE 26 | PS> extension -name "File" -extension "doc" 27 | File.doc 28 | 29 | # .LINK 30 | https://knowledge.autodesk.com/support/revit/troubleshooting/caas/CloudHelp/cloudhelp/2021/ENU/Revit-Troubleshooting/files/GUID-3562A7E7-7112-4B6D-97F6-D922BACC0CDF-htm.html 31 | -------------------------------------------------------------------------------- /LocalScripts/Test & WIP/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place told hold unifinished scripts. -------------------------------------------------------------------------------- /LocalScripts/Test & WIP/TaskSchedulerScriptMonitor.ps1: -------------------------------------------------------------------------------- 1 | Get-ScheduledTask -TaskName SFC | Get-ScheduledTaskInfo 2 | -------------------------------------------------------------------------------- /LocalScripts/Test & WIP/URL-DownTime-Check/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Title 2 | 3 | ## .SYNOPSIS 4 | 5 | Adds a file name extension to a supplied name. 6 | 7 | ## .DESCRIPTION 8 | 9 | Adds a file name extension to a supplied name. 10 | Takes any strings for the file name or extension. 11 | 12 | ## .PARAMETER Name 13 | 14 | Specifies the file name. 15 | 16 | ## .PARAMETER Extension 17 | 18 | Specifies the extension. "Txt" is the default. 19 | 20 | ## .INPUTS 21 | None. You cannot pipe objects to Add-Extension. 22 | 23 | ## .OUTPUTS 24 | System.String. Add-Extension returns a string with the extension or file name. 25 | 26 | ## .EXAMPLE 27 | PS> extension -name "File" 28 | File.txt 29 | 30 | ## .EXAMPLE 31 | PS> extension -name "File" -extension "doc" 32 | File.doc 33 | 34 | ## LINK 35 | 36 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 37 | 38 | -------------------------------------------------------------------------------- /LocalScripts/Test & WIP/UserAccts/ListAllUsers/ListAllUsers.ps1: -------------------------------------------------------------------------------- 1 | Get-CimInstance -Class 'Win32_UserProfile' | Select-Object 'LastUseTime', 'LocalPath', 'SID' -------------------------------------------------------------------------------- /LocalScripts/Test & WIP/UserAccts/RemoveUser/RemoveUser.ps1: -------------------------------------------------------------------------------- 1 | Get-CimInstance -Class 'Win32_UserProfile' | Select-Object 'LastUseTime', 'LocalPath', 'SID' 2 | 3 | $UserAcct = Read-Host 'Please see above and type the user name you wish to remove.' 4 | 5 | Get-CimInstance -Class 'Win32_UserProfile' | Where-Object { $_.LocalPath.split('\')[-1] -eq "$UserAcct" } | Remove-CimInstance -------------------------------------------------------------------------------- /LocalScripts/Test & WIP/remove network drive.ps1: -------------------------------------------------------------------------------- 1 | Remove-SmbMapping -RemotePath "\\ServerName\ShareName" -Force -------------------------------------------------------------------------------- /LocalScripts/Users/Add-Domain-User/Add-Domain-User.ps1: -------------------------------------------------------------------------------- 1 | Add-LocalGroupMember -Group "Administrators" -Member "DemaskHoldings\vsadmin" 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /LocalScripts/Users/Check-Admin-Rights/Check-Admin-Rights.ps1: -------------------------------------------------------------------------------- 1 | $user = "stoulmin" # Replace with the actual username 2 | $isAdmin = (Get-LocalGroupMember -Group "Administrators" | Select-Object -ExpandProperty Name) -contains $user 3 | 4 | if ($isAdmin) { 5 | Write-Output "$user has admin rights." 6 | } else { 7 | Write-Output "$user does not have admin rights." 8 | } -------------------------------------------------------------------------------- /LocalScripts/Users/Create-Local-Admin/Create-Local-Admin.ps1: -------------------------------------------------------------------------------- 1 | #Prompt for the local user account name. 2 | $UserAccountName = Read-Host "Type the user account name" 3 | #Will prmpt for a password. 4 | New-LocalUser -Name "$UserAccountName" -PasswordNeverExpires -Description "Added a local Admin acct that never expires." -AccountNeverExpires 5 | #Adds the local user to the local administrator group after the account is made. 6 | Add-LocalGroupMember -Group "Administrators" -Member "$UserAccountName" -------------------------------------------------------------------------------- /LocalScripts/Users/Get-All-Users/Get-All-Users.ps1: -------------------------------------------------------------------------------- 1 | Get-CimInstance -ClassName Win32_UserAccount -Filter "LocalAccount=True" | Select-Object Name, FullName, Disabled, Status -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Remove-VM/Readme.md: -------------------------------------------------------------------------------- 1 | Deletes a designated VM from the Hyper-V Manager but does not delete its files and folders. -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Remove-VM/Remove-VM.ps1: -------------------------------------------------------------------------------- 1 | $VMName = "Win10VM-Test-4" 2 | 3 | Remove-VM -Name "$VMName" -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Restart-VM/Restart-VM-Force/Restart-VM-Force.md: -------------------------------------------------------------------------------- 1 | Restarts a VM. -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Restart-VM/Restart-VM-Force/Restart-VM-Force.ps1: -------------------------------------------------------------------------------- 1 | $Global:VMName = "Win10VM-Test-4" 2 | 3 | Restart-VM -Name "$Global:VMName" -Force -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Restart-VM/Restart-VM/Restart-VM.md: -------------------------------------------------------------------------------- 1 | Forcefully restarts a VM. -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Restart-VM/Restart-VM/Restart-VM.ps1: -------------------------------------------------------------------------------- 1 | $Global:VMName = "Win10VM-Test-4" 2 | 3 | Restart-VM -Name "$Global:VMName" -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Set-VMFirmware/Readme.md: -------------------------------------------------------------------------------- 1 | A place for Hyper-V firmware scripts. -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Set-VMFirmware/VM-First-Boot/DVD-ISO-Boot/DVD-ISO-Boot.ps1: -------------------------------------------------------------------------------- 1 | $Global:VMName = "Win10VM-Test-4" 2 | 3 | Set-VMFirmware -VMName "$Global:VMName" -FirstBootDevice $(Get-VMDvdDrive -VMName "$Global:VMName") -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Set-VMFirmware/VM-First-Boot/DVD-ISO-Boot/Readme.md: -------------------------------------------------------------------------------- 1 | Sets the first boot order to the DVD Drive to load .iso files. -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Set-VMFirmware/VM-First-Boot/VHD-HDD-Boot/Readme.md: -------------------------------------------------------------------------------- 1 | Sets the first boot order to the VHD/VHDX/HDD. -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Set-VMFirmware/VM-First-Boot/VHD-HDD-Boot/VHD-HDD-Boot.ps1: -------------------------------------------------------------------------------- 1 | $Global:VMName = "Win10VM-Test-4" 2 | 3 | Set-VMFirmware -VMName "$Global:VMName" -FirstBootDevice $(Get-VMHardDiskDrive -VMName "$Global:VMName") 4 | 5 | -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Shutdown-VM/Force-Shutdown-VM/Force-Shutdown-VM.ps1: -------------------------------------------------------------------------------- 1 | $Global:VMName = "Win10VM-Test-4" 2 | 3 | Stop-VM -VMName "$Global:VMName" -TurnOff -Force -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Shutdown-VM/Force-Shutdown-VM/Readme.md: -------------------------------------------------------------------------------- 1 | Forcefully shuts down a VM. -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Shutdown-VM/Shutdown-VM/Readme.md: -------------------------------------------------------------------------------- 1 | Shuts down a VM. -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Shutdown-VM/Shutdown-VM/Shutdown-VM.ps1: -------------------------------------------------------------------------------- 1 | $Global:VMName = "Win10VM-Test-4" 2 | 3 | Stop-VM -VMName "$Global:VMName" -TurnOff -Confirm -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Start-VM/Start-VM/Start-VM.md: -------------------------------------------------------------------------------- 1 | Starts a VM. -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Start-VM/Start-VM/Start-VM.ps1: -------------------------------------------------------------------------------- 1 | $Global:VMName = "Win10VM-Test-4" 2 | 3 | Start-VM -Name "$Global:VMName" -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Turn-Off-VM/Force-Turn-Off/Force-Turn-Off.ps1: -------------------------------------------------------------------------------- 1 | $Global:VMName = "Win10VM-Test-4" 2 | 3 | Stop-VM -VMName "$Global:VMName" -TurnOff -Force -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Turn-Off-VM/Force-Turn-Off/Readme.md: -------------------------------------------------------------------------------- 1 | Forcefully turns off a VM. -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Turn-Off-VM/Turn-Off-VM/Readme.md: -------------------------------------------------------------------------------- 1 | Turns off a VM. -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/Turn-Off-VM/Turn-Off-VM/Turn-Off-VM.ps1: -------------------------------------------------------------------------------- 1 | $Global:VMName = "Win10VM-Test-4" 2 | 3 | Stop-VM -VMName "$Global:VMName" -TurnOff -Confirm 4 | -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/VHD-VHDX/New-VHDX/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Title 2 | 3 | ## .SYNOPSIS 4 | 5 | Adds a file name extension to a supplied name. 6 | 7 | ## .DESCRIPTION 8 | 9 | Adds a file name extension to a supplied name. 10 | Takes any strings for the file name or extension. 11 | 12 | ## .PARAMETER Name 13 | 14 | Specifies the file name. 15 | 16 | ## .PARAMETER Extension 17 | 18 | Specifies the extension. "Txt" is the default. 19 | 20 | ## .INPUTS 21 | None. You cannot pipe objects to Add-Extension. 22 | 23 | ## .OUTPUTS 24 | System.String. Add-Extension returns a string with the extension or file name. 25 | 26 | ## .EXAMPLE 27 | PS> extension -name "File" 28 | File.txt 29 | 30 | ## .EXAMPLE 31 | PS> extension -name "File" -extension "doc" 32 | File.doc 33 | 34 | ## LINK 35 | 36 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 37 | 38 | -------------------------------------------------------------------------------- /LocalScripts/Virtualization/Hyper-V/VHD-VHDX/ReadMe.md: -------------------------------------------------------------------------------- 1 | # A place for my VHD and VHDX scripts. -------------------------------------------------------------------------------- /LocalScripts/Win11/ConctexedMenu/ShowMoreOptionsChange/OldWin10ContextMenu.ps1: -------------------------------------------------------------------------------- 1 | #Changes the new windows 11 "show more options" context menu back to the old/full win 10 expanded contex menu. 2 | reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve -------------------------------------------------------------------------------- /LocalScripts/Win11/ConctexedMenu/ShowMoreOptionsChange/RevertToWin11ShowMoreOptionsContextMenu.ps1: -------------------------------------------------------------------------------- 1 | #Reverts the change made from the OldWin10ContextMenu.ps1 back to the defualt Win 11 "show more options" context menu. 2 | reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f -------------------------------------------------------------------------------- /LocalScripts/Win11/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for Windows 11 specific scripts. -------------------------------------------------------------------------------- /LocalScripts/Windows/BitLocker/Get-BitLockerDrivesAndRecoveryPassword/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Title 2 | 3 | ## .SYNOPSIS 4 | 5 | Adds a file name extension to a supplied name. 6 | 7 | ## .DESCRIPTION 8 | 9 | Adds a file name extension to a supplied name. 10 | Takes any strings for the file name or extension. 11 | 12 | ## .PARAMETER Name 13 | 14 | Specifies the file name. 15 | 16 | ## .PARAMETER Extension 17 | 18 | Specifies the extension. "Txt" is the default. 19 | 20 | ## .INPUTS 21 | None. You cannot pipe objects to Add-Extension. 22 | 23 | ## .OUTPUTS 24 | System.String. Add-Extension returns a string with the extension or file name. 25 | 26 | ## .EXAMPLE 27 | PS> extension -name "File" 28 | File.txt 29 | 30 | ## .EXAMPLE 31 | PS> extension -name "File" -extension "doc" 32 | File.doc 33 | 34 | ## LINK 35 | 36 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 37 | 38 | -------------------------------------------------------------------------------- /LocalScripts/Windows/BitLocker/Get-BitLockerRecoveryPassword/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Title 2 | 3 | ## .SYNOPSIS 4 | 5 | Adds a file name extension to a supplied name. 6 | 7 | ## .DESCRIPTION 8 | 9 | Adds a file name extension to a supplied name. 10 | Takes any strings for the file name or extension. 11 | 12 | ## .PARAMETER Name 13 | 14 | Specifies the file name. 15 | 16 | ## .PARAMETER Extension 17 | 18 | Specifies the extension. "Txt" is the default. 19 | 20 | ## .INPUTS 21 | None. You cannot pipe objects to Add-Extension. 22 | 23 | ## .OUTPUTS 24 | System.String. Add-Extension returns a string with the extension or file name. 25 | 26 | ## .EXAMPLE 27 | PS> extension -name "File" 28 | File.txt 29 | 30 | ## .EXAMPLE 31 | PS> extension -name "File" -extension "doc" 32 | File.doc 33 | 34 | ## LINK 35 | 36 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 37 | 38 | -------------------------------------------------------------------------------- /LocalScripts/Windows/BitLocker/ReadMe.md: -------------------------------------------------------------------------------- 1 | # A place for my BitLock Scripts. -------------------------------------------------------------------------------- /LocalScripts/Windows/Domain/JoinDomain.ps1: -------------------------------------------------------------------------------- 1 | #Checks the PS Terminal to be ran at a specific version and elevation 2 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_requires?view=powershell-7.2 3 | #Requires -Version 5.1 4 | #Requires -RunAsAdministrator 5 | 6 | #Joins a PC to the domain via credentials 7 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/add-computer?view=powershell-5.1 8 | $DomainName = Read-Host -Prompt "Enter Domain Name You Wish To Join" 9 | 10 | Add-Computer -DomainName $DomainName 11 | 12 | 13 | -------------------------------------------------------------------------------- /LocalScripts/Windows/Drive-Size-Export/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Title 2 | 3 | ## .SYNOPSIS 4 | 5 | Adds a file name extension to a supplied name. 6 | 7 | ## .DESCRIPTION 8 | 9 | Adds a file name extension to a supplied name. 10 | Takes any strings for the file name or extension. 11 | 12 | ## .PARAMETER Name 13 | 14 | Specifies the file name. 15 | 16 | ## .PARAMETER Extension 17 | 18 | Specifies the extension. "Txt" is the default. 19 | 20 | ## .INPUTS 21 | None. You cannot pipe objects to Add-Extension. 22 | 23 | ## .OUTPUTS 24 | System.String. Add-Extension returns a string with the extension or file name. 25 | 26 | ## .EXAMPLE 27 | PS> extension -name "File" 28 | File.txt 29 | 30 | ## .EXAMPLE 31 | PS> extension -name "File" -extension "doc" 32 | File.doc 33 | 34 | ## LINK 35 | 36 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 37 | 38 | -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/ReadMe.md: -------------------------------------------------------------------------------- 1 | A place for my Event Viewer scripts. -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/System/Bad-Block/Bad-Block.ps1: -------------------------------------------------------------------------------- 1 | 2 | #Get the first 25 System Disk Errors relating to bad block. "The device, \DeviceHarddisk0\DRO, has a bad block." 3 | Get-WinEvent -FilterHashtable @{ 4 | LogName = 'System' 5 | ProviderName = 'Disk' 6 | Level = '2' 7 | ID = '7' 8 | } | Select-Object -First 25 | Format-List 9 | 10 | 11 | -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/System/Datto-RMM/Datto-RMM-Error/Datto-RRM-Error.ps1: -------------------------------------------------------------------------------- 1 | #Get the first 25 Datto RMM errors. 2 | Get-WinEvent -FilterHashtable @{ 3 | LogName = 'System' 4 | ProviderName = 'Service Control Manager' 5 | Level = '2' 6 | ID = '7024' 7 | } | Select-Object -First 25 | Format-List -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/System/Disk-Critial/Disk-Critial.ps1: -------------------------------------------------------------------------------- 1 | 2 | #Get the first 25 disk critials. 3 | Get-WinEvent -FilterHashtable @{ 4 | LogName = 'System' 5 | ProviderName = 'Disk' 6 | Level = '1' 7 | } | Select-Object -First 25 | Format-List 8 | 9 | 10 | -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/System/Disk-Warning/Disk-Warning.ps1: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #Gets the first 25 disk warnings. 5 | Get-WinEvent -FilterHashtable @{ 6 | LogName = 'System' 7 | ProviderName = 'Disk' 8 | Level = '3' 9 | } | Select-Object -First 25 | Format-List 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/System/Kernal-Power-Loss/Kernal-Power-Loss.ps1: -------------------------------------------------------------------------------- 1 | 2 | #Get the first 25 kernal power losses. 3 | Get-WinEvent -FilterHashtable @{ 4 | LogName = 'System' 5 | ProviderName = 'Microsoft-Windows-Kernel-Power' 6 | Level = '1' 7 | ID = '41' 8 | } | Select-Object -First 25 | Format-List 9 | 10 | 11 | -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/System/ReadMe.md: -------------------------------------------------------------------------------- 1 | A place for my Stytem Event Viewer scripts. -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/System/System-Uptime/System-Uptime.ps1: -------------------------------------------------------------------------------- 1 | #Get the first 25 system. 2 | Get-WinEvent -FilterHashtable @{ 3 | LogName = 'System' 4 | ProviderName = 'EventLog' 5 | Level = '4' 6 | ID = '6013' 7 | } | Select-Object -First 25 | Format-List -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/System/Unexpected-Shutdown/Unexpected-Shutdown.ps1: -------------------------------------------------------------------------------- 1 | 2 | #Get the first 25 unexpected shutdown. 3 | Get-WinEvent -FilterHashtable @{ 4 | LogName = 'System' 5 | ProviderName = 'EventLog' 6 | Level = '2' 7 | ID = '6008' 8 | } | Select-Object -First 25 | Format-List 9 | 10 | 11 | -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/System/Windows-Update-Download-Started/Windows-Update-Download-Started.ps1: -------------------------------------------------------------------------------- 1 | #Get the first 25 Windows updates that have started installing. 2 | Get-WinEvent -FilterHashtable @{ 3 | LogName = 'System' 4 | ProviderName = 'Microsoft-Windows-WindowsUpdateClient' 5 | Level = '4' 6 | ID = '19' 7 | } | Select-Object -First 25 | Format-List -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/System/Windows-Update-Failure/Windows-Update-Failure.ps1: -------------------------------------------------------------------------------- 1 | #Get the first 25 Windows update failure. 2 | Get-WinEvent -FilterHashtable @{ 3 | LogName = 'System' 4 | ProviderName = 'Microsoft-Windows-WindowsUpdateClient' 5 | Level = '2' 6 | ID = '20' 7 | } | Select-Object -First 25 | Format-List -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/System/Windows-Update-Install-Started/Windows-Update-Install-Started.ps1: -------------------------------------------------------------------------------- 1 | #Get the first 25 Windows updates that have started. 2 | Get-WinEvent -FilterHashtable @{ 3 | LogName = 'System' 4 | ProviderName = 'Microsoft-Windows-WindowsUpdateClient' 5 | Level = '4' 6 | ID = '43' 7 | } | Select-Object -First 25 | Format-List -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/System/Windows-Update-Install-Successful/Windows-Update-Install-Successful.ps1: -------------------------------------------------------------------------------- 1 | #Get the first 25 Windows updates that have installed successfully. 2 | Get-WinEvent -FilterHashtable @{ 3 | LogName = 'System' 4 | ProviderName = 'Microsoft-Windows-WindowsUpdateClient' 5 | Level = '4' 6 | ID = '44' 7 | } | Select-Object -First 25 | Format-List -------------------------------------------------------------------------------- /LocalScripts/Windows/Event-Viewer/System/Windows-Update/Windows-Update.ps1: -------------------------------------------------------------------------------- 1 | #Get the first 25 Windows updates. 2 | Get-WinEvent -FilterHashtable @{ 3 | LogName = 'System' 4 | ProviderName = 'Microsoft-Windows-WindowsUpdateClient' 5 | Level = '4' 6 | ID = '44' 7 | } | Select-Object -First 25 | Format-List -------------------------------------------------------------------------------- /LocalScripts/Windows/File Search/File Search.txt: -------------------------------------------------------------------------------- 1 | Get-Childitem –Path C:\ -Include *FILE NAME HERE NO EXTENTION REQUIRED* -Recurse -ErrorAction SilentlyContinue -------------------------------------------------------------------------------- /LocalScripts/Windows/FileExplorer/StopStartFileExplorer.ps1: -------------------------------------------------------------------------------- 1 | Stop-Process -ProcessName explorer 2 | 3 | Start-Sleep -Seconds 1 4 | 5 | Start-Process -ProcessName explorer -------------------------------------------------------------------------------- /LocalScripts/Windows/Hibernate/Get-Hybernate-Status.ps1: -------------------------------------------------------------------------------- 1 | powercfg /a -------------------------------------------------------------------------------- /LocalScripts/Windows/Hibernate/TurnOffHibernate.ps1: -------------------------------------------------------------------------------- 1 | powercfg.exe /hibernate off -------------------------------------------------------------------------------- /LocalScripts/Windows/Hibernate/TurnOnHibernate.ps1: -------------------------------------------------------------------------------- 1 | powercfg.exe /hibernate on -------------------------------------------------------------------------------- /LocalScripts/Windows/OSAndUpdatesCheck/OSVerAndUpdates.ps1: -------------------------------------------------------------------------------- 1 | $OSSN = Get-ComputerInfo | Select-Object OsSerialNumber 2 | 3 | $OSInfo = Get-CimInstance Win32_OperatingSystem | Select-Object InstallDate, Caption, OSArchitecture, Version, BuildNumber 4 | 5 | $OSInfo | Format-List 6 | 7 | Write-Host "OS Serial Number"`r $OSSN 8 | 9 | Get-CimInstance win32_quickfixengineering |sort installedon -desc 10 | 11 | Write-Host Click URL to KBs and Winvers https://docs.microsoft.com/en-us/windows/release-health/release-information -Promt 12 | 13 | -------------------------------------------------------------------------------- /LocalScripts/Windows/OptionalFeatures/DotNet3.5/Get-DotNet-3.5.ps1: -------------------------------------------------------------------------------- 1 | Get-WindowsOptionalFeature -Online -FeatureName 'NetFx3' -------------------------------------------------------------------------------- /LocalScripts/Windows/OptionalFeatures/Hyper-V/GetHyper-VOptionalFeature.ps1: -------------------------------------------------------------------------------- 1 | Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -------------------------------------------------------------------------------- /LocalScripts/Windows/OptionalFeatures/PowerShell2.0/GetPS2.0OptionalFeature.ps1: -------------------------------------------------------------------------------- 1 | Get-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2Root -------------------------------------------------------------------------------- /LocalScripts/Windows/OptionalFeatures/SMB1.0/DisableSMB1/DisableSMB1.ps1: -------------------------------------------------------------------------------- 1 | $SMB1 = Get-WindowsOptionalFeature -Online -FeatureName "SMB1Protocol" |Select-Object FeatureName, State, RestartRequired 2 | 3 | $SMB1 | Format-List 4 | 5 | Disable-WindowsOptionalFeature -Online -FeatureName "SMB1Protocol" -------------------------------------------------------------------------------- /LocalScripts/Windows/OptionalFeatures/SMB1.0/EnableSMB1/EnableSMB1.ps1: -------------------------------------------------------------------------------- 1 | $SMB1 = Get-WindowsOptionalFeature -Online -FeatureName "SMB1Protocol" |Select-Object FeatureName, State, RestartRequired 2 | 3 | $SMB1 | Format-List 4 | 5 | Enable-WindowsOptionalFeature -Online -FeatureName "SMB1Protocol" -------------------------------------------------------------------------------- /LocalScripts/Windows/OptionalFeatures/SMB1.0/GetSMB1Status/GetSMB1Status.ps1: -------------------------------------------------------------------------------- 1 | Get-WindowsOptionalFeature -Online -FeatureName "SMB1Protocol" |Select-Object FeatureName, State, RestartRequired -------------------------------------------------------------------------------- /LocalScripts/Windows/ReadMe.txt: -------------------------------------------------------------------------------- 1 | A place for all things general Windows OS related. -------------------------------------------------------------------------------- /LocalScripts/Windows/RenamePC/RenamePC.ps1: -------------------------------------------------------------------------------- 1 | #Rename a PC by promting for imput. 2 | #https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/rename-computer?msclkid=a39bb920d05d11ec8dd87209caaca6f1&view=powershell-7.2 3 | Write-Host "Checking for elevated permissions..." 4 | if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(` 5 | [Security.Principal.WindowsBuiltInRole] "Administrator")) { 6 | Write-Warning "Insufficient permissions to run this script. Open the PowerShell console as an administrator and run this script again." 7 | Break 8 | } 9 | else { 10 | Write-Host "Code is running as administrator — go on executing the script..." -ForegroundColor Green 11 | } 12 | 13 | $PCReName = Read-Host -Prompt "Enter PC's Name" 14 | 15 | Rename-Computer -NewName "$PCReName" -------------------------------------------------------------------------------- /LocalScripts/Windows/Services/GetAllServices.ps1: -------------------------------------------------------------------------------- 1 | #Get all services 2 | Get-Service * -------------------------------------------------------------------------------- /LocalScripts/Windows/Services/Restart-A-Service/Restart-Datto-RMM/Restart-Datto-RMM.ps1: -------------------------------------------------------------------------------- 1 | Restart-Service -Name "CagService" -Force -------------------------------------------------------------------------------- /LocalScripts/Windows/TaskScheduler/Get-Specific-Running-Task/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Title 2 | 3 | ## .SYNOPSIS 4 | 5 | Adds a file name extension to a supplied name. 6 | 7 | ## .DESCRIPTION 8 | 9 | Adds a file name extension to a supplied name. 10 | Takes any strings for the file name or extension. 11 | 12 | ## .PARAMETER Name 13 | 14 | Specifies the file name. 15 | 16 | ## .PARAMETER Extension 17 | 18 | Specifies the extension. "Txt" is the default. 19 | 20 | ## .INPUTS 21 | None. You cannot pipe objects to Add-Extension. 22 | 23 | ## .OUTPUTS 24 | System.String. Add-Extension returns a string with the extension or file name. 25 | 26 | ## .EXAMPLE 27 | PS> extension -name "File" 28 | File.txt 29 | 30 | ## .EXAMPLE 31 | PS> extension -name "File" -extension "doc" 32 | File.doc 33 | 34 | ## LINK 35 | 36 | [WinGet Install Online Version](https://learn.microsoft.com/en-us/windows/package-manager/winget/install) 37 | 38 | -------------------------------------------------------------------------------- /LocalScripts/Windows/TaskScheduler/GetScheduledTasks/GetScheduledTasks.ps1: -------------------------------------------------------------------------------- 1 | #Get a list of all schduled task in default task scheduler folder 2 | #https://docs.microsoft.com/en-us/powershell/module/scheduledtasks/get-scheduledtask?view=windowsserver2022-ps 3 | Get-ScheduledTask -------------------------------------------------------------------------------- /LocalScripts/Windows/TaskScheduler/Start-SchduledTask/Start-Task.ps1: -------------------------------------------------------------------------------- 1 | Start-ScheduledTask -TaskName "Grab All Programs" -------------------------------------------------------------------------------- /LocalScripts/Windows/TaskScheduler/TaskRunInfo/TaskRunInfo.ps1: -------------------------------------------------------------------------------- 1 | #Get Registerd/scheduled tasks run info 2 | #https://docs.microsoft.com/en-us/powershell/module/scheduledtasks/get-scheduledtask?view=windowsserver2022-ps 3 | Get-ScheduledTaskInfo -TaskName "SFC" -------------------------------------------------------------------------------- /LocalScripts/Windows/TaskScheduler/UnregisterTask/UnregisterTask.ps1: -------------------------------------------------------------------------------- 1 | #Unregister a registered task in task schdeuler 2 | #https://docs.microsoft.com/en-us/powershell/module/scheduledtasks/unregister-scheduledtask?view=windowsserver2022-ps 3 | Unregister-ScheduledTask -TaskName "SFC" -------------------------------------------------------------------------------- /LocalScripts/Windows/UserProfiles/Get-LoggedIn-Users/Get-LoggedIn-Users.ps1: -------------------------------------------------------------------------------- 1 | query user /server:$SERVER -------------------------------------------------------------------------------- /LocalScripts/Windows/WindowsProductKey/Win-Product-Key-On-Mobo.ps1: -------------------------------------------------------------------------------- 1 | #Gets the Product key if its baked into the mobo. If nothing is returned than look for a sticker on the side of the case. 2 | (Get-CimInstance -ClassName SoftwareLicensingService).OA3xOriginalProductKey 3 | -------------------------------------------------------------------------------- /LocalScripts/Windows/WindowsProductKey/Win-Product-Key.ps1: -------------------------------------------------------------------------------- 1 | #Grabs the product key if not baked into the mobo. 2 | function Get-WindowsProductKey { 3 | param ( 4 | [string]$Path = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" 5 | ) 6 | $DigitalProductId = (Get-ItemProperty -Path $Path).DigitalProductId 7 | $KeyOffset = 52 8 | $Chars = "BCDFGHJKMPQRTVWXY2346789" 9 | $ProductKey = "" 10 | for ($i = 24; $i -ge 0; $i--) { 11 | $Current = 0 12 | for ($j = 14; $j -ge 0; $j--) { 13 | $Current = $Current * 256 + $DigitalProductId[$KeyOffset + $j] 14 | $DigitalProductId[$KeyOffset + $j] = [math]::Floor($Current / 24) 15 | $Current = $Current % 24 16 | } 17 | $ProductKey = $Chars[$Current] + $ProductKey 18 | } 19 | return $ProductKey.Insert(5, "-").Insert(11, "-").Insert(17, "-").Insert(23, "-") 20 | } 21 | Get-WindowsProductKey 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PowerShellScripts 2 | A place for my PowerShell Scripts 3 | -------------------------------------------------------------------------------- /windows10.0-kb4589210-v2-x64_bbbf54336d6e22da5de8d63891401d8f6077d2ce.msu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XXLMandalorian013/PowerShellScripts/ee2d2c7a1a71f395be24f864361c9827cb6abd70/windows10.0-kb4589210-v2-x64_bbbf54336d6e22da5de8d63891401d8f6077d2ce.msu -------------------------------------------------------------------------------- /windows11.0-kb5028948-x64_f0a16634fec67620f8d861dd3ef0b43e81e1a9ab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XXLMandalorian013/PowerShellScripts/ee2d2c7a1a71f395be24f864361c9827cb6abd70/windows11.0-kb5028948-x64_f0a16634fec67620f8d861dd3ef0b43e81e1a9ab --------------------------------------------------------------------------------