Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how to get wmic info win11
Forum Updated to NodeBB v4.3 + New Features

how to get wmic info win11

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 3 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • faduF Offline
    faduF Offline
    fadu
    wrote on last edited by
    #1

    hi after microsoft publish new releases they delete wmic app from system32/wbem
    how can i get system info like cpu serial and motherboard serial without wmic app

    JonBJ 1 Reply Last reply
    0
    • faduF fadu

      @JonB
      i know that but i say about c# to explain only

      Cobra91151C Offline
      Cobra91151C Offline
      Cobra91151
      wrote on last edited by Cobra91151
      #9

      @fadu

      Hello!

      wmic command is not available on Windows 11 Insider Preview. I recommend to use the WMI (Windows Management Instrumentation). Check out the C++ example here: https://docs.microsoft.com/en-us/windows/win32/wmisdk/example-creating-a-wmi-application

      You can easily use it with Qt framework.

      JonBJ faduF 2 Replies Last reply
      3
      • faduF fadu

        hi after microsoft publish new releases they delete wmic app from system32/wbem
        how can i get system info like cpu serial and motherboard serial without wmic app

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #2

        @fadu
        https://winaero.com/microsoft-removed-the-wmic-tool-from-windows-11-dev-builds/ says

        Microsoft points users to PowerShell instead of WMIC.

        ?

        1 Reply Last reply
        0
        • faduF Offline
          faduF Offline
          fadu
          wrote on last edited by fadu
          #3

          @JonB
          yes that is but how to get real command
          like WMIC cpu get ProcessorId
          WMIC BaseBoard get serialnumber
          it's not working in new cmd

          JonBJ 1 Reply Last reply
          0
          • faduF fadu

            @JonB
            yes that is but how to get real command
            like WMIC cpu get ProcessorId
            WMIC BaseBoard get serialnumber
            it's not working in new cmd

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #4

            @fadu
            I have no idea. You should ask this in a Windows WMIC/PowerShell forum rather than a Qt one.

            1 Reply Last reply
            1
            • faduF Offline
              faduF Offline
              fadu
              wrote on last edited by
              #5

              @JonB thanks for fast response
              i ask but didn't get the right answer
              another thing in c# it's easy to get it without this app i search if there is any method in qt like c#

              JonBJ 1 Reply Last reply
              0
              • faduF fadu

                @JonB thanks for fast response
                i ask but didn't get the right answer
                another thing in c# it's easy to get it without this app i search if there is any method in qt like c#

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by
                #6

                @fadu
                Qt is not a programming language. C# is a programming language, but not used with Qt. C++ (or Python) is used with Qt. I think you will find that the library you are thinking of with C# is actually a .NET library, which again is a different thing, and not used by Qt.

                1 Reply Last reply
                0
                • faduF Offline
                  faduF Offline
                  fadu
                  wrote on last edited by
                  #7

                  @JonB
                  i know that but i say about c# to explain only

                  JonBJ Cobra91151C 2 Replies Last reply
                  0
                  • faduF fadu

                    @JonB
                    i know that but i say about c# to explain only

                    JonBJ Offline
                    JonBJ Offline
                    JonB
                    wrote on last edited by
                    #8

                    @fadu
                    And I replied that I suspect you are talking about a .NET library, which you can access from a C# program running under Windows with a .NET runtime environment, which is not the situation for a Qt C++ program. So what would you like me to say?

                    Maybe you can try going to the effort of importing .NET runtime libraries into Qt/C++, I don't know, but haven't heard of people using it much in practice. Dot Net Example (ActiveQt).

                    1 Reply Last reply
                    1
                    • faduF fadu

                      @JonB
                      i know that but i say about c# to explain only

                      Cobra91151C Offline
                      Cobra91151C Offline
                      Cobra91151
                      wrote on last edited by Cobra91151
                      #9

                      @fadu

                      Hello!

                      wmic command is not available on Windows 11 Insider Preview. I recommend to use the WMI (Windows Management Instrumentation). Check out the C++ example here: https://docs.microsoft.com/en-us/windows/win32/wmisdk/example-creating-a-wmi-application

                      You can easily use it with Qt framework.

                      JonBJ faduF 2 Replies Last reply
                      3
                      • Cobra91151C Cobra91151

                        @fadu

                        Hello!

                        wmic command is not available on Windows 11 Insider Preview. I recommend to use the WMI (Windows Management Instrumentation). Check out the C++ example here: https://docs.microsoft.com/en-us/windows/win32/wmisdk/example-creating-a-wmi-application

                        You can easily use it with Qt framework.

                        JonBJ Offline
                        JonBJ Offline
                        JonB
                        wrote on last edited by
                        #10

                        @Cobra91151
                        Yeah, that's much better, no .NET or C#!

                        1 Reply Last reply
                        0
                        • Cobra91151C Cobra91151

                          @fadu

                          Hello!

                          wmic command is not available on Windows 11 Insider Preview. I recommend to use the WMI (Windows Management Instrumentation). Check out the C++ example here: https://docs.microsoft.com/en-us/windows/win32/wmisdk/example-creating-a-wmi-application

                          You can easily use it with Qt framework.

                          faduF Offline
                          faduF Offline
                          fadu
                          wrote on last edited by
                          #11

                          @Cobra91151
                          thank you

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved