windowscommands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| windowscommands [2020/10/11 21:04] – z0hpvk | windowscommands [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====Powershell==== | + | =====Powershell===== |
| - | ===Disable WSUS=== | + | ====Disable WSUS==== |
| + | Windows Server Update Services \\ | ||
| + | Check Registry Key ...\\ | ||
| + | |||
| + | < | ||
| + | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] | ||
| + | </ | ||
| < | < | ||
| Stop-Service -Name wuauserv | Stop-Service -Name wuauserv | ||
| - | Remove-Item HKLM: \Software\Policies\Microsoft\Windows\WindowsUpdate -Recurse | + | Remove-Item HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate -Recurse |
| + | Start-Service -name wuauserv | ||
| + | |||
| + | Stop-Service -Name wuauserv | ||
| + | New-Item -Path " | ||
| + | New-ItemProperty -Path " | ||
| Start-Service -name wuauserv | Start-Service -name wuauserv | ||
| </ | </ | ||
| - | ====Install RSAT==== | + | ====System Information==== |
| + | <code powershell> | ||
| + | Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName (Get-Content -Path ' | ||
| + | Get-CimInstance -ClassName Win32_OperatingSystem | Select CSName, Version, OSArchitecture, | ||
| + | Get-CimInstance -ClassName Win32_Processor | Select SystemName, Name, NumberOfCores | ||
| + | </ | ||
| - | < | + | ====Tail==== |
| + | < | ||
| + | Get-Content -Path catupgrd0.log -Tail 30 -Wait | ||
| + | </ | ||
| + | |||
| + | ====Network Connectivity==== | ||
| + | <code powershell> | ||
| + | Test-Connection -ComputerName IAN-SERVER -Quiet | ||
| + | Test-NetConnection -ComputerName IAN-SERVER -Port 1521 -InformationLevel Detailed | ||
| + | </ | ||
| + | |||
| + | ====Install RSAT==== | ||
| + | Remote Server Administration Tools \\ | ||
| + | <code powershell> | ||
| Get-WindowsCapability -Online | Where-Object {$_.Name -like " | Get-WindowsCapability -Online | Where-Object {$_.Name -like " | ||
| Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0 | 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 " | Get-WindowsCapability -Online | Where-Object {$_.Name -like " | ||
| </ | </ | ||
| + | |||
| + | ====Environment Variables==== | ||
| + | <code powershell> | ||
| + | $env:PATH = $env:PATH + "; | ||
| + | $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 " | ||
windowscommands.1602450291.txt.gz · Last modified: (external edit)
