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
| Function Set-WindowsColorTheme { | |
| # Taken from bobby-tablez/theme.ps1 | |
| # Modify Windows 10/11 or Server theme (Light or Dark mode). Makes registry changes which | |
| # take effect upon reboot, or explorer.exe restart. Bypasses restriction to change theme on | |
| # unactivated Windows installations. | |
| # | |
| # Usage: | |
| # To switch to dark mode, run: Set-WindowsColorTheme -Mode dark | |
| # To switch to light mode, run: Set-WindowsColorTheme -Mode light |
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 | |
| Sets a known folder's path using SHSetKnownFolderPath. | |
| .PARAMETER KnownFolder | |
| The known folder whose path to set. | |
| .PARAMETER Path | |
| The target path to redirect the folder to. | |
| .NOTES | |
| Forked from: https://gist.github.com/fcitsolutions/c50f83cfe51f3bab70d398a8fa8e1961 | |
| #> |