User Tools

Site Tools


windows

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
windows [2020/05/19 09:59]
c0rn3j [Post-install script]
windows [2020/12/28 14:53] (current)
c0rn3j [Download]
Line 1: Line 1:
 # Powershell setup scripts # Powershell setup scripts
-## Activate Office 
-<code powershell> 
-# https://github.com/SystemRage/py-kms/wiki/Office-GVLK-Keys 
-# Office 2019 Pro Plus 
-cd 'C:\Program Files\Microsoft Office\Office16' 
-cscript ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP 
-cscript ospp.vbs /sethst:192.168.1.40 
-cscript ospp.vbs /act 
-</code> 
- 
-## Activate Windows 
-<code powershell> 
-# https://docs.microsoft.com/en-us/windows-server/get-started/kmsclientkeys 
-# W10 Pro 
-slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX 
-# W10 Edu  
-slmgr /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 
-# Set KMS server to a LAN one 
-slmgr /skms 192.168.1.40:1688 
-# Force activation now 
-slmgr /ato 
-</code> 
- 
 ## Post-install script ## Post-install script
 <code powershell> <code powershell>
 # Enable Hyper-V on Pro or Edu # Enable Hyper-V on Pro or Edu
-Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All+Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All -NoReboot
 # Disable Automatic Install of Suggested Apps  # Disable Automatic Install of Suggested Apps 
 reg add HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager /v SilentInstalledAppsEnabled /t REG_DWORD /d 0 /f reg add HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager /v SilentInstalledAppsEnabled /t REG_DWORD /d 0 /f
Line 64: Line 41:
 # Disable UAC prompts # Disable UAC prompts
 reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
 +# Delete OneDrive from startup
 +reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v OneDrive /f
 +# Delete Windows Defender tray from startup
 +reg delete HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v SecurityHealth /f
 +# Disable Skype from startup
 +reg add "HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\Microsoft.SkypeApp_kzf8qxf38zg5c\SkypeStartup" /v State /t REG_DWORD /d 0 /f
 # Delete all taskbar shorcuts to get rid of Edge, Store and more # Delete all taskbar shorcuts to get rid of Edge, Store and more
 reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband /v Favorites /f reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband /v Favorites /f
Line 80: Line 63:
 # Bloat # Bloat
 #choco install -y mumble googlechrome notepadplusplus 7zip crystaldiskmark crystaldiskinfo keepassxc sharex openssh telegram windirstat openjdk8 everything teamviewer smplayer libreoffice-fresh nomacs hwinfo qbittorrent rufus #choco install -y mumble googlechrome notepadplusplus 7zip crystaldiskmark crystaldiskinfo keepassxc sharex openssh telegram windirstat openjdk8 everything teamviewer smplayer libreoffice-fresh nomacs hwinfo qbittorrent rufus
 +</code>
 +
 +## Activate Windows
 +First install vlmcsd and OpenVPN's tap driver for a 10.10.10.10 tunnel, as Windows will refuse to authenticate against a KMS server running on localhost
 +<code powershell>
 +choco install -y tapwindows
 +# https://github.com/Wind4/vlmcsd/releases/latest
 +# Download the vlmcsd binaries archive and extract binaries/binaries/Windows/intel/vlmcsd-Windows-x64.exe to C:\install\vlmcsd.exe
 +New-Item -ItemType Directory -Force -Path C:\install
 +Invoke-WebRequest -Uri https://cloud.rys.pw/s/H3WeZ37ntKxGZ2s/download -OutFile C:\install\vlmcsd.exe
 +# Install the service
 +C:\install\vlmcsd.exe -s -U /n -O .
 +netsh advfirewall firewall add rule name="vlmcsd" dir=in action=allow program=C:\install\vlmcsd.exe enable=yes
 +# Start the service (it's enabled, reboot would also start it)
 +net start vlmcsd
 +</code>
 +<code powershell>
 +# https://docs.microsoft.com/en-us/windows-server/get-started/kmsclientkeys
 +# https://docs.microsoft.com/en-us/windows/deployment/upgrade/windows-10-edition-upgrades#upgrade-using-a-command-line-tool
 +# If you do not have Home(Core) installed, you can switch between different editions (not Home)
 +# You can get a popup with available editions via 'slmgr /dlv all'
 +# Get just the editions by copypasting the box and running 'grep Name boxtext.txt | sort | uniq'
 +# Switch edition to Edu
 +Cscript.exe c:\windows\system32\slmgr.vbs /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
 +
 +# W10 Edu 
 +slmgr /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
 +# Set KMS server to a LAN one
 +#slmgr /skms 192.168.1.40:1688
 +slmgr /skms 10.10.10.10:1688
 +# Force activation now
 +slmgr /ato
 +# You should get a box in a few seconds that the activation passed. You can see the license info with
 +slmgr /dli
 +</code>
 +
 +## Activate Office
 +<code powershell>
 +# https://py-kms.readthedocs.io/en/latest/Keys.html#office-2019
 +# Office 2019 Pro Plus
 +cd 'C:\Program Files\Microsoft Office\Office16'
 +cscript ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
 +cscript ospp.vbs /sethst:10.10.10.10
 +cscript ospp.vbs /act
 </code> </code>
  
