Browse by Tags

All Tags » PowerShell V2 » Modules (RSS)

A count down timer

Last month I started playing with WPF to show how a multi-coloured clock could  be displayed on screen. This was picked up and an easier version was created by Doug Finke using the ShowUI module from codeplex  http://showui.codeplex.com/ . Other...

Snapins to modules

In PowerShell v1 we had snapins to extend and add functionality. In PowerShell v2 modules were added. Modules give us more flexibility and control. I’ve had to re-install a couple of snapins recently as part of the preparation for the presentation to...
Posted by RichardSiddaway | with no comments

Advanced Function template

In this post I showed my Advanced Function template  http://msmvps.com/blogs/richardsiddaway/archive/2011/05/13/powershell-module-construction.aspx I’ve since modified it to add the parameter validation methods. I can never remember them all so decided...

New PAM version

I’ve added the 0.6 release of the PowerShell Admin Modules to codeplex - http://psam.codeplex.com/ This release adds two modules PAMADSNAPSHOT – functions for work with AD snapshots in Windows 2008 & 2008 R2 PAMLOAD – loads all of the PAM modules...
Posted by RichardSiddaway | with no comments
Filed under: , ,

PowerShell Module Construction

I’ve created a fair number of PowerShell modules over the last year or so. I’ve experimented with various configurations: multiple functions in a single .psm1 file single function per file all loaded from the .psm1 file modules with and without manifests...

PowerShell UK User Group–May meeting slides and recording

Thanks again to Jonathan Medd for an excellent session on PowerShell modules. As promised the slides and demo scripts are available on Jonathan’s blog http://www.jonathanmedd.net/2011/05/slides-from-uk-powershell-user-group-session-on-modules.html  ...

Creating a module

I’m writing a new PowerShell book and have got to the fun bit where I’m creating lots of scripts. I wanted to supply these as a series of modules. So each individual listing is a function. But I don’t want to manually maintain the module file as I’m working...
Posted by RichardSiddaway | with no comments
Filed under: ,

PAM 0.2

I’ve released the second module for the PowerShell Admin Modules tonight.  It is available from http://psam.codeplex.com/releases/view/46364 This release includes two modules. PAMShare (originally in PAM 0.1) contains the following functions: Get...
Posted by RichardSiddaway | with no comments
Filed under: , ,

PSCX 2.0 install

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                       ...
Posted by RichardSiddaway | with no comments
Filed under: ,

PowerShell Community Extensions 2.0

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 –...
Posted by RichardSiddaway | with no comments
Filed under: ,

Hex Subtraction

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 (    ...
Posted by RichardSiddaway | with no comments
Filed under: , ,

Hex Addition

We’ve looked at the binary functions – now its time to look at the hex functions starting with addition. 001 002 003 004 005 006 007 008 009 010 011 012 013 014 function   Get-HexSum   { param (     [string] $inputvalue1 ,    ...
Posted by RichardSiddaway | with no comments
Filed under: , ,

Binary Subtraction

Continuing our look at maths functions in binary (hex is to come) lets have a quick look at subtraction   001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 function   Get-BinaryDifference   { param (     [string...

Binary Addition

We recently looked at converting numbers to binary and hex.  I then thought that I sometimes need to perform simple arithmetic in these bases so – binary addition. We can use the functions we already have.  Convert a couple of numbers to binary...
Posted by RichardSiddaway | with no comments
Filed under: , ,

Number conversions

I often have to do conversions between decimal, hex and binary so I decided I wanted some functions to do this for me 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034...

PowerShell Admin Modules

I have created the first download for the PowerShell Admin Modules. This will be a set of of modules including code previously published on my blogs at: http://msmvps.com/blogs/RichardSiddaway/Default.aspx http://itknowledgeexchange.techtarget.com/powershell...
Posted by RichardSiddaway | with no comments
Filed under: , ,

PowerShell UG Recording April 20

Thanks to everyone who came on to the Live Meeting tonight.  For anyone who missed it: The slides and demo are available on my sky drive at http://cid-43cfa46a74cf3e96.skydrive.live.com/browse.aspx/PowerShell%20User%20Group/April%202010 The recording...

UG Reminder

The PowerShell UG Live Meeting is tomorrow night (20 April) at 7.30pm BST.  Subject is modules. Details from http://msmvps.com/blogs/richardsiddaway/archive/2010/04/12/powershell-user-group-live-meeting-modules.aspx Technorati Tags: PowerShell ,...

Powershell User Group Live Meeting: Modules

When: Tuesday, Apr 20, 2010 7:30 PM (BST) Where: Virtual *~*~*~*~*~*~*~*~*~* Notes We will cover the new module functionality introduced with PowerShell v2 with a biref look at some of the functionality available in Windows 7/Windows 2008 R2 Richard Siddaway...

Module Structure

Since PowerShell 2.0 appeared I have been steadily converting a lot of scripts to modules. Up until now I have been using a single .psm1 file (and possibly a .psd1 file for the manifest).  The .psm1 file contains all of the functions.  Some...
Posted by RichardSiddaway | with no comments
Filed under: ,
More Posts Next page »