locked
"WMIMonitorID" wmi Class is not working while RDP and VM. RRS feed

  • Question


  • "WMIMonitorID" wmi Class is not working while RDP and VM.

    We are getting an error when script is running on RDP Server and VM. 

    Amar Vaidya

    Thursday, September 20, 2018 11:20 AM

All replies

  • That is correct.  The monitors, in both cases, are virtualized so they do not show up as physical devices.


    \_(ツ)_/

    Thursday, September 20, 2018 11:36 AM
  • Computer we are taking RDP then Script is not working. 

    One PC is Window 7 and another is Windows 10.


    Amar Vaidya



    • Edited by Amar Vaidya Thursday, September 20, 2018 12:10 PM
    Thursday, September 20, 2018 12:06 PM
  • Under RDP the wmi class will return the console monitor.


    \_(ツ)_/

    Thursday, September 20, 2018 12:11 PM
  • But it is not working

    Amar Vaidya

    Thursday, September 20, 2018 3:32 PM
  • hi,
    Are all client computers occurred the problem or only two computers occurred the problem?
    from your description ,i think you can do RD connection ,but only script can not be used ,it that true? 
    Is there any error information in event log?
    WmiMonitorID class
    https://docs.microsoft.com/en-us/windows/desktop/wmicoreprov/wmimonitorid

    Sunday, September 23, 2018 3:51 AM
  • This issue is on all client with RD connection.  

    event log not checked. 



    Amar Vaidya

    Monday, September 24, 2018 6:51 AM
  • An RDS session does not have a monitor in WMI.  It has no monitor. 


    \_(ツ)_/

    • Proposed as answer by taylor.l Monday, September 24, 2018 10:27 AM
    Monday, September 24, 2018 10:05 AM