Convert ADSI:Exists to Get-ADOrganizationalUnit
This commit is contained in:
@@ -9,6 +9,9 @@ c:\windows\system32\tzutil.exe /s "UTC"
|
||||
|
||||
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Disable IPv6 on all network adatpers..."
|
||||
Get-NetAdapterBinding -ComponentID ms_tcpip6 | ForEach-Object {Disable-NetAdapterBinding -Name $_.Name -ComponentID ms_tcpip6}
|
||||
Get-NetAdapterBinding -ComponentID ms_tcpip6
|
||||
# https://support.microsoft.com/en-gb/help/929852/guidance-for-configuring-ipv6-in-windows-for-advanced-users
|
||||
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v DisabledComponents /t REG_DWORD /d 255 /f
|
||||
|
||||
if ($env:COMPUTERNAME -imatch 'vagrant') {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user