Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Only update the session ExitCode inStart-ADTProcess if it's not already set.#1861

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
mjr4077au wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromstartAdtProcess

Conversation

@mjr4077au
Copy link
Member

Fixes#1848.

@mjr4077aumjr4077au added this to the4.2.0 milestoneOct 25, 2025
@mjr4077aumjr4077au self-assigned thisOct 25, 2025
@mjr4077aumjr4077au added the Type: Idea / EnhancementNew feature or request labelOct 25, 2025
Copy link
Contributor

@DanGoughDanGough left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Example given in the issue is now resolved. But I think we could do with some more advanced logic here. Rather than:

"only update the exit code if it is currently 0"

Perhaps it should be:

"only update the exit code if the current exit code is a success code"

Basically, if you run a series of installs, we always want a reboot code to trump a success code, and an error code to trump both.

$adtSession=Open-ADTSession-PassThruStart-ADTProcess-FilePath C:\Windows\System32\cmd.exe-ArgumentList'/c exit 1'-SuccessExitCodes1Start-ADTProcess-FilePath C:\Windows\System32\cmd.exe-ArgumentList'/c exit 3010'$adtSession.GetExitCode()

Exit code is still 1 with the example above, when I would like to see 3010.

@mjr4077aumjr4077au marked this pull request as draftNovember 4, 2025 10:04
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@DanGoughDanGoughDanGough left review comments

@sintaxasnsintaxasnAwaiting requested review from sintaxasn

At least 1 approving review is required to merge this pull request.

Assignees

@mjr4077aumjr4077au

Labels

Type: Idea / EnhancementNew feature or request

Projects

None yet

Milestone

4.2.0

Development

Successfully merging this pull request may close these issues.

[Bug] Session exit code should be 3010 if any installation returned a 3010

3 participants

@mjr4077au@DanGough

[8]ページ先頭

©2009-2025 Movatter.jp