12-01-2022 05:06 AM - edited 12-06-2022 02:11 AM
Hello
I had this on my bucket list for a long time and now we (as in @shawnsong and myself) came up with a first version of a script to:
Why?
How?
Note: @shawnsong will provide a deep dive on the intricacies of constructing the right response body.
Where to find it?
The initial public version of this script can be found here.
How to run it?
<#
##############################################################################################################################
.FUNCTIONALITY
This script will export an existing registry keys from a reference machine and import them to a JumpCloud Policy.
.DESCRIPTION
...
Authors: Juergen Klaassen & Shawn Song
Version: 1.1
Date: 2022-12-01
.NOTES
This script is provided as-is without any warranty. Use at your own risk.
This script was tested on Windows 10 and Windows 11 as well as on macOS (without the registry export).
.INPUTS
- PowerShell 5.1
- JumpCloud API Key
- JumpCloud Organization ID
- JumpCloud Policy ID (please create the policy in advance and use the policy ID)
- JumpCloud Policy Name (please create the policy in advance and use the policy name)
- A reference machine (Windows only) with the registry keys configured you want to import
- Policy Templates must be deployed to the reference and target machines
.EXAMPLE
1. $org_id: Your Organization ID from the JumpCloud Admin Console
(https://console.jumpcloud.com/#/settings/organization#general)
2. $apikey: Your API Key from the JumpCloud Admin Console
(https://console.jumpcloud.com/#/settings/apikeys)
3. $policyID: The ID of the Policy you want to import the registry keys into
4. $policyName: The name of the Policy you want to import the registry keys into
5. $csvPath: The path to the CSV file containing the registry keys to import
6. $path_to_export: The path in the registry to be exported and imported into JumpCloud
.KEYWORDS JumpCloud, Policy, Registry, Import, Export, Registry-Importer
Known Issues:
- none so far
##############################################################################################################################
#>
Disclaimer:
New to the site? Take a look at these additional resources:
Ready to join us? You can register here.