{"id":208389,"date":"2024-01-19T14:09:06","date_gmt":"2024-01-19T14:09:06","guid":{"rendered":"https:\/\/www.ninjaone.com\/script-hub\/comment-envoyer-des-notifications-toast-aux-utilisateurs\/"},"modified":"2024-03-04T18:50:01","modified_gmt":"2024-03-04T18:50:01","slug":"comment-envoyer-des-notifications-toast-aux-utilisateurs","status":"publish","type":"script_hub","link":"https:\/\/www.ninjaonesandbox.dev\/fr\/script-hub\/comment-envoyer-des-notifications-toast-aux-utilisateurs\/","title":{"rendered":"Comment utiliser PowerShell pour envoyer des notifications toast aux utilisateurs de Windows"},"content":{"rendered":"<p>\u00c9tant donn\u00e9 que les administrateurs syst\u00e8me ont constamment besoin d&rsquo;envoyer des notifications aux utilisateurs, qu&rsquo;il s&rsquo;agisse de maintenance programm\u00e9e, de mises \u00e0 jour de politiques ou de menaces de s\u00e9curit\u00e9 potentielles, il n&rsquo;est pas \u00e9tonnant que le script PowerShell suivant soit tr\u00e8s populaire. Il permet d&rsquo;envoyer des notifications toast (petits messages contextuels) \u00e0 l&rsquo;utilisateur actuellement connect\u00e9 sur un ordinateur Windows, afin que les administrateurs puissent rapidement et facilement attirer son attention.<\/p>\n<h2>Le script<\/h2>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">#Requires -Version 5.1\r\n\r\n&lt;#\r\n.SYNOPSIS\r\n    Sends a toast message\/notification to the currently signed in user.\r\n.DESCRIPTION\r\n    Sends a toast message\/notification to the currently signed in user.\r\n    This defaults to using NinjaOne's logo in the Toast Message, but you can specify any png formatted image from a url.\r\n    You can also specify the \"ApplicationId\" to any string. The default is \"NinjaOne RMM\".\r\n\r\n    Setup Required: Before sending a toast message, this script needs to be ran with just the Setup parameter to prepare the computer.\r\n     This requires running a the SYSTEM user.\r\n\r\n    After Setup: Then the Subject and Message parameters can be used to run the script as the currently signed in user.\r\n\r\n.EXAMPLE\r\n     -Setup\r\n    Sets up the registry with the default settings needed to send toast messages.\r\n    Defaults:\r\n        ApplicationId = \"NinjaOne RMM\"\r\n        ImagePath = \"C:UsersPublicPowerShellToastImage.png\"\r\n        ImageURL = \"http:\/\/www.google.com\/s2\/favicons?sz=128&amp;domain=www.ninjaonesandbox.dev\"\r\n.EXAMPLE\r\n     -Subject \"My Subject Here\" -Message \"My Message Here\"\r\n    Sends the subject \"My Subject Here\" and message \"My Message Here\" as a Toast message\/notification to the currently signed in user.\r\n.EXAMPLE\r\n     -Setup -ApplicationId \"MyCompany\" -ImageURL \"http:\/\/www.google.com\/s2\/favicons?sz=128&amp;domain=www.ninjaonesandbox.dev\" -ImagePath \"C:UsersPublicPowerShellToastImage.png\"\r\n    Sets up the registry with the custom setting needed to send toast messages. The example below this is what you will need to use to send the toast message.\r\n.EXAMPLE\r\n     -Subject \"My Subject Here\" -Message \"My Message Here\" -ApplicationId \"MyCompany\"\r\n    Sends the subject \"My Subject Here\" and message \"My Message Here\" as a Toast message\/notification to the currently signed in user.\r\n        ApplicationId: Creates a registry entry for your toasts called \"MyCompany\".\r\n        ImageURL: Downloads a png image for the icon in the toast message\/notification.\r\n        ImagePath: Where the image will be downloaded to that all users will have access to the image.\r\n.OUTPUTS\r\n    None\r\n.NOTES\r\n    If you want to change the defaults then with in the param block.\r\n    ImagePath uses C:UsersPublic as that is accessible by all users.\r\n    If you want to customize the application name to show your company name,\r\n        then look for $ApplicationId and change the content between the double quotes.\r\n\r\n    Minimum OS Architecture Supported: Windows 10\r\n    Release Notes:\r\n    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.ninjaonesandbox.dev\/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(DefaultParameterSetName = \"Default\")]\r\nparam\r\n(\r\n    [Parameter(Mandatory = $true, ParameterSetName = \"Default\")]\r\n    [string]\r\n    $Subject,\r\n    [Parameter(Mandatory = $true, ParameterSetName = \"Default\")]\r\n    [string]\r\n    $Message,\r\n    [Parameter(ParameterSetName = \"Setup\")]\r\n    [switch]\r\n    $Setup,\r\n    [Parameter(ParameterSetName = \"Setup\")]\r\n    [string]\r\n    $ImageURL = \"http:\/\/www.google.com\/s2\/favicons?sz=128&amp;domain=www.ninjaonesandbox.dev\",\r\n    [Parameter(ParameterSetName = \"Setup\")]\r\n    [ValidateScript({ Test-Path -Path $_ -IsValid })]\r\n    [string]\r\n    $ImagePath = \"C:UsersPublicPowerShellToastImage.png\",\r\n    [Parameter(ParameterSetName = \"Setup\")]\r\n    [Parameter(ParameterSetName = \"Default\")]\r\n    [string]\r\n    $ApplicationId = \"NinjaOne RMM\"\r\n)\r\n\r\nbegin {\r\n    function Set-ItemProp {\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        # Do not output errors and continue\r\n        $ErrorActionPreference = [System.Management.Automation.ActionPreference]::SilentlyContinue\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)) {\r\n            # Update property and print out what it was changed from and changed to\r\n            $CurrentValue = Get-ItemProperty -Path $Path -Name $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 $_\r\n            }\r\n            Write-Host \"$Path$Name changed from $($CurrentValue.$Name) to $((Get-ItemProperty -Path $Path -Name $Name).$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 $_\r\n            }\r\n            Write-Host \"Set $Path$Name to $((Get-ItemProperty -Path $Path -Name $Name).$Name)\"\r\n        }\r\n        $ErrorActionPreference = [System.Management.Automation.ActionPreference]::Continue\r\n    }\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    if ($Setup -and ([System.Security.Principal.WindowsIdentity]::GetCurrent().IsSystem -or $(Test-IsElevated))) {\r\n        Set-ItemProp -Path \"HKLM:SOFTWAREClassesAppUserModelId$($ApplicationId -replace 's+','.')\" -Name \"DisplayName\" -Value $ApplicationId -PropertyType String\r\n        Invoke-WebRequest -Uri $ImageURL -UseBasicParsing -OutFile $ImagePath\r\n        Set-ItemProp -Path \"HKLM:SOFTWAREClassesAppUserModelId$($ApplicationId -replace 's+','.')\" -Name \"IconUri\" -Value \"$ImagePath\" -PropertyType String\r\n    }\r\n    function Show-Notification {\r\n        [CmdletBinding()]\r\n        Param (\r\n            [string]\r\n            $ToastTitle,\r\n            [string]\r\n            [parameter(ValueFromPipeline)]\r\n            $ToastText\r\n        )\r\n\r\n        # Import all the needed libraries\r\n        [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] &gt; $null\r\n        [Windows.UI.Notifications.ToastNotification, Windows.UI.Notifications, ContentType = WindowsRuntime] &gt; $null\r\n        [Windows.System.User, Windows.System, ContentType = WindowsRuntime] &gt; $null\r\n        [Windows.System.UserType, Windows.System, ContentType = WindowsRuntime] &gt; $null\r\n        [Windows.System.UserAuthenticationStatus, Windows.System, ContentType = WindowsRuntime] &gt; $null\r\n\r\n        # Make sure that we can use the toast manager, also checks if the service is running and responding\r\n        try {\r\n            $ToastNotifier = [Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($ApplicationId)\r\n        }\r\n        catch {\r\n            Write-Error $_\r\n            Write-Host \"Failed to create notification.\"\r\n        }\r\n\r\n        # Use a template for our toast message\r\n        $Template = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastImageAndText02)\r\n        $RawXml = [xml] $Template.GetXml()\r\n\r\n        # Edit the template to our liking, in this case just the Title, Message, and path to an image file\r\n        $($RawXml.toast.visual.binding.text | Where-Object { $_.id -eq \"1\" }).AppendChild($RawXml.CreateTextNode($ToastTitle)) &gt; $null\r\n        $($RawXml.toast.visual.binding.text | Where-Object { $_.id -eq \"2\" }).AppendChild($RawXml.CreateTextNode($ToastText)) &gt; $null\r\n        if ($NodeImg = $RawXml.SelectSingleNode('\/\/image[@id = ''1'']')) {\r\n            $NodeImg.SetAttribute('src', $ImagePath) &gt; $null\r\n        }\r\n\r\n        # Serialized Xml for later consumption\r\n        $SerializedXml = New-Object Windows.Data.Xml.Dom.XmlDocument\r\n        $SerializedXml.LoadXml($RawXml.OuterXml)\r\n\r\n        # Setup how are toast will act, such as expiration time\r\n        $Toast = $null\r\n        $Toast = [Windows.UI.Notifications.ToastNotification]::new($SerializedXml)\r\n        $Toast.Tag = \"PowerShell\"\r\n        $Toast.Group = \"PowerShell\"\r\n        $Toast.ExpirationTime = [DateTimeOffset]::Now.AddMinutes(1)\r\n\r\n        # Show our message to the user\r\n        $ToastNotifier.Show($Toast)\r\n    }\r\n}\r\nprocess {\r\n    # Make sure that Setup was used and that we are running with elevated privileges\r\n    if ($Setup -and ([System.Security.Principal.WindowsIdentity]::GetCurrent().IsSystem -or $(Test-IsElevated))) {\r\n        Write-Host \"Used $ImageURL for the default image and saved to $ImagePath\"\r\n        Write-Host \"ApplicationID: $ApplicationId\"\r\n        Write-Host \"System is ready to send Toast Messages to the currently logged on user.\"\r\n        exit 0\r\n    }\r\n    elseif ($Setup -and -not ([System.Security.Principal.WindowsIdentity]::GetCurrent().IsSystem -or $(Test-IsElevated))) {\r\n        Write-Error \"Failed to setup registry.\"\r\n        Write-Host \"Please run script as SYSTEM or as a user with administrator privileges.\"\r\n        exit 1\r\n    }\r\n\r\n    try {\r\n        if ($(Get-ItemPropertyValue -Path \"HKLM:SOFTWAREClassesAppUserModelId$($ApplicationId -replace 's+','.')\" -Name \"DisplayName\" -ErrorAction SilentlyContinue) -like $ApplicationId) {\r\n            Show-Notification -ToastTitle $Subject -ToastText $Message -ErrorAction Stop\r\n        }\r\n        else {\r\n            Write-Error \"ApplicationId($ApplicationId) was not found in the registry.\"\r\n            Write-Host \"Please run script as an administrator or as the SYSTEM account with the -Setup parameter.\"\r\n        }\r\n    }\r\n    catch {\r\n        Write-Error $_\r\n        exit 1\r\n    }\r\n    exit 0\r\n}\r\nend {}<\/pre>\n<p>&nbsp;<\/p>\n<br \/>\n<div class=\"in-context-cta\"><p style=\"text-align: center;\">Acc\u00e9dez \u00e0 plus de 700 scripts dans le Dojo NinjaOne<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.ninjaonesandbox.dev\/fr\/phase-de-test-gratuit\/\">Obtenez l&rsquo;acc\u00e8s<\/a><\/p>\n<\/div><\/p>\n<h2>Description d\u00e9taill\u00e9e<\/h2>\n<p>Le script commence par d\u00e9finir les param\u00e8tres du message de notification : Subject, Message, Setup, ImageURL, ImagePath et ApplicationId. Apr\u00e8s la d\u00e9finition, le script v\u00e9rifie s&rsquo;il est ex\u00e9cut\u00e9 avec des droit d&rsquo;administrateur.<\/p>\n<h3>Pour la configuration initiale :<\/h3>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&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\">Il cr\u00e9e ou met \u00e0 jour une entr\u00e9e de registre pour identifier l&rsquo;application qui envoie la notification toast.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&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\">Il t\u00e9l\u00e9charge une image sp\u00e9cifi\u00e9e (par d\u00e9faut, de NinjaOne) qui appara\u00eetra sur le message du toast.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&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\">Il met \u00e0 jour le chemin d&rsquo;acc\u00e8s \u00e0 l&rsquo;image dans le registre.<\/li>\n<\/ul>\n<p>Par la suite, chaque fois que le script est ex\u00e9cut\u00e9 pour envoyer une notification, il v\u00e9rifie la pr\u00e9sence de l&rsquo;entr\u00e9e de registre et utilise ensuite le syst\u00e8me de notifications toast int\u00e9gr\u00e9 \u00e0 Windows pour afficher le message.<\/p>\n<h2>Cas d&rsquo;utilisation potentiels<\/h2>\n<p>Supposons que vous soyez un professionnel de l&rsquo;informatique au service d&rsquo;une grande entreprise. Une mise \u00e0 jour logicielle cruciale est sur le point d&rsquo;\u00eatre diffus\u00e9e et il est n\u00e9cessaire d&rsquo;informer tous les employ\u00e9s des risques d&rsquo;interruption de service. Au lieu de s&rsquo;en remettre aux e-mails qui restent souvent non lus, l&rsquo;administrateur peut utiliser ce script PowerShell pour envoyer une notification directe \u00e0 l&rsquo;ordinateur de chaque utilisateur, garantissant ainsi la visibilit\u00e9 et la diffusion d&rsquo;informations en temps voulu.<\/p>\n<h2>Comparaisons<\/h2>\n<p>Bien qu&rsquo;il existe d&rsquo;autres m\u00e9thodes pour envoyer des messages, comme la commande \u00ab\u00a0msg\u00a0\u00bb ou \u00ab\u00a0Net Send\u00a0\u00bb, l&rsquo;avantage de ce script r\u00e9side dans son approche moderne. Les m\u00e9thodes traditionnelles envoient des messages en texte brut, alors que ce script PowerShell permet un contenu plus riche, comme des images et des identifiants d&rsquo;application personnalis\u00e9s. De plus, le script est compatible avec des plateformes telles que NinjaOne, ce qui le rend plus adapt\u00e9 pour les t\u00e2ches de RMM.<\/p>\n<h2>FAQ<\/h2>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&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>Puis-je personnaliser l&rsquo;image sur le message de la notification toast ?\u00a0<\/strong><br \/>\nOui, vous pouvez sp\u00e9cifier n&rsquo;importe quelle URL d&rsquo;image .png pour la personnaliser.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&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>Dois-je ex\u00e9cuter le programme d&rsquo;installation \u00e0 chaque fois ?\u00a0<\/strong><br \/>\nNon, l&rsquo;installation ne doit \u00eatre ex\u00e9cut\u00e9e qu&rsquo;une seule fois, de pr\u00e9f\u00e9rence avec des droits d&rsquo;administrateur. Les utilisations ult\u00e9rieures peuvent simplement envoyer le message.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&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>Existe-t-il une limitation du syst\u00e8me d&rsquo;exploitation ?\u00a0<\/strong><br \/>\nLe script est con\u00e7u pour Windows 10 et les plus r\u00e9centes.<\/li>\n<\/ul>\n<h2>Implications<\/h2>\n<p>Bien que le script simplifie les notifications, il est essentiel de noter que tout script modifiant le registre doit \u00eatre ex\u00e9cut\u00e9 avec pr\u00e9caution. Des modifications impr\u00e9cises peuvent avoir des cons\u00e9quences impr\u00e9vues sur le syst\u00e8me. De plus, pour la s\u00e9curit\u00e9 informatique il est essentiel de s&rsquo;assurer que la source du script est digne de confiance afin d&rsquo;\u00e9viter les portes d\u00e9rob\u00e9es (backdoor) ou les vuln\u00e9rabilit\u00e9s potentielles.<\/p>\n<h2>Recommandations<\/h2>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&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\">Sauvegardez toujours le registre avant d&rsquo;y apporter des modifications.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&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\">Utilisez d&rsquo;abord le script dans un environnement de test.<\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&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\">\u00c9vitez de surcharger les utilisateurs avec un trop grand nombre de messages de type toast afin de pr\u00e9venir la fatigue des notifications.<\/li>\n<\/ul>\n<h2>Conclusions<\/h2>\n<p>En cette \u00e9poque marqu\u00e9e par la communication instantan\u00e9e, les outils tels que ce script PowerShell incarnent la <a href=\"https:\/\/www.ninjaonesandbox.dev\/fr\/efficacite\/\">efficacit\u00e9 que les services informatiques recherchent<\/a>. Le potentiel d&rsquo;int\u00e9gration de NinjaOne avec de tels scripts met en \u00e9vidence la polyvalence de la plateforme, assurant aux professionnels de l&rsquo;informatique une longueur d&rsquo;avance dans la gestion des syst\u00e8mes et la communication avec les utilisateurs. Avec de tels outils dans leur arsenal, les d\u00e9partements informatiques peuvent s&rsquo;assurer que les alertes importantes ne passent jamais inaper\u00e7ues.<\/p>\n","protected":false},"author":35,"featured_media":144373,"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":[4289],"class_list":["post-208389","script_hub","type-script_hub","status-publish","has-post-thumbnail","hentry","script_hub_category-windows"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.ninjaonesandbox.dev\/fr\/wp-json\/wp\/v2\/script_hub\/208389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ninjaonesandbox.dev\/fr\/wp-json\/wp\/v2\/script_hub"}],"about":[{"href":"https:\/\/www.ninjaonesandbox.dev\/fr\/wp-json\/wp\/v2\/types\/script_hub"}],"author":[{"embeddable":true,"href":"https:\/\/www.ninjaonesandbox.dev\/fr\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ninjaonesandbox.dev\/fr\/wp-json\/wp\/v2\/comments?post=208389"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ninjaonesandbox.dev\/fr\/wp-json\/wp\/v2\/media\/144373"}],"wp:attachment":[{"href":"https:\/\/www.ninjaonesandbox.dev\/fr\/wp-json\/wp\/v2\/media?parent=208389"}],"wp:term":[{"taxonomy":"script_hub_category","embeddable":true,"href":"https:\/\/www.ninjaonesandbox.dev\/fr\/wp-json\/wp\/v2\/operating_system?post=208389"},{"taxonomy":"use_cases","embeddable":true,"href":"https:\/\/www.ninjaonesandbox.dev\/fr\/wp-json\/wp\/v2\/use_cases?post=208389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}