windowscommands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| windowscommands [2021/05/25 13:26] – z0hpvk | windowscommands [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====Disable WSUS==== | ====Disable WSUS==== | ||
| + | Windows Server Update Services \\ | ||
| Check Registry Key ...\\ | Check Registry Key ...\\ | ||
| Line 21: | Line 21: | ||
| ====System Information==== | ====System Information==== | ||
| - | < | + | < |
| Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName (Get-Content -Path ' | Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName (Get-Content -Path ' | ||
| Get-CimInstance -ClassName Win32_OperatingSystem | Select CSName, Version, OSArchitecture, | Get-CimInstance -ClassName Win32_OperatingSystem | Select CSName, Version, OSArchitecture, | ||
| Line 28: | Line 28: | ||
| ====Tail==== | ====Tail==== | ||
| - | < | + | < |
| Get-Content -Path catupgrd0.log -Tail 30 -Wait | Get-Content -Path catupgrd0.log -Tail 30 -Wait | ||
| </ | </ | ||
| ====Network Connectivity==== | ====Network Connectivity==== | ||
| - | < | + | < |
| + | Test-Connection -ComputerName IAN-SERVER -Quiet | ||
| Test-NetConnection -ComputerName IAN-SERVER -Port 1521 -InformationLevel Detailed | Test-NetConnection -ComputerName IAN-SERVER -Port 1521 -InformationLevel Detailed | ||
| </ | </ | ||
| ====Install RSAT==== | ====Install RSAT==== | ||
| - | + | Remote Server Administration Tools \\ | |
| - | < | + | < |
| 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 | ||
| Line 46: | Line 47: | ||
| 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===== | =====Block USB Storage===== | ||
windowscommands.1621949172.txt.gz · Last modified: (external edit)
