Windows notes¶
PowerShell commands¶
Cconnection a server on a port¶
To test connection to a server on a port - provides helpful output and also falls back to ping if TCP test fails.
Check Interface Metrics¶
Get-NetIPInterface -AddressFamily IPv4 | Sort-Object InterfaceMetric, InterfaceAlias | Format-Table InterfaceAlias, ifIndex, InterfaceMetric, ConnectionState
Hyper-V¶
Converting old VMware virtual disk¶
Download qemu-img from https://cloudbase.it/qemu-img-windows/
Example command:
qemu-img.exe convert -f vmdk "D:\Virtual Machines\TX2530EA (Windows 10)\TX2530EA.vmdk" -O vhdx -o subformat=dynamic "D:\Virtual Machines\TX2530EA (Windows 10)\TX2530EA.vhdx"
Windows¶
Disable Adobe Outlook add-ins¶
-
Registry
-> Set LoadBehavior to 0 -
Folders
-> Rename to _disabled
Clear recent RDP entries¶
Edit the list in this Registry key:
Registry command to remove excess Start menu items¶
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoStartMenuMorePrograms /t REG_DWORD /d 1 /f && taskkill /f /im explorer.exe && start explorer.exe
Windows 11 setup without network¶
- Press the “Shift + F10” keyboard shortcut at start to bring up the Command Prompt
- Then type the following command to bypass network requirements on Windows 11 and press Enter.
- This will enable the "I don't have a network connection" option which will let you complete setup and also create a local account.
Addressing power drain on laptop with Windows Modern Standby¶
- Open Registry Editor
- Navigate to the Power Settings Registry key using the following path:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\f15576e8-98b7-4186-b944-eafa664402d9 - Find the entry named "Attributes"
- Modify "Attributes" to where the value data equals "2".
- Once you’re done, press “OK”.
- Navigate to Control Panel >> Hardware and Sound >> Power Options >> Advanced Power Settings
- After opening the advanced battery settings, look under the "balanced" tab to find "Networking Connectivity in Standby"
- Turn this option off when on battery and apply your changes.