Skip to content

Commit 447200f

Browse files
authored
Update README.md
1 parent 07a52d1 commit 447200f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,3 +331,16 @@ find /var/www/vhosts/. -name access_log.processed -exec grep 'DD/Mon/YEAR:time'
331331
##3 - Loop through and count total lines by hour into standard out:
332332
n=0;while [ $n -le 9 ];do echo $n"am CDT";find /var/www/. -name access.log -exec grep "02/May/2016:0$n" {} \; | wc -l;n=$(( n+1 )); done
333333
```
334+
***Powershell WSUS Usefuls***
335+
```
336+
##Get Current Status
337+
Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\" | Format-List -Property WUServer,WUStatusServer
338+
Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\" | Format-List -Property UseWUServer, AUOptions, DetectionFrequencyEnabled,DetectionFrequency,ScheduledInstallDay,ScheduledInstallTime, AlwaysAutoRebootAtScheduledTime, AlwaysAutoRebootAtScheduledTimeMinutes
339+
##Update values
340+
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\" -Name WUServer -Value 'http://wsus.example.com'
341+
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\" -Name WUStatusServer -Value 'http://wsus.example.com'
342+
```
343+
***Powershell Dump Cluster IP's (troubleshooting ip conflict errors)***
344+
```
345+
Get-ClusterResource | where {$_.resourcetype -eq "IP Address"} | ft -wrap -autosize
346+
```

0 commit comments

Comments
 (0)