{"id":257323,"date":"2024-05-21T12:38:26","date_gmt":"2024-05-21T12:38:26","guid":{"rendered":"https:\/\/www.ninjaone.com\/?post_type=script_hub&#038;p=257323"},"modified":"2024-05-23T08:12:44","modified_gmt":"2024-05-23T08:12:44","slug":"enviar-notificaciones-de-mensajes","status":"publish","type":"script_hub","link":"https:\/\/www.ninjaone.com\/es\/script-hub\/enviar-notificaciones-de-mensajes\/","title":{"rendered":"C\u00f3mo utilizar PowerShell para enviar notificaciones de mensajes a los usuarios de Windows"},"content":{"rendered":"<p>Dada la constante necesidad de los administradores de sistemas de enviar notificaciones, ya sea sobre mantenimiento programado, actualizaciones de pol\u00edticas o posibles amenazas a la seguridad, no es de extra\u00f1ar que el siguiente script de PowerShell sea muy popular. Ofrece la posibilidad de enviar notificaciones de mensajes (peque\u00f1os mensajes emergentes) al usuario que haya iniciado sesi\u00f3n en un ordenador con Windows, para que los administradores puedan captar su atenci\u00f3n de forma r\u00e1pida y sencilla.<\/p>\n<h2>El script para enviar notificaciones de mensajes a los usuarios de Windows<\/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.ninjaone.com\"\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.ninjaone.com\" -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.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(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.ninjaone.com\",\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;\">Accede a m\u00e1s de 300 scripts en el Dojo de NinjaOne<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.ninjaone.com\/es\/prueba-gratuita-formulario\/\">Obt\u00e9n acceso<\/a><\/p>\n<\/div><\/p>\n<h2>An\u00e1lisis detallado<\/h2>\n<p>El script para enviar notificaciones de mensajes a los usuarios se inicia definiendo los par\u00e1metros del mensaje de notificaci\u00f3n: Subject, Message, Setup, ImageURL, ImagePath y ApplicationId. Tras la definici\u00f3n, el script comprueba si se est\u00e1 ejecutando con derechos elevados (como administrador).<\/p>\n<h3>Para la configuraci\u00f3n inicial:<\/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\">Crea o actualiza una entrada en el registro para identificar la aplicaci\u00f3n que env\u00eda la notificaci\u00f3n.<\/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\">Descarga una imagen especificada (por defecto, de NinjaOne) que aparecer\u00e1 en el mensaje de la notificaci\u00f3n.<\/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\">Actualiza la ruta de la imagen en el registro.<\/li>\n<\/ul>\n<p>Posteriormente, cada vez que el script para enviar notificaciones de mensajes a los usuarios se ejecuta para enviar notificaciones de mensajes, busca la entrada en el registro y utiliza el sistema de notificaciones instant\u00e1neas de Windows para mostrar el mensaje.<\/p>\n<h2>Posibles casos de uso<\/h2>\n<p>Digamos que eres un profesional de TI al servicio de una gran empresa. Est\u00e1 a punto de lanzarse una actualizaci\u00f3n de software crucial y es necesario informar a todos los empleados sobre el posible tiempo de inactividad. En lugar de basarse en los correos electr\u00f3nicos, que a menudo quedan sin leer, el administrador puede utilizar este script de PowerShell para enviar una notificaci\u00f3n directa al ordenador de cada usuario, garantizando la visibilidad y la difusi\u00f3n puntual de la informaci\u00f3n.<\/p>\n<h2>Comparaciones<\/h2>\n<p>Aunque existen m\u00e9todos alternativos para enviar notificaciones de mensajes, como utilizar el comando \u00abmsg\u00bb o \u00abNet Send\u00bb, la ventaja de este script para enviar notificaciones de mensajes reside en su enfoque moderno. Los m\u00e9todos tradicionales env\u00edan mensajes de texto sin formato, mientras que este script PowerShell permite incluir contenidos m\u00e1s ricos, como im\u00e1genes e identificadores de aplicaci\u00f3n personalizados. Adem\u00e1s, el script se combina bien con plataformas como NinjaOne, lo que lo hace m\u00e1s cohesivo para las tareas 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>\u00bfPuedo personalizar la imagen del mensaje?\u00a0<\/strong><br \/>\nS\u00ed, puedes especificar cualquier URL de imagen png para personalizarla.<\/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>\u00bfTengo que ejecutar la configuraci\u00f3n cada vez?\u00a0<\/strong><br \/>\nNo, la instalaci\u00f3n s\u00f3lo necesita ejecutarse una vez, preferiblemente con derechos administrativos. Los usos posteriores pueden limitarse a enviar el mensaje.<\/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>\u00bfExiste alguna limitaci\u00f3n del sistema operativo?\u00a0<\/strong><br \/>\nEl script est\u00e1 dise\u00f1ado para Windows 10 y versiones posteriores.<\/li>\n<\/ul>\n<h2>Implicaciones<\/h2>\n<p>Aunque el script simplifica las notificaciones, es crucial tener en cuenta que cualquier script que altere el registro debe ejecutarse con cuidado. Las modificaciones imprecisas pueden tener consecuencias no deseadas en el sistema. Adem\u00e1s, para la seguridad inform\u00e1tica, garantizar que la fuente del script es fiable es vital para evitar posibles puertas traseras o vulnerabilidades.<\/p>\n<h2>Recomendaciones<\/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\">Haz siempre una copia de seguridad del registro antes de realizar cambios.<\/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\">Utiliza primero el script en un entorno de prueba.<\/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\">Evita sobrecargar a los usuarios con demasiados mensajes para prevenir la \u00abfatiga de alertas\u00bb.<\/li>\n<\/ul>\n<h2>Reflexiones finales<\/h2>\n<p>En la era de la comunicaci\u00f3n instant\u00e1nea, herramientas como este script de PowerShell para enviar notificaciones de mensajes encarnan la <a href=\"https:\/\/www.ninjaone.com\/es\/eficiencia\">eficiencia por la que luchan los departamentos de TI<\/a>. El potencial de integraci\u00f3n de NinjaOne con este tipo de scripts pone de relieve la versatilidad de la plataforma, garantizando que los profesionales de TI vayan un paso por delante en la gesti\u00f3n del sistema y la comunicaci\u00f3n con los usuarios. Con estas herramientas en su arsenal, los departamentos de TI pueden garantizar que las alertas importantes nunca pasen desapercibidas.<\/p>\n","protected":false},"author":35,"featured_media":144380,"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":[4267],"class_list":["post-257323","script_hub","type-script_hub","status-publish","has-post-thumbnail","hentry","script_hub_category-windows","use_cases-gestion-de-usuarios-y-accesos"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/script_hub\/257323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/script_hub"}],"about":[{"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/types\/script_hub"}],"author":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/comments?post=257323"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/media\/144380"}],"wp:attachment":[{"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/media?parent=257323"}],"wp:term":[{"taxonomy":"script_hub_category","embeddable":true,"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/operating_system?post=257323"},{"taxonomy":"use_cases","embeddable":true,"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/use_cases?post=257323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}