Closed zhiqiangwang08 closed 9 months ago
@zhiqiangwang08 query from Linux to Windows was using by powershell core, I think no other products use that scenario now, could you share me you use in which product to query remote Windows information on Linux? yes, omicli and wmic has different implementation, now you can run omicli on Linux/Unix, and wmic on Windows, they have some difference.
Samba have a tool need wmic which can run on Linux to query windows server events.
And the wmic can retrieve all the data fields, but omicli can't, some data fields missing.
@zhiqiangwang08 interesting, thanks for sharing it! I heard wmic runs on Linux first time. :)
@JumpingYang001
it is caused by:
https://github.com/microsoft/omi/blob/master/Unix/wsman/wsmanparser.c#L1074-L1078
it will skip null properties.
Thanks
there is no supported scenario for remoting from Linux to Windows now. just close it.
Runing the omicli command line with WQL as following:
the response as following:
And According to the document of Win32_OperatingSystem class! , the following fields missing:
And i can get all of them if use wmic seems the omicli is incompatible with wmic.