Script to setup Windows 10 1903
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

189 lines
8.0 KiB

#region Protection
Checkings -Warning;Checkings;
Logging;LeaveAlone;
CreateRestorePoint;LeaveAlone
#region Privacy & Telemetry
DiagTrackService -Disable;DiagTrackService -Enable;
DiagnosticDataLevel -Minimal;DiagnosticDataLevel -Default;
ErrorReporting -Disable;ErrorReporting -Enable;
WindowsFeedback -Disable;WindowsFeedback -Enable;
ScheduledTasks -Disable;ScheduledTasks -Enable;
SigninInfo -Disable;SigninInfo -Enable;
LanguageListAccess -Disable;LanguageListAccess -Enable;
AdvertisingID -Disable;AdvertisingID -Enable;
ShareAcrossDevices -Disable;ShareAcrossDevices -Enable;
WindowsWelcomeExperience -Hide;WindowsWelcomeExperience -Show;
WindowsTips -Enable;WindowsTips -Disable;
SettingsSuggestedContent -Hide;SettingsSuggestedContent -Show;
AppsSilentInstalling -Disable;AppsSilentInstalling -Enable;
WhatsNewInWindows -Disable;WhatsNewInWindows -Enable;
TailoredExperiences -Disable;TailoredExperiences -Enable;
BingSearch -Disable;BingSearch -Enable
#region UI & Personalization
ThisPC -Show;ThisPC -Hide;
CheckBoxes -Disable;CheckBoxes -Enable;
HiddenItems -Enable;HiddenItems -Disable;
FileExtensions -Show;FileExtensions -Hide;
MergeConflicts -Show;MergeConflicts -Hide;
OpenFileExplorerTo -ThisPC;OpenFileExplorerTo -QuickAccess;
CortanaButton -Hide;CortanaButton -Show;
OneDriveFileExplorerAd -Hide;OneDriveFileExplorerAd -Show;
TaskViewButton -Hide;TaskViewButton -Show;
PeopleTaskbar -Hide;PeopleTaskbar -Show;
SecondsInSystemClock -Show;SecondsInSystemClock -Hide;
SnapAssist -Disable;SnapAssist -Enable;
FileTransferDialog -Detailed;FileTransferDialog -Compact;
FileExplorerRibbon -Expanded;FileExplorerRibbon -Minimized;
RecycleBinDeleteConfirmation -Enable;RecycleBinDeleteConfirmation -Disable;
3DObjects -Hide;3DObjects -Show;
QuickAccessFrequentFolders -Hide;QuickAccessFrequentFolders -Show;
QuickAccessRecentFiles -Hide;QuickAccessRecentFiles -Show;
WindowsInkWorkspace -Hide;WindowsInkWorkspace -Show;
TrayIcons -Show;TrayIcons -Hide;
MeetNow -Hide;MeetNow -Show;
UnpinTaskbarEdgeStore;LeaveAlone;
WindowsColorScheme -Dark;WindowsColorScheme -Light;
AppMode -Dark;AppMode -Light;
NewAppInstalledNotification -Hide;NewAppInstalledNotification -Show;
FirstLogonAnimation -Disable;FirstLogonAnimation -Enable;
JPEGWallpapersQuality -Max;JPEGWallpapersQuality -Default;
TaskManagerWindow -Expanded;TaskManagerWindow -Compact;
RestartNotification -Show;RestartNotification -Hide;
ShortcutsSuffix -Disable;ShortcutsSuffix -Enable;
PrtScnSnippingTool -Enable;PrtScnSnippingTool -Disable;
AppsLanguageSwitch -Disable;AppsLanguageSwitch -Enable
#region OneDrive
OneDrive -Uninstall;OneDrive -Install
#region System
StorageSense -Enable;StorageSense -Disable;
StorageSenseFrequency -Month;StorageSenseFrequency -Default;
StorageSenseTempFiles -Enable;StorageSenseTempFiles -Disable;
StorageSenseRecycleBin -Enable;StorageSenseRecycleBin -Disable;
Hibernate -Disable;Hibernate -Enable;
TempFolder -SystemDrive;TempFolder -Default;
Win32LongPathLimit -Disable;Win32LongPathLimit -Enable;
BSoDStopError -Enable;BSoDStopError -Disable;
AdminApprovalMode -Disable;AdminApprovalMode -Enable;
MappedDrivesAppElevatedAccess -Enable;MappedDrivesAppElevatedAccess -Disable;
DeliveryOptimization -Disable;DeliveryOptimization -Enable;
WaitNetworkStartup -Enable;WaitNetworkStartup -Disable;
WindowsManageDefaultPrinter -Disable;WindowsManageDefaultPrinter -Enable;
WindowsFeatures -Disable;WindowsFeatures -Enable;
WindowsCapabilities -Uninstall;WindowsCapabilities -Install;
UpdateMicrosoftProducts -Enable;UpdateMicrosoftProducts -Disable;
PowerManagementScheme -High;PowerManagementScheme -Balanced;
LatestInstalled.NET -Enable;LatestInstalled.NET -Disable;
PCTurnOffDevice -Disable;PCTurnOffDevice -Enable;
SetInputMethod -English;SetInputMethod -Default;
WinPrtScrFolder -Desktop;WinPrtScrFolder -Default;
RecommendedTroubleshooting -Automatic;RecommendedTroubleshooting -Default;
FoldersLaunchSeparateProcess -Enable;FoldersLaunchSeparateProcess -Disable;
ReservedStorage -Disable;ReservedStorage -Enable;
F1HelpPage -Disable;F1HelpPage -Enable;
NumLock -Enable;NumLock -Disable;
CapsLock -Enable;CapsLock -Disable;
StickyShift -Disable;StickyShift -Enable;
Autoplay -Disable;Autoplay -Enable;
ThumbnailCacheRemoval -Disable;ThumbnailCacheRemoval -Enable;
SaveRestartableApps -Enable;SaveRestartableApps -Disable;
NetworkDiscovery -Enable;NetworkDiscovery -Disable;
SmartActiveHours -Enable;SmartActiveHours -Disable;
DeviceRestartAfterUpdate -Enable;DeviceRestartAfterUpdate -Disable
#region WSL
WSL -Enable;WSL -Disable;
EnableWSL2;LeaveAlone
#region Start menu
RecentlyAddedApps -Hide;RecentlyAddedApps -Show;
AppSuggestions -Hide;AppSuggestions -Show;
RunPowerShellShortcut -Elevated;RunPowerShellShortcut -NonElevated;
PinToStart -Tiles ControlPanel,DevicesPrinters,PowerShell;LeaveAlone;
PinToStart -Tiles ControlPanel;LeaveAlone;
PinToStart -Tiles DevicesPrinters;LeaveAlone;
PinToStart -Tiles PowerShell;LeaveAlone;
PinToStart -UnpinAll;LeaveAlone
#region UWP apps
UninstallUWPApps;LeaveAlone;UninstallUWPApps -ForAllUsers;LeaveAlone;
RestoreUWPApps;LeaveAlone;
HEIF -Manual;HEIF -Install;
CortanaAutostart -Disable;CortanaAutostart -Enable;
BackgroundUWPApps -Disable;BackgroundUWPApps -Enable;
CheckUWPAppsUpdates;LeaveAlone
#region Gaming
XboxGameBar -Disable;XboxGameBar -Enable;
XboxGameTips -Disable;XboxGameTips -Enable;
SetAppGraphicsPerformance;LeaveAlone;
GPUScheduling -Enable;GPUScheduling -Disable
#region Scheduled tasks
CleanUpTask -Register;CleanUpTask -Delete;
SoftwareDistributionTask -Register;SoftwareDistributionTask -Delete;
TempTask -Register;TempTask -Delete
#region Microsoft Defender & Security
AddProtectedFolders;RemoveProtectedFolders;
AddAppControlledFolder;RemoveAllowedAppsControlledFolder;
AddDefenderExclusionFolder;RemoveDefenderExclusionFolders;
AddDefenderExclusionFile;RemoveDefenderExclusionFiles;
NetworkProtection -Enable;NetworkProtection -Disable;
PUAppsDetection -Enable;PUAppsDetection -Disable;
DefenderSandbox -Enable;DefenderSandbox -Disable;
DismissMSAccount;LeaveAlone;
DismissSmartScreenFilter;LeaveAlone;
AuditProcess -Enable;AuditProcess -Disable;
AuditCommandLineProcess -Enable;AuditCommandLineProcess -Disable;
EventViewerCustomView -Enable;EventViewerCustomView -Disable;
PowerShellModulesLogging -Enable;PowerShellModulesLogging -Disable;
PowerShellScriptsLogging -Enable;PowerShellScriptsLogging -Disable;
AppsSmartScreen -Disable;AppsSmartScreen -Enable;
SaveZoneInformation -Disable;SaveZoneInformation -Enable;
WindowsScriptHost -Disable;WindowsScriptHost -Enable;
WindowsSandbox -Enable;WindowsSandbox -Disable
#region Context menu
MSIExtractContext -Add;MSIExtractContext -Remove;
CABInstallContext -Add;CABInstallContext -Remove;
RunAsDifferentUserContext -Add;RunAsDifferentUserContext -Remove;
CastToDeviceContext -Hide;CastToDeviceContext -Show;
ShareContext -Hide;ShareContext -Show;
EditWithPaint3DContext -Hide;EditWithPaint3DContext -Show;
EditWithPhotosContext -Hide;EditWithPhotosContext -Show;
CreateANewVideoContext -Hide;CreateANewVideoContext -Show;
ImagesEditContext -Hide;ImagesEditContext -Show;
PrintCMDContext -Hide;PrintCMDContext -Show;
IncludeInLibraryContext -Hide;IncludeInLibraryContext -Show;
SendToContext -Hide;SendToContext -Show;
BitLockerContext -Hide;BitLockerContext -Show;
BitmapImageNewContext -Remove;BitmapImageNewContext -Add;
RichTextDocumentNewContext -Remove;RichTextDocumentNewContext -Add;
CompressedFolderNewContext -Remove;CompressedFolderNewContext -Add;
MultipleInvokeContext -Enable;MultipleInvokeContext -Disable;
UseStoreOpenWith -Hide;UseStoreOpenWith -Show;
PreviousVersionsPage -Hide;PreviousVersionsPage -Show
#region Other
ControlPanelView -Category;ControlPanelView -LargeIcons;ControlPanelView -SmallIcons;
TaskbarSearch -Hide;TaskbarSearch -SearchIcon;TaskbarSearch -SearchBox;
SetUserShellFolderLocation -Root;SetUserShellFolderLocation -Custom;SetUserShellFolderLocation -Default
<#end#>