Disassembler0 / Win10-Initial-Setup-Script

PowerShell script for automation of routine tasks done after fresh installations of Windows 10 / Server 2016 / Server 2019
MIT License
4.7k stars 1.07k forks source link

Windows Spotlight stopped working #292

Closed pagex closed 4 years ago

pagex commented 4 years ago

Applied your latest script, with settings below, Spotlight stopped working, does not refresh image on lockscreen anymore. I can't figure out which of these settings might have affected it. Any input will be much appreciated.

> # Version: v3.8, 2019-09-11
> 
> RequireAdmin
> 
> 
> DisableTelemetry                # EnableTelemetry
> DisableWiFiSense                # EnableWiFiSense
> # DisableSmartScreen            # EnableSmartScreen
> DisableWebSearch              # EnableWebSearch
> DisableAppSuggestions           # EnableAppSuggestions
> DisableActivityHistory          # EnableActivityHistory
> DisableBackgroundApps           # EnableBackgroundApps
> # DisableSensors                # EnableSensors
> # DisableLocation                 # EnableLocation
> # DisableMapUpdates               # EnableMapUpdates
> DisableFeedback                 # EnableFeedback
> DisableTailoredExperiences      # EnableTailoredExperiences
> #DisableAdvertisingID            # EnableAdvertisingID
> #DisableWebLangList              # EnableWebLangList
> DisableCortana                  # EnableCortana
> # DisableBiometrics             # EnableBiometrics
> # DisableCamera                 # EnableCamera
> # DisableMicrophone             # EnableMicrophone
> DisableErrorReporting           # EnableErrorReporting
> # SetP2PUpdateLocal             # SetP2PUpdateInternet          # SetP2PUpdateDisable
> DisableDiagTrack                # EnableDiagTrack
> DisableWAPPush                  # EnableWAPPush
> # EnableClearRecentFiles        # DisableClearRecentFiles
> # DisableRecentFiles            # EnableRecentFiles
> 
> 
> # 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
> #EnableDotNetStrongCrypto        # DisableDotNetStrongCrypto
> EnableMeltdownCompatFlag      # DisableMeltdownCompatFlag
> # me: mouse issues EnableF8BootMenu
> #EnableF8BootMenu                # DisableF8BootMenu
> # DisableBootRecovery           # EnableBootRecovery
> # DisableRecoveryAndReset       # EnableRecoveryAndReset
> SetDEPOptOut                    # SetDEPOptIn
> 
> 
> #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
> 
> DisableUpdateMSRT             # EnableUpdateMSRT
> # DisableUpdateDriver           # EnableUpdateDriver
> EnableUpdateMSProducts          # DisableUpdateMSProducts
> # DisableUpdateAutoDownload     # EnableUpdateAutoDownload
> # DisableUpdateRestart            # EnableUpdateRestart
> DisableMaintenanceWakeUp        # EnableMaintenanceWakeUp
> #DisableSharedExperiences        # EnableSharedExperiences
> EnableClipboardHistory        # DisableClipboardHistory
> DisableAutoplay                 # EnableAutoplay
> DisableAutorun                  # EnableAutorun
> # DisableRestorePoints          # EnableRestorePoints
> # EnableStorageSense            # DisableStorageSense
> DisableDefragmentation        # EnableDefragmentation
> # DisableSuperfetch             # EnableSuperfetch
> # DisableIndexing               # EnableIndexing
> # DisableSwapFile               # EnableSwapFile
> # DisableRecycleBin             # EnableRecycleBin
> EnableNTFSLongPaths             # DisableNTFSLongPaths
> # DisableNTFSLastAccess         # EnableNTFSLastAccess
> # SetBIOSTimeUTC                # SetBIOSTimeLocal
> # EnableHibernation             # DisableHibernation
> # DisableSleepButton            # EnableSleepButton
> # DisableSleepTimeout           # EnableSleepTimeout
> # DisableFastStartup            # EnableFastStartup
> # DisableAutoRebootOnCrash      # EnableAutoRebootOnCrash
> 
> ### UI Tweaks ###
> #DisableActionCenter             # EnableActionCenter
> #DisableLockScreen               # EnableLockScreen
> # DisableLockScreenRS1          # EnableLockScreenRS1
> #HideNetworkFromLockScreen       # ShowNetworkOnLockScreen
> #HideShutdownFromLockScreen      # ShowShutdownOnLockScreen
> #DisableLockScreenBlur           # EnableLockScreenBlur
> # DisableAeroShake              # EnableAeroShake
> DisableAccessibilityKeys        # EnableAccessibilityKeys
> ShowTaskManagerDetails          # HideTaskManagerDetails
> ShowFileOperationsDetails       # HideFileOperationsDetails
> # EnableFileDeleteConfirm       # DisableFileDeleteConfirm
> HideTaskbarSearch               # ShowTaskbarSearchIcon         # ShowTaskbarSearchBox
> #HideTaskView                    # ShowTaskView
> #ShowSmallTaskbarIcons           # ShowLargeTaskbarIcons
> SetTaskbarCombineWhenFull       # SetTaskbarCombineNever        # SetTaskbarCombineAlways
> HideTaskbarPeopleIcon           # ShowTaskbarPeopleIcon
> #ShowTrayIcons                   # HideTrayIcons
> # ShowSecondsInTaskbar          # HideSecondsFromTaskbar
> # DisableSearchAppInStore         # EnableSearchAppInStore
> #DisableNewAppPrompt             # EnableNewAppPrompt
> # HideRecentlyAddedApps         # ShowRecentlyAddedApps
> # HideMostUsedApps              # ShowMostUsedApps
> # SetControlPanelSmallIcons     # SetControlPanelLargeIcons     # SetControlPanelCategories
> # DisableShortcutInName           # EnableShortcutInName
> # HideShortcutArrow             # ShowShortcutArrow
> # SetVisualFXPerformance          # SetVisualFXAppearance
> # EnableTitleBarColor           # DisableTitleBarColor
> # EnableDarkTheme               # DisableDarkTheme
> # AddENKeyboard                 # RemoveENKeyboard
> # EnableNumlock                 # DisableNumlock
> # DisableEnhPointerPrecision    # EnableEnhPointerPrecision
> # SetSoundSchemeNone            # SetSoundSchemeDefault
> # DisableStartupSound           # EnableStartupSound
> # DisableChangingSoundScheme    # EnableChangingSoundScheme
> # EnableVerboseStatus           # DisableVerboseStatus
> DisableF1HelpKey                # EnableF1HelpKey
> 
> # ShowExplorerTitleFullPath     # HideExplorerTitleFullPath
> ShowKnownExtensions             # HideKnownExtensions
> ShowHiddenFiles                 # HideHiddenFiles
> # ShowSuperHiddenFiles          # HideSuperHiddenFiles
> # ShowEmptyDrives               # HideEmptyDrives
> # ShowFolderMergeConflicts      # HideFolderMergeConflicts
> EnableNavPaneExpand             # DisableNavPaneExpand
> # ShowNavPaneAllFolders         # HideNavPaneAllFolders
> # EnableFldrSeparateProcess     # DisableFldrSeparateProcess
> # EnableRestoreFldrWindows      # DisableRestoreFldrWindows
> # ShowEncCompFilesColor         # HideEncCompFilesColor
> # DisableSharingWizard          # EnableSharingWizard
> # HideSelectCheckboxes          # ShowSelectCheckboxes
> # HideSyncNotifications           # ShowSyncNotifications
> # HideRecentShortcuts             # ShowRecentShortcuts
> SetExplorerThisPC               # SetExplorerQuickAccess
> # HideQuickAccess                 # ShowQuickAccess
> # HideRecycleBinFromDesktop     # ShowRecycleBinOnDesktop
> ShowThisPCOnDesktop             # HideThisPCFromDesktop
> # ShowUserFolderOnDesktop       # HideUserFolderFromDesktop
> # ShowControlPanelOnDesktop     # HideControlPanelFromDesktop
> # ShowNetworkOnDesktop          # HideNetworkFromDesktop
> # ShowBuildNumberOnDesktop      # HideBuildNumberFromDesktop
> # HideDesktopFromThisPC           # ShowDesktopInThisPC
> # HideDesktopFromExplorer       # ShowDesktopInExplorer
> # HideDocumentsFromThisPC         # ShowDocumentsInThisPC
> # HideDocumentsFromExplorer     # ShowDocumentsInExplorer
> # HideDownloadsFromThisPC         # ShowDownloadsInThisPC
> # HideDownloadsFromExplorer     # ShowDownloadsInExplorer
> # HideMusicFromThisPC             # ShowMusicInThisPC
> # HideMusicFromExplorer         # ShowMusicInExplorer
> # HidePicturesFromThisPC          # ShowPicturesInThisPC
> # HidePicturesFromExplorer      # ShowPicturesInExplorer
> # HideVideosFromThisPC            # ShowVideosInThisPC
> # HideVideosFromExplorer        # ShowVideosInExplorer
> # Hide3DObjectsFromThisPC         # Show3DObjectsInThisPC
> # Hide3DObjectsFromExplorer     # Show3DObjectsInExplorer
> # HideIncludeInLibraryMenu      # ShowIncludeInLibraryMenu
> # HideGiveAccessToMenu          # ShowGiveAccessToMenu
> # HideShareMenu                 # ShowShareMenu
> # DisableThumbnails             # EnableThumbnails
> DisableThumbnailCache           # EnableThumbnailCache
> DisableThumbsDBOnNetwork        # EnableThumbsDBOnNetwork
> 
> # 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
> # UninstallMediaPlayer          # InstallMediaPlayer
> # UninstallInternetExplorer     # InstallInternetExplorer
> # UninstallWorkFolders          # InstallWorkFolders
> # UninstallPowerShellV2         # InstallPowerShellV2
> # InstallLinuxSubsystem         # UninstallLinuxSubsystem
> # InstallHyperV                 # UninstallHyperV
> # InstallNET23                  # UninstallNET23
> #SetPhotoViewerAssociation       # UnsetPhotoViewerAssociation
> #AddPhotoViewerOpenWith          # RemovePhotoViewerOpenWith
> # UninstallPDFPrinter           # InstallPDFPrinter
> UninstallXPSPrinter             # InstallXPSPrinter
> RemoveFaxPrinter                # AddFaxPrinter
> # UninstallFaxAndScan           # InstallFaxAndScan
> 
> # HideServerManagerOnLogin      # ShowServerManagerOnLogin
> # DisableShutdownTracker        # EnableShutdownTracker
> # DisablePasswordPolicy         # EnablePasswordPolicy
> # DisableCtrlAltDelLogin        # EnableCtrlAltDelLogin
> # DisableIEEnhancedSecurity     # EnableIEEnhancedSecurity
> # EnableAudio                   # DisableAudio
> 
> 
> # UnpinStartMenuTiles
> # UnpinTaskbarIcons
> 
pagex commented 4 years ago

Ok, found the issue DisableBackgroundApps disables ContentDeliveryManager that downloads photos.