Windows 10/Deployment Batch: Difference between revisions
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
%SystemRoot%\System32\OneDriveSetup.exe /uninstall | %SystemRoot%\System32\OneDriveSetup.exe /uninstall | ||
%SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall | %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall | ||
</pre> | |||
* Show all tray icons | |||
<pre> | |||
$path = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" | |||
Set-ItemProperty -Path $path -Name "EnableAutoTray" -Value 0 | |||
</pre> | </pre> |
Revision as of 22:21, 16 November 2018
- disable/enable powershell restrictions
set-executionpolicy unrestricted set-executionpolicy restricted
- 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
- Uninstall OneDrive
taskkill /f /im OneDrive.exe %SystemRoot%\System32\OneDriveSetup.exe /uninstall %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
- Show all tray icons
$path = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" Set-ItemProperty -Path $path -Name "EnableAutoTray" -Value 0