{"id":424659,"date":"2025-02-17T08:12:51","date_gmt":"2025-02-17T08:12:51","guid":{"rendered":"https:\/\/www.ninjaone.com\/?post_type=script_hub&#038;p=424659"},"modified":"2025-02-17T08:16:49","modified_gmt":"2025-02-17T08:16:49","slug":"verwaltung-von-windows-spotlight-und-startmenue-vorschlaegen","status":"publish","type":"script_hub","link":"https:\/\/www.ninjaone.com\/de\/script-hub\/verwaltung-von-windows-spotlight-und-startmenue-vorschlaegen\/","title":{"rendered":"Wie man Windows Spotlight- und Startmen\u00fc-Vorschl\u00e4gen mit PowerShell effizient verwaltet"},"content":{"rendered":"<h2>Die wichtigsten Erkenntnisse<\/h2>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"1\"><strong>Optimiert die Anpassung<\/strong>: Das Skript zur Verwaltung von Windows Spotlight und Startmen\u00fc-Vorschl\u00e4gen kann \u00fcber mehrere Benutzerprofile hinweg effizient eingesetzt werden.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"2\" data-aria-level=\"1\"><strong>Erfordert Administratorrechte<\/strong>: F\u00fcr die Ausf\u00fchrung dieses Skripts sind aufgrund der \u00c4nderungen an der Registrierung Administratorrechte erforderlich.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"3\" data-aria-level=\"1\"><strong>Geeignet f\u00fcr verschiedene Benutzerprofile<\/strong>: Es ist geeignet f\u00fcr Azure AD-, Domain- sowie lokale Benutzerkonten und gew\u00e4hrleistet eine umfassende Anwendung.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"4\" data-aria-level=\"1\"><strong>Betriebssystem-spezifische Funktionen<\/strong>: So entwickelt, dass es die Unterschiede zwischen Windows 10 und Windows 11 ber\u00fccksichtigt, insbesondere in den Unternehmenseditionen.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"5\" data-aria-level=\"1\"><strong>Automatisiert l\u00e4stige Aufgaben<\/strong>: Ersetzt die Notwendigkeit manueller \u00c4nderungen an der Registrierung oder der Konfiguration von Gruppenrichtlinien.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"6\" data-aria-level=\"1\"><strong>Gleichgewicht zwischen Datenschutz und Benutzererfahrung<\/strong>: Bietet Kontrolle \u00fcber personalisierte Inhalte und Vorschl\u00e4ge unter Ber\u00fccksichtigung von Datenschutzstandards und Benutzerpr\u00e4ferenzen.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"7\" data-aria-level=\"1\"><strong>Unverzichtbar f\u00fcr MSPs und IT-Expert:innen<\/strong>: Ein wertvolles Tool f\u00fcr Managed Service Provider und IT-Expert:innen bei der Verwaltung vernetzter Umgebungen.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"8\" data-aria-level=\"1\"><strong>Testen und Backup werden empfohlen<\/strong>: Es wird empfohlen, das Skript in einer Staging-Umgebung zu testen und die Registrierungseinstellungen vor der Implementierung zu sichern.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"9\" data-aria-level=\"1\"><strong>Verbessert mit NinjaOne<\/strong>: Die F\u00e4higkeiten des Skripts k\u00f6nnen in Verbindung mit der IT-Management-Plattform von NinjaOne noch erweitert werden.<\/li>\n<\/ul>\n<p>Das Windows-Betriebssystem bietet eine Reihe von anpassbaren Funktionen zur Verbesserung der Benutzerfreundlichkeit, darunter Windows Spotlight und Startmen\u00fc-Vorschl\u00e4ge. Dieser Blog befasst sich mit einem PowerShell-Skript, das f\u00fcr die Konfiguration dieser Funktionen entwickelt wurde. Wir erkl\u00e4ren seine Bedeutung f\u00fcr IT-Expert:innen und <a href=\"https:\/\/www.ninjaone.com\/de\/was-ist-ein-msp\" target=\"_blank\" rel=\"noopener\">Managed Service Provider (MSPs)<\/a>.<\/p>\n<h2>Kontext<\/h2>\n<p>Mit der Weiterentwicklung der Windows-Benutzeroberfl\u00e4che ist die Verwaltung und Anpassung der Benutzererfahrung immer wichtiger geworden. Spotlight und Startmen\u00fc-Vorschl\u00e4ge sind wichtige Funktionen in Windows 10 und 11, die personalisierte Inhalte und App-Empfehlungen bieten. Aus verschiedenen Gr\u00fcnden, u. a. aus Gr\u00fcnden des Datenschutzes und der Benutzerpr\u00e4ferenzen, versuchen IT-Expert:innen und MSPs jedoch h\u00e4ufig, diese Funktionen \u00fcber mehrere Benutzerprofile hinweg zu steuern. Dieses PowerShell-Skript bietet eine L\u00f6sung, um die obengenannten Funktionen systematisch zu aktivieren oder zu deaktivieren.<\/p>\n<h2>Das Skript f\u00fcr die Verwaltung von Windows Spotlight und Startmen\u00fc-Vorschl\u00e4gen<\/h2>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">#Requires -Version 5.1\r\n\r\n&lt;#\r\n.SYNOPSIS\r\n    Enable or Disable Spotlight and Suggestions in the Start Menu.\r\n.DESCRIPTION\r\n    Enable or Disable Spotlight and Suggestions in the Start Menu.\r\n.EXAMPLE\r\n    (No Parameters)\r\n\r\n    On Windows 11, only recommendations for tips, shortcuts, and new apps are disabled\/enabled from the Start Menu.\r\n    Attempting to Disable Spotlight and Start Menu Suggestions\r\n    Registry::HKEY_USERS\\S-1-11-1-1111111111-1111111111-1111111111-1111111111\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager\\SubscribedContent-338389Enabled changed from 0 to 0\r\n    Registry::HKEY_USERS\\S-1-11-1-1111111111-1111111111-1111111111-1111111111\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager\\SubscribedContent-338388Enabled changed from 0 to 0\r\n    Registry::HKEY_USERS\\S-1-11-1-1111111111-1111111111-1111111111-1111111111\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager\\SystemPaneSuggestionsEnabled changed from 0 to 0\r\n    Registry::HKEY_USERS\\S-1-11-1-1111111111-1111111111-1111111111-1111111111\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent\\DisableWindowsSpotlightFeatures changed from 1 to 1\r\n    Registry::HKEY_USERS\\S-1-11-1-1111111111-1111111111-1111111111-1111111111\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\Start_IrisRecommendations changed from 0 to 0\r\n    Registry::HKEY_USERS\\S-1-11-1-1111111111-1111111111-1111111111-1111111111\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager\\SubscribedContent-338389Enabled changed from 0 to 0\r\n    Registry::HKEY_USERS\\S-1-11-1-1111111111-1111111111-1111111111-1111111111\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager\\SubscribedContent-338388Enabled changed from 0 to 0\r\n    Registry::HKEY_USERS\\S-1-11-1-1111111111-1111111111-1111111111-1111111111\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager\\SystemPaneSuggestionsEnabled changed from 0 to 0\r\n    Registry::HKEY_USERS\\S-1-11-1-1111111111-1111111111-1111111111-1111111111\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent\\DisableWindowsSpotlightFeatures changed from 1 to 1\r\n    Registry::HKEY_USERS\\S-1-11-1-1111111111-1111111111-1111111111-1111111111\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\Start_IrisRecommendations changed from 0 to 0\r\n\r\nPARAMETER: -Enable\r\n    Enables Spotlight and Suggestions in the Start Menu.\r\n.OUTPUTS\r\n    None\r\n.NOTES\r\n    Minimum OS Architecture Supported: Windows 10\r\n    Release Notes: Initial Release\r\nBy using this script, you indicate your acceptance of the following legal terms as well as our Terms of Use at https:\/\/www.ninjaone.com\/terms-of-use.\r\n    Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms. \r\n    Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party. \r\n    Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library or website belonging to or under the control of any other software provider. \r\n    Warranty Disclaimer: The script is provided \u201cas is\u201d and \u201cas available\u201d, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations. \r\n    Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks. \r\n    Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script. \r\n    EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).\r\n#&gt;\r\n\r\n[CmdletBinding()]\r\nparam (\r\n    [Parameter()]\r\n    [Switch]$Enable\r\n)\r\n\r\nbegin {\r\n    # Retrieve Dynamic Script Form Values\r\n    if ($env:enableOrDisable -and $env:enableOrDisable -notlike \"null\") {\r\n        if ($env:enableOrDisable -eq \"Enable\") { $Enable = $True }\r\n    }\r\n\r\n    # Local Admin Privileges are required to set other users' registry keys\r\n    function Test-IsElevated {\r\n        $id = [System.Security.Principal.WindowsIdentity]::GetCurrent()\r\n        $p = New-Object System.Security.Principal.WindowsPrincipal($id)\r\n        $p.IsInRole([System.Security.Principal.WindowsBuiltInRole]::Administrator)\r\n    }\r\n\r\n    # Get a list of all the user profiles for when the script is run as System.\r\n    function Get-UserHives {\r\n        param (\r\n            [Parameter()]\r\n            [ValidateSet('AzureAD', 'DomainAndLocal', 'All')]\r\n            [String]$Type = \"All\",\r\n            [Parameter()]\r\n            [String[]]$ExcludedUsers,\r\n            [Parameter()]\r\n            [switch]$IncludeDefault\r\n        )\r\n    \r\n        # User account SID's follow a particular pattern depending on if they're Azure AD or a Domain account or a local \"workgroup\" account.\r\n        $Patterns = switch ($Type) {\r\n            \"AzureAD\" { \"S-1-12-1-(\\d+-?){4}$\" }\r\n            \"DomainAndLocal\" { \"S-1-5-21-(\\d+-?){4}$\" }\r\n            \"All\" { \"S-1-12-1-(\\d+-?){4}$\" ; \"S-1-5-21-(\\d+-?){4}$\" } \r\n        }\r\n    \r\n        # We'll need the NTuser.dat file to load each user's registry hive. So we grab it if their account sid matches the above pattern. \r\n        $UserProfiles = Foreach ($Pattern in $Patterns) { \r\n            Get-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList\\*\" |\r\n                Where-Object { $_.PSChildName -match $Pattern } | \r\n                Select-Object @{Name = \"SID\"; Expression = { $_.PSChildName } },\r\n                @{Name = \"UserName\"; Expression = { \"$($_.ProfileImagePath | Split-Path -Leaf)\" } }, \r\n                @{Name = \"UserHive\"; Expression = { \"$($_.ProfileImagePath)\\NTuser.dat\" } }, \r\n                @{Name = \"Path\"; Expression = { $_.ProfileImagePath } }\r\n        }\r\n    \r\n        # There are some situations where grabbing the .Default user's info is needed.\r\n        switch ($IncludeDefault) {\r\n            $True {\r\n                $DefaultProfile = \"\" | Select-Object UserName, SID, UserHive, Path\r\n                $DefaultProfile.UserName = \"Default\"\r\n                $DefaultProfile.SID = \"DefaultProfile\"\r\n                $DefaultProfile.Userhive = \"$env:SystemDrive\\Users\\Default\\NTUSER.DAT\"\r\n                $DefaultProfile.Path = \"C:\\Users\\Default\"\r\n    \r\n                $DefaultProfile | Where-Object { $ExcludedUsers -notcontains $_.UserName }\r\n            }\r\n        }\r\n    \r\n        $UserProfiles | Where-Object { $ExcludedUsers -notcontains $_.UserName }\r\n    }\r\n\r\n    # Helper function for setting registry keys\r\n    function Set-RegKey {\r\n        param (\r\n            $Path,\r\n            $Name,\r\n            $Value,\r\n            [ValidateSet(\"DWord\", \"QWord\", \"String\", \"ExpandedString\", \"Binary\", \"MultiString\", \"Unknown\")]\r\n            $PropertyType = \"DWord\"\r\n        )\r\n        if (-not $(Test-Path -Path $Path)) {\r\n            # Check if path does not exist and create the path\r\n            New-Item -Path $Path -Force | Out-Null\r\n        }\r\n        if ((Get-ItemProperty -Path $Path -Name $Name -ErrorAction Ignore)) {\r\n            # Update property and print out what it was changed from and changed to\r\n            $CurrentValue = (Get-ItemProperty -Path $Path -Name $Name -ErrorAction Ignore).$Name\r\n            try {\r\n                Set-ItemProperty -Path $Path -Name $Name -Value $Value -Force -Confirm:$false -ErrorAction Stop | Out-Null\r\n            }\r\n            catch {\r\n                Write-Error \"[Error] Unable to Set registry key for $Name please see the error below!\"\r\n                Write-Error $_\r\n                exit 1\r\n            }\r\n            Write-Host \"$Path\\$Name changed from $CurrentValue to $($(Get-ItemProperty -Path $Path -Name $Name -ErrorAction Ignore).$Name)\"\r\n        }\r\n        else {\r\n            # Create property with value\r\n            try {\r\n                New-ItemProperty -Path $Path -Name $Name -Value $Value -PropertyType $PropertyType -Force -Confirm:$false -ErrorAction Stop | Out-Null\r\n            }\r\n            catch {\r\n                Write-Error \"[Error] Unable to Set registry key for $Name please see the error below!\"\r\n                Write-Error $_\r\n                exit 1\r\n            }\r\n            Write-Host \"Set $Path\\$Name to $($(Get-ItemProperty -Path $Path -Name $Name -ErrorAction Ignore).$Name)\"\r\n        }\r\n    }\r\n\r\n    # Gets the OS Name, e.g., Windows 10 Enterprise or Windows 11 Enterprise\r\n    function Get-OSName {\r\n        systeminfo | findstr \/B \/C:\"OS Name\"\r\n    }\r\n\r\n    $OSName = Get-OSName\r\n}\r\nprocess {\r\n\r\n    # Error out if the script doesn't have local administrator privileges\r\n    if (-not (Test-IsElevated)) {\r\n        Write-Error -Message \"Access Denied. Please run with Administrator privileges.\" -Exception (New-Object -TypeName System.UnauthorizedAccessException) -Category PermissionDenied\r\n        exit 1\r\n    }\r\n\r\n    # Get the registry hive for all users\r\n    $UserProfiles = Get-UserHives -Type \"All\"\r\n\r\n    # Initialize generic list for the keys we're going to set\r\n    $Keys = New-Object System.Collections.Generic.List[Object]\r\n    $LoadedProfiles = New-Object System.Collections.Generic.List[Object]\r\n\r\n    Foreach ($UserProfile in $UserProfiles) {\r\n        # Load User ntuser.dat if it's not already loaded\r\n        if ((Test-Path \"Registry::HKEY_USERS\\$($UserProfile.SID)\" -ErrorAction Ignore) -eq $false) {\r\n            $LoadedProfiles.Add($UserProfile)\r\n            Start-Process -FilePath \"cmd.exe\" -ArgumentList \"\/C reg.exe LOAD HKU\\$($UserProfile.SID) `\"$($UserProfile.UserHive)`\"\" -Wait -WindowStyle Hidden\r\n        }\r\n\r\n        $Keys.Add(\r\n            [PSCustomObject]@{\r\n                Path  = \"Registry::HKEY_USERS\\$($UserProfile.SID)\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager\"\r\n                Name  = \"SubscribedContent-338389Enabled\"\r\n                Value = if ($Enable) { 1 }Else { 0 }\r\n            }\r\n        )\r\n\r\n        $Keys.Add(\r\n            [PSCustomObject]@{\r\n                Path  = \"Registry::HKEY_USERS\\$($UserProfile.SID)\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager\"\r\n                Name  = \"SubscribedContent-338388Enabled\"\r\n                Value = if ($Enable) { 1 }Else { 0 }\r\n            }\r\n        )\r\n\r\n        $Keys.Add(\r\n            [PSCustomObject]@{\r\n                Path  = \"Registry::HKEY_USERS\\$($UserProfile.SID)\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager\"\r\n                Name  = \"SystemPaneSuggestionsEnabled\"\r\n                Value = if ($Enable) { 1 }Else { 0 }\r\n            }\r\n        )\r\n\r\n        # This key only works on Windows 10\/11 Enterprise\r\n        if ($OSName -Like \"*Enterprise*\") {\r\n            $Keys.Add(\r\n                [PSCustomObject]@{\r\n                    Path  = \"Registry::HKEY_USERS\\$($UserProfile.SID)\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent\"\r\n                    Name  = \"DisableWindowsSpotlightFeatures\"\r\n                    Value = if ($Enable) { 0 }Else { 1 }\r\n                }\r\n            )\r\n        }\r\n        else {\r\n            Write-Warning \"Disabling Spotlight is only possible on an Enterprise edition of Windows.\" \r\n        }\r\n\r\n        # The recommended section in Windows 11 is slightly helpful; this will simply remove the ads but keep the useful frequently used section.\r\n        if ($OSName -Like \"*11*\") {\r\n            $Keys.Add(\r\n                [PSCustomObject]@{\r\n                    Path  = \"Registry::HKEY_USERS\\$($UserProfile.SID)\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\"\r\n                    Name  = \"Start_IrisRecommendations\"\r\n                    Value = if ($Enable) { 1 }Else { 0 }\r\n                }\r\n            )\r\n        }\r\n    }\r\n\r\n    if($OSName -Like \"*11*\"){\r\n        Write-Host \"On Windows 11, only recommendations for tips, shortcuts, and new apps are disabled\/enabled from the Start Menu.\"\r\n    }\r\n    \r\n    if ($Enable) {\r\n        Write-Host \"Attempting to Enable Spotlight and Start Menu Suggestions\"\r\n    }\r\n    else {\r\n        Write-Host \"Attempting to Disable Spotlight and Start Menu Suggestions\"\r\n    }\r\n\r\n    # Set all the registry keys\r\n    $Keys | ForEach-Object { Set-RegKey -Path $_.Path -Name $_.Name -Value $_.Value }\r\n\r\n    # Unload any profiles we loaded up earlier (if any)\r\n    Foreach ($LoadedProfile in $LoadedProfiles) {\r\n        [gc]::Collect()\r\n        Start-Sleep 1\r\n        Start-Process -FilePath \"cmd.exe\" -ArgumentList \"\/C reg.exe UNLOAD HKU\\$($LoadedProfile.SID)\" -Wait -WindowStyle Hidden | Out-Null\r\n    }\r\n}\r\nend {\r\n    \r\n    \r\n    \r\n}<\/pre>\n<p>&nbsp;<\/p>\n\n<div class=\"in-context-cta\"><p style=\"text-align: center;\">Greifen Sie auf \u00fcber 300 Skripte im NinjaOne Dojo zu.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.ninjaone.com\/freetrialform\/\">Zugang erhalten<\/a><\/p>\n<\/div>\n<h2>Detaillierte Aufschl\u00fcsselung<\/h2>\n<p>Das Skript beginnt mit einer Zusammenfassung und einer Beschreibung, in der der Zweck des Skripts angegeben wird, und zwar das Umschalten von Windows Spotlight und Startmen\u00fc-Vorschl\u00e4gen. Es nutzt die PowerShell-Funktionen zur \u00c4nderung der Systemregistrierungs-Einstellungen f\u00fcr einzelne Benutzerprofile, einschlie\u00dflich Azure AD- und Domain-Konten.<\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"1\"><strong>Initialisierung<\/strong>: Das Skript \u00fcberpr\u00fcft zun\u00e4chst die Umgebungsvariable <strong>$env:enableOrDisable<\/strong>, um festzustellen, ob es die Funktionen aktivieren oder deaktivieren soll.<\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"1\"><strong>\u00dcberpr\u00fcfung auf Administratorrechte<\/strong>: Es enth\u00e4lt den Parameter <strong>Test-IsElevated<\/strong>, mit der \u00fcberpr\u00fcft wird, ob das Skript mit Administratorrechten ausgef\u00fchrt wird, was f\u00fcr die \u00c4nderung von Registrierungsschl\u00fcsseln unerl\u00e4sslich ist.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"2\" data-aria-level=\"1\"><strong>Behandlung von Benutzerprofilen<\/strong>: Die Funktion <strong>Get-UserHives<\/strong> dient zum Abrufen von Benutzerprofilen. Es filtert Azure AD-, Domain- sowie lokale Konten und stellt sicher, dass das Skript die richtigen Benutzerprofile verarbeitet.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"3\" data-aria-level=\"1\"><strong>\u00c4nderung der Registrierung<\/strong>: Das Skript erstellt eine Liste der zu \u00e4ndernden Registrierungsschl\u00fcssel. Diese Schl\u00fcssel steuern verschiedene Aspekte von Spotlight und Startmen\u00fc-Vorschl\u00e4gen. Je nach dem Parameter <strong>$Enable<\/strong> werden diese Schl\u00fcssel so eingestellt, dass sie die Funktionen aktivieren oder deaktivieren.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"4\" data-aria-level=\"1\"><strong>Betriebssystem-spezifische Verarbeitung<\/strong>: Das Skript enth\u00e4lt auch Pr\u00fcfungen f\u00fcr die Betriebssystemversion und ber\u00fccksichtigt die Besonderheiten von Windows 10 und Windows 11.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"5\" data-aria-level=\"1\"><strong>Ausf\u00fchrung und Abschluss<\/strong>: Schlie\u00dflich wendet das Skript die \u00c4nderungen auf jedes Benutzerprofil an und entl\u00e4dt alle geladenen Hives, um daf\u00fcr zu sorgen, dass die Systemleistung nicht beeintr\u00e4chtigt wird.<\/li>\n<\/ul>\n<h2>M\u00f6gliche Anwendungsf\u00e4lle<\/h2>\n<p>Nehmen wir an, ein MSP verwaltet ein Unternehmensnetzwerk. Aus Datenschutzgr\u00fcnden muss er Startmen\u00fc-Vorschl\u00e4ge f\u00fcr alle Benutzerprofile deaktivieren. Mit diesem Skript kann der MSP diese \u00c4nderungen systematisch anwenden, ohne jedes Profil manuell konfigurieren zu m\u00fcssen, was Zeit spart und das Risiko von Inkonsistenzen verringert.<\/p>\n<h2>Vergleiche<\/h2>\n<p>Bisher mussten solche \u00c4nderungen manuell in der Registrierung vorgenommen oder Gruppenrichtlinien angepasst werden. Dieses Skript vereinfacht den Prozess und bietet eine effizientere und weniger fehleranf\u00e4llige Methode. Dar\u00fcber hinaus deckt es auch Benutzerprofile ab, die nicht von Gruppenrichtlinien betroffen sind, und bietet somit eine umfassendere L\u00f6sung.<\/p>\n<h2>FAQs<\/h2>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"6\" data-aria-level=\"1\"><strong>F:<\/strong> Kann dieses Skript auch auf Nicht-Unternehmensversionen von Windows verwendet werden?\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"7\" data-aria-level=\"1\"><strong>A:<\/strong> Ja, aber einige Funktionen wie die Deaktivierung von Windows Spotlight sind spezifisch f\u00fcr die Enterprise-Editionen.<\/li>\n<\/ul>\n<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"8\" data-aria-level=\"1\"><strong>F:<\/strong> Sind f\u00fcr die Ausf\u00fchrung dieses Skripts Administratorrechte erforderlich?\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"9\" data-aria-level=\"1\"><strong>A:<\/strong> Ja, die \u00c4nderung von Registrierungsschl\u00fcsseln erfordert Administratorrechte.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Folgen<\/h2>\n<p>Dieses Skript bietet zwar leistungsstarke Anpassungsm\u00f6glichkeiten, hat aber auch Auswirkungen auf die Benutzerfreundlichkeit und den Datenschutz. Die Deaktivierung von Spotlight und Vorschl\u00e4gen kann sich darauf auswirken, wie Benutzer:innen mit ihrem Betriebssystem interagieren und neue Funktionen oder Anwendungen finden. IT-Administrator:innen sollten diese \u00dcberlegungen im Vergleich zu den Unternehmensrichtlinien und den Bed\u00fcrfnissen der Anwender:innen abw\u00e4gen.<\/p>\n<h2>Empfehlungen<\/h2>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"10\" data-aria-level=\"1\"><strong>Testen Sie das Skript gr\u00fcndlich<\/strong>: F\u00fchren Sie das Skript vor dem Einsatz in einer Staging-Umgebung aus.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"11\" data-aria-level=\"1\"><strong>Backup der Registrierung<\/strong>: Sichern Sie immer Registrierungseinstellungen, bevor Sie \u00c4nderungen vornehmen.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"12\" data-aria-level=\"1\"><strong>Informieren Sie die Benutzer:innen<\/strong>: Wenn Sie die Software in einer Unternehmensumgebung einsetzen, sollten Sie die Benutzer:innen \u00fcber die \u00c4nderungen informieren, um die Transparenz zu gew\u00e4hrleisten.<\/li>\n<\/ul>\n<h2>Abschlie\u00dfende \u00dcberlegungen<\/h2>\n<p>Im Zusammenhang mit diesem Skript stellt NinjaOne eine Plattform zur Verf\u00fcgung, die solche IT-Managementaufgaben weiter rationalisieren kann. Die F\u00e4higkeit, <a href=\"https:\/\/www.ninjaone.com\/de\/script-hub\" target=\"_blank\" rel=\"noopener\">Skripte<\/a> im gesamten Netzwerk bereitzustellen, kann die Implementierung von \u00c4nderungen wie diesen <a href=\"https:\/\/www.ninjaone.com\/de\/effizienz\/\" target=\"_blank\" rel=\"noopener\">einfacher und effizienter<\/a> machen, was den Wert der L\u00f6sung als <a href=\"https:\/\/www.ninjaone.com\/de\/plattform\/\" target=\"_blank\" rel=\"noopener\">umfassende IT-Management-L\u00f6sung<\/a> erh\u00f6ht.<\/p>\n","protected":false},"author":35,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","_lmt_disableupdate":"no","_lmt_disable":""},"operating_system":[4212],"use_cases":[4307],"class_list":["post-424659","script_hub","type-script_hub","status-publish","hentry","script_hub_category-windows","use_cases-allgemeine-konfiguration"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.ninjaone.com\/de\/wp-json\/wp\/v2\/script_hub\/424659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ninjaone.com\/de\/wp-json\/wp\/v2\/script_hub"}],"about":[{"href":"https:\/\/www.ninjaone.com\/de\/wp-json\/wp\/v2\/types\/script_hub"}],"author":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/de\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/de\/wp-json\/wp\/v2\/comments?post=424659"}],"wp:attachment":[{"href":"https:\/\/www.ninjaone.com\/de\/wp-json\/wp\/v2\/media?parent=424659"}],"wp:term":[{"taxonomy":"script_hub_category","embeddable":true,"href":"https:\/\/www.ninjaone.com\/de\/wp-json\/wp\/v2\/operating_system?post=424659"},{"taxonomy":"use_cases","embeddable":true,"href":"https:\/\/www.ninjaone.com\/de\/wp-json\/wp\/v2\/use_cases?post=424659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}