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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search] | |
"BingSearchEnabled"=dword:00000000 | |
"AllowSearchToUseLocation"=dword:00000000 | |
"CortanaConsent"=dword:00000000 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search] | |
"AllowCortana"=dword:00000000 | |
"DisableWebSearch"=dword:00000001 |
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 hex_to_ansi(){ | |
# Get the individual color components as decimals | |
HEX=$(echo "$1" | tr -d '#' | tr '[:lower:]' '[:upper:]') | |
DIGITS=$(( ${#HEX} / 3 )) | |
R=$(( 16#${HEX:$(( DIGITS * 0 )):$DIGITS} )) | |
G=$(( 16#${HEX:$(( DIGITS * 1 )):$DIGITS} )) | |
B=$(( 16#${HEX:$(( DIGITS * 2 )):$DIGITS} )) | |
# Handle grey ramp | |
if [ "`echo $(( R-G )) | tr -d '-'`" -lt 16 ]\ |
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
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory=$True,Position=0)] | |
[String]$GUID | |
) | |
function Resolve-KnownFolderGuid { | |
Param( | |
[Parameter(Mandatory=$True,Position=0)] | |
[String]$GUID |