=====Powershell=====
====Disable WSUS====
Windows Server Update Services \\
Check Registry Key ...\\
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
Stop-Service -Name wuauserv
Remove-Item HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate -Recurse
Start-Service -name wuauserv
Stop-Service -Name wuauserv
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate"
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "TargetGroupEnabled" -Value "1"
Start-Service -name wuauserv
====System Information====
Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName (Get-Content -Path 'C:\Windows\Servers.txt')
Get-CimInstance -ClassName Win32_OperatingSystem | Select CSName, Version, OSArchitecture, InstallDate
Get-CimInstance -ClassName Win32_Processor | Select SystemName, Name, NumberOfCores
====Tail====
Get-Content -Path catupgrd0.log -Tail 30 -Wait
====Network Connectivity====
Test-Connection -ComputerName IAN-SERVER -Quiet
Test-NetConnection -ComputerName IAN-SERVER -Port 1521 -InformationLevel Detailed
====Install RSAT====
Remote Server Administration Tools \\
Get-WindowsCapability -Online | Where-Object {$_.Name -like "RSAT*"}
Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0
Add-WindowsCapability -Online -Name Rsat.GroupPolicy.Management.Tools~~~~0.0.1.0
Add-WindowsCapability -Online -Name Rsat.ServerManager.Tools~~~~0.0.1.0
Get-WindowsCapability -Online | Where-Object {$_.Name -like "Rsat.ActiveDirectory*"}
====Environment Variables====
$env:PATH = $env:PATH + ";C:\Program Files\Oracle\VirtualBox"
$env:PATH
Get-ChildItem env:
=====Block USB Storage=====
__Use Group Policy Editor__\\
Computer Configuration > Administrative Templates > System > Removable Storage Access\\
__Use Registry Editor__\\
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\\
Locate the DWORD "Start" and change the value from 3 to 4.\\