Powershell scripts that set Internet explorer as default browser in windows 10 P
ID: 3909972 • Letter: P
Question
Powershell scripts that set Internet explorer as default browser in windows 10 Powershell scripts that turn off windows notification Powershell scripts that change Power, sleep buttons, and lid setting to “Do nothing”, “Sleep”, “Hibernate”, “Shut down”, “Turn off the display” Powershell scripts that set Internet explorer as default browser in windows 10 Powershell scripts that turn off windows notification Powershell scripts that change Power, sleep buttons, and lid setting to “Do nothing”, “Sleep”, “Hibernate”, “Shut down”, “Turn off the display” Powershell scripts that turn off windows notification Powershell scripts that change Power, sleep buttons, and lid setting to “Do nothing”, “Sleep”, “Hibernate”, “Shut down”, “Turn off the display”Explanation / Answer
1. switch ($defaultBrowser)
{
'IE'
{
Set-ItemProperty 'HKCU:SoftwareMicrosoftWindowsShellAssociationsUrlAssociationstpUserChoice' -name ProgId IE.FTP
Set-ItemProperty 'HKCU:SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice' -name ProgId IE.HTTP
Set-ItemProperty 'HKCU:SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpsUserChoice' -name ProgId IE.HTTPS
}
}
}
2. $script={
Set-ItemProperty -Path "HKCU:SoftwarePoliciesMicrosoftWindowsExplorer" -Name "DisableNotificationCenter" -Type DWord -Value 1
Set-ItemProperty -Path "HKCU:SoftwareMicrosoftWindowsCurrentVersionPushNotifications" -Name "ToastEnabled" -Type DWord -Value 0
}
$Win10s=Get-ADComputer -Filter {OperatingSystem -Like '*Windows 10*' } | Select-Object -ExpandProperty Name
Foreach($win10 in $Win10s){
Invoke-Command -ComputerName $win10 -ScriptBlock $script
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.