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
shutdown /i
(from https://technet.microsoft.com/en-us/library/cc770416(v=ws.11).aspx)
Using DISKPART from the command line to work on disk drives, volumes, partitions:
https://www.digitalcitizen.life/command-prompt-advanced-disk-management-commands
Activating Windows 10: https://www.howtogeek.com/245445/how-to-use-slmgr-to-change-remove-or-extend-your-windows-license/
Changing Windows Product Key After Install: http://tweaks.com/windows/39026/change-windows-product-key-after-install/
Windows Search error: “Search results aren’t quite ready yet, but we’re working on getting them together. Try back in a few minutes.”
Read original Windows 10 License Key using Power Shell:
1 |
Get-WmiObject -Query “Select * From SoftwareLicensingService” |
Then, read Windows Key from “OA3xOriginalProductKey” property from output above.
(from https://gallery.technet.microsoft.com/scriptcenter/Get-windows-10-digital-7653fae4)
PowerShell: Get a list from the registry of all the software installed on your machine
1 2 3 4 |
Get-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | select DisplayName | Where-Object { $_.DisplayName.length -gt 0} | Sort-Object DisplayName -Unique |
PowerShell: List open files on a server/computer
Example with filename filter:
1 |
Get-SmbOpenFile | Where-Object { $_.Path -Match “DLL”} |
Example with domain\username filter:
1 |
Get-SmbOpenFile -ClientUserName “<>\<“ |