diff --git a/Windows/Location Services/Location Services - Disable (part 2).reg b/Windows/Location Services/Location Services - Disable (part 2).reg new file mode 100644 index 0000000..b7da9c4 Binary files /dev/null and b/Windows/Location Services/Location Services - Disable (part 2).reg differ diff --git a/Windows/Location Services/Location Services - Disable.reg b/Windows/Location Services/Location Services - Disable.reg new file mode 100644 index 0000000..5f0ef6a Binary files /dev/null and b/Windows/Location Services/Location Services - Disable.reg differ diff --git a/Windows/Location Services/Location Services - Enable.reg b/Windows/Location Services/Location Services - Enable.reg new file mode 100644 index 0000000..3097d70 Binary files /dev/null and b/Windows/Location Services/Location Services - Enable.reg differ diff --git a/Windows/Location Services/Location Services are Grayed Out (Turned off by admin) on Windows 11. - WinTips.org.url b/Windows/Location Services/Location Services are Grayed Out (Turned off by admin) on Windows 11. - WinTips.org.url new file mode 100644 index 0000000..2e8c535 --- /dev/null +++ b/Windows/Location Services/Location Services are Grayed Out (Turned off by admin) on Windows 11. - WinTips.org.url @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://www.wintips.org/fix-location-services-are-grayed-out-turned-off-by-admin-on-windows-11/ diff --git a/Windows/Maximum Path Length Limitation.md b/Windows/Maximum Path Length Limitation.md new file mode 100644 index 0000000..1c6ff41 --- /dev/null +++ b/Windows/Maximum Path Length Limitation.md @@ -0,0 +1,23 @@ +# Maximum Path Length Limitation + +In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is `MAX_PATH`, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character. For example, the maximum path on drive D is `"D:\"` where "\" represents the invisible terminating null character for the current system codepage. (The characters < > are used here for visual clarity and cannot be part of a valid path string.) + +## Powershell + +Run the following Powershell command with elevated permissions. + +``` +New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" +-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force +``` + +# Registry file .reg + +Create a .reg file with the following content, then import it into the registry. + +``` +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem] +"LongPathsEnabled"=dword:00000001 +```