Following on my post about using enums http://msmvps.com/blogs/richardsiddaway/archive/2011/08/02/enums.aspx
I thought it...
Using select-object (aliased to select in common usage) to reduce the number of properties passing into further processing is a common aspect of using PowerShell. However, its not the only place we can do it.
Consider this scenario.
We need to test the network client on a number...
This may be useful for people starting PowerShell. If you can’t remember what punctuation sign does what in PowerShell get a copy of this cheat sheet
One thing that can cause problems on the network is the duplex setting on the network adapter. If this doesn’t match the switch port then at best you will get performance issues and at worst no connectivity.
The speed of the connection can be obtained from Win32_NetworkAdapter...
I’ve working with WMI a lot recently and frequently seen things like this
Get-WmiObject -Class Win32_OperatingSystem -ComputerName dc02
Get-WmiObject -Class Win32_ComputerSystem -ComputerName dc02
Get-WmiObject -Class Win32_LogicalDisk -ComputerName dc02
In this post http://msmvps.com/blogs/richardsiddaway/archive/2011/07/17/can-i-should-i.aspx I stated that PowerShell...
Next Tuesday – 26 July there will be a UK user group session looking at PowerShell remoting:
Details on joining the live...
PowerShell doesn’t have the equivalent of an SQL Union statement that lets you join objects together. What you can do is use New-Object to create the joined output.
As an example that recently came up on a forum
$outputs 0 Comments RSS Feed Email a friendJuly 17, 2011 4:17 AM
Posted by: Richard Siddaway
Automation, PowerShell v2
The question “Can I do X with PowerShell?” comes up very frequently.
PowerShell provides access to a huge range of functionality:
- Microsoft and third party products
Usually the answer is “Yes, you...