This is an old revision of the document!


windows setup

windows 10

windows setup

  • adjust desktop size/position: start desk.cpl
  • uninstall vendor bolatware, antivirus: start appwiz.cpl
  • create user/domain control userpasswords or control userpasswords2
net user /add Owner ; net localgroup administrators Owner /add
  • rename computer, join domain: start sysdm.cpl

install essentials

essential utilities

# prepare DRV
if(!(Test-Path $profile) ) { New-Item -ItemType File -Path $profile -Force }
Add-Content $profile "`$host.PrivateData.ErrorForegroundColor = 'Magenta'"
$drv="c:\drv"; $repo="http://repo.sxl.net/win/bin"
New-Item -Force -ItemType Directory -Path $drv; Set-Location C:\drv
$wc=New-Object System.Net.WebClient
$wc.DownloadFile("$repo/aria2c.exe", "$drv\aria2c.exe")
.\aria2c -c "$repo/curl.exe"
.\aria2c -c "$repo/7za.exe"
#done
.\aria2c -c "$repo/wget.exe"
.\aria2c -c "https://download.teamviewer.com/download/TeamViewerQS.exe"
.\aria2c -c "https://download.anydesk.com/AnyDesk.exe"

aspia

mkdir -Force c:\drv ; sl c:\drv
.\aria2c.exe -c https://repo.sxl.net/proj/remote/aspiahost.exe
.\aspiahost.exe
#done

China

sl c:\drv
$p="-x 16 -s 16 -R -c"
.\aria2c.exe $p -o aspiahost.exe https://repo.sxl.net/proj/remote/aspiahost.exe
.\aspiahost.exe
.\aria2c -x $p -o quickq.exe https://repo.sxl.net/proj/babo/win32-quickq.exe

install chocolatey

# install chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force
[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 feature enable -n allowGlobalConfirmation
choco feature enable -n useRememberedArgumentsForUpgrades
 
# install essentials
choco install 7zip.commandline wget curl aria2 gsudo nircmd
#choco install peazip.install --version 9.2.0
choco install peazip.install
 
# choco install grep which nircmd peazip.install choco-cleaner
# end init

upgrade chocolatey

choco upgrade chocolatey
choco upgrade all

Remote control

teamviewer

Full Teamviewer

choco install teamviewer

after install, open teamviewer

  • enable Start TV with Windows
  • Options (Gear) > General: Your display name; Allow incoming LAN connection
  • Options > Advanced > Show Advanced Options > Personal Password > whoSxxxx@xxx

Teamviewer-qs

choco install teamviewr-qs

SXL Teamviewer QS

mkdir -Force c:\drv ; Set-Location c:\drv
curl.exe -O https://repo.sxl.net/proj/remote/TeamViewerQS.exe
nircmd shortcut c:\drv\TeamViewerQS.exe ~$folder.desktop$ "TeamviewerQS SXL"
start TeamviewerQS

Teamviewer-host

choco install teamviewer.host
  • Options (Gear) > General: Your display name; Allow incoming LAN connection
  • Options > Advanced > Show Advanced Options > Personal Password > whoSxxxx@xxx

SXL Teamviewer Host

mkdir -force c:\drv ; Set-Location c:\drv
curl.exe -O https://repo.sxl.net/proj/remote/TeamViewer_Host_Setup.exe
.\TeamViewer_Host_Setup.exe /S /norestart

aspia

mkdir -Force c:\drv ; sl c:\drv
curl.exe -O https://repo.sxl.net/proj/remote/aspiahost.exe
.\aspiahost.exe
#done

poweshell 2.0

mkdir -Force c:\drv ; sl c:\drv
$download_url = "http://repo.sxl.net/proj/remote/aspiahost.exe"
$local_path = "c:\drv\aspiahost.exe"
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile($download_url, $local_path)
.\aspiahost.exe

other remote desktop

mkdir -force c:\drv ; sl c:\drv

Trustviewer - http://trustviewer.com

wget.exe http://trustviewer.com/src/client/TrustViewer.exe

Todesk

Download & setup

Set-Location c:\drv
curl.exe -O https://dl.todesk.com/windows/ToDesk_Setup.exe
.\ToDesk_Setup.exe /S
# wait until program started

config & clean up

& ${Env:ProgramFiles(x86)}\ToDesk\ToDesk.exe -setpasswd Super@123
& ${Env:ProgramFiles(x86)}\ToDesk\ToDesk.exe -autostart on
Remove-Item .\ToDesk_Setup.exe -Force
# config in gui, security > allow both temp & safe password

dontsleep

choco install dontsleep.install
dontsleep_x64.exe -bg -enable=1
# END

drivers / platform specific

KVM

choco install virtio-drivers
choco pin add -n virtio-drivers
REM choco install qemu-guest-agent

Vmware

choco install vmware-tools

Virtualbox

choco install virtualbox-guest-additions-guest.install

Lenovo

choco install lenovo-thinkvantage-system-update

SDIO (Snappy Driver Installer Origin)

choco install sdio
:: download index only > select all > install

some explorer hacks

# show files extension
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f
 
# hide news and interests
REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Feeds /v ShellFeedsTaskbarViewMode /t REG_DWORD /d 2 /f
 
# restart explorer
taskkill /F /IM explorer.exe
start explorer
# END

useful utilities

google chrome

  • set as default
  • enable extensions
choco install googlechrome
choco install ublockorigin-chrome google-translate-chrome
choco install setdefaultbrowser ; SetDefaultBrowser HKLM "Google Chrome"

Common

choco install vlc 
choco install file-converter 
choco install adobereader
choco install xnviewmp
choco install pasteintofile ; PasteIntoFile /filename yyyyMMdd-HHmmss

Xnview

  • not for commercial use
  • after install: run xnviewmp as admin > Tools > Settings > Integration : Enable Browse with XnViewMP
choco install xnviewmp

MS office

remove office

cd c:\drv
curl.exe -o SetupProd_OffScrub.exe -L https://aka.ms/diag_officeuninstall
.\SetupProd_OffScrub.exe

Office 365

Business

choco install office365business
choco pin add -n office365business

Proplus

choco install office365proplus
choco pin add -n office365proplus

Office 2021

Standard

$s=microsoft-office-deployment
$p=" /64bit /DisableUpdate /Language:en-us,zh-tw,zh-cn /Product:Standard2021Volume"
choco install $s --params="$p" ; choco pin add -n $s
# done

Everything

if ([System.Environment]::Is64BitOperatingSystem) {$bit="64"} else {$bit="32"}
$param=" /${bit}bit /DisableUpdate /Language:en-us,zh-tw,zh-cn"
$param+=" /Product:ProPlus2021Volume,VisioPro2021Volume,ProjectPro2021Volume"
choco install microsoft-office-deployment --params="$param"
choco pin add -n microsoft-office-deployment

Office-Tool

  • install choco install office-tool then Deploy > H&B 2021 > 64-bit > Start Deploy

Volume 2019

  • visioviewerchoco install visioviewer
  • 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)

