Helpful Windows Admin Tips


To launch Windows Update from the Windows Run dialog:

ms-settings:windowsupdate


Use Powershell to kill processes with a name filter:

Get-Process | Where-Object {$_.Path -like "*SOME-FILTER*"} | Stop-Process


See what time computer was booted up:

net statistics server


Restart or Shut Down a Remote Computer and Document the Reason (https://technet.microsoft.com/en-us/library/cc770416(v=ws.11).aspx)

shutdown /i


 

7 thoughts on “Helpful Windows Admin Tips”

  1. Get a list from the registry of all the software installed on your machine (PowerShell script):

    Get-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* |
    select DisplayName |
    Where-Object { $_.DisplayName.length -gt 0} |
    Sort-Object DisplayName -Unique

  2. List open files on a server/computer:

    Example with filename filter:
    Get-SmbOpenFile | Where-Object { $_.Path -Match “DLL”}

    Example with domain\username filter:
    Get-SmbOpenFile -ClientUserName “<>\<“

Leave a Reply

Your email address will not be published. Required fields are marked *