This is an old revision of the document!
Use these tools to generate a report see possibly analyze connection stability.
In windows search bar:
Quick Assist | Win + Shift + Q |
Network Settings | ncpa.cpl |
Printer Settings | control printers |
Programs/Features | appwiz.cpl |
God Mode (all the system options and control panel options in one place) | Name a folder God Mode.{ED7BA470-8E54-465E-825C-99712043E01C} Windows 7,8,10 |
Schedule Task | taskschd.msc |
User Accounts | netplwiz |
List printers, port(name) and driver | wmic printer get name,portname,drivername |
Get your public IP from CMD | nslookup myip.opendns.com resolver1.opendns.com |
Toggle Firewall | netsh advfirewall set allprofiles state {on,off} |
Firewall Rule | netsh advfirewall firewall add rule name="Open Port 3389" dir=in action=allow protocol=TCP localport=3389 |
PS: Registry Edit | Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" –Value 0 |
PS: Download and run file | powershell -command "Invoke-WebRequest https://contoso.com/file.exe -OutFile c:\temp\file.exe" .\file.exe |
PS C:\Users\philk> winget install --id OpenWhisperSystems.Signal --exact --name Signal Found Signal [OpenWhisperSystems.Signal] Version 5.23.1 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://updates.signal.org/desktop/signal-desktop-win-5.23.1.exe ██████████████████████████████ 121 MB / 121 MB Successfully verified installer hash Starting package install... Successfully installed
As you can see above you need to filter the search results to exactly one command before you can install. Note the use of --exact
and --id
. I recommend using search
first, and once you've narrowed down the result to the exact package just replace search
with install
.
Set time in UTC, not local.
reg.exe add HKLM\System\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1 /f
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet> <TimeZone>Central Standard Time</TimeZone> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>reg.exe add HKLM\System\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1 /f</CommandLine> <Description>Set UTC, not Local</Description> <Order>1</Order> </SynchronousCommand> </FirstLogonCommands>
1: Enable WSL
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
2: Download Distro
Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile Ubuntu.appx -UseBasicParsing
3: Install Distro
Add-AppxPackage .\Ubuntu_2004.2020.424.0_x64.appx
https://theitbros.com/activate-windows-with-kms-server/
slmgr.vbs /skms <KMS_server_name_or_IP>:1688
slmgr.vbs /ato
"bellStyle": "none"
Export drivers of this PC to a folder
mkdir c:\drivers Dism /online /export-driver /destination:c:\drivers
Create a mount directory we use later.
mkdir c:\mount
Get image index numbers. Choose one and use the index number in the following commands.
C:\Windows\system32>dism /Get-WimInfo /WimFile:C:\win\sources\install.esd Deployment Image Servicing and Management tool Version: 10.0.22000.1 Details for image : C:\win\sources\install.esd Index : 1 Name : Windows 11 Home Description : Windows 11 Home Size : 15,918,540,541 bytes Index : 2 Name : Windows 11 Home N Description : Windows 11 Home N Size : 15,229,765,223 bytes Index : 3 Name : Windows 11 Home Single Language Description : Windows 11 Home Single Language Size : 15,921,439,394 bytes Index : 4 Name : Windows 11 Education Description : Windows 11 Education Size : 16,201,186,274 bytes Index : 5 Name : Windows 11 Education N Description : Windows 11 Education N Size : 15,500,722,223 bytes Index : 6 Name : Windows 11 Pro Description : Windows 11 Pro Size : 16,198,033,078 bytes Index : 7 Name : Windows 11 Pro N Description : Windows 11 Pro N Size : 15,515,196,102 bytes The operation completed successfully.
So we can mount it. If install.wim already exists you can skip the converting parts.
C:\Windows\system32>dism /export-image /sourceimagefile:c:\win\sources\install.esd /sourceindex:6 /destinationimagefile:c:\win\sources\install.wim /compress:max /checkintegrity Deployment Image Servicing and Management tool Version: 10.0.22000.1 Exporting image [==========================100.0%==========================] The operation completed successfully.
C:\Windows\system32>dism /Get-WimInfo /WimFile:C:\win\sources\install.wim Deployment Image Servicing and Management tool Version: 10.0.22000.1 Details for image : C:\win\sources\install.wim Index : 1 Name : Windows 11 Pro Description : Windows 11 Pro Size : 16,198,033,078 bytes The operation completed successfully.
Mount the wim file so we can add drivers to the image.
C:\Windows\system32>dism /mount-image /imagefile:c:\win\sources\install.wim /index:1 /mountdir:c:\mount Deployment Image Servicing and Management tool Version: 10.0.22000.1 Mounting image [==========================100.0%==========================] The operation completed successfully.
Get drivers currently available on the image:
C:\Windows\system32>dism /image:c:\mount /get-drivers Deployment Image Servicing and Management tool Version: 10.0.22000.1 Image Version: 10.0.22000.318 Obtaining list of 3rd party drivers from the driver store... Driver packages listing: (No drivers found in the image matching the criteria) The operation completed successfully.
Recursively add all drivers we exported earlier.
C:\Windows\system32>dism /image:c:\mount /add-driver /driver:c:\drivers /recurse Deployment Image Servicing and Management tool Version: 10.0.22000.1 Image Version: 10.0.22000.318 Searching for driver packages to install... Found 49 driver package(s) to install. Installing 1 of 49 - c:\drivers\amdafd.inf_amd64_d3c85f9ffc8f27e3\amdafd.inf: The driver package was successfully installed. Installing 2 of 49 - c:\drivers\amdgpio2.inf_amd64_222780daa3df6776\amdgpio2.inf: The driver package was successfully installed. Installing 3 of 49 - c:\drivers\amdgpio3.inf_amd64_bb3599d0d57c5b6a\amdgpio3.inf: The driver package was successfully installed. Installing 4 of 49 - c:\drivers\amdpcidev.inf_amd64_a78dc4a7107371e0\amdpcidev.inf: The driver package was successfully installed. Installing 5 of 49 - c:\drivers\amdpsp.inf_amd64_db1b2556e686c32f\amdpsp.inf: The driver package was successfully installed. Installing 6 of 49 - c:\drivers\atihdwt6.inf_amd64_94940a9d88f1b7e7\AtihdWT6.inf: The driver package was successfully installed. Installing 7 of 49 - c:\drivers\dax3_ext_rtk.inf_amd64_48b1a64a97be82a3\dax3_ext_rtk.inf: The driver package was successfully installed. Installing 8 of 49 - c:\drivers\dax3_swc_aposvc.inf_amd64_8a0e1a9ed4e64cfd\dax3_swc_aposvc.inf: The driver package was successfully installed. Installing 9 of 49 - c:\drivers\dax3_swc_hsa.inf_amd64_dad87a1cbf6475cf\dax3_swc_hsa.inf: The driver package was successfully installed. Installing 10 of 49 - c:\drivers\fbnetfilter.inf_amd64_66cb55404aac1ea4\fbnetfilter.inf: The driver package was successfully installed. Installing 11 of 49 - c:\drivers\hdx_lenovoext_dolby_wrap_rtk.inf_amd64_0c86f5279fb25db3\HDX_LenovoExt_DOLBY_Wrap_RTK.inf: The driver package was successfully installed. Installing 12 of 49 - c:\drivers\hdxlv.inf_amd64_33d741b4292714b4\hdxlv.inf: The driver package was successfully installed. Installing 13 of 49 - c:\drivers\ibtusb.inf_amd64_0339afd5484824d4\ibtusb.inf: The driver package was successfully installed. Installing 14 of 49 - c:\drivers\ibtusb.inf_amd64_4b1697b39be551ea\ibtusb.inf: The driver package was successfully installed. Installing 15 of 49 - c:\drivers\ibtusb.inf_amd64_5ac76d0adb11ea62\ibtusb.inf: The driver package was successfully installed. Installing 16 of 49 - c:\drivers\ibtusb.inf_amd64_619cc1af188a76a6\ibtusb.inf: The driver package was successfully installed. Installing 17 of 49 - c:\drivers\ibtusb.inf_amd64_6fefd59ba482a8f9\ibtusb.inf: The driver package was successfully installed. Installing 18 of 49 - c:\drivers\ibtusb.inf_amd64_95df8c3bb90f6f82\ibtusb.inf: The driver package was successfully installed. Installing 19 of 49 - c:\drivers\ibtusb.inf_amd64_9ee7f2dcc906508e\ibtusb.inf: The driver package was successfully installed. Installing 20 of 49 - c:\drivers\ibtusb.inf_amd64_df75f8358301fa63\ibtusb.inf: The driver package was successfully installed. Installing 21 of 49 - c:\drivers\ibtusb.inf_amd64_ebe23e5c5a4f4d5f\ibtusb.inf: The driver package was successfully installed. Installing 22 of 49 - c:\drivers\imdriver.inf_amd64_6aeeaa56ff8f7568\imdriver.inf: The driver package was successfully installed. Installing 23 of 49 - c:\drivers\imdriver.inf_amd64_8db901e3b24f40f7\imdriver.inf: The driver package was successfully installed. Installing 24 of 49 - c:\drivers\lwcusb.inf_amd64_459003de9a01a958\lwcusb.inf: The driver package was successfully installed. Installing 25 of 49 - c:\drivers\mt7612us_rl.inf_amd64_75ab4556628c9849\mt7612us_RL.inf: The driver package was successfully installed. Installing 26 of 49 - c:\drivers\mtkbtfilter.inf_amd64_655d198b937ad3bc\mtkbtfilter.inf: The driver package was successfully installed. Installing 27 of 49 - c:\drivers\mtkwl6ex.inf_amd64_bf9dc54a385da8cf\mtkwl6ex.inf: The driver package was successfully installed. Installing 28 of 49 - c:\drivers\netrtwlane6.inf_amd64_dce51c10d97bcad4\netrtwlane6.inf: The driver package was successfully installed. Installing 29 of 49 - c:\drivers\netwtw04.inf_amd64_2138769cf9054610\Netwtw04.INF: The driver package was successfully installed. Installing 30 of 49 - c:\drivers\netwtw06.inf_amd64_0c4693ab21a73b9c\Netwtw06.INF: The driver package was successfully installed. Installing 31 of 49 - c:\drivers\netwtw08.inf_amd64_f5db5cb4b5d32fd4\Netwtw08.INF: The driver package was successfully installed. Installing 32 of 49 - c:\drivers\nvhda.inf_amd64_5705482660676f1a\nvhda.inf: The driver package was successfully installed. Installing 33 of 49 - c:\drivers\nvle.inf_amd64_85ad71859ca3102f\nvle.inf: The driver package was successfully installed. Installing 34 of 49 - c:\drivers\nvmoduletracker.inf_amd64_97c1f6d07bf18811\nvmoduletracker.inf: The driver package was successfully installed. Installing 35 of 49 - c:\drivers\nvswcfilter.inf_amd64_8cc2bbda619f7154\NVSWCFilter.inf: The driver package was successfully installed. Installing 36 of 49 - c:\drivers\nvvad.inf_amd64_7f1f5303e15cceff\nvvad.inf: The driver package was successfully installed. Installing 37 of 49 - c:\drivers\nvvhci.inf_amd64_8f7dbc4b83b3615c\nvvhci.inf: The driver package was successfully installed. Installing 38 of 49 - c:\drivers\prnms001.inf_amd64_202973c89a035606\prnms001.Inf: The driver package was successfully installed. Installing 39 of 49 - c:\drivers\prnms006.inf_amd64_c3bdcb6fc975b614\prnms006.inf: The driver package was successfully installed. Installing 40 of 49 - c:\drivers\prnms009.inf_amd64_620c281895426e89\prnms009.Inf: The driver package was successfully installed. Installing 41 of 49 - c:\drivers\realtekapo.inf_amd64_5dda0c4a7fc6c5a8\realtekapo.inf: The driver package was successfully installed. Installing 42 of 49 - c:\drivers\realtekhsa.inf_amd64_c6207b23d38d9dda\realtekhsa.inf: The driver package was successfully installed. Installing 43 of 49 - c:\drivers\realtekservice.inf_amd64_bb0c442560f99618\realtekservice.inf: The driver package was successfully installed. Installing 44 of 49 - c:\drivers\rt640x64.inf_amd64_4489d04fb4f89e86\rt640x64.inf: The driver package was successfully installed. Installing 45 of 49 - c:\drivers\rt640x64.inf_amd64_f16fe31b1e773396\rt640x64.inf: The driver package was successfully installed. Installing 46 of 49 - c:\drivers\rtkfilter.inf_amd64_688c9f808a266111\Rtkfilter.inf: The driver package was successfully installed. Installing 47 of 49 - c:\drivers\smbusamd.inf_amd64_e470528883cc6bc5\smbusamd.inf: The driver package was successfully installed. Installing 48 of 49 - c:\drivers\udcdriver.inf_amd64_343fb1c15fde4e5a\UdcDriver.inf: The driver package was successfully installed. Installing 49 of 49 - c:\drivers\udcdriver.inf_amd64_5326114c87786edd\udcdriver.inf: The driver package was successfully installed. The operation completed successfully.
Mount offline image and select index number.
Dism /Get-WimInfo /WimFile:D:\ISO_Files\Sources\install.wim Dism /Mount-Wim /WimFile:D:\ISO_Files\Sources\install.wim /index:8 /MountDir:c:\mount reg load HKLM\OFFLINE C:\mount\Windows\System32\Config\SYSTEM reg.exe add HKLM\OFFLINE\Setup\LabConfig reg.exe add HKLM\OFFLINE\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 reg.exe add HKLM\OFFLINE\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 reg.exe unload HKLM\OFFLINE
Unmount offline image.
C:\Windows\system32>dism /unmount-image /mountdir:c:\mount /commit Deployment Image Servicing and Management tool Version: 10.0.22000.1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully.
Convert install.wim back to install.esd. Skip if you never had an install.esd.
C:\Windows\system32>dism /export-image /sourceimagefile:c:\win\sources\install.wim /sourceindex:1 /destinationimagefile:c:\win\sources\install.esd /compress:recovery /checkintegrity Deployment Image Servicing and Management tool Version: 10.0.22000.1 Exporting image [==========================100.0%==========================] The operation completed successfully.
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment
Dism /Mount-Image /ImageFile:"C:\winpe_amd64\media\sources\boot.wim" /index:1 /MountDir:"C:\winpe_amd64\mount"