PowerShell for Windows Admins

Nov 7 2010   3:49PM GMT

Computer Bus



Posted by: Richard Siddaway
Tags:
Hardware
PowerShell v2

I’ve been looking at computer hardware a lot recently.  The buses inside a system can be interesting

001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
$bustype = DATA {
ConvertFrom-StringData -StringData 
@’
-1 = Undefined
0 = Internal
1 = ISA
2 = EISA
3 = MicroChannel
4 = TurboChannel
5 = PCI Bus
6 = VME Bus
7 = NuBus
8 = PCMCIA Bus
9 = C Bus
10 = MPI Bus
11 = MPSA Bus
12 = Internal Processor
13 = Internal Power Bus
14 = PNP ISA Bus
15 = PNP Bus
16 = Maximum Interface Type
‘@

} 

function get-bus {
[CmdletBinding()]
param
 (
 
[parameter(ValueFromPipeline=$true,
   ValueFromPipelineByPropertyName=$true)]
 [string]$computer="."
) 
Get-WmiObject -class Win32_Bus | sort BusType, Busnum |
select BusNum,
 
@{Name
="Bus type"; Expression={$bustype["$($_.BusType)"]}},
DeviceID, PNPDeviceID
}

 

 

 

 

This will form part of a new PAM module for system discovery/documentation

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: