Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pub:windows_setup [2025/01/20 08:36] – derek | pub:windows_setup [2025/04/14 07:11] (current) – derek | ||
---|---|---|---|
Line 1: | Line 1: | ||
== Install Windows | == Install Windows | ||
- | | + | * [[? |
- | * [[Windows 7]] | + | * [[Windows 7]] |
- | * Win10 update assistant https:// | + | * Win10 update assistant https:// |
- | * Win11 update assistant https:// | + | * Win11 update assistant https:// |
=== OOBE | === OOBE | ||
<WRAP colmedium> | <WRAP colmedium> | ||
* OOBE bypass | * OOBE bypass | ||
- | | + | * < |
* defaults apps '' | * defaults apps '' | ||
* language '' | * language '' | ||
Line 23: | Line 23: | ||
* windows update '' | * windows update '' | ||
* user management | * user management | ||
- | | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
</ | </ | ||
=== create local admin Owner | === create local admin Owner | ||
- | |||
net user /add Owner /y | net user /add Owner /y | ||
net localgroup administrators Owner /add | net localgroup administrators Owner /add | ||
Line 35: | Line 34: | ||
=== set language | === set language | ||
- | |||
Set-ExecutionPolicy Bypass -Force | Set-ExecutionPolicy Bypass -Force | ||
- | $repo=" | + | $repo=" |
$drv=" | $drv=" | ||
$f=" | $f=" | ||
Line 45: | Line 43: | ||
=== Essential DRV | === Essential DRV | ||
- | |||
<code powershell> | <code powershell> | ||
<# prepare DRV & utils #> | <# prepare DRV & utils #> | ||
Line 51: | Line 48: | ||
$repo=" | $repo=" | ||
$drv=" | $drv=" | ||
- | $f=" | + | $f=" |
- | $f=" | + | { Invoke-WebRequest " |
+ | $f=" | ||
$f=" | $f=" | ||
& " | & " | ||
$f=" | $f=" | ||
$f=" | $f=" | ||
- | $f=" | ||
Add-Content " | Add-Content " | ||
- | |||
### windows settings | ### windows settings | ||
- | Enable-ComputerRestore -Drive | + | Enable-ComputerRestore -Drive |
### set registry mailpw | ### set registry mailpw | ||
$p=" | $p=" | ||
New-ItemProperty " | New-ItemProperty " | ||
- | |||
### Disable OOBE Lets Finish Setting Up | ### Disable OOBE Lets Finish Setting Up | ||
$k=" | $k=" | ||
reg.exe add $k /v SubscribedContent-310093Enabled /t REG_DWORD /d 1 /f | reg.exe add $k /v SubscribedContent-310093Enabled /t REG_DWORD /d 1 /f | ||
- | |||
### Powershell PROFILE | ### Powershell PROFILE | ||
$f=" | $f=" | ||
Line 80: | Line 73: | ||
Get-Content $PROFILE | Get-Content $PROFILE | ||
. $PROFILE | . $PROFILE | ||
- | |||
### Windows defender | ### Windows defender | ||
- | if ((Get-MpComputerStatus).AntivirusEnabled) { | + | if ((Get-MpComputerStatus |
- | Set-MpPreference -EnableControlledFolderAccess Disabled | + | Set-MpPreference -EnableControlledFolderAccess Disabled |
- | Set-MpPreference -DisableEmailScanning $False | + | Set-MpPreference -DisableEmailScanning $False |
- | Set-MpPreference -UILockdown $False | + | Set-MpPreference -UILockdown $False |
- | Set-MpPreference -PUAProtection Enabled | + | Set-MpPreference -PUAProtection Enabled |
- | $d=" | + | #$d=" |
- | Set-MpPreference -ExclusionPath $d | + | |
} | } | ||
- | |||
### keep this session alive | ### keep this session alive | ||
$f=" | $f=" | ||
& " | & " | ||
- | |||
### Making pcinfo | ### Making pcinfo | ||
- | $f=" | + | #$f=" |
### Refresh environment | ### Refresh environment | ||
$env: | $env: | ||
$env: | $env: | ||
- | |||
<# done #> | <# done #> | ||
</ | </ | ||
- | |||
=== install/ | === install/ | ||
- | | + | * [[chocolatey]] |
<code powershell> | <code powershell> | ||
$d=" | $d=" | ||
Line 113: | Line 100: | ||
[System.Net.ServicePointManager]:: | [System.Net.ServicePointManager]:: | ||
[System.Net.ServicePointManager]:: | [System.Net.ServicePointManager]:: | ||
- | $u='https:// | + | $u="https:// |
- | iex ((New-Object System.Net.WebClient).DownloadString($u)) | + | if (Get-Command choco -EA SilentlyContinue ) { choco upgrade chocolatey } ` |
+ | else {iex ((New-Object System.Net.WebClient).DownloadString($u))} | ||
Import-Module $env: | Import-Module $env: | ||
refreshenv | refreshenv | ||
Line 121: | Line 109: | ||
$p=" | $p=" | ||
$p=" | $p=" | ||
- | #$p=" | + | $p=" |
- | #$p=" | + | $p=" |
# config chocolatey | # config chocolatey | ||
$env: | $env: | ||
Line 134: | Line 122: | ||
" | " | ||
choco upgrade all | choco upgrade all | ||
- | # choco cleaner | + | </ |
+ | |||
+ | === choco cleaner | ||
+ | < | ||
+ | choco upgrade all | ||
choco install choco-cleaner | choco install choco-cleaner | ||
- | choco-cleaner; choco uninstall choco-cleaner; | + | choco-cleaner |
+ | choco uninstall choco-cleaner; | ||
#done | #done | ||
</ | </ | ||
- | |||
=== winget install/ | === winget install/ | ||
Line 148: | Line 140: | ||
Invoke-WebRequest " | Invoke-WebRequest " | ||
./ | ./ | ||
- | ./ | + | #./ |
# | # | ||
</ | </ | ||
+ | === hardware | ||
+ | vmware | ||
+ | |||
+ | choco install vmware-tools | ||
+ | | ||
=== PS Windows Update | === PS Windows Update | ||
<code powershell> | <code powershell> | ||
### PS Windows Update | ### PS Windows Update | ||
- | Install-PackageProvider NuGet -Force; | + | Install-PackageProvider |
- | Install-Module | + | Install-Module PSWindowsUpdate -Force -Confirm: |
- | Get-Package -Name PSWindowsUpdate | + | Add-WUServiceManager |
- | get-command | + | Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -IgnoreReboot |
- | Get-WindowsUpdate | + | Get-WindowsUpdate -IgnoreReboot |
- | Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot | + | |
# | # | ||
</ | </ | ||
- | |||
== Backups | == Backups | ||
- | | + | * Iperius - https:// |
- | * Cobian - https:// | + | * Cobian - https:// |
- | * Duplicati - https:// | + | * Duplicati - https:// |
=== Enable File History | === Enable File History | ||
- | | + | * windows explorer, right-click drive, configure Shadow copies |
- | * Enable shadow copies on the drive (e.g C:\ or D:\) | + | * Enable shadow copies on the drive (e.g C:\ or D:\) |
- | * click Settings > Max Size Limit (example: 20GB=20480MB; | + | * click Settings > Max Size Limit (example: 20GB=20480MB; |
- | * https:// | + | * https:// |
- | * Change schedule: Daily, 1PM and 9PM | + | * Change schedule: Daily, 1PM and 9PM |
- | * https:// | + | * https:// |
- | + | ||
- | + | ||
- | === Veeam agent === | + | |
+ | === Veeam agent | ||
<# install veeam agent #> | <# install veeam agent #> | ||
choco install veeam-agent --pin | choco install veeam-agent --pin | ||
- | # | ||
# | # | ||
- | + | <# create recovery ISO #> | |
- | + | & " | |
== COMMON | == COMMON | ||
- | |||
=== choco install apps | === choco install apps | ||
+ | <# choco apps #> | ||
choco install peazip.install # open, set assoc > standard, set lang | choco install peazip.install # open, set assoc > standard, set lang | ||
choco install pasteintofile ; PasteIntoFile /filename yyyyMMdd-HHmmss | choco install pasteintofile ; PasteIntoFile /filename yyyyMMdd-HHmmss | ||
Line 199: | Line 190: | ||
choco install vlc | choco install vlc | ||
choco install xnviewmp.install | choco install xnviewmp.install | ||
- | + | | |
- | === winget install apps | + | |
- | + | ||
- | c: | + | |
- | c: | + | |
- | c: | + | |
- | c: | + | |
- | c: | + | |
- | c: | + | |
- | c: | + | |
=== rustdesk | === rustdesk | ||
- | winget install rustdesk | + | download exe on desktop |
- | <# winget install | + | <# rustdesk.exe on desktop#> |
- | | + | |
+ | $repo=" | ||
+ | $tag=" | ||
+ | $out=[Environment]:: | ||
+ | dra download $repo --select $tag --output $out\rustdesk.exe | ||
# | # | ||
- | + | rustdesk install | |
- | [[rustdesk]] config | + | <# install |
+ | $rd=[Environment]:: | ||
+ | $rd+=" | ||
+ | & " | ||
+ | while (Test-Path " | ||
<# set rustdesk password #> | <# set rustdesk password #> | ||
- | $d=" | + | $rd=" |
- | & $d/ | + | while (!(Test-Path " |
- | & $d/ | + | & $rd --install-service |
- | & $d/ | + | while (!(Get-Service " |
- | & $d/ | + | & $rd --password Super@123 |
- | # | + | & $rd --option allow-remote-config-modification Y |
- | + | & $rd --get-id | Out-String | |
- | install or upgrade rustdesk with my script | + | |
- | <# | + | |
- | $repo=" | + | |
- | $drv=" | + | |
- | Invoke-WebRequest " | + | |
# | # | ||
Line 246: | Line 231: | ||
$repo=" | $repo=" | ||
curl.exe -LO " | curl.exe -LO " | ||
+ | # | ||
+ | #curl.exe -LO " | ||
curl.exe -LO " | curl.exe -LO " | ||
Start-Process msiexec.exe "/qb /i aspia-host-2.7.0-x86_64.msi" | Start-Process msiexec.exe "/qb /i aspia-host-2.7.0-x86_64.msi" | ||
Line 259: | Line 246: | ||
## done | ## done | ||
</ | </ | ||
- | |||
uninstall | uninstall | ||
winget uninstall "Aspia Host" | winget uninstall "Aspia Host" | ||
# winget uninstall " | # winget uninstall " | ||
- | |||
=== customize win10/11 | === customize win10/11 | ||
- | |||
<code powershell> | <code powershell> | ||
# explorer | # explorer | ||
Line 272: | Line 256: | ||
Set-Itemproperty -path " | Set-Itemproperty -path " | ||
Set-ItemProperty -Path " | Set-ItemProperty -Path " | ||
- | |||
# win10 disable news feed (old method) | # win10 disable news feed (old method) | ||
$k=" | $k=" | ||
Line 279: | Line 262: | ||
$url=" | $url=" | ||
& ([ScriptBlock]:: | & ([ScriptBlock]:: | ||
- | |||
# win11 enable classic context menu | # win11 enable classic context menu | ||
$k=" | $k=" | ||
New-Item -Path " | New-Item -Path " | ||
# | # | ||
- | |||
# win11 start menu to left | # win11 start menu to left | ||
$k=" | $k=" | ||
Set-ItemProperty -Path " | Set-ItemProperty -Path " | ||
- | |||
# win11 remove news widget (Windows web experience Pack) | # win11 remove news widget (Windows web experience Pack) | ||
winget uninstall " | winget uninstall " | ||
winget uninstall --id 9MSSGKG348SP --accept-source-agreements | winget uninstall --id 9MSSGKG348SP --accept-source-agreements | ||
- | |||
# restart windows explorer | # restart windows explorer | ||
Get-Process explorer | Stop-Process | Get-Process explorer | Stop-Process | ||
# | # | ||
- | |||
</ | </ | ||
=== adobe reader | === adobe reader | ||
- | |||
choco install | choco install | ||
<# choco install adobe reader #> | <# choco install adobe reader #> | ||
mkdir -force c:\drv ; Set-Location c:\drv | mkdir -force c:\drv ; Set-Location c:\drv | ||
- | choco install adobereader --params '"/ | + | choco install adobereader |
# MANUALLY set as default | # MANUALLY set as default | ||
- | |||
- | winget install | ||
- | <# winget install acrobat #> | ||
- | c: | ||
- | # MANUALLY set as default | ||
- | |||
install asian font pack | install asian font pack | ||
Line 321: | Line 292: | ||
config adobe reader | config adobe reader | ||
+ | |||
<code powershell> | <code powershell> | ||
<# config adobe reader #> | <# config adobe reader #> | ||
Line 351: | Line 323: | ||
=== MS Office | === MS Office | ||
- | microsoft office | + | [[microsoft office]] |
- | | + | |
+ | | ||
+ | choco pin add -n office365business | ||
activate | activate | ||
+ | |||
& ([ScriptBlock]:: | & ([ScriptBlock]:: | ||
uninstall | uninstall | ||
+ | |||
$s=" | $s=" | ||
winget uninstall Microsoft.Office | winget uninstall Microsoft.Office | ||
Line 363: | Line 339: | ||
=== google chrome | === google chrome | ||
- | |||
choco install | choco install | ||
+ | |||
<# choco install #> | <# choco install #> | ||
choco install googlechrome --ignore-checksums | choco install googlechrome --ignore-checksums | ||
Line 370: | Line 346: | ||
# MANUALLY make default | # MANUALLY make default | ||
- | winget install | + | uninstall |
- | <# winget install #> | + | |
- | c: | + | |
- | # install | + | |
- | mkdir -force c:\drv ; cd c:\drv | + | |
- | $u=" | + | |
- | # | + | |
- | ./ | + | |
- | # | + | |
- | uninstall extension | ||
<# uninstall chrome and extensions #> | <# uninstall chrome and extensions #> | ||
winget uninstall Google.Chrome --force | winget uninstall Google.Chrome --force | ||
Line 389: | Line 356: | ||
=== Xnview | === Xnview | ||
* not for commercial use | * not for commercial use | ||
+ | * run xnviewmp as admin > Tools > Settings > Integration : Enable Browse with XnViewMP | ||
choco install xnviewmp.install | choco install xnviewmp.install | ||
- | # run xnviewmp as admin > Tools > Settings > Integration : Enable Browse with XnViewMP | + | |
=== Symantec SEP 64 and 32 | === Symantec SEP 64 and 32 | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
- | |||
<code powershell> | <code powershell> | ||
# install SEP | # install SEP | ||
Line 408: | Line 375: | ||
# Restart-Computer | # Restart-Computer | ||
</ | </ | ||
- | |||
Uninstall | Uninstall | ||
winget uninstall " | winget uninstall " | ||
Line 415: | Line 381: | ||
* NOD32 - https:// | * NOD32 - https:// | ||
* Clamwin for Win98-XP - http:// | * Clamwin for Win98-XP - http:// | ||
- | |||
MS Security Essentials (for vista-7) - https:// | MS Security Essentials (for vista-7) - https:// | ||
choco install MicrosoftSecurityEssentials | choco install MicrosoftSecurityEssentials | ||
Line 422: | Line 387: | ||
=== dontsleep | === dontsleep | ||
- | |||
<# dontsleep #> | <# dontsleep #> | ||
choco install dontsleep.install | choco install dontsleep.install | ||
dontsleep_x64.exe -bg block_standby=1 block_screensaver=1 block_shutdown=0 block_logoff=0 | dontsleep_x64.exe -bg block_standby=1 block_screensaver=1 block_shutdown=0 block_logoff=0 | ||
# | # | ||
+ | |||
=== caffeine | === caffeine | ||
- | |||
<# caffeine #> | <# caffeine #> | ||
mkdir -force c:\drv; cd c:\drv | mkdir -force c:\drv; cd c:\drv | ||
Line 436: | Line 400: | ||
=== cad | === cad | ||
+ | |||
+ | choco install dwgtrueview designreview | ||
+ | |||
choco install autodesk-fusion360 | choco install autodesk-fusion360 | ||
choco install meshmixer | choco install meshmixer | ||
choco install cura | choco install cura | ||
- | choco install dwgtrueview designreview | ||
choco install autocad | choco install autocad | ||
Line 447: | Line 413: | ||
choco install drawio | choco install drawio | ||
- | === utils === | + | === utils |
Internet Download Manager IDM | Internet Download Manager IDM | ||
choco install internet-download-manager | choco install internet-download-manager | ||
irm https:// | irm https:// | ||
- | |||
misc | misc | ||
locale-emulator #app locale | locale-emulator #app locale | ||
Line 463: | Line 428: | ||
=== misc | === misc | ||
- | |||
set-alias wg c: | set-alias wg c: | ||
- | |||
<# misc #> | <# misc #> | ||
wg install Apple.iTunes | wg install Apple.iTunes | ||
Line 487: | Line 450: | ||
== SERVER | == SERVER | ||
- | |||
create local adminsxl | create local adminsxl | ||
net user /add adminsxl sxlSuper@123 ; localgroup administrators adminsxl /add | net user /add adminsxl sxlSuper@123 ; localgroup administrators adminsxl /add | ||
=== Connect server | === Connect server | ||
- | |||
create the batch file | create the batch file | ||
$desktop = ([Environment]:: | $desktop = ([Environment]:: | ||
$null >> " | $null >> " | ||
notepad " | notepad " | ||
- | |||
file content | file content | ||
net use n: /delete | net use n: /delete | ||
Line 515: | Line 475: | ||
</ | </ | ||
- | Conemu | + | ==== conemu |
choco install conemu | choco install conemu | ||
+ | Setting > Keys & Macros > Paste > | ||
+ | * UNCHECK Multi-line paste | ||
+ | * UNCHECK Long text-paste | ||
- | Notepad++ | + | ==== windows terminal |
+ | |||
+ | choco install microsoft-windows-terminal | ||
+ | |||
+ | <code powershell> | ||
+ | # download the ico | ||
+ | $icon=" | ||
+ | iwr -OutFile " | ||
+ | $DesktopPath=[Environment]:: | ||
+ | $WshShell=New-Object -comObject WScript.Shell | ||
+ | $Shortcut=$WshShell.CreateShortcut(" | ||
+ | $Shortcut.TargetPath = (Get-Command wt.exe).Path | ||
+ | $shortcut.IconLocation = " | ||
+ | $Shortcut.Save() | ||
+ | # | ||
+ | </ | ||
+ | ==== notepad++ | ||
+ | install | ||
choco install notepadplusplus.install | choco install notepadplusplus.install | ||
regsvr32 " | regsvr32 " | ||
- | choco install notepadreplacer --params "/ | + | |
+ | notepad plugins | ||
choco install notepadplusplus-npppluginmanager | choco install notepadplusplus-npppluginmanager | ||
- | | + | * open Plugins > Plugin Admin, add '' |
- | Acronis | + | ==== acronis |
choco install acronis-drive-monitor | choco install acronis-drive-monitor | ||
- | | + | * Option Alerts Email notification > Change settings > '' |
- | Virtio | + | ==== virtio |
choco install virtio-drivers | choco install virtio-drivers | ||
- | hwinfo | + | ==== hwinfo |
choco install hwinfo | choco install hwinfo | ||
nircmd shortcut " | nircmd shortcut " | ||
- | Gsmartcontrol | + | ==== Gsmartcontrol |
choco install gsmartcontrol | choco install gsmartcontrol | ||
nircmd shortcut " | nircmd shortcut " | ||
Line 547: | Line 528: | ||
Uninstall-WindowsFeature -Name Windows-Defender-GUI | Uninstall-WindowsFeature -Name Windows-Defender-GUI | ||
Uninstall-WindowsFeature -Name Windows-Defender | Uninstall-WindowsFeature -Name Windows-Defender | ||
- | |||
== ACTIVATE | == ACTIVATE | ||
- | | + | * download from [[https:// |
exclude a dir in msdefender | exclude a dir in msdefender | ||
$d=" | $d=" | ||
Set-MpPreference -ExclusionPath $d | Set-MpPreference -ExclusionPath $d | ||
- | |||
activate | activate | ||
irm https:// | irm https:// | ||
& ([ScriptBlock]:: | & ([ScriptBlock]:: | ||
& ([ScriptBlock]:: | & ([ScriptBlock]:: | ||
- | |||
adobe acrobat | adobe acrobat | ||
winget install Adobe.Acrobat.Pro # genp patch app | winget install Adobe.Acrobat.Pro # genp patch app | ||
- | |||
adobe cc | adobe cc | ||
* read https:// | * read https:// | ||
* login user '' | * login user '' | ||
- | |||
winget install Adobe.CreativeCloud | winget install Adobe.CreativeCloud | ||
- | |||
autodesk | autodesk | ||
choco install autocad --pin | choco install autocad --pin | ||
== TROUBLESHOOT | == TROUBLESHOOT | ||
- | |||
clean disk | clean disk | ||
cleanmgr.exe /lowdisk | cleanmgr.exe /lowdisk | ||
cleanmgr.exe / | cleanmgr.exe / | ||
- | |||
choco cleaner | choco cleaner | ||
choco install choco-cleaner | choco install choco-cleaner | ||
Line 585: | Line 557: | ||
== HARDWARE | == HARDWARE | ||
- | ==== drivers / platform specific | + | |
- | * Other [[windows platform specific tools]] | + | == drivers / platform specific |
+ | * Other [[windows platform specific tools]] | ||
choco | choco | ||
choco install virtio-drivers; | choco install virtio-drivers; | ||
Line 594: | Line 567: | ||
choco install lenovo-thinkvantage-system-update | choco install lenovo-thinkvantage-system-update | ||
choco install sdio #download index only > select all > install | choco install sdio #download index only > select all > install | ||
- | |||
winget | winget | ||
wg install 9WZDNCRFJ4MV | wg install 9WZDNCRFJ4MV | ||
+ | |||
== DEVELOP | == DEVELOP | ||
- | |||
<code powershell> | <code powershell> | ||
# common | # common | ||
Line 606: | Line 578: | ||
choco install temurin8 | choco install temurin8 | ||
choco install adoptopenjdk13 | choco install adoptopenjdk13 | ||
- | |||
# java8 with Java WebStart | # java8 with Java WebStart | ||
$f=" | $f=" | ||
$f+=" | $f+=" | ||
choco install Temurin8 --params="/ | choco install Temurin8 --params="/ | ||
- | |||
</ | </ | ||
+ | == Win7/ | ||
+ | |||
+ | <# old windows 7/8 #> | ||
+ | choco install powershell | ||
+ | choco install conemu | ||
+ | |||
+ | old firefox | ||
+ | choco install firefoxesr --version=115.9.1 --params "/ | ||
+ | choco pin add -n firefoxesr | ||
+ | old chrome | ||
+ | ver 109 | ||