Windows 10 felhasználói alapbeállításai

Innen: AdminWiki
A lap korábbi változatát látod, amilyen KZoli (vitalap | szerkesztései) 2019. június 19., 20:13-kor történt szerkesztése után volt. (Új oldal, tartalma: „{{:Windows 10 rendszergazdai alapbeállításai|transcludesection=user}}”)
(eltér) ← Régebbi változat | Aktuális változat (eltér) | Újabb változat→ (eltér)
Ugrás a navigációhoz Ugrás a kereséshez
  • Felhasználói rész
  • Vezérlőpult, Kis ikonok.
PowerShell kódrészlet 
<# Control Panel, Classic View
   https://gist.github.com/alirobe/7f3b34ad89a159e6daa1
#>
$registryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel"; `
IF(!(Test-Path $registryPath)) {New-Item -Path $registryPath -Force | Out-Null}; `
New-ItemProperty -Path $registryPath -Name "StartupPage"  -Value 1 -PropertyType "DWord" -Force | Out-Null; `
New-ItemProperty -Path $registryPath -Name "AllItemsIconView"  -Value 1 -PropertyType "DWord" -Force | Out-Null
  • Vezérlőpult, Fájlkezelő beállításai, Nézet fül, Megosztás varázsló KI, Az operációs rendszer védett fájljainak elrejtése maradjon BE (pl. a desktop.ini-k miatt), Ismert fájltípusok kiterjesztésinek elrejtése KI (soha nem fogják megtanulni...), Rejtett fájlok, mappák és meghajtók megjelenítése (BE), Üres meghajtók elrejtése (KI).
PowerShell kódrészlet 
<# Explorer tweaks - disable sharing wizard, show extensions, hidden files, empty drives

   https://superuser.com/questions/898495/disable-sharing-wizard-with-batch
   https://stackoverflow.com/questions/4491999/configure-windows-explorer-folder-options-through-powershell/28016877
#>
$registryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"; `
IF(!(Test-Path $registryPath)) {New-Item -Path $registryPath -Force | Out-Null}; `
New-ItemProperty -Path $registryPath -Name "SharingWizardOn" -Value 0 -PropertyType "DWord" -Force | Out-Null;`
New-ItemProperty -Path $registryPath -Name "HideFileExt" -Value 0 -PropertyType "DWord" -Force | Out-Null;`
New-ItemProperty -Path $registryPath -Name "Hidden" -Value 1 -PropertyType "DWord" -Force | Out-Null;`
New-ItemProperty -Path $registryPath -Name "HideDrivesWithNoMedia" -Value 0 -PropertyType "DWord" -Force | Out-Null
  • Vezérlőpult, Hang, Hangok fül, Nincsenek hangok hangséma betöltése
PowerShell kódrészlet 
<# No event sounds except the startup sound

   https://www.tenforums.com/tutorials/5838-change-event-sounds-sound-scheme-windows-10-a.html
   https://superuser.com/questions/1300539/change-sound-scheme-in-windows-via-register
   https://www.sevenforums.com/tutorials/179448-startup-sound-enable-disable.html
#>
$registryPath = "HKCU:\AppEvents\Schemes\Apps"; `
Get-ChildItem -Path $registryPath | Select Name | ForEach-Object { `
    $app = $_.Name -replace "HKEY_CURRENT_USER", "HKCU:"; `
    Get-ChildItem -Path $app | Select Name | ForEach-Object { `
        $event = $_.Name -replace "HKEY_CURRENT_USER", "HKCU:"; `
        $eventnone = "$event\.None"; $eventcurrent = "$event\.Current"; `
        IF(!(Test-Path $eventnone)) { `
            New-Item -Path $eventnone -Force | Out-Null; `
            New-ItemProperty -Path $eventnone -Name '(Default)' -Type 'ExpandString' -Value '' | Out-Null }; `
        New-ItemProperty -Path $eventcurrent -Name '(Default)' -Type 'String' -Value '' | Out-Null }}; `
$registryPath = "HKCU:\AppEvents\Schemes"; `
IF(!(Test-Path $registryPath)) {New-Item -Path $registryPath -Force | Out-Null}; `
New-ItemProperty -Path $registryPath -Name "(Default)" -Value ".None" -PropertyType "String" -Force | Out-Null;`
  • Asztalon jobbklikk, Nézet, Kis ikonok; ikonok elrendezése az asztalon.
PowerShell kódrészlet 
<# Small icons on desktop

   http://www.tenforums.com/tutorials/62393-desktop-icons-size-change-windows-10-a.html
#>
$registryPath = "HKCU:\Software\Microsoft\Windows\Shell\Bags\1\Desktop"; `
IF(!(Test-Path $registryPath)) {New-Item -Path $registryPath -Force | Out-Null}; `
New-ItemProperty -Path $registryPath -Name "IconSize" -Value 32 -PropertyType "DWord" -Force | Out-Null; `
New-ItemProperty -Path $registryPath -Name "Mode" -Value 1 -PropertyType "DWord" -Force | Out-Null; `
New-ItemProperty -Path $registryPath -Name "LogicalViewMode" -Value 3 -PropertyType "DWord" -Force | Out-Null; `
Stop-Process -ProcessName Explorer

Megjegyzés: a fenti kód nem rendezi el az ikonokat az asztalon (TODO!).

  • Az Áruház és Posta alkalmazások tálcára rögzítését (jobbklikk után) oldjuk fel.
PowerShell kódrészlet 
<# Unpin Mail and Store applications from the taskbar (Hungarian localized)
   https://stackoverflow.com/questions/45152335/unpin-the-microsoft-edge-and-store-taskbar-shortcuts-programmatically
#>

$appnames = "^Posta$|^Mail$|^Microsoft Store$"; `
((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | `
  Where-Object{$_.Name -match $appnames}).Verbs() | `
  Where-Object{$_.Name.replace('&','') -match 'Unpin from taskbar|Levétel a tálcáról'} | `
  ForEach-Object{$_.DoIt(); $exec = $true}
  • Opcionálisan Start menü jobbklikk, Parancssor, fejlécen jobbklikk, Alapértelmezések, Betűtípus legyen Lucida Console 12-es; Elrendezés, Ablakméret legyen 80x25.
PowerShell kódrészlet 
<# Console window (cmd.exe) defaults - 80*25 chars, Lucida Console 12pt

   https://www.winhelponline.com/blog/set-cmd-prompt-default-window-size-position/
#>
$registryPath = "HKCU:\Console"; `
IF(!(Test-Path $registryPath)) {New-Item -Path $registryPath -Force | Out-Null}; `
New-ItemProperty -Path $registryPath -Name "WindowSize" -Value 1638480 -PropertyType "DWord" -Force | Out-Null; `
New-ItemProperty -Path $registryPath -Name "FaceName" -Value "Lucida Console" -PropertyType "String" -Force | Out-Null; `
New-ItemProperty -Path $registryPath -Name "FontFamily" -Value 54 -PropertyType "DWord" -Force | Out-Null; `
New-ItemProperty -Path $registryPath -Name "FontSize" -Value 786432 -PropertyType "DWord" -Force | Out-Null; `
New-ItemProperty -Path $registryPath -Name "FontWeight" -Value 400 -PropertyType "DWord" -Force | Out-Null