It was added in a later version of the language. I can’t remember if it was v3 or v4.
Regardless, I still tend to use my own routines: http://theessentialexchange.com/blogs/michael/archive/2012/05/10/bit-shifting-in-powershell-redux.aspx From: [email protected] [mailto:[email protected]] On Behalf Of Ben Scott Sent: Friday, September 26, 2014 11:13 AM To: [email protected] Subject: Re: [NTSysADM] Use PowerShell to find product key On Sep 26, 2014 10:03 AM, "Crawford, Scott" <[email protected]<mailto:[email protected]>> wrote: > > http://powershell.com/cs/blogs/tips/archive/2012/04/30/getting-windows-product-key.aspx Cool. The algorithm is useful, if nothing else. But the typecast to float in the OP's code scares me. Although I expect it works in practice, or the OP wouldn't find it useful. I don't know enough about PowerShell to say for sure, but when working with bitwise discrete data, floating point is usually a bad idea. Does PoSh have binary shift operators? -- Ben

