Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Use PowerShell 3.0 to Work with Network Adapters

Summary: Learn how to use the Get-NetAdapter CIM cmdlet in Windows PowerShell 3.0. Microsoft Scripting Guy, Ed Wilson, is here. I must live a rather boring life—although to be honest, it does not really seem to be so boring. Or perhaps, I am just a geek. What am I talking about? I am really excited about the Get-NetAdapter cmdlet in...

Hey, Scripting Guy! How Can I Change My Desktop Monitor Resolution via Windows PowerShell?

  (image) Hey, Scripting Guy! I need to be able to use a Windows PowerShell 2.0 script to change the resolution on my desktop monitor. Is this possible? -- AS   (image) Hello AS, Microsoft Scripting Guy Ed Wilson here, I have been looking for a script to change my monitor resolution for years! When I used to travel all over the ...

Hey, Scripting Guy! How Can I Collect Processor Information?

(image) Hey, Scripting Guy! I am interested in using Windows PowerShell to collect processor information, but I do not need to see the raw data. I would rather see calculated results such as the maximum, minimum, and average processor utilization. I know I can do this, but that seems like writing a lot of math formulas, and I just am not in ...

Hey, Scripting Guy! How Can I Enable or Disable My Network Adapter?

 (image) Hey, Scripting Guy! At my office I access the corporate network by using a wired ethernet connection. However, when I come home, I have a wireless connection. Since our security guys do not allow us to have multiple network connections active at the same time, I am constantly enabling the wireless connection when I get home, ...

Hey, Scripting Guy! How Do I Find Information About the Network Adapter Cards on My Computer?

(image) Hey, Scripting Guy! When I use WMI to query for network cards on my laptop, it comes back with 32 network cards. 32! I am not lying. My laptop does not even have 32 slots, so how does it have 32 network cards in it? How can I find information about the "real" network cards on my laptop? I figure I should only have two: the wired ...