choco install microsoft-office-deployment --params="/64bit /Product:HomeBusiness2016Retail"
OfficeProPlus2013
office365-2016-deployment-tool
libreoffice-fresh

pin office-deployment tool

choco pin add -n microsoft-office-deployment

pdf reader

  • set association after install
  • for legal Acrobat DC user, install Reader first, login, and then Download the Acrobat DC
choco install adobereader
#choco install sumatrapdf.install pdftk

google drive, g.suite

choco install googledrive
choco install gsuite-sync-outlook

antivirus

SEP 64-bit ENG

mkdir -force c:\drv ; cd c:\drv
if ([System.Environment]::Is64BitOperatingSystem) {$bit="64"} else {$bit="32"}
$lang = switch -Wildcard ((Get-WinUserLanguageList)[0].LanguageTag)
  {"zh-Hans*" {'CS'}; "zh-Hant*" {'CH'}; default {'EN'}}
$url="https://repo.sxl.net/proj/antivirus/SEP_14.3.0_RU4_Win$bit-bit_Client_$lang.exe"
curl.exe -L -o "SEP.exe" "$url"
.\SEP.exe /s /v"SYMREBOOT=ReallySuppress /qb"
# reboot

Uninstall

winget uninstall "Symantec Endpoint Protection"

Other antivirus

backup

Veeam

choco install veeam-agent

admin utils

  • Conemu choco install conemu
  • Notepad++ choco install notepadplusplus.install ; regsvr32 "C:\Program Files\Notepad++\contextMenu\NppShell.dll"

others

3D-print

autodesk-fusion360 meshmixer cura

Cad

choco install dwgtrueview #designreview
choco install autocad #autocadlt

java

choco install javaruntime
  1. choco install adoptopenjdk8
  2. choco install adoptopenjdk13

git

choco install git.install --params="/NoGuiHereIntegration /SChannel"

finishing

windows update

wuauclt /detectnow /updatenow
control update

set default programs

control /name Microsoft.DefaultPrograms /page pageDefaultProgram

activation

irm https://massgrave.dev/get | iex

windows update

pub/windows_setup.1702779208.txt.gz · Last modified: 2023/12/17 02:13 by derek