Skip to content

Instantly share code, notes, and snippets.

View SharePointRadi's full-sized avatar

Radi Atanassov [MCM, MVP] SharePointRadi

View GitHub Profile
@SharePointRadi
SharePointRadi / Add-ToHostsFile.ps1
Last active September 11, 2025 05:57
Add to the Windows hosts file with PowerShell
Add-Content -Path "$env:windir\System32\drivers\etc\hosts" -Value "`n192.168.0.1 weownyourazure.net" -Force;
Get-Content -Path "$env:windir\System32\drivers\etc\hosts"
@SharePointRadi
SharePointRadi / DisableLoopbackCheck.ps1
Created June 25, 2023 12:19
Disable Loopback Check for NTLM
New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -value "1" -PropertyType DWord
@SharePointRadi
SharePointRadi / Check-IEUrlZoneMapping.ps1
Created March 24, 2023 08:48
Checks in which IE zone a URL falls under based on the zome mappings in inetcpl.cpl
# OneBit Software, Radi Atanassov
[System.Security.Policy.Zone]::CreateFromUrl("http://url.com:5000")
@SharePointRadi
SharePointRadi / Clean-BinObjNodeModules.ps1
Last active March 24, 2023 08:48
Clean up bin, obj and node_modules folders recursively with PowerShell
# OneBit Software, Radi Atanassov
# Make sure you change the Path
Get-ChildItem -Path . -Include obj,node_modules,bin -Recurse | Remove-Item -Force -Recurse