Skip to content

Instantly share code, notes, and snippets.

@maxwelleite
Last active June 16, 2023 23:05
Show Gist options
  • Select an option

  • Save maxwelleite/935e7f43c73d730e1b15c9b2ef0c1623 to your computer and use it in GitHub Desktop.

Select an option

Save maxwelleite/935e7f43c73d730e1b15c9b2ef0c1623 to your computer and use it in GitHub Desktop.

Revisions

  1. maxwelleite revised this gist Jun 16, 2023. 1 changed file with 3 additions and 6 deletions.
    9 changes: 3 additions & 6 deletions Win10-Initial-Setup-Script-Execute.preset
    Original file line number Diff line number Diff line change
    @@ -127,14 +127,13 @@ DisableActionCenter # EnableActionCenter
    DisableLockScreen # EnableLockScreen
    # DisableLockScreenRS1 # EnableLockScreenRS1
    HideNetworkFromLockScreen # ShowNetworkOnLockScreen
    HideShutdownFromLockScreen # ShowShutdownOnLockScreen
    ShowShutdownOnLockScreen # HideShutdownFromLockScreen
    DisableLockScreenBlur # EnableLockScreenBlur
    # DisableAeroShake # EnableAeroShake
    DisableAccessibilityKeys # EnableAccessibilityKeys
    ShowTaskManagerDetails # HideTaskManagerDetails
    ShowFileOperationsDetails # HideFileOperationsDetails
    # EnableFileDeleteConfirm # DisableFileDeleteConfirm
    EnableFileDeleteConfirm
    EnableFileDeleteConfirm # DisableFileDeleteConfirm
    HideTaskbarSearch # ShowTaskbarSearchIcon # ShowTaskbarSearchBox
    HideTaskView # ShowTaskView
    #ShowSmallTaskbarIcons # ShowLargeTaskbarIcons
    @@ -188,8 +187,7 @@ SetExplorerThisPC # SetExplorerQuickAccess
    ShowQuickAccess
    ShowRecycleBinOnDesktop # HideRecycleBinFromDesktop
    ShowThisPCOnDesktop # HideThisPCFromDesktop
    # ShowUserFolderOnDesktop # HideUserFolderFromDesktop
    ShowUserFolderOnDesktop
    ShowUserFolderOnDesktop # HideUserFolderFromDesktop
    # ShowControlPanelOnDesktop # HideControlPanelFromDesktop
    # ShowNetworkOnDesktop # HideNetworkFromDesktop
    ShowDesktopIcons # HideDesktopIcons
    @@ -273,4 +271,3 @@ UnpinStartMenuTiles
    ### Auxiliary Functions ###
    WaitForKey
    Restart

  2. maxwelleite revised this gist Jun 16, 2023. 1 changed file with 17 additions and 19 deletions.
    36 changes: 17 additions & 19 deletions Win10-Initial-Setup-Script-Execute.preset
    Original file line number Diff line number Diff line change
    @@ -65,8 +65,8 @@ DisableAdminShares # EnableAdminShares
    # EnableCIMemoryIntegrity # DisableCIMemoryIntegrity
    # EnableDefenderAppGuard # DisableDefenderAppGuard
    HideAccountProtectionWarn # ShowAccountProtectionWarn
    # DisableDownloadBlocking # EnableDownloadBlocking
    # DisableScriptHost # EnableScriptHost
    DisableDownloadBlocking # EnableDownloadBlocking
    # DisableScriptHost # EnableScriptHost
    EnableScriptHost
    EnableDotNetStrongCrypto # DisableDotNetStrongCrypto
    # EnableMeltdownCompatFlag # DisableMeltdownCompatFlag
    @@ -78,8 +78,8 @@ SetDEPOptOut # SetDEPOptIn
    ### Network Tweaks ###
    SetCurrentNetworkPrivate # SetCurrentNetworkPublic
    # SetUnknownNetworksPrivate # SetUnknownNetworksPublic
    # DisableNetDevicesAutoInst # EnableNetDevicesAutoInst
    # DisableHomeGroups # EnableHomeGroups
    DisableNetDevicesAutoInst # EnableNetDevicesAutoInst
    DisableHomeGroups # EnableHomeGroups
    # DisableSMB1 # EnableSMB1
    # DisableSMBServer # EnableSMBServer
    # DisableNetBIOS # EnableNetBIOS
    @@ -97,7 +97,7 @@ DisableRemoteAssistance # EnableRemoteAssistance

    ### Service Tweaks ###
    # DisableUpdateMSRT # EnableUpdateMSRT
    # DisableUpdateDriver # EnableUpdateDriver
    DisableUpdateDriver # EnableUpdateDriver
    EnableUpdateMSProducts # DisableUpdateMSProducts
    # DisableUpdateAutoDownload # EnableUpdateAutoDownload
    DisableUpdateRestart # EnableUpdateRestart
    @@ -107,22 +107,20 @@ DisableSharedExperiences # EnableSharedExperiences
    # EnableClipboardHistory # DisableClipboardHistory
    DisableAutoplay # EnableAutoplay
    DisableAutorun # EnableAutorun
    # DisableRestorePoints # EnableRestorePoints
    # EnableStorageSense # DisableStorageSense
    EnableRestorePoints # DisableRestorePoints
    EnableStorageSense # DisableStorageSense
    # DisableDefragmentation # EnableDefragmentation
    # DisableSuperfetch # EnableSuperfetch
    # DisableIndexing # EnableIndexing
    # DisableRecycleBin # EnableRecycleBin
    EnableNTFSLongPaths # DisableNTFSLongPaths
    # DisableNTFSLastAccess # EnableNTFSLastAccess
    # SetBIOSTimeUTC # SetBIOSTimeLocal
    # EnableHibernation # DisableHibernation
    DisableHibernation
    DisableHibernation # EnableHibernation
    # DisableSleepButton # EnableSleepButton
    # DisableSleepTimeout # EnableSleepTimeout
    # DisableFastStartup # EnableFastStartup
    # DisableAutoRebootOnCrash # EnableAutoRebootOnCrash
    DisableAutoRebootOnCrash
    DisableAutoRebootOnCrash # EnableAutoRebootOnCrash

    ### UI Tweaks ###
    DisableActionCenter # EnableActionCenter
    @@ -168,9 +166,9 @@ SetVisualFXPerformance # SetVisualFXAppearance
    DisableF1HelpKey # EnableF1HelpKey

    ### Explorer UI Tweaks ###
    # ShowExplorerTitleFullPath # HideExplorerTitleFullPath
    ShowExplorerTitleFullPath # HideExplorerTitleFullPath
    ShowKnownExtensions # HideKnownExtensions
    #ShowHiddenFiles # HideHiddenFiles
    #ShowHiddenFiles # HideHiddenFiles
    HideHiddenFiles
    # ShowSuperHiddenFiles # HideSuperHiddenFiles
    # ShowEmptyDrives # HideEmptyDrives
    @@ -186,19 +184,19 @@ EnableNavPaneExpand # DisableNavPaneExpand
    HideSyncNotifications # ShowSyncNotifications
    HideRecentShortcuts # ShowRecentShortcuts
    SetExplorerThisPC # SetExplorerQuickAccess
    #HideQuickAccess # ShowQuickAccess
    #HideQuickAccess # ShowQuickAccess
    ShowQuickAccess
    # HideRecycleBinFromDesktop # ShowRecycleBinOnDesktop
    ShowRecycleBinOnDesktop # HideRecycleBinFromDesktop
    ShowThisPCOnDesktop # HideThisPCFromDesktop
    # ShowUserFolderOnDesktop # HideUserFolderFromDesktop
    ShowUserFolderOnDesktop
    # ShowControlPanelOnDesktop # HideControlPanelFromDesktop
    # ShowNetworkOnDesktop # HideNetworkFromDesktop
    # HideDesktopIcons # ShowDesktopIcons
    ShowDesktopIcons # HideDesktopIcons
    # ShowBuildNumberOnDesktop # HideBuildNumberFromDesktop
    HideDesktopFromThisPC # ShowDesktopInThisPC
    # HideDesktopFromExplorer # ShowDesktopInExplorer
    #HideDocumentsFromThisPC # ShowDocumentsInThisPC
    ShowDesktopInExplorer # HideDesktopFromExplorer
    #HideDocumentsFromThisPC # ShowDocumentsInThisPC
    ShowDocumentsInThisPC
    # HideDocumentsFromExplorer # ShowDocumentsInExplorer
    #HideDownloadsFromThisPC # ShowDownloadsInThisPC
    @@ -252,7 +250,7 @@ DisableMediaSharing # EnableMediaSharing
    # UninstallSSHClient # InstallSSHClient
    # InstallSSHServer # UninstallSSHServer
    # InstallTelnetClient # UninstallTelnetClient
    # InstallNET23 # UninstallNET23
    InstallNET23 # UninstallNET23
    SetPhotoViewerAssociation # UnsetPhotoViewerAssociation
    AddPhotoViewerOpenWith # RemovePhotoViewerOpenWith
    # UninstallPDFPrinter # InstallPDFPrinter
  3. maxwelleite revised this gist Jun 16, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Win10-Initial-Setup-Script-Execute.cmd
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ rem clean
    rd /s /q "Win10-Initial-Setup-Script-master" > nul

    echo Downloading latest Win10-Initial-Setup-Script.zip
    powershell -command "Invoke-WebRequest https://github.com/Win10debloater/Win10-Initial-Setup-Script/archive/master.zip -OutFile Win10-Initial-Setup-Script.zip"
    powershell -command "Invoke-WebRequest https://github.com/Disassembler0/Win10-Initial-Setup-Script/archive/refs/heads/master.zip -OutFile Win10-Initial-Setup-Script.zip"

    echo Extracting Win10-Initial-Setup-Script.zip
    Call :UnZipFile "%~dp0" "%~dp0Win10-Initial-Setup-Script.zip"
  4. maxwelleite revised this gist Jan 22, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Win10-Initial-Setup-Script-Execute.preset
    Original file line number Diff line number Diff line change
    @@ -139,11 +139,11 @@ ShowFileOperationsDetails # HideFileOperationsDetails
    EnableFileDeleteConfirm
    HideTaskbarSearch # ShowTaskbarSearchIcon # ShowTaskbarSearchBox
    HideTaskView # ShowTaskView
    #ShowSmallTaskbarIcons # ShowLargeTaskbarIcons
    #ShowSmallTaskbarIcons # ShowLargeTaskbarIcons
    ShowLargeTaskbarIcons
    SetTaskbarCombineWhenFull # SetTaskbarCombineNever # SetTaskbarCombineAlways
    SetTaskbarCombineAlways # SetTaskbarCombineNever # SetTaskbarCombineWhenFull
    HideTaskbarPeopleIcon # ShowTaskbarPeopleIcon
    #ShowTrayIcons # HideTrayIcons
    #ShowTrayIcons # HideTrayIcons
    HideTrayIcons
    # ShowSecondsInTaskbar # HideSecondsFromTaskbar
    DisableSearchAppInStore # EnableSearchAppInStore
  5. maxwelleite revised this gist Nov 18, 2020. 1 changed file with 278 additions and 0 deletions.
    278 changes: 278 additions & 0 deletions Win10-Initial-Setup-Script-Execute.preset
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,278 @@
    ##########
    # Win 10 / Server 2016 / Server 2019 Initial Setup Script - Default preset
    # Author: Disassembler <[email protected]>
    # Version: v3.10, 2020-07-15
    # Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
    ##########
    # Win10-Initial-Setup-Script-Execute.preset
    # Modified: 17-nov-2020

    ### Require administrator privileges ###
    RequireAdmin

    ### Privacy Tweaks ###
    DisableTelemetry # EnableTelemetry
    DisableCortana # EnableCortana
    DisableWiFiSense # EnableWiFiSense
    # DisableSmartScreen # EnableSmartScreen
    DisableWebSearch # EnableWebSearch
    DisableAppSuggestions # EnableAppSuggestions
    DisableActivityHistory # EnableActivityHistory
    # DisableSensors # EnableSensors
    DisableLocation # EnableLocation
    DisableMapUpdates # EnableMapUpdates
    DisableFeedback # EnableFeedback
    DisableTailoredExperiences # EnableTailoredExperiences
    DisableAdvertisingID # EnableAdvertisingID
    DisableWebLangList # EnableWebLangList
    # DisableBiometrics # EnableBiometrics
    # DisableCamera # EnableCamera
    # DisableMicrophone # EnableMicrophone
    DisableErrorReporting # EnableErrorReporting
    # SetP2PUpdateLocal # SetP2PUpdateInternet # SetP2PUpdateDisable
    DisableDiagTrack # EnableDiagTrack
    DisableWAPPush # EnableWAPPush
    # EnableClearRecentFiles # DisableClearRecentFiles
    # DisableRecentFiles # EnableRecentFiles

    ### UWP Privacy Tweaks ###
    DisableUWPBackgroundApps # EnableUWPBackgroundApps
    # DisableUWPVoiceActivation # EnableUWPVoiceActivation
    # DisableUWPNotifications # EnableUWPNotifications
    # DisableUWPAccountInfo # EnableUWPAccountInfo
    # DisableUWPContacts # EnableUWPContacts
    # DisableUWPCalendar # EnableUWPCalendar
    # DisableUWPPhoneCalls # EnableUWPPhoneCalls
    # DisableUWPCallHistory # EnableUWPCallHistory
    # DisableUWPEmail # EnableUWPEmail
    # DisableUWPTasks # EnableUWPTasks
    # DisableUWPMessaging # EnableUWPMessaging
    # DisableUWPRadios # EnableUWPRadios
    # DisableUWPOtherDevices # EnableUWPOtherDevices
    # DisableUWPDiagInfo # EnableUWPDiagInfo
    # DisableUWPFileSystem # EnableUWPFileSystem
    # DisableUWPSwapFile # EnableUWPSwapFile

    ### Security Tweaks ###
    # SetUACLow # SetUACHigh
    # EnableSharingMappedDrives # DisableSharingMappedDrives
    DisableAdminShares # EnableAdminShares
    # DisableFirewall # EnableFirewall
    # HideDefenderTrayIcon # ShowDefenderTrayIcon
    # DisableDefender # EnableDefender
    # DisableDefenderCloud # EnableDefenderCloud
    # EnableCtrldFolderAccess # DisableCtrldFolderAccess
    # EnableCIMemoryIntegrity # DisableCIMemoryIntegrity
    # EnableDefenderAppGuard # DisableDefenderAppGuard
    HideAccountProtectionWarn # ShowAccountProtectionWarn
    # DisableDownloadBlocking # EnableDownloadBlocking
    # DisableScriptHost # EnableScriptHost
    EnableScriptHost
    EnableDotNetStrongCrypto # DisableDotNetStrongCrypto
    # EnableMeltdownCompatFlag # DisableMeltdownCompatFlag
    EnableF8BootMenu # DisableF8BootMenu
    # DisableBootRecovery # EnableBootRecovery
    # DisableRecoveryAndReset # EnableRecoveryAndReset
    SetDEPOptOut # SetDEPOptIn

    ### Network Tweaks ###
    SetCurrentNetworkPrivate # SetCurrentNetworkPublic
    # SetUnknownNetworksPrivate # SetUnknownNetworksPublic
    # DisableNetDevicesAutoInst # EnableNetDevicesAutoInst
    # DisableHomeGroups # EnableHomeGroups
    # DisableSMB1 # EnableSMB1
    # DisableSMBServer # EnableSMBServer
    # DisableNetBIOS # EnableNetBIOS
    # DisableLLMNR # EnableLLMNR
    # DisableLLDP # EnableLLDP
    # DisableLLTD # EnableLLTD
    # DisableMSNetClient # EnableMSNetClient
    # DisableQoS # EnableQoS
    # DisableIPv4 # EnableIPv4
    # DisableIPv6 # EnableIPv6
    # DisableNCSIProbe # EnableNCSIProbe
    # DisableConnectionSharing # EnableConnectionSharing
    DisableRemoteAssistance # EnableRemoteAssistance
    # EnableRemoteDesktop # DisableRemoteDesktop

    ### Service Tweaks ###
    # DisableUpdateMSRT # EnableUpdateMSRT
    # DisableUpdateDriver # EnableUpdateDriver
    EnableUpdateMSProducts # DisableUpdateMSProducts
    # DisableUpdateAutoDownload # EnableUpdateAutoDownload
    DisableUpdateRestart # EnableUpdateRestart
    DisableMaintenanceWakeUp # EnableMaintenanceWakeUp
    # DisableAutoRestartSignOn # EnableAutoRestartSignOn
    DisableSharedExperiences # EnableSharedExperiences
    # EnableClipboardHistory # DisableClipboardHistory
    DisableAutoplay # EnableAutoplay
    DisableAutorun # EnableAutorun
    # DisableRestorePoints # EnableRestorePoints
    # EnableStorageSense # DisableStorageSense
    # DisableDefragmentation # EnableDefragmentation
    # DisableSuperfetch # EnableSuperfetch
    # DisableIndexing # EnableIndexing
    # DisableRecycleBin # EnableRecycleBin
    EnableNTFSLongPaths # DisableNTFSLongPaths
    # DisableNTFSLastAccess # EnableNTFSLastAccess
    # SetBIOSTimeUTC # SetBIOSTimeLocal
    # EnableHibernation # DisableHibernation
    DisableHibernation
    # DisableSleepButton # EnableSleepButton
    # DisableSleepTimeout # EnableSleepTimeout
    # DisableFastStartup # EnableFastStartup
    # DisableAutoRebootOnCrash # EnableAutoRebootOnCrash
    DisableAutoRebootOnCrash

    ### UI Tweaks ###
    DisableActionCenter # EnableActionCenter
    DisableLockScreen # EnableLockScreen
    # DisableLockScreenRS1 # EnableLockScreenRS1
    HideNetworkFromLockScreen # ShowNetworkOnLockScreen
    HideShutdownFromLockScreen # ShowShutdownOnLockScreen
    DisableLockScreenBlur # EnableLockScreenBlur
    # DisableAeroShake # EnableAeroShake
    DisableAccessibilityKeys # EnableAccessibilityKeys
    ShowTaskManagerDetails # HideTaskManagerDetails
    ShowFileOperationsDetails # HideFileOperationsDetails
    # EnableFileDeleteConfirm # DisableFileDeleteConfirm
    EnableFileDeleteConfirm
    HideTaskbarSearch # ShowTaskbarSearchIcon # ShowTaskbarSearchBox
    HideTaskView # ShowTaskView
    #ShowSmallTaskbarIcons # ShowLargeTaskbarIcons
    ShowLargeTaskbarIcons
    SetTaskbarCombineWhenFull # SetTaskbarCombineNever # SetTaskbarCombineAlways
    HideTaskbarPeopleIcon # ShowTaskbarPeopleIcon
    #ShowTrayIcons # HideTrayIcons
    HideTrayIcons
    # ShowSecondsInTaskbar # HideSecondsFromTaskbar
    DisableSearchAppInStore # EnableSearchAppInStore
    DisableNewAppPrompt # EnableNewAppPrompt
    # HideRecentlyAddedApps # ShowRecentlyAddedApps
    # HideMostUsedApps # ShowMostUsedApps
    # SetWinXMenuPowerShell # SetWinXMenuCmd
    # SetControlPanelSmallIcons # SetControlPanelLargeIcons # SetControlPanelCategories
    DisableShortcutInName # EnableShortcutInName
    # HideShortcutArrow # ShowShortcutArrow
    SetVisualFXPerformance # SetVisualFXAppearance
    # EnableTitleBarColor # DisableTitleBarColor
    # SetAppsDarkMode # SetAppsLightMode
    # SetSystemLightMode # SetSystemDarkMode
    # AddENKeyboard # RemoveENKeyboard
    # EnableNumlock # DisableNumlock
    # DisableEnhPointerPrecision # EnableEnhPointerPrecision
    # SetSoundSchemeNone # SetSoundSchemeDefault
    # DisableStartupSound # EnableStartupSound
    # DisableChangingSoundScheme # EnableChangingSoundScheme
    # EnableVerboseStatus # DisableVerboseStatus
    DisableF1HelpKey # EnableF1HelpKey

    ### Explorer UI Tweaks ###
    # ShowExplorerTitleFullPath # HideExplorerTitleFullPath
    ShowKnownExtensions # HideKnownExtensions
    #ShowHiddenFiles # HideHiddenFiles
    HideHiddenFiles
    # ShowSuperHiddenFiles # HideSuperHiddenFiles
    # ShowEmptyDrives # HideEmptyDrives
    # ShowFolderMergeConflicts # HideFolderMergeConflicts
    EnableNavPaneExpand # DisableNavPaneExpand
    # ShowNavPaneAllFolders # HideNavPaneAllFolders
    # ShowNavPaneLibraries # HideNavPaneLibraries
    # EnableFldrSeparateProcess # DisableFldrSeparateProcess
    # EnableRestoreFldrWindows # DisableRestoreFldrWindows
    # ShowEncCompFilesColor # HideEncCompFilesColor
    # DisableSharingWizard # EnableSharingWizard
    # HideSelectCheckboxes # ShowSelectCheckboxes
    HideSyncNotifications # ShowSyncNotifications
    HideRecentShortcuts # ShowRecentShortcuts
    SetExplorerThisPC # SetExplorerQuickAccess
    #HideQuickAccess # ShowQuickAccess
    ShowQuickAccess
    # HideRecycleBinFromDesktop # ShowRecycleBinOnDesktop
    ShowThisPCOnDesktop # HideThisPCFromDesktop
    # ShowUserFolderOnDesktop # HideUserFolderFromDesktop
    ShowUserFolderOnDesktop
    # ShowControlPanelOnDesktop # HideControlPanelFromDesktop
    # ShowNetworkOnDesktop # HideNetworkFromDesktop
    # HideDesktopIcons # ShowDesktopIcons
    # ShowBuildNumberOnDesktop # HideBuildNumberFromDesktop
    HideDesktopFromThisPC # ShowDesktopInThisPC
    # HideDesktopFromExplorer # ShowDesktopInExplorer
    #HideDocumentsFromThisPC # ShowDocumentsInThisPC
    ShowDocumentsInThisPC
    # HideDocumentsFromExplorer # ShowDocumentsInExplorer
    #HideDownloadsFromThisPC # ShowDownloadsInThisPC
    ShowDownloadsInThisPC
    # HideDownloadsFromExplorer # ShowDownloadsInExplorer
    #HideMusicFromThisPC # ShowMusicInThisPC
    ShowMusicInThisPC
    # HideMusicFromExplorer # ShowMusicInExplorer
    #HidePicturesFromThisPC # ShowPicturesInThisPC
    ShowPicturesInThisPC
    # HidePicturesFromExplorer # ShowPicturesInExplorer
    #HideVideosFromThisPC # ShowVideosInThisPC
    ShowVideosInThisPC
    # HideVideosFromExplorer # ShowVideosInExplorer
    Hide3DObjectsFromThisPC # Show3DObjectsInThisPC
    # Hide3DObjectsFromExplorer # Show3DObjectsInExplorer
    # HideNetworkFromExplorer # ShowNetworkInExplorer
    # HideIncludeInLibraryMenu # ShowIncludeInLibraryMenu
    # HideGiveAccessToMenu # ShowGiveAccessToMenu
    # HideShareMenu # ShowShareMenu
    # DisableThumbnails # EnableThumbnails
    #DisableThumbnailCache # EnableThumbnailCache
    EnableThumbnailCache
    DisableThumbsDBOnNetwork # EnableThumbsDBOnNetwork

    ### Application Tweaks ###
    DisableOneDrive # EnableOneDrive
    UninstallOneDrive # InstallOneDrive
    UninstallMsftBloat # InstallMsftBloat
    UninstallThirdPartyBloat # InstallThirdPartyBloat
    # UninstallWindowsStore # InstallWindowsStore
    DisableXboxFeatures # EnableXboxFeatures
    # DisableFullscreenOptims # EnableFullscreenOptims
    DisableAdobeFlash # EnableAdobeFlash
    DisableEdgePreload # EnableEdgePreload
    DisableEdgeShortcutCreation # EnableEdgeShortcutCreation
    DisableIEFirstRun # EnableIEFirstRun
    DisableFirstLogonAnimation # EnableFirstLogonAnimation
    DisableMediaSharing # EnableMediaSharing
    # DisableMediaOnlineAccess # EnableMediaOnlineAccess
    # EnableDeveloperMode # DisableDeveloperMode
    # UninstallMediaPlayer # InstallMediaPlayer
    # UninstallInternetExplorer # InstallInternetExplorer
    # UninstallWorkFolders # InstallWorkFolders
    # UninstallHelloFace # InstallHelloFace
    # UninstallMathRecognizer # InstallMathRecognizer
    # UninstallPowerShellV2 # InstallPowerShellV2
    # UninstallPowerShellISE # InstallPowerShellISE
    # InstallLinuxSubsystem # UninstallLinuxSubsystem
    # InstallHyperV # UninstallHyperV
    # UninstallSSHClient # InstallSSHClient
    # InstallSSHServer # UninstallSSHServer
    # InstallTelnetClient # UninstallTelnetClient
    # InstallNET23 # UninstallNET23
    SetPhotoViewerAssociation # UnsetPhotoViewerAssociation
    AddPhotoViewerOpenWith # RemovePhotoViewerOpenWith
    # UninstallPDFPrinter # InstallPDFPrinter
    UninstallXPSPrinter # InstallXPSPrinter
    RemoveFaxPrinter # AddFaxPrinter
    # UninstallFaxAndScan # InstallFaxAndScan

    ### Server Specific Tweaks ###
    # HideServerManagerOnLogin # ShowServerManagerOnLogin
    # DisableShutdownTracker # EnableShutdownTracker
    # DisablePasswordPolicy # EnablePasswordPolicy
    # DisableCtrlAltDelLogin # EnableCtrlAltDelLogin
    # DisableIEEnhancedSecurity # EnableIEEnhancedSecurity
    # EnableAudio # DisableAudio

    ### Unpinning ###
    UnpinStartMenuTiles
    # UnpinTaskbarIcons

    ### Auxiliary Functions ###
    WaitForKey
    Restart

  6. maxwelleite created this gist Nov 18, 2020.
    44 changes: 44 additions & 0 deletions Win10-Initial-Setup-Script-Execute.cmd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    @echo off
    :: Author: Maxwel Leite
    :: Website: http://needforbits.wordpress.com/
    :: Description: Batch script to download latest Win10-Initial-Setup-Script*
    :: and execute using your own local profile Win10-Initial-Setup-Script-Execute.preset (change before execute).
    :: * PowerShell script for automation of routine tasks done after fresh installations of Windows 10 / Server 2016 / Server 2019
    :: (https://github.com/Win10debloater/Win10-Initial-Setup-Script)
    ::
    if not "%1"=="am_admin" call powershell -h | %WINDIR%\System32\find.exe /i "powershell" > nul && if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin > nul & exit)

    setlocal
    cd /d %~dp0

    rem clean
    rd /s /q "Win10-Initial-Setup-Script-master" > nul

    echo Downloading latest Win10-Initial-Setup-Script.zip
    powershell -command "Invoke-WebRequest https://github.com/Win10debloater/Win10-Initial-Setup-Script/archive/master.zip -OutFile Win10-Initial-Setup-Script.zip"

    echo Extracting Win10-Initial-Setup-Script.zip
    Call :UnZipFile "%~dp0" "%~dp0Win10-Initial-Setup-Script.zip"

    echo Executing Win10-Initial-Setup-Script
    copy /y Win10-Initial-Setup-Script-Execute.preset Win10-Initial-Setup-Script-master\Default.preset > nul
    cd "Win10-Initial-Setup-Script-master"
    call Default.cmd
    rem powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0Win10.ps1" -include "%~dp0Win10.psm1" -preset "%~dp0Default.preset"
    pause
    exit /b

    :UnZipFile <ExtractTo> <newzipfile>
    set vbs="%temp%\_.vbs"
    if exist %vbs% del /f /q %vbs%
    >%vbs% echo Set fso = CreateObject("Scripting.FileSystemObject")
    >>%vbs% echo If NOT fso.FolderExists(%1) Then
    >>%vbs% echo fso.CreateFolder(%1)
    >>%vbs% echo End If
    >>%vbs% echo set objShell = CreateObject("Shell.Application")
    >>%vbs% echo set FilesInZip=objShell.NameSpace(%2).items
    >>%vbs% echo objShell.NameSpace(%1).CopyHere(FilesInZip)
    >>%vbs% echo Set fso = Nothing
    >>%vbs% echo Set objShell = Nothing
    cscript //nologo %vbs%
    if exist %vbs% del /f /q %vbs%