I’ve heard powershell 2.0 CTP has modules, but I can’t find much example code or instructions. I’ve read what little help there seems to be online…
But I just keep getting ‘The term ‘Add-Module’ is not recognized as a cmdlet…’ when I try and load a module.
Any help would be gratefully received!
Edit (July 2010) Please note this question is based on powershell 2.0 CTP and is therefore a year and half out of date! Please see Samuel Jack’s answer for help with the powershell 2.0 RTM.
With the Win7 build, Add-Module is gone. The new cmdlet is Import-Module. The easiest way to create a module is rename a PS1 file to a PSM1 file. From there you can do all sorts of things including the module manifest.