Powershell Script to Export all Devices in Device Manager as tree or list?











up vote
6
down vote

favorite
1












With former Windows versions, it was possible to print the information from the Device Manager, but it does not seem possible to do this with Windows 7 any longer.



I am looking for a Powershell script that exports all devices that also appear in Device Manager to a text file, and optionally creating it in a tree-like Device Manager type of view if possible.



This would be so helpful in many cases, but I haven't found anything like this from what research I've done.










share|improve this question




























    up vote
    6
    down vote

    favorite
    1












    With former Windows versions, it was possible to print the information from the Device Manager, but it does not seem possible to do this with Windows 7 any longer.



    I am looking for a Powershell script that exports all devices that also appear in Device Manager to a text file, and optionally creating it in a tree-like Device Manager type of view if possible.



    This would be so helpful in many cases, but I haven't found anything like this from what research I've done.










    share|improve this question


























      up vote
      6
      down vote

      favorite
      1









      up vote
      6
      down vote

      favorite
      1






      1





      With former Windows versions, it was possible to print the information from the Device Manager, but it does not seem possible to do this with Windows 7 any longer.



      I am looking for a Powershell script that exports all devices that also appear in Device Manager to a text file, and optionally creating it in a tree-like Device Manager type of view if possible.



      This would be so helpful in many cases, but I haven't found anything like this from what research I've done.










      share|improve this question















      With former Windows versions, it was possible to print the information from the Device Manager, but it does not seem possible to do this with Windows 7 any longer.



      I am looking for a Powershell script that exports all devices that also appear in Device Manager to a text file, and optionally creating it in a tree-like Device Manager type of view if possible.



      This would be so helpful in many cases, but I haven't found anything like this from what research I've done.







      windows-7 powershell device-manager






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 23 '15 at 16:03









      Pimp Juice IT

      22.7k113869




      22.7k113869










      asked Dec 17 '15 at 10:00









      Erik

      4041720




      4041720






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted











          Powershell Script to export all Devices in Device Manager



          I am looking for a Powershell script that exports all devices that
          also appear in Device Manager to a text file, and optionally creating
          it in a tree-like Device Manager type of view if possible.




          I just tested this with Windows 7 and it seems to work just fine from what I could tell, so here's a PowerShell module you can import and then use to get the device detail you need plus some.



          An example syntax below as well to put to a text file which you requested. Just plug in your syntax and then put the | Out-File -Append -Force "C:pathFileListName.txt" command to the end of it with your file location to put in a text file for later review (http://ss64.com/ps/out-file.html).



          EXAMPLE



          Get-Device | Sort-Object -Property Name | ft Name, DriverVersion, DriverProvider, IsPresent, HasProblem -AutoSize | Out-File -Append -Force "C:pathFileListName.txt"


          Import-Module Note



          If you have trouble with the import, just download the ZIP file, extract or copy the Release folder from within it to your desktop temporarily, and then use the explicit path import syntax to point to the psd1 file:
          Import-Module C:Users<username>DesktopReleaseDeviceManagement.psd1 –Verbose





          Source Links:




          • https://gallery.technet.microsoft.com/Device-Management-7fad2388

          • http://blogs.technet.com/b/wincat/archive/2012/09/06/device-management-powershell-cmdlets-sample-an-introduction.aspx



          Downloading and using the Device Management PowerShell Cmdlets



          The Device Management PowerShell cmdlets are available at:
          http://gallery.technet.microsoft.com/Device-Management-7fad2388



          To download, follow the above link and click on the “Download” button.
          Save and extract the contents of the.zip file to a folder of your
          choice.



          The next step is to import the module and start using the cmdlets! In
          order to do so, launch an instance of PowerShell and follow the below
          steps:



          Importing the Cmdlet module:



          Import-Module .PSCmdlet.psd1 –Verbose



          Listing Devices



          All devices present on the system



          Get-Device | Sort-Object -Property Name | ft Name, DriverVersion,
          DriverProvider, IsPresent, HasProblem -AutoSize



          “Hidden” devices



          Get-Device -ControlOptions DIGCF_ALLCLASSES | Sort-Object -Property
          Name | Where-Object -Property IsPresent -eq $false | ft Name,
          DriverVersion, DriverProvider, IsPresent, HasProblem -AutoSize



          Disabled devices



          Get-Device | Sort-Object -Property Name | Where-Object -Property
          ConfigurationFlags -Like 'DISABLED' | ft Name, InstanceId -AutoSize







          share|improve this answer























          • Note, that according to the article Get-Device requires Windows Server 2012 or Windows 8 and OP is using Windows 7. I wish that I could trust specs without testing them.
            – beatcracker
            Dec 23 '15 at 14:43












          • I noticed that too; however, I tested and confirmed that it ALSO works with Windows 7 which I did indicate in my answer specifically. I did NOT post an answer until I tested and confirmed all worked as expected with Windows 7 as I usually do as a standard per the wording of the request for any or all parts of it to satisfy accordingly.
            – Pimp Juice IT
            Dec 23 '15 at 14:48




















          up vote
          5
          down vote













          You still can print/export from MsInfo32:




          There is no such option to print the Device Manager Report in Windows
          7 as we have it in Windows XP. However, you can try printing the
          Device Resources by getting into System Properties. Here is the step
          to get into System Properties.



          Click on Start, type msinfo32 in the search box.





          1. On the System Properties window, it will list the below options.




            • Hardware Resources.

            • Components.

            • Software Environment.

            • Select the option which you want to print.




          Now, select the File option from the Menu Bar, then click on Export
          and then give a file name and select it.




          1. Try opening the file and then print it.




          Also you can list all devices with this PowerShell onliner (no tree, though):



          Get-WmiObject Win32_PNPEntity | Select Name, DeviceID 


          Example output:



          Name                                                                                       DeviceID                                                                                 
          ---- --------
          Generic PnP Monitor DISPLAYNEC66C05&3A115792&2&UID257
          Motherboard resources ACPIPNP0C021
          Motherboard resources ACPIPNP0C022
          Intel(R) processor DRAM Controller - 0044 PCIVEN_8086&DEV_0044&SUBSYS_1C771043&REV_183&11583659&0&00
          Numeric data processor ACPIPNP0C044&142DD991&0
          Microsoft ACPI-Compliant Control Method Battery ACPIPNP0C0A
          High Definition Audio Bus PCIVEN_1002&DEV_AA68&SUBSYS_AA681043&REV_004&179FD7D4&0&0108
          Generic volume STORAGEVOLUME{5200DD0F-4FFD-11E5-8381-806E6F6E6963}#0000001900100000
          Root Print Queue SWDPRINTENUMPRINTQUEUES
          Volume Manager ROOTVOLMGR000
          Logicool USB (RX250) Optical Mouse USBVID_046D&PID_C0506&2582BEDF&0&2
          Intel(R) 5 Series/3400 Series Chipset Family PCI Express Root Port 1 - 3B42 PCIVEN_8086&DEV_3B42&SUBSYS_1C771043&REV_063&11583659&0&E0





          share|improve this answer





















          • +1 for the Powershell command. You can do Invoke-Command -ComputerName hostname { Get-WmiObject Win32_PNPEntity | Select Name, DeviceID } to get a device list for a remote computer.
            – Charles Burge
            Apr 19 '17 at 1:30


















          up vote
          1
          down vote













          Do this for Windows10:



          Invoke-Command -ComputerName localhost { Get-WmiObject Win32_PNPEntity | Where { $_.PNPClass -notin  "System","Net","Processor","SoftwareDevice","AudioEndpoint","BluetoothVirtual","Battery","Media","Volume","Modem","Camera","VolumeSnapshot","DiskDrive","Computer","HIDClass"}} | Sort-Object -Property PNPClass | Format-Table Name, Manufacturer, PNPClass, Status


          Complete list of properties: https://docs.microsoft.com/en-us/windows/desktop/cimwin32prov/win32-pnpentity



          enter image description here






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1014635%2fpowershell-script-to-export-all-devices-in-device-manager-as-tree-or-list%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted











            Powershell Script to export all Devices in Device Manager



            I am looking for a Powershell script that exports all devices that
            also appear in Device Manager to a text file, and optionally creating
            it in a tree-like Device Manager type of view if possible.




            I just tested this with Windows 7 and it seems to work just fine from what I could tell, so here's a PowerShell module you can import and then use to get the device detail you need plus some.



            An example syntax below as well to put to a text file which you requested. Just plug in your syntax and then put the | Out-File -Append -Force "C:pathFileListName.txt" command to the end of it with your file location to put in a text file for later review (http://ss64.com/ps/out-file.html).



            EXAMPLE



            Get-Device | Sort-Object -Property Name | ft Name, DriverVersion, DriverProvider, IsPresent, HasProblem -AutoSize | Out-File -Append -Force "C:pathFileListName.txt"


            Import-Module Note



            If you have trouble with the import, just download the ZIP file, extract or copy the Release folder from within it to your desktop temporarily, and then use the explicit path import syntax to point to the psd1 file:
            Import-Module C:Users<username>DesktopReleaseDeviceManagement.psd1 –Verbose





            Source Links:




            • https://gallery.technet.microsoft.com/Device-Management-7fad2388

            • http://blogs.technet.com/b/wincat/archive/2012/09/06/device-management-powershell-cmdlets-sample-an-introduction.aspx



            Downloading and using the Device Management PowerShell Cmdlets



            The Device Management PowerShell cmdlets are available at:
            http://gallery.technet.microsoft.com/Device-Management-7fad2388



            To download, follow the above link and click on the “Download” button.
            Save and extract the contents of the.zip file to a folder of your
            choice.



            The next step is to import the module and start using the cmdlets! In
            order to do so, launch an instance of PowerShell and follow the below
            steps:



            Importing the Cmdlet module:



            Import-Module .PSCmdlet.psd1 –Verbose



            Listing Devices



            All devices present on the system



            Get-Device | Sort-Object -Property Name | ft Name, DriverVersion,
            DriverProvider, IsPresent, HasProblem -AutoSize



            “Hidden” devices



            Get-Device -ControlOptions DIGCF_ALLCLASSES | Sort-Object -Property
            Name | Where-Object -Property IsPresent -eq $false | ft Name,
            DriverVersion, DriverProvider, IsPresent, HasProblem -AutoSize



            Disabled devices



            Get-Device | Sort-Object -Property Name | Where-Object -Property
            ConfigurationFlags -Like 'DISABLED' | ft Name, InstanceId -AutoSize







            share|improve this answer























            • Note, that according to the article Get-Device requires Windows Server 2012 or Windows 8 and OP is using Windows 7. I wish that I could trust specs without testing them.
              – beatcracker
              Dec 23 '15 at 14:43












            • I noticed that too; however, I tested and confirmed that it ALSO works with Windows 7 which I did indicate in my answer specifically. I did NOT post an answer until I tested and confirmed all worked as expected with Windows 7 as I usually do as a standard per the wording of the request for any or all parts of it to satisfy accordingly.
              – Pimp Juice IT
              Dec 23 '15 at 14:48

















            up vote
            2
            down vote



            accepted











            Powershell Script to export all Devices in Device Manager



            I am looking for a Powershell script that exports all devices that
            also appear in Device Manager to a text file, and optionally creating
            it in a tree-like Device Manager type of view if possible.




            I just tested this with Windows 7 and it seems to work just fine from what I could tell, so here's a PowerShell module you can import and then use to get the device detail you need plus some.



            An example syntax below as well to put to a text file which you requested. Just plug in your syntax and then put the | Out-File -Append -Force "C:pathFileListName.txt" command to the end of it with your file location to put in a text file for later review (http://ss64.com/ps/out-file.html).



            EXAMPLE



            Get-Device | Sort-Object -Property Name | ft Name, DriverVersion, DriverProvider, IsPresent, HasProblem -AutoSize | Out-File -Append -Force "C:pathFileListName.txt"


            Import-Module Note



            If you have trouble with the import, just download the ZIP file, extract or copy the Release folder from within it to your desktop temporarily, and then use the explicit path import syntax to point to the psd1 file:
            Import-Module C:Users<username>DesktopReleaseDeviceManagement.psd1 –Verbose





            Source Links:




            • https://gallery.technet.microsoft.com/Device-Management-7fad2388

            • http://blogs.technet.com/b/wincat/archive/2012/09/06/device-management-powershell-cmdlets-sample-an-introduction.aspx



            Downloading and using the Device Management PowerShell Cmdlets



            The Device Management PowerShell cmdlets are available at:
            http://gallery.technet.microsoft.com/Device-Management-7fad2388



            To download, follow the above link and click on the “Download” button.
            Save and extract the contents of the.zip file to a folder of your
            choice.



            The next step is to import the module and start using the cmdlets! In
            order to do so, launch an instance of PowerShell and follow the below
            steps:



            Importing the Cmdlet module:



            Import-Module .PSCmdlet.psd1 –Verbose



            Listing Devices



            All devices present on the system



            Get-Device | Sort-Object -Property Name | ft Name, DriverVersion,
            DriverProvider, IsPresent, HasProblem -AutoSize



            “Hidden” devices



            Get-Device -ControlOptions DIGCF_ALLCLASSES | Sort-Object -Property
            Name | Where-Object -Property IsPresent -eq $false | ft Name,
            DriverVersion, DriverProvider, IsPresent, HasProblem -AutoSize



            Disabled devices



            Get-Device | Sort-Object -Property Name | Where-Object -Property
            ConfigurationFlags -Like 'DISABLED' | ft Name, InstanceId -AutoSize







            share|improve this answer























            • Note, that according to the article Get-Device requires Windows Server 2012 or Windows 8 and OP is using Windows 7. I wish that I could trust specs without testing them.
              – beatcracker
              Dec 23 '15 at 14:43












            • I noticed that too; however, I tested and confirmed that it ALSO works with Windows 7 which I did indicate in my answer specifically. I did NOT post an answer until I tested and confirmed all worked as expected with Windows 7 as I usually do as a standard per the wording of the request for any or all parts of it to satisfy accordingly.
              – Pimp Juice IT
              Dec 23 '15 at 14:48















            up vote
            2
            down vote



            accepted







            up vote
            2
            down vote



            accepted







            Powershell Script to export all Devices in Device Manager



            I am looking for a Powershell script that exports all devices that
            also appear in Device Manager to a text file, and optionally creating
            it in a tree-like Device Manager type of view if possible.




            I just tested this with Windows 7 and it seems to work just fine from what I could tell, so here's a PowerShell module you can import and then use to get the device detail you need plus some.



            An example syntax below as well to put to a text file which you requested. Just plug in your syntax and then put the | Out-File -Append -Force "C:pathFileListName.txt" command to the end of it with your file location to put in a text file for later review (http://ss64.com/ps/out-file.html).



            EXAMPLE



            Get-Device | Sort-Object -Property Name | ft Name, DriverVersion, DriverProvider, IsPresent, HasProblem -AutoSize | Out-File -Append -Force "C:pathFileListName.txt"


            Import-Module Note



            If you have trouble with the import, just download the ZIP file, extract or copy the Release folder from within it to your desktop temporarily, and then use the explicit path import syntax to point to the psd1 file:
            Import-Module C:Users<username>DesktopReleaseDeviceManagement.psd1 –Verbose





            Source Links:




            • https://gallery.technet.microsoft.com/Device-Management-7fad2388

            • http://blogs.technet.com/b/wincat/archive/2012/09/06/device-management-powershell-cmdlets-sample-an-introduction.aspx



            Downloading and using the Device Management PowerShell Cmdlets



            The Device Management PowerShell cmdlets are available at:
            http://gallery.technet.microsoft.com/Device-Management-7fad2388



            To download, follow the above link and click on the “Download” button.
            Save and extract the contents of the.zip file to a folder of your
            choice.



            The next step is to import the module and start using the cmdlets! In
            order to do so, launch an instance of PowerShell and follow the below
            steps:



            Importing the Cmdlet module:



            Import-Module .PSCmdlet.psd1 –Verbose



            Listing Devices



            All devices present on the system



            Get-Device | Sort-Object -Property Name | ft Name, DriverVersion,
            DriverProvider, IsPresent, HasProblem -AutoSize



            “Hidden” devices



            Get-Device -ControlOptions DIGCF_ALLCLASSES | Sort-Object -Property
            Name | Where-Object -Property IsPresent -eq $false | ft Name,
            DriverVersion, DriverProvider, IsPresent, HasProblem -AutoSize



            Disabled devices



            Get-Device | Sort-Object -Property Name | Where-Object -Property
            ConfigurationFlags -Like 'DISABLED' | ft Name, InstanceId -AutoSize







            share|improve this answer















            Powershell Script to export all Devices in Device Manager



            I am looking for a Powershell script that exports all devices that
            also appear in Device Manager to a text file, and optionally creating
            it in a tree-like Device Manager type of view if possible.




            I just tested this with Windows 7 and it seems to work just fine from what I could tell, so here's a PowerShell module you can import and then use to get the device detail you need plus some.



            An example syntax below as well to put to a text file which you requested. Just plug in your syntax and then put the | Out-File -Append -Force "C:pathFileListName.txt" command to the end of it with your file location to put in a text file for later review (http://ss64.com/ps/out-file.html).



            EXAMPLE



            Get-Device | Sort-Object -Property Name | ft Name, DriverVersion, DriverProvider, IsPresent, HasProblem -AutoSize | Out-File -Append -Force "C:pathFileListName.txt"


            Import-Module Note



            If you have trouble with the import, just download the ZIP file, extract or copy the Release folder from within it to your desktop temporarily, and then use the explicit path import syntax to point to the psd1 file:
            Import-Module C:Users<username>DesktopReleaseDeviceManagement.psd1 –Verbose





            Source Links:




            • https://gallery.technet.microsoft.com/Device-Management-7fad2388

            • http://blogs.technet.com/b/wincat/archive/2012/09/06/device-management-powershell-cmdlets-sample-an-introduction.aspx



            Downloading and using the Device Management PowerShell Cmdlets



            The Device Management PowerShell cmdlets are available at:
            http://gallery.technet.microsoft.com/Device-Management-7fad2388



            To download, follow the above link and click on the “Download” button.
            Save and extract the contents of the.zip file to a folder of your
            choice.



            The next step is to import the module and start using the cmdlets! In
            order to do so, launch an instance of PowerShell and follow the below
            steps:



            Importing the Cmdlet module:



            Import-Module .PSCmdlet.psd1 –Verbose



            Listing Devices



            All devices present on the system



            Get-Device | Sort-Object -Property Name | ft Name, DriverVersion,
            DriverProvider, IsPresent, HasProblem -AutoSize



            “Hidden” devices



            Get-Device -ControlOptions DIGCF_ALLCLASSES | Sort-Object -Property
            Name | Where-Object -Property IsPresent -eq $false | ft Name,
            DriverVersion, DriverProvider, IsPresent, HasProblem -AutoSize



            Disabled devices



            Get-Device | Sort-Object -Property Name | Where-Object -Property
            ConfigurationFlags -Like 'DISABLED' | ft Name, InstanceId -AutoSize








            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 11 '16 at 13:43

























            answered Dec 23 '15 at 13:20









            Pimp Juice IT

            22.7k113869




            22.7k113869












            • Note, that according to the article Get-Device requires Windows Server 2012 or Windows 8 and OP is using Windows 7. I wish that I could trust specs without testing them.
              – beatcracker
              Dec 23 '15 at 14:43












            • I noticed that too; however, I tested and confirmed that it ALSO works with Windows 7 which I did indicate in my answer specifically. I did NOT post an answer until I tested and confirmed all worked as expected with Windows 7 as I usually do as a standard per the wording of the request for any or all parts of it to satisfy accordingly.
              – Pimp Juice IT
              Dec 23 '15 at 14:48




















            • Note, that according to the article Get-Device requires Windows Server 2012 or Windows 8 and OP is using Windows 7. I wish that I could trust specs without testing them.
              – beatcracker
              Dec 23 '15 at 14:43












            • I noticed that too; however, I tested and confirmed that it ALSO works with Windows 7 which I did indicate in my answer specifically. I did NOT post an answer until I tested and confirmed all worked as expected with Windows 7 as I usually do as a standard per the wording of the request for any or all parts of it to satisfy accordingly.
              – Pimp Juice IT
              Dec 23 '15 at 14:48


















            Note, that according to the article Get-Device requires Windows Server 2012 or Windows 8 and OP is using Windows 7. I wish that I could trust specs without testing them.
            – beatcracker
            Dec 23 '15 at 14:43






            Note, that according to the article Get-Device requires Windows Server 2012 or Windows 8 and OP is using Windows 7. I wish that I could trust specs without testing them.
            – beatcracker
            Dec 23 '15 at 14:43














            I noticed that too; however, I tested and confirmed that it ALSO works with Windows 7 which I did indicate in my answer specifically. I did NOT post an answer until I tested and confirmed all worked as expected with Windows 7 as I usually do as a standard per the wording of the request for any or all parts of it to satisfy accordingly.
            – Pimp Juice IT
            Dec 23 '15 at 14:48






            I noticed that too; however, I tested and confirmed that it ALSO works with Windows 7 which I did indicate in my answer specifically. I did NOT post an answer until I tested and confirmed all worked as expected with Windows 7 as I usually do as a standard per the wording of the request for any or all parts of it to satisfy accordingly.
            – Pimp Juice IT
            Dec 23 '15 at 14:48














            up vote
            5
            down vote













            You still can print/export from MsInfo32:




            There is no such option to print the Device Manager Report in Windows
            7 as we have it in Windows XP. However, you can try printing the
            Device Resources by getting into System Properties. Here is the step
            to get into System Properties.



            Click on Start, type msinfo32 in the search box.





            1. On the System Properties window, it will list the below options.




              • Hardware Resources.

              • Components.

              • Software Environment.

              • Select the option which you want to print.




            Now, select the File option from the Menu Bar, then click on Export
            and then give a file name and select it.




            1. Try opening the file and then print it.




            Also you can list all devices with this PowerShell onliner (no tree, though):



            Get-WmiObject Win32_PNPEntity | Select Name, DeviceID 


            Example output:



            Name                                                                                       DeviceID                                                                                 
            ---- --------
            Generic PnP Monitor DISPLAYNEC66C05&3A115792&2&UID257
            Motherboard resources ACPIPNP0C021
            Motherboard resources ACPIPNP0C022
            Intel(R) processor DRAM Controller - 0044 PCIVEN_8086&DEV_0044&SUBSYS_1C771043&REV_183&11583659&0&00
            Numeric data processor ACPIPNP0C044&142DD991&0
            Microsoft ACPI-Compliant Control Method Battery ACPIPNP0C0A
            High Definition Audio Bus PCIVEN_1002&DEV_AA68&SUBSYS_AA681043&REV_004&179FD7D4&0&0108
            Generic volume STORAGEVOLUME{5200DD0F-4FFD-11E5-8381-806E6F6E6963}#0000001900100000
            Root Print Queue SWDPRINTENUMPRINTQUEUES
            Volume Manager ROOTVOLMGR000
            Logicool USB (RX250) Optical Mouse USBVID_046D&PID_C0506&2582BEDF&0&2
            Intel(R) 5 Series/3400 Series Chipset Family PCI Express Root Port 1 - 3B42 PCIVEN_8086&DEV_3B42&SUBSYS_1C771043&REV_063&11583659&0&E0





            share|improve this answer





















            • +1 for the Powershell command. You can do Invoke-Command -ComputerName hostname { Get-WmiObject Win32_PNPEntity | Select Name, DeviceID } to get a device list for a remote computer.
              – Charles Burge
              Apr 19 '17 at 1:30















            up vote
            5
            down vote













            You still can print/export from MsInfo32:




            There is no such option to print the Device Manager Report in Windows
            7 as we have it in Windows XP. However, you can try printing the
            Device Resources by getting into System Properties. Here is the step
            to get into System Properties.



            Click on Start, type msinfo32 in the search box.





            1. On the System Properties window, it will list the below options.




              • Hardware Resources.

              • Components.

              • Software Environment.

              • Select the option which you want to print.




            Now, select the File option from the Menu Bar, then click on Export
            and then give a file name and select it.




            1. Try opening the file and then print it.




            Also you can list all devices with this PowerShell onliner (no tree, though):



            Get-WmiObject Win32_PNPEntity | Select Name, DeviceID 


            Example output:



            Name                                                                                       DeviceID                                                                                 
            ---- --------
            Generic PnP Monitor DISPLAYNEC66C05&3A115792&2&UID257
            Motherboard resources ACPIPNP0C021
            Motherboard resources ACPIPNP0C022
            Intel(R) processor DRAM Controller - 0044 PCIVEN_8086&DEV_0044&SUBSYS_1C771043&REV_183&11583659&0&00
            Numeric data processor ACPIPNP0C044&142DD991&0
            Microsoft ACPI-Compliant Control Method Battery ACPIPNP0C0A
            High Definition Audio Bus PCIVEN_1002&DEV_AA68&SUBSYS_AA681043&REV_004&179FD7D4&0&0108
            Generic volume STORAGEVOLUME{5200DD0F-4FFD-11E5-8381-806E6F6E6963}#0000001900100000
            Root Print Queue SWDPRINTENUMPRINTQUEUES
            Volume Manager ROOTVOLMGR000
            Logicool USB (RX250) Optical Mouse USBVID_046D&PID_C0506&2582BEDF&0&2
            Intel(R) 5 Series/3400 Series Chipset Family PCI Express Root Port 1 - 3B42 PCIVEN_8086&DEV_3B42&SUBSYS_1C771043&REV_063&11583659&0&E0





            share|improve this answer





















            • +1 for the Powershell command. You can do Invoke-Command -ComputerName hostname { Get-WmiObject Win32_PNPEntity | Select Name, DeviceID } to get a device list for a remote computer.
              – Charles Burge
              Apr 19 '17 at 1:30













            up vote
            5
            down vote










            up vote
            5
            down vote









            You still can print/export from MsInfo32:




            There is no such option to print the Device Manager Report in Windows
            7 as we have it in Windows XP. However, you can try printing the
            Device Resources by getting into System Properties. Here is the step
            to get into System Properties.



            Click on Start, type msinfo32 in the search box.





            1. On the System Properties window, it will list the below options.




              • Hardware Resources.

              • Components.

              • Software Environment.

              • Select the option which you want to print.




            Now, select the File option from the Menu Bar, then click on Export
            and then give a file name and select it.




            1. Try opening the file and then print it.




            Also you can list all devices with this PowerShell onliner (no tree, though):



            Get-WmiObject Win32_PNPEntity | Select Name, DeviceID 


            Example output:



            Name                                                                                       DeviceID                                                                                 
            ---- --------
            Generic PnP Monitor DISPLAYNEC66C05&3A115792&2&UID257
            Motherboard resources ACPIPNP0C021
            Motherboard resources ACPIPNP0C022
            Intel(R) processor DRAM Controller - 0044 PCIVEN_8086&DEV_0044&SUBSYS_1C771043&REV_183&11583659&0&00
            Numeric data processor ACPIPNP0C044&142DD991&0
            Microsoft ACPI-Compliant Control Method Battery ACPIPNP0C0A
            High Definition Audio Bus PCIVEN_1002&DEV_AA68&SUBSYS_AA681043&REV_004&179FD7D4&0&0108
            Generic volume STORAGEVOLUME{5200DD0F-4FFD-11E5-8381-806E6F6E6963}#0000001900100000
            Root Print Queue SWDPRINTENUMPRINTQUEUES
            Volume Manager ROOTVOLMGR000
            Logicool USB (RX250) Optical Mouse USBVID_046D&PID_C0506&2582BEDF&0&2
            Intel(R) 5 Series/3400 Series Chipset Family PCI Express Root Port 1 - 3B42 PCIVEN_8086&DEV_3B42&SUBSYS_1C771043&REV_063&11583659&0&E0





            share|improve this answer












            You still can print/export from MsInfo32:




            There is no such option to print the Device Manager Report in Windows
            7 as we have it in Windows XP. However, you can try printing the
            Device Resources by getting into System Properties. Here is the step
            to get into System Properties.



            Click on Start, type msinfo32 in the search box.





            1. On the System Properties window, it will list the below options.




              • Hardware Resources.

              • Components.

              • Software Environment.

              • Select the option which you want to print.




            Now, select the File option from the Menu Bar, then click on Export
            and then give a file name and select it.




            1. Try opening the file and then print it.




            Also you can list all devices with this PowerShell onliner (no tree, though):



            Get-WmiObject Win32_PNPEntity | Select Name, DeviceID 


            Example output:



            Name                                                                                       DeviceID                                                                                 
            ---- --------
            Generic PnP Monitor DISPLAYNEC66C05&3A115792&2&UID257
            Motherboard resources ACPIPNP0C021
            Motherboard resources ACPIPNP0C022
            Intel(R) processor DRAM Controller - 0044 PCIVEN_8086&DEV_0044&SUBSYS_1C771043&REV_183&11583659&0&00
            Numeric data processor ACPIPNP0C044&142DD991&0
            Microsoft ACPI-Compliant Control Method Battery ACPIPNP0C0A
            High Definition Audio Bus PCIVEN_1002&DEV_AA68&SUBSYS_AA681043&REV_004&179FD7D4&0&0108
            Generic volume STORAGEVOLUME{5200DD0F-4FFD-11E5-8381-806E6F6E6963}#0000001900100000
            Root Print Queue SWDPRINTENUMPRINTQUEUES
            Volume Manager ROOTVOLMGR000
            Logicool USB (RX250) Optical Mouse USBVID_046D&PID_C0506&2582BEDF&0&2
            Intel(R) 5 Series/3400 Series Chipset Family PCI Express Root Port 1 - 3B42 PCIVEN_8086&DEV_3B42&SUBSYS_1C771043&REV_063&11583659&0&E0






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 23 '15 at 10:32









            beatcracker

            2,149413




            2,149413












            • +1 for the Powershell command. You can do Invoke-Command -ComputerName hostname { Get-WmiObject Win32_PNPEntity | Select Name, DeviceID } to get a device list for a remote computer.
              – Charles Burge
              Apr 19 '17 at 1:30


















            • +1 for the Powershell command. You can do Invoke-Command -ComputerName hostname { Get-WmiObject Win32_PNPEntity | Select Name, DeviceID } to get a device list for a remote computer.
              – Charles Burge
              Apr 19 '17 at 1:30
















            +1 for the Powershell command. You can do Invoke-Command -ComputerName hostname { Get-WmiObject Win32_PNPEntity | Select Name, DeviceID } to get a device list for a remote computer.
            – Charles Burge
            Apr 19 '17 at 1:30




            +1 for the Powershell command. You can do Invoke-Command -ComputerName hostname { Get-WmiObject Win32_PNPEntity | Select Name, DeviceID } to get a device list for a remote computer.
            – Charles Burge
            Apr 19 '17 at 1:30










            up vote
            1
            down vote













            Do this for Windows10:



            Invoke-Command -ComputerName localhost { Get-WmiObject Win32_PNPEntity | Where { $_.PNPClass -notin  "System","Net","Processor","SoftwareDevice","AudioEndpoint","BluetoothVirtual","Battery","Media","Volume","Modem","Camera","VolumeSnapshot","DiskDrive","Computer","HIDClass"}} | Sort-Object -Property PNPClass | Format-Table Name, Manufacturer, PNPClass, Status


            Complete list of properties: https://docs.microsoft.com/en-us/windows/desktop/cimwin32prov/win32-pnpentity



            enter image description here






            share|improve this answer

























              up vote
              1
              down vote













              Do this for Windows10:



              Invoke-Command -ComputerName localhost { Get-WmiObject Win32_PNPEntity | Where { $_.PNPClass -notin  "System","Net","Processor","SoftwareDevice","AudioEndpoint","BluetoothVirtual","Battery","Media","Volume","Modem","Camera","VolumeSnapshot","DiskDrive","Computer","HIDClass"}} | Sort-Object -Property PNPClass | Format-Table Name, Manufacturer, PNPClass, Status


              Complete list of properties: https://docs.microsoft.com/en-us/windows/desktop/cimwin32prov/win32-pnpentity



              enter image description here






              share|improve this answer























                up vote
                1
                down vote










                up vote
                1
                down vote









                Do this for Windows10:



                Invoke-Command -ComputerName localhost { Get-WmiObject Win32_PNPEntity | Where { $_.PNPClass -notin  "System","Net","Processor","SoftwareDevice","AudioEndpoint","BluetoothVirtual","Battery","Media","Volume","Modem","Camera","VolumeSnapshot","DiskDrive","Computer","HIDClass"}} | Sort-Object -Property PNPClass | Format-Table Name, Manufacturer, PNPClass, Status


                Complete list of properties: https://docs.microsoft.com/en-us/windows/desktop/cimwin32prov/win32-pnpentity



                enter image description here






                share|improve this answer












                Do this for Windows10:



                Invoke-Command -ComputerName localhost { Get-WmiObject Win32_PNPEntity | Where { $_.PNPClass -notin  "System","Net","Processor","SoftwareDevice","AudioEndpoint","BluetoothVirtual","Battery","Media","Volume","Modem","Camera","VolumeSnapshot","DiskDrive","Computer","HIDClass"}} | Sort-Object -Property PNPClass | Format-Table Name, Manufacturer, PNPClass, Status


                Complete list of properties: https://docs.microsoft.com/en-us/windows/desktop/cimwin32prov/win32-pnpentity



                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 21 at 22:05









                Francesco Mantovani

                1312




                1312






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1014635%2fpowershell-script-to-export-all-devices-in-device-manager-as-tree-or-list%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Plaza Victoria

                    In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                    How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...