I dun know and downloaded to install
Get-Help
but actually just need to run
>Get-Help Get-Help -online
to list of
get-command check
Also
so it is better to run power shell ISE with help on the right
and also with run with administrator
as in
this is require to run the script
Clear-Host
Write-Host "1 -> Never check for updates (not recommened)"
Write-Host "2 -> Check for updates but let me choose whether to download and install them"
Write-Host "3 -> Download updates but let me choose whether to install them"
Write-Host "4 -> Install updates automatically (recommended)"
Write-Host "Enter any character to exit"
Write-Host
switch(Read-Host "Choose Window Update Settings"){
1 {$UpdateValue = 1}
2 {$UpdateValue = 2}
3 {$UpdateValue = 3}
4 {$UpdateValue = 4}
Default{Exit}
}
$AutoUpdatePath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update"
Tin KOH S. N.
+65 9663 9353
+86 136 0001 9353
No comments:
Post a Comment