User Tools

Site Tools


windowscommands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
windowscommands [2021/05/25 13:26] z0hpvkwindowscommands [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====
-<code>+<code powershell>
 Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName (Get-Content -Path 'C:\Windows\Servers.txt') 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_OperatingSystem | Select CSName, Version, OSArchitecture, InstallDate
Line 28: Line 28:
  
 ====Tail==== ====Tail====
-<code>+<code powershell>
 Get-Content -Path catupgrd0.log -Tail 30 -Wait Get-Content -Path catupgrd0.log -Tail 30 -Wait
 </code> </code>
  
 ====Network Connectivity==== ====Network Connectivity====
-<code>+<code powershell> 
 +Test-Connection -ComputerName IAN-SERVER -Quiet
 Test-NetConnection -ComputerName IAN-SERVER -Port 1521 -InformationLevel Detailed Test-NetConnection -ComputerName IAN-SERVER -Port 1521 -InformationLevel Detailed
 </code> </code>
  
 ====Install RSAT==== ====Install RSAT====
- +Remote Server Administration Tools \\ 
-<code>+<code powershell>
 Get-WindowsCapability -Online | Where-Object {$_.Name -like "RSAT*"} 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.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0
Line 46: Line 47:
 Get-WindowsCapability -Online | Where-Object {$_.Name -like "Rsat.ActiveDirectory*"} Get-WindowsCapability -Online | Where-Object {$_.Name -like "Rsat.ActiveDirectory*"}
 </code>  </code> 
 +
 +====Environment Variables====
 +<code powershell>
 +$env:PATH = $env:PATH + ";C:\Program Files\Oracle\VirtualBox"
 +$env:PATH
 +Get-ChildItem env:
 +</code>
  
 =====Block USB Storage===== =====Block USB Storage=====
windowscommands.1621949172.txt.gz · Last modified: 2025/03/08 22:23 (external edit)