header image

Archive for May, 2010

  Author: James Floyd Kelly Publisher: Apress ISBN: 978-1-4302-2399-3 My usual three criteria for judging a book are: Is it technically accurate? Does deliver the material it claims to deliver? Is worth the cost of purchase and the time I spend reading it? I came to this book more intrigued than anything.  I’d not really […]

under: Books, General, Technology

I 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/

under: Books, PowerShellV2

Query me no more

Posted by: | May 24, 2010 | No Comment |

One 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 Create a query to access the Win32_Processor class to get the MaxClockSpeed.  Run the query and then […]

under: PowerShell and WMI, PowerShellV2

Quick ping

Posted by: | May 21, 2010 | No Comment |

If 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 before sending a command – especially a WMI command […]

under: PowerShell and WMI, PowerShellV2

Thank 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 http://cid-43cfa46a74cf3e96.skydrive.live.com/browse.aspx/PowerShell%20User%20Group/May%202010   The recording can be viewed on line View Recording Recording Details     Subject: PowerShell Events     Recording URL: https://www.livemeeting.com/cc/usergroups/view     Recording ID: 39Q7T9     Attendee Key: […]

under: PowerShell and WMI, PowerShell User Group, PowerShellV2

  Next Live Meeting is Tuesday 18 May at 7.30pm BST Subject is PowerShell Jobs and Events Details of the Live Meeting from: http://msmvps.com/blogs/richardsiddaway/archive/2010/05/03/powershell-ug-may-2010.aspx

under: PowerShell User Group, PowerShellV2

PowerShell 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 www.manning.com

under: Books, PowerShellV2

PSCX 2.0 install

Posted by: | May 12, 2010 | 1 Comment |

I mentioned last time that PSCX 2.0 was available. There is a very wide range of functionality available in the form of functions and cmdlets: Cmdlets Add-PathVariable                        Clear-MSMQueue                          ConvertFrom-Base64 ConvertTo-Base64                        ConvertTo-MacOs9LineEnding              ConvertTo-Metric ConvertTo-UnixLineEnding                ConvertTo-WindowsLineEnding             Convert-Xml Disconnect-TerminalSession              Expand-Archive                          Export-Bitmap Format-Byte                             Format-Hex                              Format-Xml Get-ADObject                            Get-AdoConnection                       Get-AdoDataProvider Get-AlternateDataStream                 Get-Clipboard                           Get-DhcpServer Get-DomainController                    Get-DriveInfo                           Get-EnvironmentBlock Get-FileTail                            Get-FileVersionInfo                     Get-ForegroundWindow Get-Hash                                Get-HttpResource                        […]

under: Modules, PowerShellV2

I’ve mentioned the Community Extensions many times in these posts. Version 2.0 is now available http://www.codeplex.com/wikipage?ProjectName=Pscx. It installs as a PowerShell module – much easier and neater. I’ve blogged about the beta a few times – if you didn’t try the beta go and get the RTM

under: Modules, PowerShellV2

Hex Subtraction

Posted by: | May 11, 2010 | No Comment |

Again this takes the pattern from the binary function and adapts it to work with hex 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 ## this will always subtract value2 from value1 function Get-HexDifference { param(     [string]$inputvalue1,     [string]$inputvalue2 ) ## check valid hex numbers     Test-Hex $inputvalue1     […]

under: Modules, PowerShellV2, PSAM

Older Posts »

Categories