Skip to content

Fix UserId format in daily trigger C++ example#2170

Open
1r0BIT wants to merge 1 commit into
MicrosoftDocs:docsfrom
1r0BIT:patch-2
Open

Fix UserId format in daily trigger C++ example#2170
1r0BIT wants to merge 1 commit into
MicrosoftDocs:docsfrom
1r0BIT:patch-2

Conversation

@1r0BIT
Copy link
Copy Markdown

@1r0BIT 1r0BIT commented Mar 18, 2026

Replace CREDUI_FLAGS_GENERIC_CREDENTIALS with
CREDUI_FLAGS_COMPLETE_USERNAME to enable syntax checking on the supplied username to stay consistent with the principal name formats documented in MS-TSCH §2.5.6.

Without this fix, the credential dialog accepts any string without validation, producing potentially ambiguous UserId values in the resulting task XML.

Replace CREDUI_FLAGS_GENERIC_CREDENTIALS with
CREDUI_FLAGS_COMPLETE_USERNAME to enable syntax checking on the supplied username. Set target name to "." (local machine) so bare names like "Administrator" are auto-completed to ".\Administrator", consistent with the principal name formats
documented in MS-TSCH §2.5.6.

Without this fix, the credential dialog accepts any string
without validation, producing potentially ambiguous UserId values in the resulting task XML.
@prmerger-automator
Copy link
Copy Markdown
Contributor

@1r0BIT : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@prmerger-automator prmerger-automator Bot requested a review from stevewhims March 18, 2026 21:06
@1r0BIT 1r0BIT changed the title Fix UserId format in daily trigger XML example Fix UserId format in daily trigger C++ example Mar 18, 2026
@stevewhims
Copy link
Copy Markdown
Member

I don't have perms to complete this. :(

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.

2 participants