PowerShell for Windows Admins:

September, 2010


September 30, 2010  12:28 PM

WMI and Network Adapters: 8



Posted by: Richard Siddaway
Network

We were looking at MAC Addresses last time. We can filter on MAC address

Get-WmiObject -Class Win32_NetworkAdapter -Filter "MACAddress='00:27:2B:F5:96:D5'"

No its not my real MAC address :-)

There are two useful methods on the NetworAdapter class – Disable and...

September 29, 2010  1:20 PM

WMI and Network Adapters: 7



Posted by: Richard Siddaway
Network

One task I find myself doing on a regular basis is checking the physical address of a NIC. Ipconfig is OK but we have to wade through a lot of stuff.  Much simpler to do this

Get-WmiObject -Class Win32_NetworkAdapter -ComputerName "." |
select Name, MACAddress

...


September 27, 2010  3:18 PM

One cmdlet at a time



Posted by: Richard Siddaway
PowerShell v2

PowerShell MVP Jonathan Medd has compiled all of his blog posts on the new cmdlets in PowerShell 2.0 into a downloadable pdf file.

Hugely recommended as a reference to keep on you computer desk top.

get it now from


September 26, 2010  2:16 PM

WMI and Network Adapters: 6



Posted by: Richard Siddaway
Network, PowerShell v2

We have seen how to test for the DNS server in use. What about testing for DHCP?


September 26, 2010  12:59 PM

WMI and Network Adapters: 5



Posted by: Richard Siddaway
DNS, Network

Does a machine have problems communicating on the network? Then one troubleshooting step is to check the DNS servers it is using

  Bookmark and Share     0 Comments     RSS Feed     Email a friend


September 20, 2010  1:34 PM

Environment



Posted by: Richard Siddaway
Operating System

 

Want a quick peek at the environment settings on your machine? Then try

Get-WmiObject -Class Win32_Environment  | Format-Table name, variablevalue -AutoSize –Wrap

if you just want the local machine try

Get-ChildItem env:

for a slightly...


September 15, 2010  1:20 PM

September UG meeting



Posted by: Richard Siddaway
PowerShell, User Group

Many thanks to everyone who joined us for the Live Meeting last night. Especial thanks to Jonathan for an excellent presentation.  As promised Jonathan has posted the slide deck


September 13, 2010  12:21 PM

Scripting Guy Blog



Posted by: Richard Siddaway
DNS, PowerShell v2, WMI

 

The Scripting Guys are having a guest blogger week and first up is me blogging about managing DNS with PowerShell and WMI

Bookmark and Share     0 Comments     RSS Feed     Email a friend


September 12, 2010  5:52 AM

Deleting files older than a certain date



Posted by: Richard Siddaway
File System, PowerShell v2

A question on the ITKE forums asked how files older than a certain date (in this case two months) could be deleted without touching younger files.

  Bookmark and Share     0 Comments     RSS Feed     Email a friend


September 6, 2010  12:47 PM

WMI and Network Adapters: 4



Posted by: Richard Siddaway
Network, PowerShell v2

We have looked at using Win32_NetworkAdapter and Win32_NetworkAdapterConfiguration. 

Get-WmiObject -Class Win32_NetworkAdapter -Filter "NetEnabled='$true'" |
Format-List NetConnectionID, Description, MACAddress, Speed

Get-WmiObject -Class...


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: