Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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:SoftwareMicrosoftWindowsShellAssociationsUrlAssociations tpUserChoice' -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

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote