-
Notifications
You must be signed in to change notification settings - Fork 81
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
ScheduledTask: Fixed execution account missing domain name #356
ScheduledTask: Fixed execution account missing domain name #356
Conversation
Hi @jensotto - thanks for submitting this. It looks like the HQRM tests are failing because an entry hasn't been added to the CHANGELOG.md: See the |
It already contains a message for that change so I didn't add any further comments: Fixed issue with ExecuteAsCredential not returning fully qualified username on newer versions of Windows 10 and Windows Server 2019 - Fixes Issue #352. |
Ah, I see. Unfortunately for the tests to pass you'll need to make a correction message. |
Ok, I have mad a small change to the existing entry in changelog. |
Hi @jensotto - sorry about the delays in getting to this. Can you resolve the conflicts and I'll review? |
@PlagueHO conflicts resolved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jensotto - just some minor style tweaks to line length then can merge.
Reviewed 2 of 2 files at r4.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @jensotto)
source/DSCResources/DSC_ScheduledTask/DSC_ScheduledTask.psm1, line 1453 at r4 (raw file):
if ($username -match "$ENV:COMPUTERNAME\\" -and $currentValues.ExecuteAsCredential) { $currentValues.ExecuteAsCredential = Set-DomainNameInAccountName -AccountName $currentValues.ExecuteAsCredential -DomainName $ENV:COMPUTERNAME
Can you reduce the line length of this line by using:
$currentValues.ExecuteAsCredential = Set-DomainNameInAccountName `
-AccountName $currentValues.ExecuteAsCredential `
-DomainName $ENV:COMPUTERNAME
source/DSCResources/DSC_ScheduledTask/DSC_ScheduledTask.psm1, line 1458 at r4 (raw file):
if ($username -match "$ENV:USERDOMAIN\\" -and $currentValues.ExecuteAsCredential) { $currentValues.ExecuteAsCredential = Set-DomainNameInAccountName -AccountName $currentValues.ExecuteAsCredential -DomainName $ENV:USERDOMAIN
Can you reduce the line length of this line by using:
$currentValues.ExecuteAsCredential = Set-DomainNameInAccountName `
-AccountName $currentValues.ExecuteAsCredential `
v -DomainName $ENV:USERDOMAIN
…/ComputerManagementDsc into fix-missing-domain-name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @PlagueHO)
source/DSCResources/DSC_ScheduledTask/DSC_ScheduledTask.psm1, line 1453 at r4 (raw file):
Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Can you reduce the line length of this line by using:
$currentValues.ExecuteAsCredential = Set-DomainNameInAccountName ` -AccountName $currentValues.ExecuteAsCredential ` -DomainName $ENV:COMPUTERNAME
Done.
source/DSCResources/DSC_ScheduledTask/DSC_ScheduledTask.psm1, line 1458 at r4 (raw file):
Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Can you reduce the line length of this line by using:
$currentValues.ExecuteAsCredential = Set-DomainNameInAccountName ` -AccountName $currentValues.ExecuteAsCredential ` v -DomainName $ENV:USERDOMAIN
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r5.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @jensotto)
Pull Request (PR) description
Improved PR #351 to include domain accounts.
This Pull Request (PR) fixes the following issues
Fixes #352
Possibly fixes or Improves #144
Task list
Entry should say what was changed, and how that affects users (if applicable).
and comment-based help.
This change is