Hi Spiceheads,
At the place I work we recently started using SCCM which I greatly enjoy. One particular feature I enjoy more than others is the ability to launch an interactive command prompt on remote computers. My question is can I use a command to open up a computers device manager? I know that on my local computer using the command “devmgmt.msc” I can launch the device manager. This is not what I am looking for. When I try it using powershell on the remote computer the command simply does nothing (which is to be expected).
What I am looking for is a command that I can use which will show the device manager inside of the prompt. Or is there a command which will show me what is in the device manager? I cant think of a intelligent way to ask that last sentence. What I mean is if I want to see what type of video card is on a computer I could use a command that will show just the display adaptors part of the device manager. Or a command which will show just the Network adaptors.
Or does anybody think I am going about obtaining this information the wrong way? Does anybody know of a better way to get the device manager information on a remote computer without taking control away from the user?
I have wondered if I could simply put a script of some sort onto the remote computer (lets say in the program files folder) and using the powershell browse to that location and run the script. Would this work?
Thanks in advance,
Stay Spicy my friends.
7 Spice ups
brycekatz
(Bryce Katz)
2
Probably.
You should be able to query the OS directly for this information. I’d guess via Get-WMIObject. Maybe cduff knows.
@craigduff
3 Spice ups
Neally
(Neally)
3
Not sure if that helps you at all.
1 Spice up
You do realize this is the same link Neally posted?
Sorry to rain on your parade but this has nothing to do with Powershell. Bryce has it right. He is looking for Get-wmiobject and Cduff is probably his best bet.
1 Spice up
After minimal research I only see classes for specific drivers. This command will list all the available classes.
Get-WMIObject -List| Where{$_.name -match "^Win32_"} | Sort Name | Format-Table Name
Not sure that this is even possible. Is there a specific task you are trying to achieve?
1 Spice up
Sorry not to say that link couldn’t be helpful in fact it may be the best option.
1 Spice up
The place where I work the users are a little touchy about me using their computers. Even when there is an issue for me to fix that they asked me to fix. The more I can do remotely with Powershell the easier my life will become. Every time I read an article about advice for young/new/noob IT people such as myself there is always the mention of the power of Powershell. I am trying to figure out exactly how powerful Powershell is by using it as much as possible.
edgrant
(edgrant)
11
The best way to tackle PowerShell is to think about one specific task and accomplish that task. Then think of something else, and repeat. Each task you accomplish will help you on your next one.
Also, if you haven’t already, check out the PowerShell 3.0 Jumpstart . This will give you a good idea of where to start and how to think about PowerShell. It can do nearly anything you want it to, but first you have to understand how that works before jumping into the real complex stuff. You can make some pretty powerful one liners after watching a few of those videos.
Don’t worry about the crazy advanced functions just yet. Start small and build up slowly. I’m about 1.5 years in using PowerShell and I still have lots to learn.
2 Spice ups
Thank you very much. I will make sure to take advantage of these tutorials. Much appreciated.
1 Spice up
Rob-Dunn
(Rob Dunn)
13
You can also use System Info (msinfo32.exe) to connect to a remote computer and view pretty much all hardware details about the PC. Could be useful if you don’t have your heart set on accessing & viewing that info via PowerShell.
The only thing I have my heart set on is learning. If it is possible I would like to learn it. This will be handy for my day to day work (especially the Software Environment). Thank you.
Rob-Dunn
(Rob Dunn)
15
Well, the thing is - unless you’re wanting to get this data from large group of computers and actually do stuff with it, accessing all this information using PowerShell probably isn’t the way to go.
The hardware data is stored in different ways in WMI, and it’s not easy to just “grab and go.” Now, I’d be willing to be that there are full hardware inventory scripts which exist, but if you want a nice way to go over the data while you’re supporting an end-user, the Windows tool is probably where you’ll want to focus your time with.
This data can be retrieved, but it would involve a number of WMI classes; going about getting the info for logical disks isn’t the same as if you were to gather data about network adapters.
I would suggest maybe not trying to delve into a huge thing like this unless the rewards show enough benefit that it makes sense to spend that kind of time sifting through the various hardware classes.
Shall i know how we will get all device Information in devicemanager …
like Devics by connection type
i want to know how we extract all device information which are the mode like devices by connection type
…
how we extract the data