{"id":19954027,"url":"https://github.com/mkht/dscr_mslicense","last_synced_at":"2025-05-03T19:31:54.249Z","repository":{"id":57667076,"uuid":"93949737","full_name":"mkht/DSCR_MSLicense","owner":"mkht","description":"PowerShell DSC Resource to set Windows / Office product key.","archived":false,"fork":false,"pushed_at":"2018-04-26T14:45:18.000Z","size":9,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-19T17:54:22.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkht.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-10T15:55:01.000Z","updated_at":"2022-06-14T16:39:29.000Z","dependencies_parsed_at":"2022-09-02T14:11:00.873Z","dependency_job_id":null,"html_url":"https://github.com/mkht/DSCR_MSLicense","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkht%2FDSCR_MSLicense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkht%2FDSCR_MSLicense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkht%2FDSCR_MSLicense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkht%2FDSCR_MSLicense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkht","download_url":"https://codeload.github.com/mkht/DSCR_MSLicense/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252242048,"owners_count":21717096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T01:18:36.985Z","updated_at":"2025-05-03T19:31:53.968Z","avatar_url":"https://github.com/mkht.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"DSCR_MSLicense\n====\n\nPowerShell DSC Resource to set Windows / Office product key.\n\n## Install\nYou can install Resource through [PowerShell Gallery](https://www.powershellgallery.com/packages/DSCR_MSLicense/).\n```Powershell\nInstall-Module -Name DSCR_MSLicense\n```\n\n## Resources\n* **cWindowsLicense**\n    + For Windows operating system.\n    + Support Ver. : Windows 7 and later\n\n* **cOfficeLicense**\n    + For Microsoft Office suite.\n    + Support Ver. : Office 2013 \u0026 2016\n    + Office 365 is NOT supported\n\n## Properties\n### cWindowsLicense\n+ [string] **Ensure** (Write):\n    + Specify installation state of the product key.\n    + The default value is Present. { Present | Absent }\n\n+ [string] **ProductKey** (Key):\n    + Product key for install.\n    + The format is \"XXXXX-XXXXX-XXXXX-XXXXX-XXXXX\"\n\n+ [Boolean] **Activate** (Write):\n    + If `$true`, this resource check not only whether product key is installed, but also whether it is activated.\n    + If the system hasn't activate yet, will try to that.\n    + The default value is `$false`.\n\n+ [Boolean] **Force** (Write):\n    + If `$true`, Test-TargetResource always return `$false`.\n    + In short, regardless of the current state, the installation of the product key will be executed.\n\n### cOfficeLicense\n+ [string] **Ensure** (Write):\n    + Specify installation state of the product key.\n    + The default value is Present. { Present | Absent }\n\n+ [string] **ProductKey** (Key):\n    + Product key for install.\n    + The format is \"XXXXX-XXXXX-XXXXX-XXXXX-XXXXX\"\n\n+ [string] **OfficeVersion** (Required):\n    + Specify the version of the Office. { Office2013 | Office2016 }\n\n+ [Boolean] **Activate** (Write):\n    + If `$true`, this resource check not only whether product key is installed, but also whether it is activated.\n    + If the system hasn't activate yet, will try to that.\n    + The default value is `$false`.\n\n+ [Boolean] **Force** (Write):\n    + If `$true`, Test-TargetResource always return `$false`.\n    + In short, regardless of the current state, the installation of the product key will be executed.\n\n## Examples\n+ **Example 1**: Install product key and try to activate\n```Powershell\nConfiguration Example1\n{\n    Import-DscResource -ModuleName DSCR_MSLicense\n    cWindowsLicense Win10_Pro\n    {\n        ProductKey = \"W269N-WFGWX-YVC9B-4J6C9-T83GX\"\n        Activate   = $true\n    }\n\n    cOfficeLicense Office_ProPlus_2016\n    {\n        ProductKey    = \"XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99\"\n        OfficeVersion = \"Office2016\"\n        Activate      = $true\n    }\n}\n```\n\n## ChangeLog\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkht%2Fdscr_mslicense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkht%2Fdscr_mslicense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkht%2Fdscr_mslicense/lists"}