Delete health partition
disk part override
See When Your PC Last Rebooted
Get-EventLog -LogName System |? {$_.EventID -in (6005,6006,6008,6009,1074,1076)} | ft TimeGenerated,EventId,Message -AutoSize -wrap
source: https://lifehacker.com/use-event-viewer-to-tell-when-your-pc-last-rebooted-5459919
See when a user password will expire (or if it already has). Replace <username> with the end user and no brackets.
net user <username> /domain
Commands for fixing local network issues:
netsh int ip reset
netsh winsock reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
NSLookup for Powershell command:
Resolve-DNSName
See hidden, non-present, system devices in device manager. From an admin cmd prompt type:
Set devmgr_show_nonpresent_devices=1
Devmgmt.msc
In Device Manager under view check show hidden devices
A very basic and useful tool to check network connectivity is obviously ping, but there are many instances where you need to test connectivity over a specific port.
Powershell can do this for you with the Test-NetConnection connection or TNC for short.
TNC <destination server> -p <port number>
or
Test-NetConnection <IP> -Port <port number>
Additional information and options for TNC can be found on Microsoft's docs: https://docs.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection?view=win10-ps
Shortcuts from the RUN window (shortcut Win+R). Type without the brackets
Open the Windows 10 drive < \ >
Open the Home folder of the current user < . >
Open the Users folder < .. >
Open Control Panel < control >
Open Programs and Features < appwiz.cpl >
Open Disk Cleanup utility < cleanmgr >
Adjust your mouse settings < main.cpl >
Access System Information < msinfo32 >
Timestamp Ping Results
The easiest way to get timestamped ping results is from powershell. Use the below command and change LOCALHOST to your device name or IP.
Extra's in this that you can keep/change:
-t means continuous. If you remove -t this will ping 4 times and stop.
-l allows you to change the amount of data you are sending during your ping. Normally you don't need to add this, the default in 32 bytes. Adding size can help troubleshooting network issues with larger data blocks.
ping.exe -t -l 1500 LOCALHOST|Foreach{"{0} - {1}" -f (Get-Date),$_}
If you want to save this to a file add the following and replace C:\location\file.txt with the directory you want to save your file. You will not see the print out on the screen, but can open the file and see the results.
ping.exe -t -l 1500 LOCALHOST|Foreach{"{0} - {1}" -f (Get-Date),$_} > C:\location\file.txt
SELECT @@VERSION | Full version of SQL