Line 86: Line 113:
 You can download latest .ISO of Win 10, 8.1 and 7 [directly from Microsoft's servers](https://www.microsoft.com/en-us/software-download/windows10ISO). Note that you'll have to spoof the user agent if you're on Windows, as you'll get redirected to the Media creator tool otherwise. You can download latest .ISO of Win 10, 8.1 and 7 [directly from Microsoft's servers](https://www.microsoft.com/en-us/software-download/windows10ISO). Note that you'll have to spoof the user agent if you're on Windows, as you'll get redirected to the Media creator tool otherwise.
  
-The W10 ISO contains both Home and Pro edition which you get to choose during installation. If you want to install a W8.1/7 version that is not available directly from MS, you could possibly (ab)use the .../sources/ei.cfg file to change installed version that is going to be installed.+The ISOs provided by MS contain all the edition (sans enterprise pretty much), but you might have to add.../sources/ei.cfg file to show them all.
  
 <del>You can download older versions of windows and different versions of W10 through [this method](http://www.techfleece.com/2015/12/23/download-official-isos-of-windows-7-windows-8-1-or-windows-10-legally-and-for-free/)</del> <del>You can download older versions of windows and different versions of W10 through [this method](http://www.techfleece.com/2015/12/23/download-official-isos-of-windows-7-windows-8-1-or-windows-10-legally-and-for-free/)</del>
  
-If you want something like Enterprise versions and such you'll have to resort to torrenting them and <del>[THEN CHECKING THE HASHES provided by Microsoft](https://msdn.microsoft.com/subscriptions/securedownloads/)</del>.+If you want Enterprise, one way to get it is to install Pro/Edu and then switch the license, as per the powershell example above.
  
 https://tb.rg-adguard.net https://tb.rg-adguard.net
Line 119: Line 146:
  
 4) Activate W10 with [KMSpico](http://forums.mydigitallife.info/threads/65739-KMSpico-Official-Thread). Defender will complain about it, allow it manually in Defender after installing it. Alternatively you can use [vlmcsd](https://forums.mydigitallife.info/threads/50234-Emulated-KMS-Servers-on-non-Windows-platforms) if you want an open source, more hardcore solution. 4) Activate W10 with [KMSpico](http://forums.mydigitallife.info/threads/65739-KMSpico-Official-Thread). Defender will complain about it, allow it manually in Defender after installing it. Alternatively you can use [vlmcsd](https://forums.mydigitallife.info/threads/50234-Emulated-KMS-Servers-on-non-Windows-platforms) if you want an open source, more hardcore solution.
- 
- 
windows.1589882387.txt.gz ยท Last modified: 2020/05/19 09:59 by c0rn3j