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
pub:windows_setup [2024/05/09 06:48] derekpub:windows_setup [2025/04/14 07:11] (current) derek
Line 1: Line 1:
-= Install Windows+== Install Windows 
 +* [[?do=export_xhtml|export]] to https://repo.sxl.net/install_windows.html
 * [[Windows 7]] * [[Windows 7]]
 * Win10 update assistant https://is.gd/OK28yz * Win10 update assistant https://is.gd/OK28yz
 * Win11 update assistant https://is.gd/nLSnJd * Win11 update assistant https://is.gd/nLSnJd
  
-== OOBE +=== OOBE 
- +<WRAP colmedium> 
-Home edition bypass ms account > Shift-F10 > ''OOBE\BYPASSNRO'' +OOBE bypass  
-[[check hardware info]] +* <key>Shift-F10</keythen ''OOBE/BYPASSNRO'' 
-uninstall bloatware ''start appwiz.cpl'' +defaults apps ''control /name Microsoft.DefaultPrograms'' 
-rename computer, join domain, turn on system protection ''start sysdm.cpl''  +language ''control /name Microsoft.Language'' 
-create local admin Owner ''net user /add Owner ; net localgroup administrators Owner /add'' or ''control userpasswords2'' or ''control userpasswords'' +* regional ''intl.cpl'' 
-restart computer ''shutdown /r /t 0'' +date/time ''timedate.cpl'' 
-* windows update ''control update'' +Network connections ''ncpa.cpl'' 
-language & regional settings +* firewall ''firewall.cpl'' 
-date/time: ''start timedate.cpl'' +* Printers ''control.exe printers'' 
-Network properties: ''start ncpa.cpl'' +programs add/remove ''appwiz.cpl'' 
-Printers: ''control printers'' +* windows features ''OptionalFeatures.exe'' 
-* user management ''control userpasswords2'' or ''control userpasswords'' +system propoerties ''sysdm.cpl'' 
-create local admin Owner +device manager ''devmgmt.msc'' 
 +restart computer ''shutdown.exe /r /t 0'' 
 +windows update ''control.exe update'' 
 +* user management  
 +''control.exe userpasswords''  
 +''control.exe userpasswords2''  
 +''lusrmgr.msc'' 
 +</WRAP>
  
 +=== create local admin Owner
   net user /add Owner /y   net user /add Owner /y
   net localgroup administrators Owner /add   net localgroup administrators Owner /add
   net user Owner "" /passwordreq:no /expires:never #empty password   net user Owner "" /passwordreq:no /expires:never #empty password
-  #done 
-== Regional 
  
-* PS policy ''Set-ExecutionPolicy RemoteSigned -Force''        +=== set language 
-* HK CT ''irm repo.sxl.net/bin/set-lang-hkct.ps1 | iex''   +  Set-ExecutionPolicy Bypass -Force 
-* HK EN ''irm repo.sxl.net/bin/set-lang-hken.ps1 | iex''   +  $repo="http://repo.sxl.net/_h/bin/
-* HK EN+CT ''irm repo.sxl.net/bin/set-lang-hkenct.ps1 | iex'' +  $drv="c:\drv"; $null=(mkdir -Force "$drv"); cd "$drv" 
-* CN ''irm repo.sxl.net/bin/set-lang-cn.ps1 | iex''     +  $f="drv-setlang.ps1"; iwr "$repo/$f" -outfile "$f"; & "./$f" help 
-* JP ''irm repo.sxl.net/bin/set-lang-jp.ps1 | iex''     +  .\drv-setlang.ps1 us
-* US ''irm repo.sxl.net/bin/set-lang-us.ps1 | iex'' +
-* Manually set <wrap hi>timezone</wrap> if not in HK+
  
 +== ESSENTIALS
  
-== Essentials +=== Essential DRV
- +
-=== prepare \DRV +
 <code powershell> <code powershell>
