{"id":49086,"date":"2022-11-08T00:00:00","date_gmt":"2022-11-07T23:00:00","guid":{"rendered":"https:\/\/jotelulu.com\/blog\/powershell-commands-for-deploying-and-managing-gpos-gpo-scripts\/"},"modified":"2022-11-08T00:00:00","modified_gmt":"2022-11-07T23:00:00","slug":"powershell-commands-for-gpos","status":"publish","type":"post","link":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/","title":{"rendered":"PowerShell Commands for Deploying and Managing GPOs (GPO Scripts)"},"content":{"rendered":"<p>In this article, we&rsquo;ll take a look at some&nbsp;<strong>PowerShell commands that you can use to deploy and manage your GPOs<\/strong>.<\/p>\n<p>For a few years now, there has been a steady increase in the number of people&nbsp;<strong>using PowerShell in the administration of operating systems and server applications<\/strong>, as well as the deployment of services and infrastructure. This has been pushed by Microsoft and many systems administrators, who are increasingly moving away from the traditional graphic interface.<\/p>\n<p>Those people who have tried administrating services using PowerShell will agree that, even if it is&nbsp;<strong>more complicated&nbsp;<\/strong>because of the&nbsp;<strong>steep learning curve<\/strong>, a command-based model is&nbsp;<strong>much more powerful and provides greater flexibility<\/strong>.<\/p>\n<p>So, having already written several articles dedicated to deploying GPOs using the graphic interface, we thought it would be a good idea to look at how you can deploy GPOs using PowerShell commands. All you need to do is put the commands in a text file, and you&rsquo;ll have your very own GPO script that you can use to deploy group policies.<\/p>\n<p><strong>NOTE:<\/strong> <em>It&rsquo;s important to differentiate between GPOs that run PowerShell commands and deploying a GPO using PowerShell commands. The first case involves creating a GPO that runs a file containing PowerShell commands. The second case involves using PowerShell commands to deploy or configure a GPO.<\/em><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Getting Started with PowerShell and GPOs<\/strong><\/h2>\n<p>Before we go much further, we&rsquo;re going to recap on what you need and what you can do with PowerShell when it comes to Group Policies (GPOs). However, we&rsquo;re not going to look at&nbsp;<em>all&nbsp;<\/em>the possible commands available. We&rsquo;ll stick to just the most important ones for deploying, configuring and updating GPOs, as well as generating reports and removing them when you don&rsquo;t need them anymore.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Importing PowerShell Modules for GPOs<\/strong><\/h3>\n<p>When working with PowerShell, it&rsquo;s important to know that there are countless commands and library modules available, and you will need to import some modules in order to work with certain services or products. Furthermore, each of these modules has their own supporting documentation that you need to be aware of.<\/p>\n<p>For working with GPOs, the first module you will need,&nbsp;<strong>as a requirement<\/strong>, is the&nbsp;<strong>Active Directory module (&laquo;ActiveDirectory&raquo;)<\/strong>, which you can install using the following command:<\/p>\n<p><em>Import-Module ActiveDirectory<\/em><\/p>\n<p>This module should also bring with it everything you need to manage Group Policies, but if it doesn&rsquo;t for some reason, you can always launch the following command:<\/p>\n<p><em>Import-Module GroupPolicy<\/em><\/p>\n<h3><\/h3>\n<h3><strong>GPO Operations Available in PowerShell<\/strong><\/h3>\n<p>To give you an idea of what you can do with PowerShell with respect to policies, you can launch the following command which will return a&nbsp;<strong>list of all the commands&nbsp;<\/strong>included in the Group Policy module:<\/p>\n<p><em>Get-Command &ndash;Module GroupPolicy<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_15497\" aria-describedby=\"caption-attachment-15497\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-15497 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Imagen.-Listamos-los-comandos-del-modulo-de-Politicas-de-Grupo-scaled.jpg?resize=800%2C452&amp;ssl=1\" alt=\"Image - A list of available commands in the Group Policy module\" width=\"800\" height=\"452\"><figcaption id=\"caption-attachment-15497\" class=\"wp-caption-text\">Image &ndash; A list of available commands in the Group Policy module<\/figcaption><\/figure>\n<\/p>\n<p>&nbsp;<\/p>\n<p>Even if you know absolutely nothing about PowerShell, you&rsquo;ll be able to work out what you can do with each of these commands. But to summarise, with these commands, you can:<\/p>\n<ul>\n<li>Perform GPO enquiries<\/li>\n<li>Create, copy or delete GPOs<\/li>\n<li>Link and unlink GPOs<\/li>\n<li>Set permissions and inheritance for GPOs<\/li>\n<li>Back up and recover your GPOs<\/li>\n<\/ul>\n<p>To find out more information about the module, check out the dedicated page at <a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/grouppolicy\/?view=windowsserver2022-ps\">Microsoft Learn<\/a>.<\/p>\n<p>Now, let&rsquo;s take a look at how we can perform some of these operations.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Display the GPOs in the Domain<\/strong><\/h3>\n<p>You can use the &laquo;Get-GPO&raquo; command to&nbsp;<strong>show all the GPOs in the domain&nbsp;<\/strong>simply by including the domain name. The resulting syntax will look as follows:<\/p>\n<p><em>Get-GPO -Domain &lt;domain&gt; -All<\/em><\/p>\n<p>Where:<\/p>\n<ul>\n<li><strong>Domain &lt;domain&gt;<\/strong>: here you need to swap &lt;domain&gt; for the domain name, including the extension (e.g., pruebasnacho.int)<\/li>\n<\/ul>\n<p>So, here&rsquo;s an example:<\/p>\n<p><em>Get-GPO -Domain pruebasnacho.int -All<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_15498\" aria-describedby=\"caption-attachment-15498\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-15498 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Imagen.-Listamos-todas-las-GPO-del-dominio-scaled.jpg?resize=800%2C452&amp;ssl=1\" alt=\"Image - List of all the GPOs in the domain\" width=\"800\" height=\"452\"><figcaption id=\"caption-attachment-15498\" class=\"wp-caption-text\">Image &ndash; List of all the GPOs in the domain<\/figcaption><\/figure>\n<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Creating a New GPO with PowerShell<\/strong><\/h3>\n<p>To create a new GPO using PowerShell, we work in pretty much the same way as if we were using the graphic interface. The first thing you need to do is&nbsp;<strong>create a new blank GPO<\/strong> using the following command:<\/p>\n<p><em>New-GPO -Name &lt;Name&gt; -Comment &lt;Comment&gt;<\/em><\/p>\n<p>Where:<\/p>\n<ul>\n<li><strong>New-GPO<\/strong>: is the command to create a new GPO.<\/li>\n<li><strong>-Name &lt;Name&gt;<\/strong>: &lt;Name&gt; is the name you want to give the new GPO.<\/li>\n<li><strong>-Comment &lt;Comment&gt;<\/strong>: &lt;Comment&gt; is an additional comment and is normally used to provide a description of the GPO.<\/li>\n<\/ul>\n<p>Here&rsquo;s an example:<\/p>\n<p><em>New-GPO -Name GPOTest1 -Comment &laquo;Comment about my GPO created with PowerShell&raquo;<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_15488\" aria-describedby=\"caption-attachment-15488\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-15488 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Imagen.-Creamos-una-nueva-GPO-mediante-PowerShell-scaled.jpg?resize=800%2C452&amp;ssl=1\" alt=\"Image - Create a new GPO using PowerShell\" width=\"800\" height=\"452\"><figcaption id=\"caption-attachment-15488\" class=\"wp-caption-text\">Image &ndash; Create a new GPO using PowerShell<\/figcaption><\/figure>\n<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Linking a GPO to an OU Using PowerShell<\/strong><\/h3>\n<p>After creating a GPO, the next step is normally to&nbsp;<strong>link the GPO to an Organisational Unit<\/strong> <strong>(OU)<\/strong>, which will be the root directory where the policy is run.<\/p>\n<p>To do this, use the &laquo;New-GPLink&raquo; command when you create your new GPO. The command will look something like this:<\/p>\n<p><em>Get-GPO &lt;Name&gt; | New-GPLink -Target &laquo;ou=zaragoza, dc=pruebasnacho, dc=int&raquo;<\/em><\/p>\n<p>Where:<\/p>\n<ul>\n<li><strong>Get-GPO &lt;Name&gt;<\/strong>: Substitute &lt;Name&gt; for the name you want to give the GPO that you want to link.<\/li>\n<li><strong>Target &lt;Path_OU_Domain&gt;<\/strong>: This is the folder path for the Organisational Unit that you want to link the GPO to. Substitute &lt;Path_OU_Domain&gt; for the folder path of the OU using the format shown below.<\/li>\n<\/ul>\n<p>Here&rsquo;s an example of what the command would look like when linking a GPO to the Zaragoza delegation on the domain PruebasNacho.int:<\/p>\n<p><em>Get-GPO TestGPO | New-GPLink -Target &laquo;ou=zaragoza,ou=delegation,dc=pruebasnacho,dc=int&raquo;<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_15501\" aria-describedby=\"caption-attachment-15501\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-15501 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Imagen.-Vinculamos-la-GPO-a-una-OU-scaled.jpg?resize=800%2C452&amp;ssl=1\" alt=\"Image - Link the GPO to an OU\" width=\"800\" height=\"452\"><figcaption id=\"caption-attachment-15501\" class=\"wp-caption-text\">Image &ndash; Link the GPO to an OU<\/figcaption><\/figure>\n<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Unlinking a GPO from an OU Using PowerShell<\/strong><\/h3>\n<p>When you want to&nbsp;<strong>unlink a GPO from an OU<\/strong>, you should use the &laquo;Remove-GPLink&raquo; command using the following format:<\/p>\n<p><em>Remove-GPLink -Name &lt;Name&gt; -Target &lt;Path_OU_Domain&gt;<\/em><\/p>\n<p>Where:<\/p>\n<ul>\n<li><strong>Name &lt;Nombre&gt;<\/strong>: Gives the name of the GPO. Substitute &lt;Name&gt; for the name.<\/li>\n<li><strong>Target &lt;Path_OU_Domain&gt;<\/strong>: Specifies the folder path for the Organisational Unit that you want to unlink from the GPO. Substitute &lt;Path_OU_Domain&gt; for the folder path using the format shown below.<\/li>\n<\/ul>\n<p>Here&rsquo;s an example of what the command would look like to unlink the GPO from an OU at the Zaragoza delegation in the Domain PruebasNacho.int:<\/p>\n<p><em>Remove-GPLink -Name TestGPO -Target &laquo;ou=zaragoza,ou=delegation,dc=pruebasnacho,dc=int&raquo;<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_15490\" aria-describedby=\"caption-attachment-15490\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-15490 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Imagen.-Desvinculamos-la-GPO-a-una-OU-scaled.jpg?resize=800%2C452&amp;ssl=1\" alt=\"Image - Unlinking the GPO from an OU\" width=\"800\" height=\"452\"><figcaption id=\"caption-attachment-15490\" class=\"wp-caption-text\">Image &ndash; Unlinking the GPO from an OU<\/figcaption><\/figure>\n<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Disabling a GPO without Unlinking it from the OU Using Powershell<\/strong><\/h3>\n<p>Another option is to&nbsp;<strong>disable a GPO temporarily without unlinking it from the OU<\/strong>. We say &laquo;temporarily&raquo; because this tends to be used for tests or when changes are being made, but in reality, you can disable it indefinitely if you wish. But if you wanted to do this, it&rsquo;s probably better to unlink it and remove it to avoid a build-up of trash.<\/p>\n<p>To disable the link between a GPO and an OU, use the following command:<\/p>\n<p><em>Set-GPLink -Name &nbsp;&lt;Name&gt; -Target &nbsp;&lt;Path_OU_Domain&gt; -linkenabled no<\/em><\/p>\n<p>Where:<\/p>\n<ul>\n<li><strong>Name &lt;Name&gt;<\/strong>: Provides the name of the GPO that you wish to disable. Substitute &lt;Name&gt; for the name of the GPO.<\/li>\n<li><strong>Target &lt;Path_OU_Domain&gt;<\/strong>: The folder path of the Organisational Unit that is linked to the GPO. Substitute &lt;Path_OU_Domain&gt; for the folder path using the format in the example below.<\/li>\n<\/ul>\n<p>Here&rsquo;s an example of a command to disable a GPO linked to the Zaragoza delegation in the domain PruebasNacho.int:<\/p>\n<p><em>Set-GPLink -Name TestGPO1 -Target &laquo;ou=zaragoza, dc=pruebasnacho, dc=int&raquo; -linkenabled no<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_15489\" aria-describedby=\"caption-attachment-15489\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-15489 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Imagen.-Deshabilitamos-la-GPO-a-una-OU-scaled.jpg?resize=800%2C452&amp;ssl=1\" alt=\"Image - Disabling a GPO linked to an OU\" width=\"800\" height=\"452\"><figcaption id=\"caption-attachment-15489\" class=\"wp-caption-text\">Image &ndash; Disabling a GPO linked to an OU<\/figcaption><\/figure>\n<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Removing a GPO with PowerShell<\/strong><\/h3>\n<p>If a GPO ever starts causing problems, becomes redundant or you simply don&rsquo;t want it any more, you&rsquo;ll probably want to&nbsp;<strong>remove it<\/strong>. To do this, use the &laquo;Remove-GPO&raquo; command:<\/p>\n<p><em>Remove-GPO -Name &lt;Name&gt; -Domain &lt;domain&gt;<\/em><\/p>\n<p>Where:<\/p>\n<ul>\n<li><strong>Name &lt;Name&gt;<\/strong>: Gives the name of the GPO that you want to remove. Substitute &lt;Name&gt; for the name of the GPO.<\/li>\n<li><strong>Domain &lt;domain&gt;<\/strong>: This is not a mandatory parameter, but you can substitute &lt;domain&gt; for the domain name, including the extension (e.g., pruebasnacho.int)<\/li>\n<\/ul>\n<p>Here&rsquo;s an example of what this would look like:<\/p>\n<p><em>Remove-GPO -Name TestGPO -Domain &ldquo;PruebasNacho.int&rdquo;<\/em><\/p>\n<p>There is also the&nbsp;<strong>option to use the &laquo;Guid&raquo; instead of the name<\/strong>, which is a unique alphanumeric string that identifies the GPO in the domain. In this case, the command would look something like this:<\/p>\n<p><em>Remove-GPO -Guid 0b14-50c-46dd-3e45-afa0-8b4d-331c-12bc -Domain &ldquo;PruebasNacho.int&rdquo;<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_15493\" aria-describedby=\"caption-attachment-15493\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-15493 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Imagen.-Eliminar-la-GPO-a-una-OU-scaled.jpg?resize=800%2C452&amp;ssl=1\" alt=\"Image - Removing a GPO from an OU\" width=\"800\" height=\"452\"><figcaption id=\"caption-attachment-15493\" class=\"wp-caption-text\">Image &ndash; Removing a GPO from an OU<\/figcaption><\/figure>\n<\/p>\n<p>&nbsp;<\/p>\n<h3>Backing up GPOs Using PowerShell (Perfect for creating a GPO script)<\/h3>\n<p>Firstly, it&rsquo;s important to point out that&nbsp;<strong>backing up a single GPO&nbsp;<\/strong>is a different procedure from <strong>backing up all existing GPOs<\/strong>.<\/p>\n<p>So, to back up all the GPOs on a domain controller, you need to use the following command:<\/p>\n<p><em>Backup-GPO -All -Path &lt;Destination_Path&gt;<\/em><\/p>\n<p>Where:<\/p>\n<ul>\n<li><strong>Path &lt;Destination_Path&gt;<\/strong>: should contain the full path of the backup location.<\/li>\n<\/ul>\n<p>Here&rsquo;s an example:<\/p>\n<p><em>Backup-GPO -All -Path F:BackupsADDSGPO<\/em><\/p>\n<p>On the other hand, if you want to copy just one GPO, you should use specify the GPO in question using the following command:<\/p>\n<p><em>Backup-GPO -Name &lt;Name&gt; -Path <\/em>&lt;Destination_Path&gt;<\/p>\n<p>Where:<\/p>\n<ul>\n<li><strong>Name &lt;Name&gt;<\/strong>: Specifies the name of the GPO that you want to back up.<\/li>\n<li><strong>Path &lt;Destination_Path&gt;<\/strong>: should specify the full path of the backup location.<\/li>\n<\/ul>\n<p>Here&rsquo;s an example:<\/p>\n<p><em>Backup-GPO -Name TestGPO -Path F:BackupsADDSGPO<\/em><\/p>\n<p>Again here, there is the&nbsp;<strong>option to add comments&nbsp;<\/strong>that can be used to add the&nbsp;<strong>backup date&nbsp;<\/strong>to make it easier to keep your backups organised.<\/p>\n<p>In this case, the command would look like this:<\/p>\n<p><em>Backup-GPO -Name TestGPO -Path F:BackupsADDSGPO &ndash; Comment &ldquo;Backup TestGPO 20221107&rdquo;<\/em><\/p>\n<p>This command can be particularly useful if you want to create a GPO script to schedule backups of your policies and store them in a secure storage location in case of any future incidents.<\/p>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_15487\" aria-describedby=\"caption-attachment-15487\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-15487 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Imagen.-Creamos-una-copia-de-seguridad-de-las-GPO-del-dominio-y-validamos-su-creacion-scaled.jpg?resize=800%2C452&amp;ssl=1\" alt=\"Image - Creating a backup of GPOs in the domain\" width=\"800\" height=\"452\"><figcaption id=\"caption-attachment-15487\" class=\"wp-caption-text\">Image &ndash; Creating a backup of GPOs in the domain<\/figcaption><\/figure>\n<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Recovering a GPO Using PowerShell<\/strong><\/h3>\n<p>The process to recover a GPO is very similar to the process to create a backup, which is quite handy when you&rsquo;re trying to remember how to do it.<\/p>\n<p>If you want to&nbsp;<strong>recover a GPO backup<\/strong>, you need to run the following command:<\/p>\n<p><em>Restore-GPO -Name &lt;Name&gt; -Path &lt;Destination_Path&gt; &ndash; Comment &lt;Comment&gt;<\/em><\/p>\n<p>Where:<\/p>\n<ul>\n<li><strong>Name &lt;Name&gt;<\/strong>: Should be the name of the GPO that you want to recover.<\/li>\n<li><strong>Path &lt;Destination_Path&gt;<\/strong>: Is the full destination path for the backup.<\/li>\n<li><strong>Comment &lt;Comment&gt;<\/strong>: Should contain the comment that was added to the backup and should refer to a specific backup from a specific time.<\/li>\n<\/ul>\n<p>An example of this command would be:<\/p>\n<p><em>Restore-GPO -Name TestGPO -Path F:BackupsADDSGPO &ndash; Comment &ldquo;Backup TestGPO 20221107&rdquo;<\/em><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Updating a GPO Using PowerShell<\/strong><\/h3>\n<p>As anyone who has worked with group policies will already know,&nbsp;<strong>GPOs don&rsquo;t always work the first time<\/strong>, or they don&rsquo;t always load or update as they should. Sometimes, you need to manually&nbsp;<strong>force them to update<\/strong>. To do this, you can use this classic command:<\/p>\n<p><em>Gpupdate \/force<\/em><\/p>\n<p>In PowerShell, we have another command that can be used to update policies. This is the &laquo;Invoke-GPUpdate&raquo; command, which is usually run on the computer on which you wish to update the GPOs:<\/p>\n<p><em>Invoke-GPUpdate<\/em><\/p>\n<p>If you want to refresh your policies using a remote connection, you can also use the following command:<\/p>\n<p><em>Invoke-GPUpdate -Computer &lt;computer&gt;<\/em><\/p>\n<p>Where:<\/p>\n<ul>\n<li><strong>&lt;computer&gt;<\/strong>: is the name of the computer on which you want to update the policies. This should be written in the format &ldquo;dominioequipo&rdquo;, for example, &ldquo;pruebasnacholaptop1&rdquo;.<\/li>\n<\/ul>\n<p>Here&rsquo;s an example of the complete command:<\/p>\n<p><em>Invoke-GPUpdate -Computer &ldquo;pruebasnacholaptop1&rdquo;<\/em><\/p>\n<p>Usually, you would use this command for all GPOs. However, if you just wanted to&nbsp;<strong>update only those applied to users or those applied to computers<\/strong>, you would add the following modifier:<\/p>\n<p><em>-Target &laquo;User&raquo;<\/em><\/p>\n<p>And, in the case of computers, it would be as follows:<\/p>\n<p><em>-Target &laquo;Computer&raquo;<\/em><\/p>\n<p>Furthermore, you can&nbsp;<strong>update the GPOs for an entire Organisational Unit&nbsp;<\/strong>by using a&nbsp;<strong>small &laquo;one-line script&raquo;<\/strong>:<\/p>\n<p><em>Get-ADComputer &ndash;filter * -Searchbase &lt;OU_Path&gt; | foreach{ Invoke-GPUpdate &ndash;computer $_.name -force}<\/em><\/p>\n<p>Where:<\/p>\n<ul>\n<li>Searchbase &lt;OU_Path&gt;: Is the domain path for the OU that you wish to update.<\/li>\n<\/ul>\n<p>For example, if you wanted to update the GPOs for the Zaragoza delegation, the command would look like this:<\/p>\n<p><em>Get-ADComputer &ndash;filter * -Searchbase &laquo;ou=zaragoza,ou=delegation,dc=pruebasnacho,dc=int&raquo; | foreach{ Invoke-GPUpdate &ndash;computer $_.name -force}<\/em><\/p>\n<p>If you wanted to do this for the entire domain, you would run Searchbase on the domain&rsquo;s root directory.<\/p>\n<p>So, with all these commands, you can create a GPO script, which will allow you to update GPOs on the computers you need to or even on the entire domain.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Generating a Report for a GPO Run Using PowerShell (and GPO Script)<\/strong><\/h3>\n<p>When working with policies, problems can happen, and you may need to run some checks to see where issues are occurring or check your settings.<\/p>\n<p>In this situation, you can use the cmdlet &laquo;Get-GPOReport&raquo; which <strong>generates a report&nbsp;<\/strong>which will output an&nbsp;<strong>HTML or XML file&nbsp;<\/strong>that describes the properties and configuration for either a specific GPO or all the GPOs in a domain.<\/p>\n<p>This <strong>report includes<\/strong>:<\/p>\n<ul>\n<li><strong>Details<\/strong> about the GPOs.<\/li>\n<li>Their <strong>links<\/strong>.<\/li>\n<li><strong>Security filters<\/strong>.<\/li>\n<li><strong>WMI Filters<\/strong>.<\/li>\n<li>The <strong>delegation<\/strong>.<\/li>\n<li>The <strong>configuration <\/strong>of users and computers.<\/li>\n<\/ul>\n<p>To generate this type of report, you can use the following command:<\/p>\n<p><em>Get-GPOReport -name &lt;Name&gt; -ReportType &lt;HTML\/XML&gt; -Path &lt;Output_Path&gt;<\/em><\/p>\n<p>Where:<\/p>\n<ul>\n<li><strong>Name &lt;Name&gt;<\/strong>: Name of the GPO that the report is run for.<\/li>\n<li><strong>ReportType &lt;HTML\/XML&gt;<\/strong>: Specifies the format of the report, either HTML or XML.<\/li>\n<li><strong>Path &lt;Output_Path&gt;<\/strong>: The complete path where the report will be saved, including the filename. For example, &ldquo;F:ReportsADDSGPOreport.html&rdquo;.<\/li>\n<\/ul>\n<p>Here&rsquo;s an example of what this command might look like:<\/p>\n<p><em>Get-GPOReport -name TestGPO -ReportType HTML -Path &ldquo;F:ReportsADDSGPOreport.html&rdquo;<\/em><\/p>\n<p>If you want to generate a report for all policies, you should swap the parameter &ldquo;-name &lt;Name&gt;&rdquo; for &ldquo;-all&rdquo;.<\/p>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_15495\" aria-describedby=\"caption-attachment-15495\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-15495 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Imagen.-Generamos-el-informe-y-comprobamos-su-contenido-scaled.jpg?resize=800%2C452&amp;ssl=1\" alt=\"Image - Generating the report and reviewing its content\" width=\"800\" height=\"452\"><figcaption id=\"caption-attachment-15495\" class=\"wp-caption-text\">Image &ndash; Generating the report and reviewing its content<\/figcaption><\/figure>\n<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p><strong>Group policies (GPOs)<\/strong> are one of the <strong>most important tools <\/strong>for <strong>keeping your business infrastructure well-managed<\/strong> in a fast and efficient way, especially when you have a lot of hosts.<\/p>\n<p>With GPOs, you can automatically&nbsp;<strong>deploy software&nbsp;<\/strong>or&nbsp;<strong>apply standard configurations&nbsp;<\/strong>for groups of hosts&nbsp;<strong>based on their location&nbsp;<\/strong>within the AD DS structure or their <strong>Organisational Unit (OU)<\/strong>.<\/p>\n<p>As with most things provided by Microsoft, you can&nbsp;<strong>work with GPOs using PowerShell commands<\/strong>. Simply by knowing a relatively small set of cmdlets, you can perform the majority of GPO-related tasks. In fact, with the commands contained in this article, you can even create your own scripts to automatically deploy policies on your AD DS server.<\/p>\n<p>We hope that you found this article interesting. If you have any questions, we recommend you read our article titled <a href=\"https:\/\/jotelulu.com\/blog\/que-son-y-para-que-sirven-las-gpo\" target=\"_blank\" rel=\"noopener\">&ldquo;What Are GPOs and What Are They Used for&rdquo;<\/a>.<\/p>\n<p>Furthermore, we recommend you check out the following links, where you&rsquo;ll find additional information and some practical examples of what you can do with group policies:<\/p>\n<ul>\n<li><a href=\"https:\/\/jotelulu.com\/blog\/que-son-y-para-que-sirven-las-gpo\">What are GPOs and What Are They Used for<\/a><\/li>\n<li><a href=\"https:\/\/jotelulu.com\/soporte\/tutoriales\/como-configurar-una-gpo-para-el-mapeo-de-unidades-compartidas\">How to Configure a GPO for Mapping Shared Drives<\/a><\/li>\n<li><a href=\"https:\/\/jotelulu.com\/soporte\/tutoriales\/como-configurar-gpo-para-mapeo-de-impresoras\">How to Configure a GPO for Printer Mapping<\/a><\/li>\n<li><a href=\"https:\/\/jotelulu.com\/soporte\/tutoriales\/desplegar-gpo-script-codigo-powershell\" target=\"_blank\" rel=\"noopener\">How to Deploy a PowerShell Script Using GPO<\/a><\/li>\n<li><a href=\"https:\/\/jotelulu.com\/soporte\/tutoriales\/como-configurar-unidades-personales-mediante-gpo-script\">How to Configure Personal Drives Using a GPO Script<\/a><\/li>\n<li><a href=\"https:\/\/jotelulu.com\/soporte\/tutoriales\/configurar-firewall-gpo-script\">How to Configure Your Firewall Using a GPO Script<\/a><\/li>\n<li><a href=\"https:\/\/jotelulu.com\/soporte\/tutoriales\/como-ocultar-el-acceso-a-una-unidad-de-disco-dentro-de-tu-servidor-a-traves-del-editor-de-politicas-locales\">How to Hide a Disk Drive on Your Server Using the Local Policy Editor<\/a><\/li>\n<\/ul>\n<p>Thanks for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we&rsquo;ll take a look at some&nbsp;PowerShell commands that you can use to deploy and manage your GPOs. For a few years now, there has been a steady increase in the number of people&nbsp;using PowerShell in the administration of operating systems and server applications, as well as the deployment of services and infrastructure. [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":15510,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-49086","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-y-sistemas"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PowerShell commands for GPOs<\/title>\n<meta name=\"description\" content=\"In this article, we&#039;ll take a look at some\u00a0PowerShell commands that you can use to deploy and manage your GPOs.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerShell commands for GPOs\" \/>\n<meta property=\"og:description\" content=\"In this article, we&#039;ll take a look at some\u00a0PowerShell commands that you can use to deploy and manage your GPOs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/\" \/>\n<meta property=\"og:site_name\" content=\"Jotelulu\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-07T23:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Comandos-de-Powershell-para-desplegar-y-gestionar-GPO-GPO-Script-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1211\" \/>\n\t<meta property=\"og:image:height\" content=\"728\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Juan Ignacio Oller Aznar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Juan Ignacio Oller Aznar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"14 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-for-gpos\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-for-gpos\\\/\"},\"author\":{\"name\":\"Juan Ignacio Oller Aznar\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/#\\\/schema\\\/person\\\/2ae97818cae086c48f108cd74234aca9\"},\"headline\":\"PowerShell Commands for Deploying and Managing GPOs (GPO Scripts)\",\"datePublished\":\"2022-11-07T23:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-for-gpos\\\/\"},\"wordCount\":2827,\"image\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-for-gpos\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jotelulu.com\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/Comandos-de-Powershell-para-desplegar-y-gestionar-GPO-GPO-Script-1.jpg\",\"articleSection\":[\"Cloud y sistemas\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-for-gpos\\\/\",\"url\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-for-gpos\\\/\",\"name\":\"PowerShell commands for GPOs\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-for-gpos\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-for-gpos\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jotelulu.com\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/Comandos-de-Powershell-para-desplegar-y-gestionar-GPO-GPO-Script-1.jpg\",\"datePublished\":\"2022-11-07T23:00:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/#\\\/schema\\\/person\\\/2ae97818cae086c48f108cd74234aca9\"},\"description\":\"In this article, we'll take a look at some\u00a0PowerShell commands that you can use to deploy and manage your GPOs.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-for-gpos\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-for-gpos\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-for-gpos\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jotelulu.com\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/Comandos-de-Powershell-para-desplegar-y-gestionar-GPO-GPO-Script-1.jpg\",\"contentUrl\":\"https:\\\/\\\/jotelulu.com\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/Comandos-de-Powershell-para-desplegar-y-gestionar-GPO-GPO-Script-1.jpg\",\"width\":1211,\"height\":728,\"caption\":\"Comandos de Powershell para desplegar y gestionar GPO (GPO Script)\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-for-gpos\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PowerShell Commands for Deploying and Managing GPOs (GPO Scripts)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/#website\",\"url\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/\",\"name\":\"Jotelulu\",\"description\":\"Cloud Paradise for Tech Companies\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/#\\\/schema\\\/person\\\/2ae97818cae086c48f108cd74234aca9\",\"name\":\"Juan Ignacio Oller Aznar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/87efd80399b2c40a1d78dd5cee4e788d3f6c29d33e3b67bcfbc6abbf91d0fdcf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/87efd80399b2c40a1d78dd5cee4e788d3f6c29d33e3b67bcfbc6abbf91d0fdcf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/87efd80399b2c40a1d78dd5cee4e788d3f6c29d33e3b67bcfbc6abbf91d0fdcf?s=96&d=mm&r=g\",\"caption\":\"Juan Ignacio Oller Aznar\"},\"url\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/author\\\/juanignaciooller\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PowerShell commands for GPOs","description":"In this article, we'll take a look at some\u00a0PowerShell commands that you can use to deploy and manage your GPOs.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/","og_locale":"en_GB","og_type":"article","og_title":"PowerShell commands for GPOs","og_description":"In this article, we'll take a look at some\u00a0PowerShell commands that you can use to deploy and manage your GPOs.","og_url":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/","og_site_name":"Jotelulu","article_published_time":"2022-11-07T23:00:00+00:00","og_image":[{"width":1211,"height":728,"url":"https:\/\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Comandos-de-Powershell-para-desplegar-y-gestionar-GPO-GPO-Script-1.jpg","type":"image\/jpeg"}],"author":"Juan Ignacio Oller Aznar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Juan Ignacio Oller Aznar","Estimated reading time":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/#article","isPartOf":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/"},"author":{"name":"Juan Ignacio Oller Aznar","@id":"https:\/\/jotelulu.com\/en-gb\/#\/schema\/person\/2ae97818cae086c48f108cd74234aca9"},"headline":"PowerShell Commands for Deploying and Managing GPOs (GPO Scripts)","datePublished":"2022-11-07T23:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/"},"wordCount":2827,"image":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/#primaryimage"},"thumbnailUrl":"https:\/\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Comandos-de-Powershell-para-desplegar-y-gestionar-GPO-GPO-Script-1.jpg","articleSection":["Cloud y sistemas"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/","url":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/","name":"PowerShell commands for GPOs","isPartOf":{"@id":"https:\/\/jotelulu.com\/en-gb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/#primaryimage"},"image":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/#primaryimage"},"thumbnailUrl":"https:\/\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Comandos-de-Powershell-para-desplegar-y-gestionar-GPO-GPO-Script-1.jpg","datePublished":"2022-11-07T23:00:00+00:00","author":{"@id":"https:\/\/jotelulu.com\/en-gb\/#\/schema\/person\/2ae97818cae086c48f108cd74234aca9"},"description":"In this article, we'll take a look at some\u00a0PowerShell commands that you can use to deploy and manage your GPOs.","breadcrumb":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/#primaryimage","url":"https:\/\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Comandos-de-Powershell-para-desplegar-y-gestionar-GPO-GPO-Script-1.jpg","contentUrl":"https:\/\/jotelulu.com\/wp-content\/uploads\/2022\/11\/Comandos-de-Powershell-para-desplegar-y-gestionar-GPO-GPO-Script-1.jpg","width":1211,"height":728,"caption":"Comandos de Powershell para desplegar y gestionar GPO (GPO Script)"},{"@type":"BreadcrumbList","@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-for-gpos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/jotelulu.com\/en-gb\/"},{"@type":"ListItem","position":2,"name":"PowerShell Commands for Deploying and Managing GPOs (GPO Scripts)"}]},{"@type":"WebSite","@id":"https:\/\/jotelulu.com\/en-gb\/#website","url":"https:\/\/jotelulu.com\/en-gb\/","name":"Jotelulu","description":"Cloud Paradise for Tech Companies","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jotelulu.com\/en-gb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/jotelulu.com\/en-gb\/#\/schema\/person\/2ae97818cae086c48f108cd74234aca9","name":"Juan Ignacio Oller Aznar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/87efd80399b2c40a1d78dd5cee4e788d3f6c29d33e3b67bcfbc6abbf91d0fdcf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/87efd80399b2c40a1d78dd5cee4e788d3f6c29d33e3b67bcfbc6abbf91d0fdcf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/87efd80399b2c40a1d78dd5cee4e788d3f6c29d33e3b67bcfbc6abbf91d0fdcf?s=96&d=mm&r=g","caption":"Juan Ignacio Oller Aznar"},"url":"https:\/\/jotelulu.com\/en-gb\/author\/juanignaciooller\/"}]}},"_links":{"self":[{"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/posts\/49086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/comments?post=49086"}],"version-history":[{"count":0,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/posts\/49086\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/media\/15510"}],"wp:attachment":[{"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/media?parent=49086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/categories?post=49086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/tags?post=49086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}