User Tools

Site Tools


public:it:windows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:it:windows [2021/12/06 20:16] – [Make Registry Edits] philpublic:it:windows [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Windows ====== 
  
-===== Download ISO ===== 
- 
-  * [[https://www.microsoft.com/en-us/evalcenter/evaluate-windows-10-enterprise|Download Windows 10 Enterprise  Evaluation]] 
-  * [[https://www.microsoft.com/software-download/windows11| Download Windows 11 ]] 
-===== Network report ===== 
-Use these tools to generate a report see possibly analyze connection stability. 
-  * [[https://www.reddit.com/r/sysadmin/comments/kjike9/remote_users_internet_sucks_tells_me_to_fix_her/ggwxcn0?utm_source=share&utm_medium=web2x&context=3| Reddit Sauce]] 
-  * [[https://support.microsoft.com/en-us/windows/analyze-the-wireless-network-report-76da0daa-1db2-6049-d154-7bb679eb03ed| Analyze the Wireless Network Report]] 
-  * [[https://docs.microsoft.com/en-us/windows/client-management/advanced-troubleshooting-wireless-network-connectivity|Advanced troubleshooting wireless network connectivity]] 
- 
- 
-===== Shortcuts ===== 
- 
-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 %%'' | 
- 
- 
-===== Winget ===== 
- 
-  - Install the "App Installer" from the Microsoft Store 
-  - Then open a Terminal and the "winget" command should be available to you. 
- 
-<code> 
-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 
-</code> 
- 
-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 %%''. 
- 
- 
-===== Windows Clock Always wrong ===== 
- 
-Set time in UTC, not local. 
-<code> 
-reg.exe add HKLM\System\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1 /f 
-</code> 
- 
-<code> 
-     <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> 
-</code> 
- 
- 
-===== WSL ===== 
- 
-  * [[https://docs.microsoft.com/en-us/windows/wsl/install-manual|Manually download Windows Subsystem for Linux distro packages]] 
-  * [[https://docs.microsoft.com/en-us/windows/wsl/install-win10|Windows Subsystem for Linux Installation Guide for Windows 10]] 
- 
-==== Install ==== 
-1: Enable WSL 
-<code> 
-dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart 
-</code> 
- 
-2: Download Distro 
-<code> 
-Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile Ubuntu.appx -UseBasicParsing 
-</code> 
- 
-3: Install Distro 
-<code> 
-Add-AppxPackage .\Ubuntu_2004.2020.424.0_x64.appx 
-</code> 
- 
-==== X11 Forwarding ==== 
-  - [[https://sourceforge.net/projects/vcxsrv/|Install XcXsrv.]] 
-  - Launch XcXsrv by clicking 'XLaunch' on the desktop. It will run you through a setup process. Select "Multiple Windows".=> "Start no client" -> Extra settings (leave defaults) -> Finish 
-  - The Xserver should now be running in the system tray. 
-  - In WSL1: export DISPLAY=localhost:0.0 
-  - ssh -Y cnet@linux.cs.uchicago.edu 
-  - subl 
- 
- 
-===== Remove Windows Bloatware ===== 
- 
-  * https://www.bcuninstaller.com/ 
- 
- 
- 
-==== Activate KMS ==== 
- 
-https://theitbros.com/activate-windows-with-kms-server/ 
- 
-    slmgr.vbs /skms <KMS_server_name_or_IP>:1688 
- 
-    slmgr.vbs /ato 
-==== Windows Terminal ==== 
- 
-  * https://onelharrison.medium.com/how-to-mute-the-windows-terminal-bell-fee86af19ddb 
-    * in settings.json: defaults.bellStyle="none" 
-      * ''%% "bellStyle": "none" %%'' 
- 
- 
-===== Inject Drivers into install.esd/install.wim ===== 
- 
-  * [[https://www.tenforums.com/tutorials/95008-dism-add-remove-drivers-offline-image.html| Source]] 
- 
-Export drivers of this PC to a folder 
-<code> 
-mkdir c:\drivers 
-Dism /online /export-driver /destination:c:\drivers 
-</code> 
- 
-Create a mount directory we use later. 
-<code> 
-mkdir c:\mount 
-</code> 
- 
-Get image index numbers. Choose one and use the index number in the following commands. 
-<code> 
-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. 
-</code> 
- 
- 
-==== Mount install.wim/esd ==== 
- 
-=== Convert install.esd to install.wim === 
-So we can mount it. If install.wim already exists you can skip the converting parts. 
- 
-<code> 
-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. 
-</code> 
- 
- 
-=== Mount install.wim === 
-<code> 
-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. 
-</code> 
- 
-Mount the wim file so we can add drivers to the image. 
-<code> 
-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. 
-</code> 
- 
-Get drivers currently available on the image: 
-<code> 
-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. 
-</code> 
- 
-Recursively add all drivers we exported earlier. 
-<code> 
-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. 
-</code> 
- 
- 
-==== Disable Secure Boot and TPM checks ==== 
- 
-  * https://www.tenforums.com/tutorials/95002-dism-edit-registry-offline-image.html 
-  * https://support.microsoft.com/en-us/windows/windows-11-and-secure-boot-a8ff1202-c0d9-42f5-940f-843abef64fad 
- 
- 
-Mount offline image and select index number. 
-<code> 
-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 
-</code> 
-Unmount offline image. 
- 
-==== Unmount offline image ==== 
-<code> 
-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. 
-</code> 
- 
-Convert install.wim back to install.esd. Skip if you never had an install.esd. 
-<code> 
-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. 
-</code> 
- 
-===== Windows 11 ===== 
- 
-  * [[https://github.com/martinet101/ElevenClock|Show clock on multiple monitors]] 
- 
- 
-====== Windows PE ====== 
- 
-===== Download and Install ===== 
-  - https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install 
-    - Download and install the Windows ADK: adksetup.exe 
-    - Download and install the Windows PE add-on for the Windows ADK: adkwinpesetup.exe 
-  - Files located here: ''%%C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment%%'' 
- 
-===== Create Working Set ===== 
- 
-  * https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-create-usb-bootable-drive?view=windows-11 
- 
-  - Start the Deployment and Imaging Tools Environment as an administrator. 
-    - Start > Type "Deployment and Imaging Tools" > right-click Run as Administrator 
-  - copype amd64 C:\winpe_amd64 
- 
- 
-===== Mount and Customize Windows PE working set ===== 
- 
-  * https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-mount-and-customize?view=windows-11 
- 
-==== Mount ==== 
- 
-<code> 
-Dism /Mount-Image /ImageFile:"C:\winpe_amd64\media\sources\boot.wim" /index:1 /MountDir:"C:\winpe_amd64\mount" 
-</code> 
- 
-==== Integrate Drivers ==== 
- 
-  - Get virtio drivers 
-    - https://github.com/virtio-win/virtio-win-pkg-scripts (latest ISO) 
-    - Mount to windows 
-  - Get Legion Drivers on nextcloud: techsupport/drivers/lenovo-amd-ryzen-rtx3060-driver-export 
-    - Delete all folders with the prefix 'nv*'. These are the nvidia drivers and we don't care about those. 
-  - Copy virtio and legion drivers to C:\drivers. Create the directory if necessary. 
-  - Recursively add all drivers from C:\drivers to the mounted WinPE image. 
-    - ''%% dism /image:c:\winpe_amd64\mount /add-driver:c:\drivers /recurse %%'' 
-    - Some will fail because they are not signed. That's ok. 
- 
-==== Make Registry Edits ==== 
-Turn off TPM and SecureBoot check so we have the option to install whatever we want. 
-<code> 
-reg load HKLM\OFFLINE  C:\winpe_amd64\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 
-</code> 
- 
-==== Unmount and commit changes ==== 
- 
-<code> 
-dism /unmount-image /mountdir:c:\winpe_amd64\mount /commit 
-</code> 
public/it/windows.1638843371.txt.gz · Last modified: 2021/12/06 20:16 by phil