{"id":269467,"date":"2024-06-06T14:32:46","date_gmt":"2024-06-06T14:32:46","guid":{"rendered":"https:\/\/www.ninjaone.com\/?post_type=script_hub&#038;p=269467"},"modified":"2024-06-06T14:32:46","modified_gmt":"2024-06-06T14:32:46","slug":"replication-active-directory-rapport-integrite","status":"publish","type":"script_hub","link":"https:\/\/www.ninjaone.com\/fr\/script-hub\/replication-active-directory-rapport-integrite\/","title":{"rendered":"Rapport sur l&rsquo;int\u00e9grit\u00e9 de la r\u00e9plication Active Directory : Guide PowerShell complet"},"content":{"rendered":"<h2>Points \u00e0 retenir<\/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>R\u00f4le essentiel de l&rsquo;int\u00e9grit\u00e9 d&rsquo;AD :<\/strong> L&rsquo;int\u00e9grit\u00e9 d&rsquo;Active Directory est vitale pour la stabilit\u00e9 et la s\u00e9curit\u00e9 du r\u00e9seau.<\/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>Fonctionnalit\u00e9 de script compl\u00e8te<\/strong>: Le script offre une suite compl\u00e8te de contr\u00f4les de l&rsquo;int\u00e9grit\u00e9 de la r\u00e9plication Active Directory, y compris des contr\u00f4les pr\u00e9alables, la gestion des param\u00e8tres et l&rsquo;analyse d\u00e9taill\u00e9e des r\u00e9sultats.<\/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>Param\u00e8tres personnalisables<\/strong>: Il permet des ajustements sp\u00e9cifiques \u00e0 l&rsquo;environnement avec des param\u00e8tres tels que <strong>ErrorCount<\/strong> et <strong>EventLogStart<\/strong>.<\/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>Identification proactive des probl\u00e8mes<\/strong>: Il aide \u00e0 la d\u00e9tection pr\u00e9coce des probl\u00e8mes de r\u00e9plication, ce qui permet d&rsquo;\u00e9viter des probl\u00e8mes potentiels ayant un impact \u00e0 grande \u00e9chelle.<\/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>Analyse des journaux d&rsquo;\u00e9v\u00e9nements<\/strong>: Il analyse les journaux d&rsquo;\u00e9v\u00e9nements \u00e0 la recherche d&rsquo;\u00e9v\u00e9nements sp\u00e9cifiques li\u00e9s \u00e0 la r\u00e9plication, ce qui permet d&rsquo;obtenir des informations de diagnostic plus approfondies.<\/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>V\u00e9rification de SYSVOL<\/strong>: Il v\u00e9rifie la pr\u00e9sence du partage SYSVOL, garantissant ainsi le fonctionnement fondamental d&rsquo;AD.<\/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>R\u00e9sultats exportables<\/strong>: Il offre la possibilit\u00e9 d&rsquo;exporter les rapports d&rsquo;\u00e9tat au format CSV ou TXT, ce qui facilite la documentation et la conformit\u00e9.<\/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>Contr\u00f4le automatis\u00e9 et r\u00e9gulier<\/strong>: L&rsquo;ex\u00e9cution r\u00e9guli\u00e8re et automatis\u00e9e du script est conseill\u00e9e pour une \u00e9valuation continue de l&rsquo;\u00e9tat d&rsquo;int\u00e9grit\u00e9.<\/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>Droits d&rsquo;administrateur requis<\/strong>: Il doit \u00eatre ex\u00e9cut\u00e9 avec des droits d&rsquo;administrateur sur un contr\u00f4leur de domaine pour fonctionner parfaitement.<\/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=\"10\" data-aria-level=\"1\"><strong>Am\u00e9lioration gr\u00e2ce \u00e0 des outils de gestion informatique<\/strong>: Il peut \u00eatre compl\u00e9t\u00e9 efficacement par des outils tels que NinjaOne pour une approche plus int\u00e9gr\u00e9e de la gestion informatique.<\/li>\n<\/ul>\n<h2>Introduction<\/h2>\n<p><a href=\"https:\/\/www.ninjaone.com\/fr\/rmm\/gestion-dactive-directory\/\">Active Directory (AD)<\/a> est un pilier de la gestion des identit\u00e9s et des acc\u00e8s (GIA) (en anglais Identity and Access Management : IAM), dans la plupart des environnements informatiques d&rsquo;entreprise. Garantir son int\u00e9grit\u00e9 et son efficacit\u00e9 op\u00e9rationnelle n&rsquo;est pas une simple t\u00e2che de routine, c&rsquo;est une responsabilit\u00e9 essentielle. Cette importance devient encore plus \u00e9vidente si l&rsquo;on consid\u00e8re la complexit\u00e9 des environnements modernes en r\u00e9seau et les cons\u00e9quences d\u00e9sastreuses de toute d\u00e9faillance ou faille.<\/p>\n<h2>Contexte<\/h2>\n<p>Le script PowerShell pr\u00e9sent\u00e9 est con\u00e7u pour surveiller et signaler l&rsquo;int\u00e9grit\u00e9 de la r\u00e9plication Active Directory et de ses processus. Pour les professionnels de l&rsquo;informatique et les <a href=\"https:\/\/www.ninjaone.com\/fr\/quest-ce-quun-msp\/\">fournisseurs de services g\u00e9r\u00e9s (MSP)<\/a>, il est essentiel d&rsquo;assurer une r\u00e9plication Active Directory parfaite. Les probl\u00e8mes de r\u00e9plication peuvent entra\u00eener des probl\u00e8mes d&rsquo;authentification, des donn\u00e9es incoh\u00e9rentes et, en fin de compte, des d\u00e9faillances au niveau du syst\u00e8me. Ce texte constitue un outil essentiel pour identifier et traiter ces questions de mani\u00e8re pr\u00e9emptive.<\/p>\n<h2>Le script :<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">#Requires -Version 5.1\r\n\r\n&lt;#\r\n.SYNOPSIS\r\n    This will get the current status of AD Replication and alert if it's abnormal, as well as provide some diagnostic info.\r\n.DESCRIPTION\r\n    This will get the current status of AD Replication and alert if it's abnormal, as well as provide some diagnostic info.\r\n\r\n.EXAMPLE \r\n    (No Parameters)\r\n\r\n    WARNING: Replication has failed 100 or more times. See Diagnostic Info for more details\r\n \r\n    ### Diagnostic Info ###\r\n\r\n    Repadmin: running command \/showrepl against full DC localhost\r\n    Default-First-Site-Name\\SRV19-TEST\r\n    DSA Options: IS_GC \r\n    Site Options: (none)\r\n    DSA object GUID: ffe29454-2a68-4ba8-a877-d5a49b382d16\r\n    DSA invocationID: ffe29454-2a68-4ba8-a877-d5a49b382d16\r\n\r\nPARAMETER: -ErrorCount \"99999999999999\"\r\n    The number of errors until AD Replication is considered unhealthy.\r\n.EXAMPLE\r\n    -ErrorCount \"99999999999999\"\r\n\r\n    AD Replication appears to be healthy. Please check below to confirm.\r\n\r\n    Destination DSA Last Success Time   Failures Naming Context                           \r\n    --------------- -----------------   -------- --------------                           \r\n    SRV19-TEST      2023-04-17 17:12:45 179      DC=test,DC=lan                           \r\n    SRV19-TEST      2023-04-17 16:51:45 21       CN=Configuration,DC=test,DC=lan          \r\n    SRV19-TEST      2023-04-17 16:51:45 21       CN=Schema,CN=Configuration,DC=test,DC=lan\r\n    SRV19-TEST      2023-04-17 17:06:18 22       DC=DomainDnsZones,DC=test,DC=lan         \r\n    SRV19-TEST      2023-04-17 17:06:15 22       DC=ForestDnsZones,DC=test,DC=lan \r\n\r\nPARAMETER: -EventLogStart \"48\"\r\n    Time in hours to search through event logs for possible issues.\r\n.EXAMPLE\r\n    -EventLogStart \"48\"\r\n\r\n    DsBindWithCred to localhost failed with status 5\r\n    WARNING: Directory Service Log Event ID 1864 shows failure to replicate in &gt; 1 week\r\n \r\n\r\n    TimeCreated           Id LogName           Level Message                                                    \r\n    -----------           -- -------           ----- -------                                                    \r\n    7\/2\/2028 8:34:33 AM 1864 Directory Service Error This is the replication status for the following directo...\r\n    7\/2\/2028 8:34:33 AM 1864 Directory Service Error This is the replication status for the following directo...\r\n\r\nPARAMETER: -ErrorCustomField \"ReplaceMeWithAnyIntegerCustomField\"\r\n    Name of an integer custom field that contains your desired ErrorCount threshold.\r\n    ex. \"AllowedADerrors\" where you have entered in your desired ErrorCount limit in the \"AllowedADerrors\" custom field rather than in a parameter.\r\nPARAMETER: -EventLogCustomField \"ReplaceMeWithAnyIntegerCustomField\"\r\n    Name of an integer custom field that contains your desired EventLogStart threshold.\r\n    ex. \"ADeventsAgeLimit\" where you have entered in your desired EventLogStart limit in the \"ADeventsAgeLimit\" custom field rather than in a parameter.\r\n.EXAMPLE\r\n    -ErrorCustomField \"ReplaceMeWithAnyIntegerCustomField\" -EventLogCustomField \"ReplaceMeWithAnyIntegerCustomField\"\r\n    \r\n    DsBindWithCred to localhost failed with status 5\r\n    WARNING: Directory Service Log Event ID 1864 shows failure to replicate in &gt; 1 week\r\n\r\n    TimeCreated           Id LogName           Level Message                                                    \r\n    -----------           -- -------           ----- -------                                                    \r\n    7\/2\/2028 8:34:33 AM 1864 Directory Service Error This is the replication status for the following directo...\r\n    7\/2\/2028 8:34:33 AM 1864 Directory Service Error This is the replication status for the following directo...\r\n\r\nPARAMETER:  -ExportCSV \"ReplaceMeWithAnyMultiLineCustomField\"\r\n    Name of a multi-line customfield you'd like to export the results to (in csv format).\r\n.EXAMPLE\r\n    -ExportCSV \"ReplaceMeWithAnyMultiLineCustomField\"\r\n    \r\n    DsBindWithCred to localhost failed with status 5\r\n    WARNING: Directory Service Log Event ID 1864 shows failure to replicate in &gt; 1 week\r\n\r\n    TimeCreated           Id LogName           Level Message                                                    \r\n    -----------           -- -------           ----- -------                                                    \r\n    7\/2\/2028 8:34:33 AM 1864 Directory Service Error This is the replication status for the following directo...\r\n    7\/2\/2028 8:34:33 AM 1864 Directory Service Error This is the replication status for the following directo...\r\n    \r\nPARAMETER: -ExportTXT \"ReplaceMeWithAnyMultiLineCustomField\"\r\n    Name of a multiline customfield you'd like to export the results to.\r\n.EXAMPLE\r\n    -ExportTXT \"ReplaceMeWithAnyMultiLineCustomField\"\r\n\r\n    DsBindWithCred to localhost failed with status 5\r\n    WARNING: Directory Service Log Event ID 1864 shows failure to replicate in &gt; 1 week\r\n \r\n\r\n    TimeCreated           Id LogName           Level Message                                                    \r\n    -----------           -- -------           ----- -------                                                    \r\n    7\/2\/2028 8:34:33 AM 1864 Directory Service Error This is the replication status for the following directo...\r\n    7\/2\/2028 8:34:33 AM 1864 Directory Service Error This is the replication status for the following directo...\r\n.OUTPUTS\r\n    \r\n.NOTES\r\n    Minimum OS Architecture Supported: Server 2016+\r\n    Release Notes: Renamed script and added Script Variable support\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\/fr\/conditions-dutilisation\/\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    [int]$EventLogStart = \"24\",\r\n    [Parameter()]\r\n    [int]$ErrorCount = \"100\",\r\n    [Parameter()]\r\n    [String]$EventLogCustomField,\r\n    [Parameter()]\r\n    [String]$ErrorCustomField,\r\n    [Parameter()]\r\n    [String]$ExportCSV,\r\n    [Parameter()]\r\n    [String]$ExportTXT\r\n)\r\nbegin {\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    function Test-IsSystem {\r\n        $id = [System.Security.Principal.WindowsIdentity]::GetCurrent()\r\n        return $id.Name -like \"NT AUTHORITY*\" -or $id.IsSystem\r\n    }\r\n\r\n    function Test-IsDomainController {\r\n        $OS = Get-CimInstance -ClassName Win32_OperatingSystem\r\n\r\n        if ($OS.ProductType -eq \"2\") {\r\n            return $true\r\n        }\r\n    }\r\n\r\n    if (!(Test-IsElevated) -and !(Test-IsSystem)) {\r\n        Write-Error -Message \"Access Denied. Please run with Administrator privileges.\"\r\n        exit 1\r\n    }\r\n\r\n    if (!(Test-IsDomainController)) {\r\n        Write-Error \"This is not a domain controller. Please run this script on a DC.\"\r\n        exit 1\r\n    }\r\n\r\n    # If script variables are used grab that and replace the static ones.\r\n    if ($env:hoursBackToSearchEventLog -and $env:hoursBackToSearchEventLog -notlike \"null\") { $EventLogStart = $env:hoursBackToSearchEventLog }\r\n    if ($env:errorCountToAlertOn -and $env:errorCountToAlertOn -notlike \"null\") { $ErrorCount = $env:errorCountToAlertOn }\r\n    if ($env:retrieveHoursBackFromCustomFieldNamed -and $env:retrieveHoursBackFromCustomFieldNamed -notlike \"null\") { $EventLogCustomField = $env:retrieveHoursBackFromCustomFieldNamed }\r\n    if ($env:retrieveErrorCountFromCustomFieldNamed -and $env:retrieveErrorCountFromCustomFieldNamed -notlike \"null\") { $ErrorCustomField = $env:retrieveErrorCountFromCustomFieldNamed }\r\n    if ($env:exportCsvResultsToThisCustomField -and $env:exportCsvResultsToThisCustomField -notlike \"null\") { $ExportCSV = $env:exportCsvResultsToThisCustomField }\r\n    if ($env:exportTextResultsToThisCustomField -and $env:exportTextResultsToThisCustomField -notlike \"null\") { $ExportTXT = $env:exportTextResultsToThisCustomField }\r\n\r\n    # This function is to make it easier to set Ninja Custom Fields.\r\n    function Set-NinjaProperty {\r\n        [CmdletBinding()]\r\n        Param(\r\n            [Parameter(Mandatory = $True)]\r\n            [String]$Name,\r\n            [Parameter()]\r\n            [String]$Type,\r\n            [Parameter(Mandatory = $True, ValueFromPipeline = $True)]\r\n            $Value,\r\n            [Parameter()]\r\n            [String]$DocumentName\r\n        )\r\n\r\n        # If we're requested to set the field value for a Ninja document we'll specify it here.\r\n        $DocumentationParams = @{}\r\n        if ($DocumentName) { $DocumentationParams[\"DocumentName\"] = $DocumentName }\r\n\r\n        # This is a list of valid fields we can set. If no type is given we'll assume the input doesn't have to be changed in any way.\r\n        $ValidFields = \"Attachment\", \"Checkbox\", \"Date\", \"Date or Date Time\", \"Decimal\", \"Dropdown\", \"Email\", \"Integer\", \"IP Address\", \"MultiLine\", \"MultiSelect\", \"Phone\", \"Secure\", \"Text\", \"Time\", \"URL\"\r\n        if ($Type -and $ValidFields -notcontains $Type) { Write-Warning \"$Type is an invalid type! Please check here for valid types. https:\/\/ninjarmm.zendesk.com\/hc\/en-us\/articles\/16973443979789-Command-Line-Interface-CLI-Supported-Fields-and-Functionality\" }\r\n\r\n        # The below field requires additional information in order to set\r\n        $NeedsOptions = \"Dropdown\"\r\n        if ($DocumentName) {\r\n            if ($NeedsOptions -contains $Type) {\r\n                # We'll redirect the error output to the success stream to make it easier to error out if nothing was found or something else went wrong.\r\n                $NinjaPropertyOptions = Ninja-Property-Docs-Options -AttributeName $Name @DocumentationParams 2&gt;&amp;1\r\n            }\r\n        }\r\n        else {\r\n            if ($NeedsOptions -contains $Type) {\r\n                $NinjaPropertyOptions = Ninja-Property-Options -Name $Name 2&gt;&amp;1\r\n            }\r\n        }\r\n\r\n        # If we received some sort of error it should have an exception property and we'll exit the function with that error information.\r\n        if ($NinjaPropertyOptions.Exception) { throw $NinjaPropertyOptions }\r\n\r\n        # The below type's require values not typically given in order to be set. The below code will convert whatever we're given into a format ninjarmm-cli supports.\r\n        switch ($Type) {\r\n            \"Checkbox\" {\r\n                # While it's highly likely we were given a value like \"True\" or a boolean datatype it's better to be safe than sorry.\r\n                $NinjaValue = [System.Convert]::ToBoolean($Value)\r\n            }\r\n            \"Date or Date Time\" {\r\n                # Ninjarmm-cli is expecting the time to be representing as a Unix Epoch string. So we'll convert what we were given into that format.\r\n                $Date = (Get-Date $Value).ToUniversalTime()\r\n                $TimeSpan = New-TimeSpan (Get-Date \"1970-01-01 00:00:00\") $Date\r\n                $NinjaValue = $TimeSpan.TotalSeconds\r\n            }\r\n            \"Dropdown\" {\r\n                # Ninjarmm-cli is expecting the guid of the option we're trying to select. So we'll match up the value we were given with a guid.\r\n                $Options = $NinjaPropertyOptions -replace '=', ',' | ConvertFrom-Csv -Header \"GUID\", \"Name\"\r\n                $Selection = $Options | Where-Object { $_.Name -eq $Value } | Select-Object -ExpandProperty GUID\r\n\r\n                if (-not $Selection) {\r\n                    throw \"Value is not present in dropdown\"\r\n                }\r\n\r\n                $NinjaValue = $Selection\r\n            }\r\n            default {\r\n                # All the other types shouldn't require additional work on the input.\r\n                $NinjaValue = $Value\r\n            }\r\n        }\r\n\r\n        # We'll need to set the field differently depending on if its a field in a Ninja Document or not.\r\n        if ($DocumentName) {\r\n            $CustomField = Ninja-Property-Docs-Set -AttributeName $Name -AttributeValue $NinjaValue @DocumentationParams 2&gt;&amp;1\r\n        }\r\n        else {\r\n            $CustomField = Ninja-Property-Set -Name $Name -Value $NinjaValue 2&gt;&amp;1\r\n        }\r\n\r\n        if ($CustomField.Exception) {\r\n            throw $CustomField\r\n        }\r\n    }\r\n\r\n    # Shortened Version from \"Example - Get Ninja Property\"\r\n    function Get-NinjaProperty {\r\n        [CmdletBinding()]\r\n        Param(\r\n            [Parameter(Mandatory = $True, ValueFromPipeline = $True)]\r\n            [String]$Name,\r\n            [Parameter()]\r\n            [String]$Type,\r\n            [Parameter()]\r\n            [String]$DocumentName\r\n        )\r\n\r\n        # If we're requested to get the field value from a Ninja document we'll specify it here.\r\n        $DocumentationParams = @{}\r\n        if ($DocumentName) { $DocumentationParams[\"DocumentName\"] = $DocumentName }\r\n\r\n        # These two types require more information to parse.\r\n        $NeedsOptions = \"DropDown\", \"MultiSelect\"\r\n\r\n        # Grabbing document values requires a slightly different command.\r\n        if ($DocumentName) {\r\n            # Secure fields are only readable when they're a device custom field\r\n            if ($Type -Like \"Secure\") { throw \"$Type is an invalid type! Please check here for valid types. https:\/\/ninjarmm.zendesk.com\/hc\/en-us\/articles\/16973443979789-Command-Line-Interface-CLI-Supported-Fields-and-Functionality\" }\r\n\r\n            # We'll redirect the error output to the success stream to make it easier to error out if nothing was found or something else went wrong.\r\n            Write-Host \"Retrieving value from Ninja Document...\"\r\n            $NinjaPropertyValue = Ninja-Property-Docs-Get -AttributeName $Name @DocumentationParams 2&gt;&amp;1\r\n\r\n            # Certain fields require more information to parse.\r\n            if ($NeedsOptions -contains $Type) {\r\n                $NinjaPropertyOptions = Ninja-Property-Docs-Options -AttributeName $Name @DocumentationParams 2&gt;&amp;1\r\n            }\r\n        }\r\n        else {\r\n            # We'll redirect error output to the success stream to make it easier to error out if nothing was found or something else went wrong.\r\n            $NinjaPropertyValue = Ninja-Property-Get -Name $Name 2&gt;&amp;1\r\n\r\n            # Certain fields require more information to parse.\r\n            if ($NeedsOptions -contains $Type) {\r\n                $NinjaPropertyOptions = Ninja-Property-Options -Name $Name 2&gt;&amp;1\r\n            }\r\n        }\r\n\r\n        # If we received some sort of error it should have an exception property and we'll exit the function with that error information.\r\n        if ($NinjaPropertyValue.Exception) { throw $NinjaPropertyValue }\r\n        if ($NinjaPropertyOptions.Exception) { throw $NinjaPropertyOptions }\r\n\r\n        # This switch will compare the type given with the quoted string. If it matches, it'll parse it further; otherwise, the default option will be selected.\r\n        switch ($Type) {\r\n            \"Integer\" {\r\n                # Cast's the Ninja provided string into an integer.\r\n                if (-not $NinjaPropertyValue) {\r\n                    throw \"CustomField $Name is empty!\"\r\n                }\r\n                [int]$NinjaPropertyValue\r\n            }\r\n            default {\r\n                # If no type was given or not one that matches the above types just output what we retrieved.\r\n                $NinjaPropertyValue\r\n            }\r\n        }\r\n    }\r\n\r\n    $ExitCode = 0\r\n}process {\r\n\r\n    # Grabbing the information from custom fields (if any)\r\n    if ($ErrorCustomField) {\r\n        try {\r\n            $FieldCount = Get-NinjaProperty -Name $ErrorCustomField -Type \"Integer\"\r\n            if ($FieldCount) { $ErrorCount = $FieldCount }\r\n        }\r\n        catch {\r\n            Write-Error -Message $_.ToString() -Category InvalidOperation -Exception (New-Object System.Exception)\r\n            exit 1\r\n        }\r\n    } \r\n    if ($EventLogCustomField) {\r\n        try {\r\n            $FieldStart = Get-NinjaProperty -Name $EventLogCustomField -Type \"Integer\"\r\n            if ($FieldStart) { $EventLogStart = $FieldStart } \r\n        }\r\n        catch {\r\n            Write-Error -Message $_.ToString() -Category InvalidOperation -Exception (New-Object System.Exception)\r\n            exit 1\r\n        }\r\n    }\r\n\r\n    $represult = (repadmin.exe \/showrepl \/csv | ConvertFrom-Csv)\r\n\r\n    if ($ExportCSV) {\r\n        try {\r\n            Set-NinjaProperty -Name $ExportCSV -Value (repadmin.exe \/showrepl \/csv)\r\n        }\r\n        catch {\r\n            Write-Error -Message $_.ToString() -Category InvalidOperation -Exception (New-Object System.Exception)\r\n            $ExitCode = 1\r\n        }\r\n    }\r\n\r\n    if ($ExportTXT) {\r\n        $String = $represult | Format-Table -Property \"Destination DSA\", \"Last Success Time\", \"Last Failure Status\", \"Number of Failures\", \"Naming Context\" | Out-String\r\n        try {\r\n            Set-NinjaProperty -Name $ExportTXT -Value $String\r\n        }\r\n        catch {\r\n            Write-Error -Message $_.ToString() -Category InvalidOperation -Exception (New-Object System.Exception)\r\n            $ExitCode = 1\r\n        }\r\n    }\r\n\r\n    if ($represult.\"Number of Failures\" -ge $ErrorCount) {\r\n        Write-Warning \"Replication has failed $ErrorCount or more times. See Diagnostic Info for more details\"\r\n\r\n        # The Table version is a bit more to the point but the description gives you more of an idea of what's going wrong than in the non-table version.\r\n        Write-Host '### Diagnostic Info ###'\r\n        repadmin.exe \/showrepl \/errorsonly\r\n        $represult | Format-Table -Property \"Destination DSA\", \"Last Success Time\", @{Name = \"Failures\"; Expression = { $_.\"Number of Failures\" } }, \"Naming Context\" | Out-String | Write-Host\r\n        \r\n        Exit 1\r\n    }\r\n    else {\r\n        Write-Host \"No errors found in repadmin \/showrepl \/csv\"\r\n    }\r\n\r\n    # Check Event Log for replication failure\r\n    $Date = (Get-Date).AddHours(-$EventLogStart)\r\n\r\n    $Events = Get-WinEvent -FilterHashtable @{LogName = \"Directory Service\"; Id = 1864; StartTime = $Date } -ErrorAction SilentlyContinue | \r\n        Where-Object { ($_.Message -replace \"`r`n\", \" \") -match \"More than a week: [1-9]+.*\" }\r\n\r\n    if ($Events) {\r\n        Write-Warning \"Directory Service Log Event ID 1864 shows failure to replicate in &gt; 1 week\"\r\n        $Events | Format-Table -Property TimeCreated, Id, LogName, @{Name = \"Level\"; Expression = { $_.LevelDisplayName } }, Message -AutoSize | Out-String | Write-Host\r\n\r\n        Exit 1\r\n    }\r\n    else {\r\n        Write-Host \"No bad event viewer events found since $Date.\"\r\n    }\r\n\r\n    # Check if Sysvol is present\r\n    $sysvol = (Get-CimInstance Win32_Share) | Where-Object { $_.name -eq \"SYSVOL\" }\r\n    if (!($sysvol.Path)) {\r\n        Write-Warning \"SYSVOL is Missing!\"\r\n        Get-CimInstance Win32_Share | Out-String | Write-Host\r\n        \r\n        Exit 1\r\n    }\r\n    else {\r\n        Write-Host \"SYSVOL appears to be present.\"\r\n    }\r\n\r\n    Write-Host \"AD Replication appears to be healthy. Please check script output and other sources to confirm.\"\r\n    $Report = $represult | Format-Table -Property \"Destination DSA\", \"Last Success Time\", @{Name = \"Failures\"; Expression = { $_.\"Number of Failures\" } }, \"Naming Context\" | Out-String\r\n    \r\n    if ($Report) {\r\n        $Report | Write-Host\r\n    }\r\n\r\n    exit $ExitCode\r\n\r\n}end {\r\n    \r\n    \r\n    \r\n}<\/pre>\n<p>&nbsp;<\/p>\n\n<div class=\"in-context-cta\"><p>Acc\u00e9dez \u00e0 plus de 700 scripts dans le Dojo NinjaOne<\/p>\n<p><a href=\"https:\/\/www.ninjaone.com\/fr\/phase-de-test-gratuit\/\">Obtenir l&rsquo;acc\u00e8s<\/a><\/p>\n<\/div>\n<h2>Description d\u00e9taill\u00e9e<\/h2>\n<p>Le script remplit plusieurs fonctions essentielles :<\/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>Contr\u00f4les pr\u00e9alables<\/strong>: Il commence par v\u00e9rifier s&rsquo;il s&rsquo;ex\u00e9cute sur un contr\u00f4leur de domaine (DC) et s&rsquo;il dispose de privil\u00e8ges administratifs, ce qui garantit qu&rsquo;il se trouve dans l&rsquo;environnement ad\u00e9quat pour accomplir ses t\u00e2ches.<\/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>Traitement des param\u00e8tres<\/strong>: Le script accepte des param\u00e8tres tels que <strong>ErrorCount<\/strong> et <strong>EventLogStart<\/strong>, ce qui permet de le personnaliser en fonction de diff\u00e9rents environnements ou exigences.<\/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>V\u00e9rification de l&rsquo;\u00e9tat de la r\u00e9plication<\/strong>: \u00c0 l&rsquo;aide de <strong>repadmin.exe<\/strong>, il v\u00e9rifie l&rsquo;\u00e9tat actuel de la r\u00e9plication. Le script \u00e9met une alerte si le nombre d&rsquo;\u00e9checs de r\u00e9plication d\u00e9passe un seuil d\u00e9fini.<\/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>Analyse du journal des \u00e9v\u00e9nements<\/strong>: Il examine le journal des services d&rsquo;annuaire \u00e0 la recherche d&rsquo;\u00e9v\u00e9nements sp\u00e9cifiques (comme l&rsquo;ID 1864), qui peuvent indiquer des probl\u00e8mes de r\u00e9plication sur une p\u00e9riode d\u00e9finie.<\/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>V\u00e9rification de SYSVOL<\/strong>: Le script v\u00e9rifie la pr\u00e9sence du partage SYSVOL, un \u00e9l\u00e9ment essentiel au fonctionnement de l&rsquo;AD.<\/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>Utilisation des r\u00e9sultats<\/strong>: En fonction des r\u00e9sultats, il produit un rapport d&rsquo;int\u00e9grit\u00e9 ou des avertissements sur des probl\u00e8mes potentiels. Il est \u00e9galement possible d&rsquo;exporter ces r\u00e9sultats vers des fichiers CSV ou TXT.<\/li>\n<\/ul>\n<h2>Cas d&rsquo;utilisation potentiels<\/h2>\n<p>Imaginons un administrateur informatique, Alex, travaillant dans une entreprise dot\u00e9e d&rsquo;un environnement AD multi-site. Alex utilise ce script pour surveiller r\u00e9guli\u00e8rement l&rsquo;\u00e9tat de l&rsquo;AD sur tous les sites. En d\u00e9tectant rapidement un probl\u00e8me de r\u00e9plication sur un site, Alex est en mesure d&rsquo;\u00e9viter une crise d&rsquo;authentification majeure, garantissant un acc\u00e8s ininterrompu aux ressources du r\u00e9seau pour tous les utilisateurs.<\/p>\n<h2>Comparaisons<\/h2>\n<p>Traditionnellement, les contr\u00f4les de sant\u00e9 AD sont effectu\u00e9s manuellement ou \u00e0 l&rsquo;aide de scripts de base qui offrent des informations limit\u00e9es. L&rsquo;approche globale de ce script, qui comprend des param\u00e8tres de personnalisation et des options d&rsquo;exportation, le distingue des autres. Cette solution est plus compl\u00e8te que l&rsquo;utilisation des outils AD de Windows Server et moins complexe que l&rsquo;impl\u00e9mentation d&rsquo;une solution de surveillance \u00e0 part enti\u00e8re.<\/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;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>\u00c0 quelle fr\u00e9quence dois-je ex\u00e9cuter ce script ?<br \/>\n<\/strong>Une ex\u00e9cution r\u00e9guli\u00e8re, hebdomadaire par exemple, est recommand\u00e9e, bien que cela puisse varier en fonction de la taille et de la complexit\u00e9 de votre entreprise.<\/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>Quels sont les privil\u00e8ges requis pour ex\u00e9cuter ce script ?<br \/>\n<\/strong>Des privil\u00e8ges d&rsquo;administrateur sur un contr\u00f4leur de domaine sont n\u00e9cessaires.<\/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>Puis-je personnaliser les seuils d&rsquo;alerte ?<br \/>\n<\/strong>Oui, les param\u00e8tres <strong>ErrorCount<\/strong> et <strong>EventLogStart<\/strong> peuvent \u00eatre personnalis\u00e9s.<\/li>\n<\/ul>\n<h2>Implications<\/h2>\n<p>Une r\u00e9plication Active Directory incoh\u00e9rente peut entra\u00eener de graves risques pour la s\u00e9curit\u00e9 et l&rsquo;exploitation. Ce script facilite la d\u00e9tection pr\u00e9ventive, ce qui est essentiel pour maintenir l&rsquo;int\u00e9grit\u00e9 et la s\u00e9curit\u00e9 de l&rsquo;environnement informatique. Sa capacit\u00e9 \u00e0 exporter des rapports d\u00e9taill\u00e9s est cruciale pour les audits et la conformit\u00e9.<\/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;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>Planification r\u00e9guli\u00e8re<\/strong>: Automatisez l&rsquo;ex\u00e9cution du script \u00e0 intervalles r\u00e9guliers.<\/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>Personnalisation<\/strong>: Ajustez les param\u00e8tres tels que <strong>ErrorCount<\/strong> en fonction de votre environnement sp\u00e9cifique.<\/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>Revoir et agir<\/strong>: Examinez r\u00e9guli\u00e8rement les r\u00e9sultats et prenez des mesures proactives si n\u00e9cessaire.<\/li>\n<\/ul>\n<h2>Conclusion :<\/h2>\n<p>Dans le domaine de la gestion informatique, des outils tels que NinjaOne peuvent renforcer l&rsquo;utilit\u00e9 de scripts de ce type en fournissant une <a href=\"https:\/\/www.ninjaone.com\/fr\/plateforme-de-gestion-de-terminaux\/gestion-de-reseau\/\">plateforme unifi\u00e9e pour la surveillance et la gestion des syst\u00e8mes de r\u00e9seau<\/a>, y compris les environnements AD. Ce script compl\u00e8te ces outils en offrant des informations cibl\u00e9es et des diagnostics essentiels pour maintenir la sant\u00e9 et la s\u00e9curit\u00e9 d&rsquo;Active Directory.<\/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":[4287],"class_list":["post-269467","script_hub","type-script_hub","status-publish","hentry","script_hub_category-windows"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/script_hub\/269467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/script_hub"}],"about":[{"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/types\/script_hub"}],"author":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/comments?post=269467"}],"wp:attachment":[{"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/media?parent=269467"}],"wp:term":[{"taxonomy":"script_hub_category","embeddable":true,"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/operating_system?post=269467"},{"taxonomy":"use_cases","embeddable":true,"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/use_cases?post=269467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}