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

[Bug...?] Cannot detect attached monitors #8

Open
AkariiinMKII opened this issue Sep 13, 2023 · 0 comments
Open

[Bug...?] Cannot detect attached monitors #8

AkariiinMKII opened this issue Sep 13, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@AkariiinMKII
Copy link
Owner

AkariiinMKII commented Sep 13, 2023

There are two verified situations cause the command line returning Monitor: None in results

Monitor(s) powered off

In this situation, you will get Get-CimInstance : Not supported when running

Get-CimInstance -Namespace "root\wmi" -Class WmiMonitorID

and

Get-CimInstance -Namespace "root\wmi" -Class WmiMonitorListedSupportedSourceModes

Just turn on the monitor and try again.

image

Unexpected permission error

Directly sign in with Microsoft Remote Desktop app, aka RDP client, after system boot up, may cause unexpected permission error. This has been reproduced on my machine (Windows 11 Pro, version 10.0.22631, 64-bit).

In this situation, you will get Get-CimInstance : Access denied when running

Get-CimInstance -Namespace "root\wmi" -Class WmiMonitorID

and

Get-CimInstance -Namespace "root\wmi" -Class WmiMonitorListedSupportedSourceModes

Meanwhile, running these commands with admin privilege returns expected content.

To solve this, you need to sign in on the machine first, and then switch to RDP client.

image

image

@AkariiinMKII AkariiinMKII changed the title [Bug] Cannot detect attached monitors [Bug...?] Cannot detect attached monitors Sep 13, 2023
@AkariiinMKII AkariiinMKII pinned this issue Sep 13, 2023
@AkariiinMKII AkariiinMKII added the documentation Improvements or additions to documentation label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant