Windows 10/Deployment Batch: Difference between revisions
Line 24: | Line 24: | ||
Set-ItemProperty -Path $path -Name "SearchboxTaskbar" -Value 0 | Set-ItemProperty -Path $path -Name "SearchboxTaskbar" -Value 0 | ||
</pre> | </pre> | ||
* Disable Task View icon | * Disable Task View icon | ||
<pre> | <pre> | ||
$path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer" | $path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer" | ||
New- | New-Item -Path $path -Name "MultiTaskingView" | ||
$path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\MultiTaskingView" | $path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\MultiTaskingView" | ||
New- | New-Item -Path $path -Name "AllUpView" | ||
$path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\MultiTaskingView\AllUpView" | $path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\MultiTaskingView\AllUpView" | ||
New-ItemProperty -Path $path -Name "Enabled" - | New-ItemProperty -Path $path -Name "Enabled" -PropertyType DWord -Value "0" | ||
</pre> | </pre> | ||
Revision as of 22:58, 16 November 2018
- disable/enable powershell restrictions
set-executionpolicy unrestricted set-executionpolicy restricted
Taskbar
- Disable Cortana
$path = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" IF(!(Test-Path -Path $path)) { New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows" -Name "Windows Search" } Set-ItemProperty -Path $path -Name "AllowCortana" -Value 0 #Restart Explorer to change it immediately Stop-Process -name explorer
- Disable Searchbox
$path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" Set-ItemProperty -Path $path -Name "SearchboxTaskbar" -Value 0
- Disable Task View icon
$path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer" New-Item -Path $path -Name "MultiTaskingView" $path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\MultiTaskingView" New-Item -Path $path -Name "AllUpView" $path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\MultiTaskingView\AllUpView" New-ItemProperty -Path $path -Name "Enabled" -PropertyType DWord -Value "0"
- Uninstall OneDrive
taskkill /f /im OneDrive.exe %SystemRoot%\System32\OneDriveSetup.exe /uninstall %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
- Show all tray icons
$path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer" Set-ItemProperty -Path $path -Name "EnableAutoTray" -Value 0
- Disable Intel HD Graphics tray icon + shortcuts
$path = "HKCU:\Software\Intel\Display\igfxcui\igfxtray\TrayIcon" Set-ItemProperty -Path $path -Name "ShowTrayIcon" -Value 0 $path = "HKCU:\Software\Intel\Display\igfxcui\HotKeys" Set-ItemProperty -Path $path -Name "Enable" -Value 0