Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add WinNoCimSession parameter to Windows Plugin #600

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rhochmayr
Copy link

This pull request introduces a new feature to the Posh-ACME/Plugins/Windows.ps1 script, allowing users to opt out of using CIM sessions for DNS commandlets. The changes include updates to the Add-DnsTxt and Remove-DnsTxt functions, as well as documentation updates to reflect the new functionality.

This seems to require less permissions as DNS permissions alone are not enough to establish a CIM Session to the DNS Servers / Domain Controllers.

New Feature: Opt-out of CIM Sessions

  • Posh-ACME/Plugins/Windows.ps1: Added a new switch parameter WinNoCimSession to the Add-DnsTxt and Remove-DnsTxt functions. This allows users to choose not to use CIM sessions when running DNS commandlets. The script now checks for this parameter and adjusts its behavior accordingly. [1] [2] [3] [4]

Documentation Updates

  • docs/Plugins/Windows.md: Updated the documentation to include examples of using DNS commandlets without CIM sessions. This includes both the command line and the New-PACertificate function. [1] [2]

@rmbolger rmbolger self-assigned this Feb 13, 2025
@rmbolger rmbolger added the enhancement New feature or request label Feb 13, 2025
@rmbolger
Copy link
Owner

Hey @rhochmayr, thanks for the PR. This seems like a pretty straightforward improvement. Give me a bit to review.

@rhochmayr
Copy link
Author

Hi @rmbolger, thanks as well for looking into the PR. Just let me know if you have any questions or would like any changes to be made.

Background for this PR was due to permissions. We give our service accounts that are responsible for renewals only DNS permissions but no local admin or remote management permissions on the domain controllers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants