Skip to content

RemotePowerShellEnabled disabled for every user #10026

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

Closed
wants to merge 1 commit into from

Conversation

Sartharon
Copy link

Description
Using -or comparison inside the Where-clause to exclude specified admins leads to having RemotePowerShell disabled for those users as well.
Example:
admin1 -ne admin1 -or admin1 -ne admin2
-> $false -or $true
-> $true

Using the -and comparison fixes this behavior, since neither admin1 nor (-ne + -and) admin2 should have their RemotePowerShell disabled.

Real world tests

@opbld30
Copy link

opbld30 commented Oct 10, 2022

Learn Build status updates of commit 08b9f1b:

✅ Validation status: passed

File Status Preview URL Details
exchange/docs-conceptual/control-remote-powershell-access-to-exchange-servers.md ✅Succeeded View (exchange-ps)

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@chrisda
Copy link
Contributor

chrisda commented Oct 11, 2022

Already fixed yesterday #10027, thus now this PR results in merge conflicts.

Closing.

@chrisda chrisda closed this Oct 11, 2022
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.

5 participants