Sunday, November 22, 2015

Fwd: Windows PowerShell Get-Help Get-Help -online as administator




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

https://technet.microsoft.com/en-us/library/hh849711(v=wps.630).aspx

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"
Set-ItemProperty -Path $AutoUpdatePath -Name AUOptions -Value $UpdateValue

PS: to change to administrator is






--
Tin KOH S. N.
+65       9663 9353
+86 136 0001 9353 

No comments:

Post a Comment