Skip to content

Add OSLicense PowerShell reference - #4128

Open
Robin Harwood (robinharwood) wants to merge 2 commits into
MicrosoftDocs:mainfrom
robinharwood:roharwoo-oslicense-powershell-reference
Open

Add OSLicense PowerShell reference#4128
Robin Harwood (robinharwood) wants to merge 2 commits into
MicrosoftDocs:mainfrom
robinharwood:roharwoo-oslicense-powershell-reference

Conversation

@robinharwood

@robinharwood Robin Harwood (robinharwood) commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

PR Summary

Adds the initial OSLicense PowerShell reference for Windows Server 2025. The new module page and nine cmdlet pages document licensing information, activation, KMS configuration, and subscription licensing operations that supplement slmgr.vbs workflows.

The reference includes source-grounded syntax, parameter descriptions, examples, inputs, outputs, operational cautions, and related links. It was validated against the approved OSLicense engineering surface and follows the PlatyPS command-help structure.

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributors guide.
  • Style: This PR adheres to the style guide.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@robinharwood
Robin Harwood (robinharwood) force-pushed the roharwoo-oslicense-powershell-reference branch from 656b9e4 to defa99c Compare September 7, 2026 22:10
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Robin Harwood (@robinharwood)
You have permissions to sign off pull requests in this repository. Reviewers will not be added to this PR.

Before this PR can be merged, you need to add the Sign off label to it. Before you sign off a PR, confirm the following:

  • The PR is not in draft state. When the changes in this PR are ready to be published, select the Ready to merge button at the bottom of the page.
  • Article content has been checked for technical accuracy.
  • There are no errors or warnings in build validation.
  • There are no severity 1 or 2 PoliCheck issues.
  • All required PR checks at the bottom of the PR are passing.

After you've confirmed the above, do the following to sign off:

  1. Select the gear next to Labels.
  2. Select Sign off from the label list.
  3. Click away from the label list.

image

After you've signed off, our operations (PubOps) team will review the PR for issues that may impact formatting and the customer experience. If any changes are needed, they will return
the PR to you with required changes. After they've completed those changes, you need to sign off again.

When the PR passes PubOps review, they'll merge the PR. If the PR is merged into the main branch, changes will go live within the next couple hours.

If you have questions about this process, or need help signing off on this PR, post a message to https://aka.ms/tcphelp.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 656b9e4:

✅ Validation status: passed

File Status Preview URL Details
docset/winserver2025-ps/OSLicense/Get-ADLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Get-OSLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-ADLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-KmsLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-OSLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-SubscriptionLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/OSLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-KmsLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-OSLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-SubscriptionLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)

For more details, please refer to the build report.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit defa99c:

✅ Validation status: passed

File Status Preview URL Details
docset/winserver2025-ps/OSLicense/Get-ADLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Get-OSLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-ADLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-KmsLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-OSLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-SubscriptionLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/OSLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-KmsLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-OSLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-SubscriptionLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)

For more details, please refer to the build report.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

Robin Harwood (@robinharwood)
You have permissions to sign off pull requests in this repository. Reviewers will not be added to this PR.

Before this PR can be merged, you need to add the Sign off label to it. Before you sign off a PR, confirm the following:

  • The PR is not in draft state. When the changes in this PR are ready to be published, select the Ready to merge button at the bottom of the page.
  • Article content has been checked for technical accuracy.
  • There are no errors or warnings in build validation.
  • There are no severity 1 or 2 PoliCheck issues.
  • All required PR checks at the bottom of the PR are passing.

After you've confirmed the above, do the following to sign off:

  1. Select the gear next to Labels.
  2. Select Sign off from the label list.
  3. Click away from the label list.

image

After you've signed off, our operations (PubOps) team will review the PR for issues that may impact formatting and the customer experience. If any changes are needed, they will return
the PR to you with required changes. After they've completed those changes, you need to sign off again.

When the PR passes PubOps review, they'll merge the PR. If the PR is merged into the main branch, changes will go live within the next couple hours.

If you have questions about this process, or need help signing off on this PR, post a message to https://aka.ms/tcphelp.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 793456c:

✅ Validation status: passed

File Status Preview URL Details
docset/winserver2025-ps/OSLicense/Get-ADLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Get-OSLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-ADLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-KmsLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-OSLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-SubscriptionLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/OSLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-KmsLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-OSLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-SubscriptionLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)

For more details, please refer to the build report.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

Robin Harwood (@robinharwood)
You have permissions to sign off pull requests in this repository. Reviewers will not be added to this PR.

Before this PR can be merged, you need to add the Sign off label to it. Before you sign off a PR, confirm the following:

  • The PR is not in draft state. When the changes in this PR are ready to be published, select the Ready to merge button at the bottom of the page.
  • Article content has been checked for technical accuracy.
  • There are no errors or warnings in build validation.
  • There are no severity 1 or 2 PoliCheck issues.
  • All required PR checks at the bottom of the PR are passing.

After you've confirmed the above, do the following to sign off:

  1. Select the gear next to Labels.
  2. Select Sign off from the label list.
  3. Click away from the label list.

image

After you've signed off, our operations (PubOps) team will review the PR for issues that may impact formatting and the customer experience. If any changes are needed, they will return
the PR to you with required changes. After they've completed those changes, you need to sign off again.

When the PR passes PubOps review, they'll merge the PR. If the PR is merged into the main branch, changes will go live within the next couple hours.

If you have questions about this process, or need help signing off on this PR, post a message to https://aka.ms/tcphelp.

@robinharwood
Robin Harwood (robinharwood) force-pushed the roharwoo-oslicense-powershell-reference branch from 6df4e22 to ad4e892 Compare September 9, 2026 12:07
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

Robin Harwood (@robinharwood)
You have permissions to sign off pull requests in this repository. Reviewers will not be added to this PR.

Before this PR can be merged, you need to add the Sign off label to it. Before you sign off a PR, confirm the following:

  • The PR is not in draft state. When the changes in this PR are ready to be published, select the Ready to merge button at the bottom of the page.
  • Article content has been checked for technical accuracy.
  • There are no errors or warnings in build validation.
  • There are no severity 1 or 2 PoliCheck issues.
  • All required PR checks at the bottom of the PR are passing.

After you've confirmed the above, do the following to sign off:

  1. Select the gear next to Labels.
  2. Select Sign off from the label list.
  3. Click away from the label list.

image

After you've signed off, our operations (PubOps) team will review the PR for issues that may impact formatting and the customer experience. If any changes are needed, they will return
the PR to you with required changes. After they've completed those changes, you need to sign off again.

When the PR passes PubOps review, they'll merge the PR. If the PR is merged into the main branch, changes will go live within the next couple hours.

If you have questions about this process, or need help signing off on this PR, post a message to https://aka.ms/tcphelp.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 6df4e22:

✅ Validation status: passed

File Status Preview URL Details
docset/winserver2025-ps/OSLicense/Get-ADLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Get-OSLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-ADLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-KmsLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-OSLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-SubscriptionLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/OSLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-KmsLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-OSLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-SubscriptionLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)

For more details, please refer to the build report.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit ad4e892:

✅ Validation status: passed

File Status Preview URL Details
docset/winserver2025-ps/OSLicense/Get-ADLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Get-OSLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-ADLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-KmsLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-OSLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Invoke-SubscriptionLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/OSLicense.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-KmsLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-OSLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/OSLicense/Set-SubscriptionLicenseInfo.md ✅Succeeded View (WindowsServer2025-ps)

For more details, please refer to the build report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant