The PowerShell Script Centre
Get your PowerShell scripts/snap-ins/cmdlets here!!!

Total Scripts/Snap-ins/Cmdlets:  38

     Reskit.Net Home Page

Reskit.net Main PowerShell Page    


Introduction

This page contains links to a wide variety of sample PowerShell scripts, indexed and organised by the nature of the script. These scripts were developed both as a learning exercise, and to increase the productivity and simplify the use PowerShell and include function, filters, cmdlets, snap-ins, build scripts etc.

NB: The scripts on this page have not all been validated and updated for PowerShell RC1.1. The scripts shown with a ps1 extension have been updated and tested. The rest will get updated as soon as possible

There are two ways to use these scripts:

A zip of all the scripts on this page is at http://www.reskit.net/monad/samplescripts/samplescripts.zip. NB: on occasion, this zip file is a little out of date - it takes a while after posting a new script for the zip to get updated. See the change log for changes made to this page and the scripts on the page.

Index to Sample Scripts


The MSH Environment

Active Directory

Since PowerShell is based on .NET, you can use the System.DirectoryServices .NET class to access Active Directory.

Aliases

Code Signing

These three scripts work together to help you to get ready to digitally sign PowerShell scripts. First, you run Create-LocalCertRootCert to creeate and selfsign a trusted root certificate. Next run Create-SigningCert.ps1 to create and install a code-signing certificate. You can obviously remove the root and signing certificates using MMC's Certificate snap-in and start again!

Console

Disk System

File Handling

Formatting

Hash Tables

Hash tables are a special type of keyed file array, and a very useful Monad language feature.

Internet Related

Interoperating with Microsoft Office Products

Help

Monad Language Features

Networking with WMI

Other

Performance Counters

Registry

Snap-Ins

PowerShell supports a snap-in technology. The samples here illustrate that (and yes, more to do!).

WMI

These are more scripts that show how you can work with WMI to manage your system


Change Log

This is a list of the changes made to this site.

 


Visitors:

Last Updated: 15-05-06 10:48 AM +0100