-# prepare powershell +<# prepare DRV & utils #> 
-Set-ExecutionPolicy RemoteSigned -Force +Set-ExecutionPolicy Bypass -Force 
-if(!(Test-Path $profile) ) { New-Item -ItemType File -Path $profile -Force +$repo="http://repo.sxl.net/_h/bin" 
-Add-Content $PROFILE.CurrentUserAllHosts "`$host.PrivateData.ErrorForegroundColor = 'Magenta'+$drv="c:\drv"; $null=(mkdir -Force "$drv"); cd "$drv" 
- +$f="curl.exe"; if(!(Get-Command $f -EA SilentlyContinue )) 
-# get curl if not exists +  Invoke-WebRequest "$repo/$f" -outfile "$env:windir\$f" 
-if ((Get-Command "curl.exe" -ErrorAction SilentlyContinue) -eq $null)  +$f="7za.exe"; curl.exe -LO "$repo/$f
-{ iwr "https://repo.sxl.net/bin/curl.exe" -outfile "$env:windir\curl.exe" +$f="caffeine.exe"; curl.exe -LO "$repo/$f" 
- +& "c:\drv\caffeine.exe" -stes -replace 
-prepare drv  +$f="drv-mail2sys.ps1"; curl.exe -LO "$repo/$f" 
-mkdir -force c:\drv sl c:\drv +$f="drv-setlang.ps1"; curl.exe -LO "$repo/$f" 
-curl.exe -LO "https://repo.sxl.net/bin/aria2c.exe+Add-Content "$env:windir\reboot.cmd" "shutdown.exe /r /t 0"  
-curl.exe -LO "https://repo.sxl.net/bin/7za.exe"+### windows settings 
 +Enable-ComputerRestore -Drive C: -EA SilentlyContinue #System protection 
 +### set registry mailpw 
 +$p="HKLM:\SOFTWARE\SXLnet"New-item -Path "$p" -EA SilentlyContinue 
 +New-ItemProperty "$p" -Name 'pw' -Value "A13c0BRpgWFWXQmi0lB2" -Force | Out-Null 
 +### Disable OOBE Lets Finish Setting Up 
 +$k="HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" 
 +reg.exe add $k /v SubscribedContent-310093Enabled /t REG_DWORD /d 1 /f 
 +### Powershell PROFILE 
 +$f="$PROFILE"; if(!(Test-Path $f)) { New-Item $f -Force } 
 +$re='\$\S+ErrorForegroundColor\s*=' 
 +(Get-Content $f) | Select-String $re -NotMatch | Set-Content $f 
 +'$host.PrivateData.ErrorForegroundColor="Magenta"' | Add-Content $f 
 +(Get-Content $f) | Where-Object {$_ -ne ""} | Set-Content $f # del blank lines 
 +. "$PROFILE" # source profile 
 +Get-Content $PROFILE 
 +. $PROFILE 
 +### Windows defender 
 +if ((Get-MpComputerStatus -EA SilentlyContinue).AntivirusEnabled) { 
 +  Set-MpPreference -EnableControlledFolderAccess Disabled 
 +  Set-MpPreference -DisableEmailScanning $False 
 +  Set-MpPreference -UILockdown $False 
 +  Set-MpPreference -PUAProtection Enabled 
 +  #$d="c:\drv\no_avscan"; mkdir -Force $d; cd $d; Set-MpPreference -ExclusionPath $d 
 +
 +### keep this session alive 
 +$f="caffeine.exe"; if (!(Test-Path "$f")) {curl.exe -LO "$repo/$f"} 
 +& "./$f-stes -replace 
 +### Making pcinfo 
 +#$f="drv-pcinfo.ps1"; curl.exe -LO "$repo/$f"; & "./$f"
  
-#mail2sys +### Refresh environment 
-Write-Output "A13c0BRpgWFWXQmi0lB2| Out-File -FilePath "mail2sys.key-Force -NoNewline +$env:Path=[System.Environment]::GetEnvironmentVariable("Path","Machine" 
-curl.exe -LO "https://repo.sxl.net/bin/mail2sys.ps1" +$env:Path+=";"+[System.Environment]::GetEnvironmentVariable("Path","User" 
-curl.exe -LO "https://repo.sxl.net/bin/mail2sys.sh+<# done #>
- +
-#done+
 </code> </code>
  
-=== prepare DRV (winget) +=== install/upgrade chocolatey 
 +* [[chocolatey]]
 <code powershell> <code powershell>
 +$d="c:\drv"; $null=(mkdir -Force "$d"); cd "$d"
 +Set-ExecutionPolicy Bypass -Scope Process -Force
 +[System.Net.ServicePointManager]::SecurityProtocol = `
 +  [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
 +$u="https://community.chocolatey.org/install.ps1"
 +if (Get-Command choco -EA SilentlyContinue ) { choco upgrade chocolatey } `
 +else {iex ((New-Object System.Net.WebClient).DownloadString($u))}
 +Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
 +refreshenv
 +# fix history problems
 +$p="sudo"; if ( choco list --lo -r -e "$p" ) { choco uninstall "$p" }
 +$p="gsudo"; if ( choco list --lo -r -e "$p" ) { choco uninstall "$p" }
 +$p="choco-cleaner"; if ( choco list --lo -r -e "$p" ) { choco uninstall "$p" }
 +$p="teamviewer"; if ( choco list --lo -r -e "$p" ) { choco uninstall "$p" }
 +$p="teamviewer.host"; if ( choco list --lo -r -e "$p" ) { choco uninstall "$p" }
 +# config chocolatey
 +$env:ChocolateyToolsLocation="$env:ProgramData\tools"
 +setx.exe ChocolateyToolsLocation $env:ProgramData\tools
 +choco feature enable -n allowGlobalConfirmation
 +choco feature enable -n useRememberedArgumentsForUpgrades
 +refreshenv
 +choco upgrade chocolatey
 +# install essentials
 +choco install 7zip.commandline wget curl aria2 gsudo nircmd
 +"`nImport-Module 'gsudoModule'" | Add-Content $PROFILE
 +choco upgrade all
 +</code>
  
 +=== choco cleaner
 +<code>
 +choco upgrade all
 +choco install choco-cleaner  --params "'/NOTASK:TRUE'"
 +choco-cleaner
 +choco uninstall choco-cleaner; 
 +#done
 </code> </code>
  
-=== winget+=== winget install/upgrade
 <code powershell> <code powershell>
 # install/fix/upgrade winget # install/fix/upgrade winget
-mkdir -force c:\drv ; sl c:\drv +$repo="http://repo.sxl.net/_h/bin"; $f="drv-winget.ps1" 
-curl.exe -Lo "winget.msixbundle" "https://aka.ms/getwinget+$drv="c:\drv"$null=(mkdir -Force "$drv"); cd "$drv" 
-Add-AppxPackage winget.msixbundle -ForceApplicationShutdown +Invoke-WebRequest "$repo/$f-outfile "$f";"./$f
-echo Y | winget list+./drv-winget.ps1 init 
 +#./drv-winget.ps1 upgrade
 # #
 </code> </code>
  
-* upgrade all: ''winget upgrade --all --silent'' +=== hardware 
-* chocolatey: ''winget install Chocolatey.Chocolatey'' +vmware
- +
- +
-=== aspia+
  
 +  choco install vmware-tools
 +  
 +=== PS Windows Update
 <code powershell> <code powershell>
-mkdir -force c:\drv ; sl c:\drv +### PS Windows Update 
-$repo = "https://repo.sxl.net/proj/remote/aspia" +Install-PackageProvider -Name NuGet -Force -Confirm:$false 
-$ProgressPreference = 'SilentlyContinue' +Install-Module PSWindowsUpdate -Force -Confirm:$false 
-iwr "$repo/aspia.json" -outfile "aspia-host-config.json" +Add-WUServiceManager -MicrosoftUpdate -Confirm:$false 
-iwr "$repo/aspia-host-2.6.5-x86_64.msi" -outfile "aspia-host.msi" +Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -IgnoreReboot 
-msiexec.exe /i aspia-host.msi /qb | Out-Null +Get-WindowsUpdate -IgnoreReboot 
-$id=(& "$env:ProgramFiles\Aspia\Host\aspia_host_service.exe" --host-id) +#
-write-host "Host ID = $id" +
-done+
 </code> </code>
  
-=== quickq+== Backups 
 +* Iperius - https://www.iperiusbackup.com/ 
 +* Cobian - https://www.cobiansoft.com/ ''choco install cobian-backup'' 
 +* Duplicati - https://www.duplicati.com/ [[sxl:duplicati]]
  
-  mkdir -force c:\drv ; sl c:\drv +=== Enable File History 
-  curl.exe -LO https://d.asdfgh.win/quickq/download/win32-quickq.exe +* windows explorer, right-click drive, configure Shadow copies 
-  #done+* Enable shadow copies on the drive (e.g C:\ or D:\) 
 +* click Settings > Max Size Limit (example: 20GB=20480MB; 100GB=102400MB, 400GB=409600MB) 
 +https://cdn.sxl.net/sharex/2018/20180613190536.jpg 
 +* Change schedule: Daily, 1PM and 9PM 
 +* https://cdn.sxl.net/sharex/2018/20180613191027.jpg
  
-=== install chocolatey +=== Veeam agent 
-* [[chocolatey]]+  <# install veeam agent #> 
 +  choco install veeam-agent --pin 
 +  #
  
-<code powershell+  <# create recovery ISO #
-# install chocolatey +  & "$env:ProgramFiles\Veeam\Endpoint Backup\Veeam.EndPoint.Manager.exe" /createrecoverymediaiso  
-Set-ExecutionPolicy Bypass -Scope Process -Force +== COMMON
-[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 +
-iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))+
  
-# config chocolatey +=== choco install apps
-choco feature enable -n allowGlobalConfirmation +
-choco feature enable -n useRememberedArgumentsForUpgrades +
-Write-Output "`nImport-Module 'gsudoModule'" | Add-Content $PROFILE +
-install essentials +
-choco install 7zip.commandline wget curl aria2 gsudo nircmd choco-cleaner+
  
-#choco install peazip.install --version 9.2.0 +  <choco apps #> 
-#choco install grep which peazip.install choco-cleaner +  choco install peazip.install # open, set assoc > standard, set lang 
-done +  choco install pasteintofile ; PasteIntoFile /filename yyyyMMdd-HHmmss 
-</code>+  choco install file-converter  
 +  choco install vlc  
 +  choco install xnviewmp.install 
 +  #
  
-=== upgrade chocolatey+=== rustdesk
  
-<code powershell+download exe on desktop 
-choco uninstall sudo +  <# rustdesk.exe on desktop#
-# config chocolatey +  choco install dra  
-choco feature enable -n allowGlobalConfirmation +  $repo="rustdesk/rustdesk" 
-choco feature enable -n useRememberedArgumentsForUpgrades +  $tag="rustdesk-{tag}-x86_64.exe" 
-choco upgrade chocolatey +  $out=[Environment]::GetFolderPath("CommonDesktopDirectory"
-# install essentials +  dra download $repo --select $tag --output $out\rustdesk.exe 
-choco install 7zip.commandline wget curl aria2 gsudo nircmd choco-cleaner +  # 
-Write-Output "`nImport-Module 'gsudoModule'| Add-Content $PROFILE +rustdesk install  
-choco upgrade all +  <# install rustdesk #> 
-choco-cleaner +  $rd=[Environment]::GetFolderPath("CommonDesktopDirectory"
-# +  $rd+="\rustdesk.exe" 
-</code>+  & "$rd" --silent-install 
 +  while (Test-Path "$rd") { Start-Sleep 1; Remove-Item "$rd" -Force } 
 +  <# set rustdesk password #> 
 +  $rd="$env:ProgramFiles\RustDesk\rustdesk.exe" 
 +  while (!(Test-Path "$rd")) { Start-Sleep 1 } 
 +  & $rd --install-service 
 +  while (!(Get-Service "Rustdesk" -EA SilentlyContinue)) { Start-Sleep 1 } 
 +  & $rd --password Super@123 
 +  & $rd --option allow-remote-config-modification Y 
 +  & $rd --get-id | Out-String 
 +  #
  
-=== teamviewer+uninstall winget 
 +  <# uninstall rustdesk #> 
 +  winget uninstall rustdesk.rustdesk 
 +  # 
 + 
 +=== aspia install/upgrade 
 +install/upgrade
  
-* QuickSupport 
 <code powershell> <code powershell>
-$tld = "com" +## download 
-if (Get-WinUserLanguageList)[0].LanguageTag -eq "zh-Hans-CN" ) $tld = "cn} +$drv="c:\drv"; $null=(mkdir -Force "$drv"); cd "$drv" 
-$url = "https://download.teamviewer.$tld/download/TeamViewerQS.exe"; echo $url +$repo="https://repo.sxl.net/_h/proj/
-$out="$([Environment]::GetFolderPath('Desktop'))\TeamViewerQS.exe" +curl.exe -LO "$repo/remote/aspia-host-2.7.0-x86_64.msi" 
-curl.exe -Lo "$out" "$url+#$url="https://github.com/dchapyshev/aspia/releases/download
-iex "$desktop\TeamViewerQS.exe" +#curl.exe -LO "$url/v2.7.0/aspia-relay-2.7.0-x86_64.msi" 
-open it, ACCEPT LICENSE+curl.exe -LO "$repo/remote/aspia/aspia3.json" 
 +Start-Process msiexec.exe "/qb /i aspia-host-2.7.0-x86_64.msi" -Wait 
 +## install/upgrade service 
 +$d="$env:ProgramFiles\Aspia\Host" 
 +& "$d\aspia_host.exe" --import=c:\drv\aspia3.json --silent 
 +& "$d\aspia_host_service.exe" --stop 
 +& "$d\aspia_host_service.exe--remove 
 +"$d\aspia_host_service.exe--install 
 +"$d\aspia_host_service.exe--start 
 +"$d\aspia_host_service.exe" --version 
 +& "$d\aspia_host_service.exe" --host-id 
 +#done
 </code> </code>
 +uninstall
 +  winget uninstall "Aspia Host"
 +  # winget uninstall "ARP\Machine\X64\{152430E2-C5E5-4086-A24B-A733C1B693C6}"
  
-* Full: ''choco install teamviewer'' or Host ''choco install teamviewer.host'' +=== customize win10/11
-* (Gear) ⚙️ > General  +
-  * Start TV with Windows > enable +
-  * Your display name > change +
-  * Incoming LAN connections > Accept +
-  * Assign to account > dxxxx@sxl.net +
-* (Gear) ⚙️ > Advanced +
-  * Automatically minimize local TeamViewer Panel +
-  * Full access control when a partner is connecting to the Windows logon screen +
-  * Personal Password ''whoSxxxx@xxx'' +
- +
-=== dontsleep +
- +
-  choco install dontsleep.install +
-  dontsleep_x64.exe -bg block_standby=1 block_screensaver=1 block_shutdown=0 block_logoff=0 +
-  # done +
-   +
- +
-=== some explorer hacks +
 <code powershell> <code powershell>
 +# explorer
 $p="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" $p="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
 Set-Itemproperty -path "$p" -Name "HideFileExt" -value 0 #show file exts Set-Itemproperty -path "$p" -Name "HideFileExt" -value 0 #show file exts
 Set-ItemProperty -Path "$p" -Name "TaskbarMn"   -Value 0 #hide win11 chat Set-ItemProperty -Path "$p" -Name "TaskbarMn"   -Value 0 #hide win11 chat
-$p="HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Feeds" +# win10 disable news feed (old method) 
-Set-ItemProperty -Path "$p" -Name "ShellFeedsTaskbarViewMode" -Value 2 +$k="HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Feeds" 
-Write-Output Y | winget uninstall --id 9MSSGKG348SP  uninstall win11 widgets +Set-ItemProperty -Path "$k" -Name "ShellFeedsTaskbarViewMode" -Value 2 -EA SilentlyContinue 
-stop-process -name explorer -force +# win10 disable news feed (after 2024) 
-#done+$url="https://repo.sxl.net/_h/bin/drv-disable-w10news.ps1" 
 +& ([ScriptBlock]::Create((Invoke-RestMethod $url))) 
 +# win11 enable classic context menu 
 +$k="HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" 
 +New-Item -Path "$k\InprocServer32" -Value "" -Force 
 +#Remove-Item -Path "$k\InprocServer32" -Force # Undo 
 +# win11 start menu to left 
 +$k="HKCU:\software\microsoft\windows\currentversion\explorer\advanced" 
 +Set-ItemProperty -Path "$k" -Name "TaskbarAl" -Type "DWord" -Value 0 
 +# win11 remove news widget (Windows web experience Pack) 
 +winget uninstall "Windows web experience Pack"  
 +winget uninstall --id 9MSSGKG348SP --accept-source-agreements 
 +restart windows explorer 
 +Get-Process explorer | Stop-Process 
 +#
 </code> </code>
  
-=== Common+=== adobe reader 
 +choco install 
 +  <# choco install adobe reader #> 
 +  mkdir -force c:\drv ; Set-Location c:\drv 
 +  choco install adobereader --pin --params '"/DesktopIcon /NoUpdates"' 
 +  # MANUALLY set as default
  
-{{{ +install asian font pack 
-choco install file-converter  +  <# install asian font pack #> 
-choco install pasteintofile ; PasteIntoFile /filename yyyyMMdd-HHmmss +  $u="https://ardownload3.adobe.com/pub/adobe/acrobat/win/AcrobatDC" 
-# +  curl.exe -o adobefont.msi "$u/2300820421/AcroRdrALSDx64_2300820421_all_DC.msi" 
-choco install peazip.install # open, set assoc standard, set lang +  msiexec.exe /i adobefont.msi /qb 
-choco install vlc  +  #
-choco install xnviewmp.install +
-# +
-}}} +
-=== adobe reader+
  
 +config adobe reader
  
 <code powershell> <code powershell>
-choco install adobereader --params '"/DesktopIcon"'+<# config adobe reader #>
 $subkeys = @("HKLM\SOFTWARE","HKLM\SOFTWARE\WOW6432Node") $subkeys = @("HKLM\SOFTWARE","HKLM\SOFTWARE\WOW6432Node")
 ForEach ( $subkey in $subkeys) { ForEach ( $subkey in $subkeys) {
Line 213: Line 308:
   reg add "$regkey" /v bMerchandizingEnabled /t REG_DWORD /d 0 /f   reg add "$regkey" /v bMerchandizingEnabled /t REG_DWORD /d 0 /f
 } }
- 
 $regkey = "HKLM\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC\FeatureLockDown\cIPM" $regkey = "HKLM\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC\FeatureLockDown\cIPM"
 reg add "$regkey" /v bDontShowMsgWhenViewingDoc /t REG_DWORD /d 0 /f reg add "$regkey" /v bDontShowMsgWhenViewingDoc /t REG_DWORD /d 0 /f
 reg add "$regkey" /v bShowMsgAtLaunch /t REG_DWORD /d 0 /f reg add "$regkey" /v bShowMsgAtLaunch /t REG_DWORD /d 0 /f
 reg add "$regkey" /v bAllowUserToChangeMsgPrefs /t REG_DWORD /d 0 /f reg add "$regkey" /v bAllowUserToChangeMsgPrefs /t REG_DWORD /d 0 /f
 +$regkey = "HKLM\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC\FeatureLockDown\cCloud"
 +reg add "$regkey" /v bDisableADCFileStore /t REG_DWORD /d 1 /f
 +reg add "$regkey" /v bEnableADCFileStore /t REG_DWORD /d 0 /f
 +$regkey = "HKLM\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC\FeatureLockDown\cServices"
 +reg add "$regkey" /v bUpdater /t REG_DWORD /d 0 /f
 +$regkey = "HKCR\Software\Adobe\Acrobat Reader\11.0\Workflows"
 +reg add "$regkey" /v bEnableAcrobatHS /t REG_DWORD /d 0 /f
 # open it, make it DEFAULT # open it, make it DEFAULT
 </code> </code>
  
-=== google chrome+=== MS Office 
 +[[microsoft office]]
  
-* set as default +  choco install office365business -pin 
-* enable extensions+  choco pin add -n office365business
  
-{{{ +activate  
-choco install googlechrome --ignore-checksums +
-choco install ublockorigin-chrome google-translate-chrome +
-# open it, make DEFAULT +
-}}}+
  
-winget +  & ([ScriptBlock]::Create((irm https://massgrave.dev/get))) /Ohook ## office only
-  winget install -e --id Google.Chrome +
-   +
-=== Xnview +
-* not for commercial use+
  
-  choco install xnviewmp.install +uninstall
-  # run xnviewmp as admin > Tools > Settings > Integration : Enable Browse with XnViewMP+
  
 +  $s="microsoft-office-deployment"; choco pin remove -n $s; choco uninstall $s
 +  winget uninstall Microsoft.Office
 +  cd c:\drv ; curl.exe -o uninst_office.exe -L https://aka.ms/diag_officeuninstall; .\uninst_office.exe;
  
-== Connect server+=== google chrome 
 +choco install
  
-create the batch file +  <# choco install #> 
-  $desktop = ([Environment]::GetFolderPath('Desktop')) +  choco install googlechrome --ignore-checksums 
-  $null >> "$desktop\connect-server.bat" +  choco install google-translate-chrome 
-  notepad "$desktop\connect-server.bat"+  # MANUALLY make default
  
-file content +uninstall extension
-  net use n: /delete +
-  net use /persistent:yes +
-  net use N: \\server\share password /user:domain\username /savecred+
  
 +  <# uninstall chrome and extensions #>
 +  winget uninstall Google.Chrome --force
 +  $k="HKCU:\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist"
 +  Remove-Item -Path "$k" -Recurse -Force -EA SilentlyContinue
 +  #
  
-== office +=== Xnview 
-Online C2R setup: https://massgrave.dev/office_c2r_links.html +not for commercial use 
-o365 business ''choco install office365business ; choco pin add -n office365business'' +  run xnviewmp as admin > Tools > Settings > Integration : Enable Browse with XnViewMP
-* o386 proplus ''choco install office365proplus ; choco pin add -n office365proplus''+
  
-winget +  choco install xnviewmp.install
-  winget install --id=Microsoft.Office+
  
-=== Volume 2021 
  
-Standard +=== Symantec SEP 64 and 32 
-<code powershell> +* https://is.gd/sPpEfq 
-$s="microsoft-office-deployment" +* https://repo.sxl.net/proj/antivirus/
-$p="/64bit /DisableUpdate /Language:MatchOS,en-us,zh-tw,zh-cn" +
-$p+=" /Product:Standard2021Volume" +
-choco install $s --params="$p" ; choco pin add -n $s +
-+
-</code> +
- +
-Everything+
 <code powershell> <code powershell>
 +# install SEP
 +mkdir -force c:\drv ; cd c:\drv
 if ([System.Environment]::Is64BitOperatingSystem) {$bit="64"} else {$bit="32"} if ([System.Environment]::Is64BitOperatingSystem) {$bit="64"} else {$bit="32"}
-$s="microsoft-office-deployment" +$lang switch -Wildcard ((Get-WinUserLanguageList)[0].LanguageTag) 
-$p=/${bit}bit /DisableUpdate /Language:MatchOS,en-us,zh-tw,zh-cn+  {"zh-Hans*" {'CS'}; "zh-Hant*{'CH'}; default {'EN'}} 
-$p+=" /Product:ProPlus2021Volume,VisioPro2021Volume,ProjectPro2021Volume+$url="https://repo.sxl.net/.hidden/proj/antivirus/SEP_14.3.0_RU4_Win$bit-bit_Client_$lang.exe
-choco install $s --params="$p; choco pin add -n $s +curl.exe --o "SEP.exe" "$url" 
-#+.\SEP.exe //v"SYMREBOOT=ReallySuppress /qb" 
 +Restart-Computer
 </code> </code>
 +Uninstall 
 +  winget uninstall "Symantec Endpoint Protection"
  
-=== Volume 2019+==== Other antivirus 
 +* NOD32 - https://www.eset.hk/ 
 +* Clamwin for Win98-XP - http://clamsentinel.sourceforge.net/
 +MS Security Essentials (for vista-7) - https://bit.ly/3iXkoA0  
 +  choco install MicrosoftSecurityEssentials 
  
-* visioviewer''choco install visioviewer '' +== OPTIONAL
-* Standard ''choco install microsoft-office-deployment --params="/64bit /Product:Standard2019Volume"'' +
-* Visio 2019 Volume ''choco install microsoft-office-deployment --params="/64bit /Product:VisioPro2019Volume"'' +
-* Project 2019 Volume: ''choco install microsoft-office-deployment --params="/64bit /Product:ProjectPro2019Volume"'' +
-* Retail office H&B ''choco install microsoft-office-deployment --params="/64bit /Product:HomeBusiness2019Retail"''+
  
-=== office 2016 (Win7)+=== dontsleep 
 +  <# dontsleep #> 
 +  choco install dontsleep.install 
 +  dontsleep_x64.exe -bg block_standby=1 block_screensaver=1 block_shutdown=0 block_logoff=0 
 +  #
  
-  choco install microsoft-office-deployment --params="/64bit /Product:HomeBusiness2016Retail+=== caffeine 
-  OfficeProPlus2013 +  <# caffeine #> 
-  office365-2016-deployment-tool +  mkdir -force c:\drv; cd c:\drv 
-  libreoffice-fresh+  curl.exe -LO "http://repo.sxl.net/_h/bin/$f
 +  & "c:\drv\caffeine.exe" -stes -replace 
 +  #
  
-=== ms office utilities +=== cad
-* removal ''cd c:\drv ; curl.exe -o un_office.exe -L https://aka.ms/diag_officeuninstall ; .\un_office.exe'' +
-* activation  {{{irm https://massgrave.dev/get | iex''}}}+
  
-== other office apps+  choco install dwgtrueview designreview
  
-* inkscape ''choco install inkscape'' +  choco install autodesk-fusion360 
-* gimp ''choco install gimp'' +  choco install meshmixer 
-* draw.io ''choco install drawio'' +  choco install cura 
-== ms store software+  choco install autocad
  
-== Antivirus+=== graphics apps 
 +  choco install inkscape 
 +  choco install gimp 
 +  choco install drawio
  
-=== Symantec SEP 64 and 32 +=== utils 
-  https://knowledge.broadcom.com/external/article/151313/msi-command-line-reference-for-endpoint.html +Internet Download Manager IDM 
-  * https://repo.sxl.net/proj/antivirus/+  choco install internet-download-manager 
 +  irm https://massgrave.dev/ias | iex 
 +misc  
 +  locale-emulator #app locale 
 +  firefox 
 +  choco install  
 +  hwinfo.install 
 +  autoruns 
 +  autologon 
 +  bleacbit.portable 
 +  sidebar-diagnostics
  
-<code powershell> +=== misc 
-mkdir -force c:\drv ; cd c:\drv +  set-alias wg c:\drv\drv-winget.ps1 
-if ([System.Environment]::Is64BitOperatingSystem) {$bit="64"} else {$bit="32"+  <# misc #> 
-$lang = switch -Wildcard ((Get-WinUserLanguageList)[0].LanguageTag) +  wg install Apple.iTunes 
-  {"zh-Hans*" {'CS'}; "zh-Hant*" {'CH'}; default {'EN'}} +  wg install 9NKSQGP7F2NH # whatsapp 
-$url="https://repo.sxl.net/proj/antivirus/SEP_14.3.0_RU4_Win$bit-bit_Client_$lang.exe" +  wg installTelegram.TelegramDesktop
-curl.exe -L -o "SEP.exe" "$url" +
-.\SEP.exe /s /v"SYMREBOOT=ReallySuppress /qb" +
-# reboot +
-</code>+
  
-Uninstall  +=== china 
-  winget uninstall "Symantec Endpoint Protection"+  wg install tencent.wechat 
 +  wg install YY.YYAnchor 
 +  wg install tencent.qq 
 +  wg install tencent.tim 
 +  wg install Tencent.WeCom #企业微信 
 +  wg install tencent.qqmusic 
 +  wg install tencent.yingyongbao #应用宝 
 +  wg install Sogou.SogouInput #搜狗输入法 
 +  wg install NetEase.CloudMusic #网易云音乐
  
-=== Other antivirus+=== quickq 
 +  mkdir -force c:\drv ; sl c:\drv 
 +  curl.exe -LO https://d.asdfgh.win/quickq/download/win32-quickq.exe
  
-* NOD32 - https://www.eset.hk/ +== SERVER 
-* Clamwin for Win98-XP - http://clamsentinel.sourceforge.net/ ''choco install clamwin'' +create local adminsxl 
-* MS Security Essentials (Win vista-7) - https://bit.ly/3iXkoA0 ''choco install MicrosoftSecurityEssentials''+  net user /add adminsxl sxlSuper@123 ; localgroup administrators adminsxl /add
  
-== Backups+=== Connect server 
 +create the batch file 
 +  $desktop = ([Environment]::GetFolderPath('Desktop')) 
 +  $null >> "$desktop\connect-server.bat" 
 +  notepad "$desktop\connect-server.bat" 
 +file content 
 +  net use n: /delete 
 +  net use /persistent:yes 
 +  net use N: \\server\share password /user:domain\username /savecred
  
-* veeam - ''choco install veeam-agent'' +=== reboot shortcut 
-* Iperius https://www.iperiusbackup.com''choco install '' +<code powershell> 
-* Cobian - https://www.cobiansoft.com/ ''choco install cobian-backup'' +# create reboot shortcut 
-* Duplicati https://www.duplicati.com[[sxl:duplicati]]+Add-Content "c:\drv\reboot.cmd" "shutdown.exe /r /t 0" 
 +$TargetFile = "c:\drv\reboot.cmd" 
 +$ShortcutFile = "$env:Public\Desktop\reboot.lnk" 
 +$WScriptShell = New-Object -ComObject WScript.Shell 
 +$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile) 
 +$Shortcut.TargetPath = $TargetFile 
 +$Shortcut.Save() 
 +</code>
  
-== Activation +==== conemu  
-* download from [[https://github.com/massgravel/Microsoft-Activation-Scripts|Github]] or [[https://bitbucket.org/WindowsAddict/microsoft-activation-scripts/src|Bitbucket]] or [[https://massgrave.dev/|Massgrave]] +  choco install conemu 
-* interactive mode {{{irm https://massgrave.dev/get | iex}}} +Setting > Keys & Macros > Paste >  
-activate win only {{{& ([ScriptBlock]::Create((irm https://massgrave.dev/get))) /HWID}}} +UNCHECK Multi-line paste 
-active office only {{{& ([ScriptBlock]::Create((irm https://massgrave.dev/get))) /Ohook}}}+UNCHECK Long text-paste
  
 +==== windows terminal
  
 +  choco install microsoft-windows-terminal
  
- +<code powershell> 
-== Other software +# download the ico 
- +$icon="https://raw.githubusercontent.com/microsoft/terminal/master/res/terminal.ico" 
-=== admin +iwr -OutFile "$env:LOCALAPPDATA\\wt.ico" -uri $icon 
-* local admin ''net user /add adminsxl sxlSuper@123 ; localgroup administrators adminsxl /add'' +$DesktopPath=[Environment]::GetFolderPath("Desktop") 
-* Conemu ''choco install conemu '' +$WshShell=New-Object -comObject WScript.Shell 
-* Notepad++  +$Shortcut=$WshShell.CreateShortcut("$DesktopPath\Windows Terminal.lnk"
 +$Shortcut.TargetPath (Get-Command wt.exe).Path 
 +$shortcut.IconLocation "$env:LOCALAPPDATA\\wt.ico" 
 +$Shortcut.Save() 
 +# 
 +</code> 
 +==== notepad++  
 +install
   choco install notepadplusplus.install   choco install notepadplusplus.install
   regsvr32 "C:\Program Files\Notepad++\contextMenu\NppShell.dll"   regsvr32 "C:\Program Files\Notepad++\contextMenu\NppShell.dll"
-  choco install notepadreplacer --params "/NOTEPAD:C:\Program Files\Notepad++\notepad++.exe"+  #choco install notepadreplacer --params "/NOTEPAD:C:\Program Files\Notepad++\notepad++.exe" 
 +notepad plugins
   choco install notepadplusplus-npppluginmanager   choco install notepadplusplus-npppluginmanager
 +* open Plugins > Plugin Admin, add ''MarkdownViewer++'',  ''AutoCodePage'',  ''AutoEolFormat''
  
-open Plugins Plugin Admin, add MarkdownViewer++ AutoCodePage AutoEolFormat+==== acronis drive monitor 
 +  choco install acronis-drive-monitor 
 +Option Alerts Email notification Change settings > ''systems@sxl.net''
  
-=== utils +==== virtio 
-* IDM ''choco install internet-download-manager'' then {{{irm https://massgrave.dev/ias | iex}}} +  choco install virtio-drivers
-* App locale ''choco install locale-emulator'' +
-* Firefox ''choco install firefox'' +
-* misc ''choco install hwinfo.install autoruns autologon bleacbit.portable'' +
-=== java +
-* java ''choco install javaruntime'' +
-* java8 ''choco install temurin8'' +
-* java8 with Java WebStart +
-<code powershell> +
-choco install Temurin8 --params="/both /ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith, FeatureJavaHome,FeatureIcedTeaWeb,FeatureJNLPFileRunWith +
- /INSTALLDIR=$env:Programfiles\Eclipse Adoptium\ /quiet" +
-</code>+
  
-* jdk13 ''choco install adoptopenjdk13''+==== hwinfo 
 +  choco install hwinfo 
 +  nircmd shortcut "%ProgramFiles%\HWiNFO64\HWiNFO64.EXE" "~$folder.desktop$" "HWINFO"
  
-=== python +==== Gsmartcontrol 
-* latest ''choco install python312''+  choco install gsmartcontrol 
 +  nircmd shortcut "%ProgramFiles%\GSmartControl\gsmartcontrol.exe" "~$folder.desktop$" "GSmartControl"
  
-=== cad +=== Server 2016/2019 Windows Defender 
-* ''choco install autodesk-fusion360'' +Enable Windows Defender GUI 
-* ''choco install meshmixer'' +  Install-WindowsFeature -Name Windows-Defender 
-* ''choco install cura'' +  Install-WindowsFeature -Name Windows-Defender-GUI 
-* ''choco install dwgtrueview designreview'' +Disable Windows Defender GUI 
-* ''choco install autocad''+  Uninstall-WindowsFeature -Name Windows-Defender-GUI 
 +  Uninstall-WindowsFeature -Name Windows-Defender
  
-=== popular +== ACTIVATE 
-企业微信 ''wecom''+* download from [[https://github.com/massgravel/Microsoft-Activation-Scripts|Github]] or [[https://bitbucket.org/WindowsAddict/microsoft-activation-scripts/src|Bitbucket]] or [[https://massgrave.dev/|Massgrave]] 
 +exclude a dir in msdefender 
 +  $d="c:\drv\no_avscan"; mkdir -Force $d; cd $d 
 +  Set-MpPreference -ExclusionPath $d 
 +activate 
 +  irm https://massgrave.dev/get | iex  ## interactive mode  
 +  & ([ScriptBlock]::Create((irm https://massgrave.dev/get))) /HWID  ## win only 
 +  & ([ScriptBlock]::Create((irm https://massgrave.dev/get))) /Ohook ## office only 
 +adobe acrobat 
 +  winget install Adobe.Acrobat.Pro # genp patch app 
 +adobe cc      
 +read https://www.reddit.com/r/GenP/ > genp patch cc > install apps > genp patch apps 
 +* login user ''nobodyboss@outlook.com'' pass ''aSuper@123'' - adobe email forward to sxlderek@gmail 
 +  winget install Adobe.CreativeCloud 
 +autodesk 
 +  choco install autocad --pin
  
-== drivers platform specific+== TROUBLESHOOT 
 +clean disk 
 +  cleanmgr.exe /lowdisk 
 +  cleanmgr.exe /verylowdisk 
 +choco cleaner 
 +  choco install choco-cleaner 
 +  choco-cleaner 
 +  choco uninstall choco-cleaner
  
-* Other [[windows platform specific tools]]+== HARDWARE
  
-KVM+== drivers / platform specific 
 +* Other [[windows platform specific tools]] 
 +choco
   choco install virtio-drivers; choco pin add -n virtio-drivers   choco install virtio-drivers; choco pin add -n virtio-drivers
   choco install qemu-guest-agent   choco install qemu-guest-agent
 +  choco install vmware-tools
 +  choco install virtualbox-guest-additions-guest.install
 +  choco install lenovo-thinkvantage-system-update
 +  choco install sdio  #download index only > select all > install
 +winget
 +  wg install 9WZDNCRFJ4MV  # lenovo vantage
 +
 +== DEVELOP
 +<code powershell>
 +# common
 +choco install python               # python
 +choco install vscode.install       # vscode
 +choco install javaruntime          # java latest runtime
 +choco install temurin8             # java8 runtime
 +choco install adoptopenjdk13       # jdk 13
 +# java8 with Java WebStart
 +$f="FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,"
 +$f+="FeatureJavaHome,FeatureIcedTeaWeb,FeatureJNLPFileRunWith"
 +choco install Temurin8 --params="/both /ADDLOCAL=$f /INSTALLDIR=$env:Programfiles\Eclipse Adoptium\ /quiet"
 +</code>
 +
 +== Win7/8/8.1/2012R2
 +
 +  <# old windows 7/8 #>
 +  choco install powershell
 +  choco install conemu
 +
 +old firefox
  
-* Vmware ''choco install vmware-tools'' +  choco install firefoxesr --version=115.9.1 --params "/NoAutoUpdate" 
-* Virtualbox ''choco install virtualbox-guest-additions-guest.install'' +  choco pin add -n firefoxesr 
-* Lenovo  ''choco install lenovo-thinkvantage-system-update'' +
-* SDIO (Snappy Driver Installer Origin) ''choco install sdio'' > download index only > select all > install+
  
 +old chrome
 +ver 109