This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| BoxStarter script to configure Windows 10 development PC. | |
| .DESCRIPTION | |
| Install BoxStarter: | |
| . { Invoke-WebRequest -useb http://boxstarter.org/bootstrapper.ps1 } | Invoke-Expression; get-boxstarter -Force | |
| Run by calling the following from an **elevated** command-prompt. | |
| Remove -DisableReboots parameter to allow the script to reboot as required. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Performs a windows cleanup. | |
| .DESCRIPTION | |
| Performs a windows cleanup by removing volume caches, update backups, update and CCM caches. | |
| .PARAMETER CleanupOptions | |
| Supported options: | |
| "comCacheRepair" # Component Cache Repair | |
| "comCacheCleanup" # Component Cache Cleanup | |
| "volCacheCleanup" # Volume Cache Cleanup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Get the latest Cumulative update for Windows | |
| .DESCRIPTION | |
| This script will return the list of Cumulative updates for Windows 10 and Windows Server 2016 from the Microsoft Update Catalog. | |
| .NOTES | |
| Copyright Keith Garner (KeithGa@DeploymentLive.com), All rights reserved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://stackoverflow.com/a/5429048/2796058 | |
| $ToNatural = { [regex]::Replace($_, '\d+', { $args[0].Value.PadLeft(20) }) } | |
| Get-ChildItem | Sort-Object $ToNatural |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Work in progress! | |
| # Derived from http://stackoverflow.com/questions/25709398/set-location-of-special-folders-with-powershell | |
| <# | |
| .SYNOPSIS | |
| Sets a known folder's path using SHSetKnownFolderPath. | |
| .PARAMETER Folder | |
| The known folder whose path to set. | |
| .PARAMETER Path | |
| The path. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# examples: | |
| # generate a baseline policy. | |
| powershell.exe -file applocker.ps1 -baseline -output c:\policies\baseline.xml | |
| # generate an application-specific policy. | |
| powershell.exe -file applocker.ps1 -application -in c:\policies\baseline.xml -out c:\policies\application.xml | |
| # generate an adhoc policy. | |
| powershell.exe -file applocker.ps1 -adhoc -in c:\path -filter *.* -out c:\policies\adhoc.xml |
NewerOlder