May 30, 2010 9:47 AM
Posted by: Richard Siddaway
PowerShell v2,
RegistryWe have seen how to access the registry using the StdRegProv class. Now we look at reading from the registry. If we know the value we want to read out of the registry we can use one of the following classes
GetBinaryValue
GetDWORDValue
GetExpandedStringValue
May 26, 2010 12:29 PM
Posted by: Richard Siddaway
Books,
PowerShell v2I know there isn’t much of today left but if you are quick its possible to get an ebook version of PowerShell in Practice for $15. See the deal of the day at http://www.manning.com/
May 24, 2010 3:14 PM
Posted by: Richard Siddaway
PowerShell v2,
WMIOne of the things I noticed in the recent Scripting Games was that a lot of the scripts would do things like this
$query = "Select MaxClockSpeed from Win32_Processor"
$proc = Get-WmiObject -Query $query
Write-Host "Speed: " $proc.MaxClockSpeed
...
May 21, 2010 12:52 PM
Posted by: Richard Siddaway
Automation,
PowerShell v2,
WMIIf you’ve used ping before you’ll know that it normally returns four replies from the target. In PowerShell we have Test-Connection which does the same job. It also normally returns four replies.
When I’m working with remote machines I often want to check they are available...
May 18, 2010 2:09 PM
Posted by: Richard Siddaway
PowerShell v2,
User Group,
WMIThank you to everyone who joined the Live Meeting this evening. Hope you enjoyed the session on PowerShell events.
The slides and demo files are available from
May 15, 2010 8:41 AM
Posted by: Richard Siddaway
Books,
PowerShell v2PowerShell in Practice will be going to the printers next week.
Between now and 21 May 2010 you can get 40% off of PowerShell in Practice (and other Manning books that are in the final stages of production)
Use promotional code m1440 at checkout from
May 12, 2010 3:06 PM
Posted by: Richard Siddaway
PowerShell v2,
Registry,
WMIWe can use WMI to access the registry on local and remote machines – if you remember back to VBScript it was the way to access the registry.
In PowerShell we have a couple of PowerShell drives available through the provider
Name ...
May 4, 2010 3:07 PM
Posted by: Richard Siddaway
PowerShell v2,
WMIString substitution is one of my favourite bits of PowerShell. If you’ve not seen it before the idea is that you can substitute a variable into a double quoted string. Note that single quote strings won’t work. As an example
PS> $colour = "red"
PS>...
May 3, 2010 1:05 PM
Posted by: Richard Siddaway
PowerShell v2,
User Group
When: Tuesday, May 18, 2010 7:30 PM (BST)
Where: Live Meeting
*~*~*~*~*~*~*~*~*~*
PowerShell eventing using WMI, .NET and the PowerShell engine
Notes
Richard Siddaway has invited you to attend an online meeting using Live Meeting.