Intune Initial Scripts Backup
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
$Reg = Get-ItemProperty -Path 'HKLM:\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name "EnableMDNS" -ErrorAction SilentlyContinue
|
||||
if ($Reg -eq $Null){
|
||||
|
||||
Write-host "IPv6 prefix reg is not identified "
|
||||
Exit 1
|
||||
}
|
||||
else {
|
||||
Write-Host "IPv6 prefix is identified"
|
||||
Exit 0
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
$Path = "HKLM:\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters"
|
||||
$Name = "EnableMDNS"
|
||||
$Type = "DWORD"
|
||||
$Value = 0
|
||||
|
||||
|
||||
New-ItemProperty -Path $Path -Name $Name -PropertyType $Type -Value $Value -ErrorAction SilentlyContinue
|
||||
|
||||
Set-ItemProperty -Path $Path -Name $Name -Type $Type -Value $Value -ErrorAction SilentlyContinue
|
||||
Reference in New Issue
Block a user