powershellscripts.com

PowerShell Logo


141 results found for the Scripting Techniques Category in about 0.023 seconds
Add a Line to the Beginning of a Text File and Simultaneously Delete the Last L

http://gallery.technet.microsoft.com/6eaee375-fcd8-4582-ac40-d6136638e55f

Administrative Privileges Check
PowerShell one-liner to check for admin rights.
http://gallery.technet.microsoft.com/fabd7cba-1f58-4d61-bded-0414296f9eea

AdvancedEvent1.psd1
Module manifest for Advanced Event 1 for 2010 Scripting Games
http://gallery.technet.microsoft.com/0034cd8b-1a01-4e50-922e-74bbdac14657

AdvancedEvent1.psm1
module for Advanced Event 1 for 2010 Scripting Games
http://gallery.technet.microsoft.com/b4bbc1e3-426c-47c1-954c-4ba36d598584

AdvancedEvent10.ps1
Advanced PowerShell Event 10 for 2010 Scripting Games
http://gallery.technet.microsoft.com/6a809f03-d7c5-4219-a351-b87560322a8f

Allow PowerShell V2 access to .NET 4.0 framework

http://gallery.technet.microsoft.com/Allow-PowerShell-V2-access-525799cc

Append a Blank Line and the Date and Time to a Text File

http://gallery.technet.microsoft.com/7ee2ddc6-ac2d-4860-ba70-485e864b7ca6

Arposh Windows System Administration tool 2.0.1
AWSA was built with the System Administrator in mind. Troubleshooting Windows issues requires a vast array of tools and knowledge. AWSA brings those tools together in one central location and adds additional functionality.
http://gallery.technet.microsoft.com/Arposh-Windows-System-a1beb102

AST Module.

http://gallery.technet.microsoft.com/AST-Module-eecb5a64

Automated Website Printing in IE using PowerShell
This script runs IE from PowerShell to load a website and using PDFCreator as default printer it prints the website as a PDF file. File name and location are configurable. Depending upon the website content the sleep time parameter adjustments may be needed.
http://gallery.technet.microsoft.com/1f08824a-c9db-415e-83b1-2c49ebda195c

Binary Clock V2.0
My second version of my original binary clock that looks more graphically pleasing than the original clock.
http://gallery.technet.microsoft.com/33e2a044-3201-4bdf-b3d5-279db27ca940

Browse .Net Framework Types Available to the Current PowerShell Session
Browse .Net Framework Types Available to the Current PowerShell Session
http://gallery.technet.microsoft.com/3fee13eb-0c83-4f3a-8f52-70786ea7d20e

Capture the Windows PowerShell Console as Text

http://gallery.technet.microsoft.com/e8fbffde-7d95-42d9-81de-5eb3d9c089e0

Change the Windows PowerShell Console Icon

http://gallery.technet.microsoft.com/9d476461-899f-4c98-9d63-03b99596c2c3

Check for Caps Lock prior to credentials prompt
This sample script (by request) checks if the Caps Lock key is enabled prior to obtaining credentials from the user.  If it is enabled, it will loop and check every two seconds until the Caps Lock key is turned off.  Note that the method of detection does not always reflect accur
http://gallery.technet.microsoft.com/Check-for-Caps-Lock-prior-492bfbf1

CLEAR-WINEVENT
Global Function to add to Module or Profile - CLEAR Windows Event Logs
http://gallery.technet.microsoft.com/4502522b-5294-4c31-8c49-0c9e94db8df9

ColorAlertTable.ps1
Demo script that illustrates displaying colorized output in the properties of a format-table command
http://gallery.technet.microsoft.com/0ec478ee-cfb5-49a3-b81c-8e006b831d4e

Combine the contents of two text files
Combine the contents of 2 text files with equal lengths into a new file or interleave the contents of two text files into a new file. This is great for combining the contents of two files with commands into one with each line after the other.
http://gallery.technet.microsoft.com/8471b692-3f64-4960-b039-cfa2ecdf6273

Consultant's Yearly Salary Estimator
if you are a consultant like me, use this script to estimate your yearly salary. Configurable parameters are like time off days and pay rates. The time off dates can be specified in range such as "05/01/2011..05/31/2011".
http://gallery.technet.microsoft.com/00195801-cf47-4f43-8dd0-c5efb0f74519

Conversion Module Version 6
This module contains a number of functions that perform different types of numeric conversions ex. tons into pounds.
http://gallery.technet.microsoft.com/d8a15c95-d6d2-4da9-874a-58d67f7be520

Convert a Here String into an Array
This takes a Here-String input and converts it to an array.
http://gallery.technet.microsoft.com/917c2357-2911-4c79-bd06-ab95714de2d4

Convert a string size value into Bytes
This script can be used to pull data from a file that is a string value and then convert it into bytes to be used for sorting or adding other values together. Best if used as a function with other scripts.
http://gallery.technet.microsoft.com/262ec604-6b4c-47c8-8940-2b6ce65260ea

Convert a WMI Date to a .NET DateTime Value Using Windows PowerShell

http://gallery.technet.microsoft.com/2c93d198-ec69-4c04-958b-bc089eeaa0d4

Convert an Image File to ASCII Art Using Windows PowerShell

http://gallery.technet.microsoft.com/bc15444a-9490-4115-aa40-76d898041724

Convert Binary Subnet Mask to Decimal
This script demonstrates using the System.Convert .NET Framework class to convert from a binary number, into decimal format. It uses  a counter variable to keep track of decimal placement. As each number passes over the pipeline, I store the converted value in the $a variable. I
http://gallery.technet.microsoft.com/Convert-Binary-Subnet-Mask-52f45694

Convert decimal subnet mask to binary format
ConvertDecimalSubnetMaskToBinary.ps1 demonstrates using theSystem.Convert .NET Framework class to convert from a decimal number, into binaryformat. It uses a counter variable, $i, to keep track of decimal placement. Aseach number passes over the pipeline, I store the converted va
http://gallery.technet.microsoft.com/Convert-decimal-subnet-8f44965a

Converting Bytes into to highest unit of size.
This can take the size of a disk or some other source that is usually given in Bytes when performing a WMI query and it will automatically determine the size (KB,MB,GB,TB,PB) and display the output.
http://gallery.technet.microsoft.com/3a480efc-6096-4b38-8ecc-92684ab49fab

Counting Objects from CSV file
This script will select a particular property column of a csv file and then will copy all the contents of that property column, and then group those objects by the unique value, and then count those unique objects. An alternative to Group-Object
http://gallery.technet.microsoft.com/86ad4217-b1be-40a7-b277-d959d3002a65

Create an RTF document with Windows Powershell WITHOUT WORD
This script will create an RTF document on your workstation using Windows Powershell.   It is a very simple conceptual script that can be expanded for many purposes.In this sample script it will leverage four static variables as an example to populate a welcome letter for a new u
http://gallery.technet.microsoft.com/Create-an-RTF-document-333dfe26

Create Your Own Help File for Cmdlets

http://gallery.technet.microsoft.com/c778d233-11c7-426a-a2a5-12b031fa4a6e

Debug regex operation when matching any string

http://gallery.technet.microsoft.com/Debug-regex-operation-when-3583504a

Export-Function
Export one or more PowerShell functions from memory to a file. Each function can be exported to its own .ps1 file or you can combine several functions and write them to a single file use -append.
http://gallery.technet.microsoft.com/0163c515-d1ee-4f3a-914c-a3a9db2a253e

Export-XML

http://gallery.technet.microsoft.com/19e04a23-e81a-443e-a3b2-80f82d4af9b4

Fast alternative to Get-Content
This little function can act as a full replacement for Get-Content.  I have called it 'rc', to mimic Get-Content's 'gc'.  It used the .NET io.file::ReadAllLines method, which is considerably faster, and can have a big impact when reading large text files. 
http://gallery.technet.microsoft.com/Fast-alternative-to-Get-d69f3a53

Find Remove VM Snapshots

http://gallery.technet.microsoft.com/85a3044f-92fa-41a6-98dc-ed1427661826

Formatting Output of get-date
There are 133 different ways to display date/time using GetDateTimeFormats()
http://gallery.technet.microsoft.com/210c710e-0c57-4037-ae67-ba0741434848

Generate Powershell WMI Class Scripts
This script generates a script for each of the WMI classes that will list the WMI class name and the properties.
http://gallery.technet.microsoft.com/b435aa68-a1df-4f62-af05-1f504f683146

Get available WMI methods
Windows WMI Classes with MethodsThis script was used to aggregate a list of available WMI classes with Methods that are available to Powershell.  It is a helpful list to have when writing scripts and can even give you some ideas that you may not have thought of when managing your
http://gallery.technet.microsoft.com/Get-available-WMI-methods-f1574c22

Get Processes Write To Temp File and Delete Temp File
This script uses Get-Process cmdlet to get listing of processes. Writes results to a temporary text file and displays the text file. When the user closes notepad, the temporary text file is deleted.
http://gallery.technet.microsoft.com/a357dae8-9062-4422-af6a-340eb13280b7

Get sha1 checksum for file

http://gallery.technet.microsoft.com/a451e3b4-dc1b-49e1-a978-26c5ac29376b

Get WMI Class qualifiers function
WMI class qualifiers tell me if a class is dynamic or abstract. I use the dynamic classes for finding information about computers. Use of abstracts is seldom done by an IT Pro. Qualifiers also tell me if I can use the class to make updates on a system. I talk about WMI class qual
http://gallery.technet.microsoft.com/Get-WMI-Class-qualifiers-239970e7

Get Writable WMI Properties for a class, Get Implemented WMI methods for a class
This is a modification to the script I uploaded back in March 2011. I am going to use this script in a HSGWMIModule I am creating on the TechNet Script Center Hey Scripting Guy! blog next week. The modifications I made to the previously mentioned script include the following: 1.
http://gallery.technet.microsoft.com/Get-Writable-WMI-82122652

Get-ClipText Function
PowerShell function to get the text content from the Windows Clipboard or this is the "paste" option.
http://gallery.technet.microsoft.com/ff0211e4-c181-4897-84a1-fc6310859326

Get-IniContent
Gets the content of an INI file
http://gallery.technet.microsoft.com/ea40c1ef-c856-434b-b8fb-ebd7a76e8d91

Get-LeaderBoard

http://gallery.technet.microsoft.com/539e5e3c-89de-4ff6-86bb-8648c01a3134

Get-LoggedOnDomainUsers.ps1
This script retrieves a list of all machines on the current domain, pings the remote machine to validate its curren state, and, upon verification, enumerates the logged on users with the Win32_LoggedOnUser class.  When the results are output the Server and User values are returne
http://gallery.technet.microsoft.com/Get-LoggedOnDomainUsersps1-f6775285

Get-ScheduledTask.ps1
This script will use the SCHTASK utility to get scheduled task information and report on any non-successful tasks that have occurred within the past one day (by default).
http://gallery.technet.microsoft.com/6dd4289b-5407-45e2-9093-8811e9a20b89

Get-Services on thousands of computers in minutes...
Document service accounts with PowerShell, Excel and WMI. Series of scripts demonstrating optimization techniques. Go from documenting 50 computers in 90 minutes down to 42 seconds. Microsoft PFE Georges Maheu discusses these techniques in a series of “Hey Scripting Guy" blogs.
http://gallery.technet.microsoft.com/Get-on-thousands-of-ef3175c7

Get-WanIP
This script creates a new instance of the System.Net.WebClient class, calls the DownloadString() function, and, returns the results from the public automation page: http://automation.whatismyip.com/n09230945.asp. In this current version, the result is of type System.Object. To
http://gallery.technet.microsoft.com/Get-WanIP-b0ca5cb3

Get-WmiClassMethodsAndWritableWmiProperties.ps1
This script returns a listing of implemented WMI methods and writable WMI Properties for all WMI classes in a particular WMI namespace. By default it searches the root/cimv2 namespace, but this is configurable.
http://gallery.technet.microsoft.com/10670e14-4cf1-4ce5-99d0-fc4ca80dac2c

Get-WmiCustom

http://gallery.technet.microsoft.com/7bae3d39-c6c3-4a8a-8c98-1b8851bd2cbe

Get-WritableWMIProperties.ps1
This script will search all dynamic WMI classes in a particular WMI namespace (default is root\cimv2) for properties you can write to. It is a useful tool that simplifies finding this information. It is discussed in detail in Hey Scripting Guy article for March 11, 2011
http://gallery.technet.microsoft.com/816fb8b6-cdcf-4156-a9a3-a852ce1d2baa

GetMethodsAndWritablePropertiesFromAllWMiClassesAndNamespaces.ps1
This script gets all implemented methods and writable properties from all dynamic WMI classes in all WMI namespaces. It is useful to those who wish to explore WMI and look for things they can change. This script is discussed in March 13, 2011 Hey Scripting Guy! blog.
http://gallery.technet.microsoft.com/b4bfc9f5-5ace-4041-ba65-375ef74c1c8e

Graphical Trip cost calculator
Calculates the cost of a trip by accepting the miles, miles per gallon of vehicle, and cost of fuel.
http://gallery.technet.microsoft.com/d85bfa0a-8b88-49c3-9ff9-8c5a5538d41a

GUI WMI Explorer and WMI Method Help Generator

http://gallery.technet.microsoft.com/89c759b7-20b4-49e8-98a8-3c8fbdb2dd69

Helpful Powershell Profile

http://gallery.technet.microsoft.com/Helpful-Powershell-Profile-7229f08b

HSGWMIModuleV1

http://gallery.technet.microsoft.com/HSGWMIModuleV1-eb30e6bf

Invoke-V2Script
This is just simple addon to ISE for PowerShell 3 CTP 1.It just uses currently edited file and invoke it with PowerShell V2. Can be used to have both great ISE experience and possibility to run scripts using v2 engine.Most of the time you won't need it (most of script from v2 wor
http://gallery.technet.microsoft.com/Invoke-V2Script-49014f87

List a Cmdlet's Parameters in a Single clean column
This script simply pulls out the parameters a cmdlet has and just lists them in a single column.I find it helps me if I see a new cmdlet that has too many available parameters to figure out which ones I might need, that having them in a single column helps me figure them out quic
http://gallery.technet.microsoft.com/List-a-Cmdlets-Parameters-2cd6f1d9

List local group members on a remote computer using WMI and PowerShell
This PowerShell function uses WMI to retrieve a list of local group members as an alternative to the ADSI method (using "WinNT://," etc.).
http://gallery.technet.microsoft.com/List-local-group-members-762b48c5

List the Properties of WMI Classes

http://gallery.technet.microsoft.com/a7918bf3-bc03-4553-990f-aba13cf196b7

List WMI Setting Information
Returns information about how WMI has been configured on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more in
http://gallery.technet.microsoft.com/beffc4f4-fab0-496b-a7cf-7246d814ab82

ListBox2.ps1 - PowerShell ListBox control
Illustrates reading a text file, and populating a list box. Talked about in Hey Scripting Guy blog 3/3/2010
http://gallery.technet.microsoft.com/f10e344a-ba60-40b8-89e0-01fdb262440f

ListBox3.ps1 PowerShell listbox and winform demo code
This script is discussed in Hey Scripting Guy on 3/4/2010
http://gallery.technet.microsoft.com/7f9e7e32-8b98-412f-a1b4-0c25512670f1

Load the New Server with Users Across all of the Storage Groups/Databases on th

http://gallery.technet.microsoft.com/67d1ed5c-3ac9-45a4-95a4-e5a8f73f49ef

Loading PowerShell module from NuGet package
ImportPSModule is a PowerShell module that enable anybody to import,load and registered PowerShell module from NuGet package. Using NuGet ensures that PowerShell module will benefit from package management system.
http://gallery.technet.microsoft.com/Loading-PowerShell-module-fe8dc179

Lottery number generator

http://gallery.technet.microsoft.com/Lottery-number-generator-2db5f766

Manage PowerShell from Serial Port
Functions to manage PowerShell from Serial Port. It can be used to manage the basic PowerShell commands that are sent to the remote machine via a serial port.
http://gallery.technet.microsoft.com/39c25f4e-b5da-490f-abfd-6a341f70cddc

Mask Command Line Passwords
Powershell version, functionally equivalent to the VBScript example at http://gallery.technet.microsoft.com/ScriptCenter/en-us/25ba8659-f76e-4654-b3e0-b1ee1efe20f7
http://gallery.technet.microsoft.com/e387eeb7-bd48-484e-9d50-476fc50bbf0e

Mega Millions Jackpot Winner
This script demonstrates how to use a foreach loop on an array of numbers through the pipeline and then join them with a hyphen.Example Results.\Get-MegaMillionsWinner.ps146-1-52-45-32-30.\Get-MegaMillionsWinner.ps117-53-14-51-28-6.\Get-MegaMillionsWinner.ps16-46-39-14-18-29 Auth
http://gallery.technet.microsoft.com/b00aee3d-1780-476f-b2af-200ce38a8ef2

Merge Two XML Files using MergeXml PowerShell Module

http://gallery.technet.microsoft.com/Merge-Two-XML-Files-using-a5010498

Mini Security Explorer
This script List all users with permission to folder and sub folders. Just run the script and input the folder path. e.g C:\
http://gallery.technet.microsoft.com/57e5167c-901f-4626-9393-e7b25e548d8b

MiniCalc - A PowerShell Calculator with GUI
This script displays a simple calculator and echos the results back to the console.
http://gallery.technet.microsoft.com/7e08cb64-f621-44b2-810b-dab3827755ce

My Profile.PS1
 This Script includes som fun items that i use in my personal powershell profile on my home desktop it integrates a few small functions that I use for fun such as pulling a quote off of an rss feed and reading it aloud with the systems voice api displaying weather information use
http://gallery.technet.microsoft.com/My-ProfilePS1-a9dbb9cf

Number the Lines in a Text File

http://gallery.technet.microsoft.com/f3f80f0b-5912-4ac5-bd7d-b1aa089d2972

Out-IniFile
Write hash content to INI file
http://gallery.technet.microsoft.com/7d7c867f-026e-4620-bf32-eca99b4e42f4

Pad a text list to make all items the same length

http://gallery.technet.microsoft.com/f7204f78-e73b-468c-8d8f-ceeaaae65aee

pathtype and pathsplit in one
Return if path is a file or folder and the separate parts of the path.
http://gallery.technet.microsoft.com/ba151ce2-2d2a-4faf-9f1f-c12c4a859ffc

PowerGUI FunctionExplorer
This add-on provides an easy navigation through a treeview that displays all defined functions in all open documents. By double clicking on a function the PowerGUI jumps to the document and function. Also a "Go to Definition" function (F12) is available.
http://gallery.technet.microsoft.com/PowerGUI-FunctionExplorer-1b05691c

PowerShell - Accept User Input Using Visual Basic InputBox
PowerShell script to display an InputBox to accept user input.
http://gallery.technet.microsoft.com/4b2eedbb-d1b8-43e1-b042-1b38e36d3ab9

PowerShell - Split large log and text files
This script prompts the user for a source log file and splits the file into equally sized smaller files so that it is manageable and readable using traditional text editors.Here is a blog on it: http://www.discoposse.com/index.php/2011/09/29/powershell-splitting-log-files/ The sc
http://gallery.technet.microsoft.com/PowerShell-Split-large-log-6f2c4da0

Powershell Binary Clock

http://gallery.technet.microsoft.com/d3e6f740-ded4-420a-968b-dc81cbb67b84

Powershell Checking for Snapins as Dependences
Checks for a Snapin in Powershell, Loads it or flags the error and warns user. Script does not run without Dependency loaded
http://gallery.technet.microsoft.com/98d6745c-f985-4bf7-94de-39e428c4b67d

PowerShell Console RSS Ticker

http://gallery.technet.microsoft.com/PowerShell-Console-RSS-6cd37f06

PowerShell Console Weather Ticker

http://gallery.technet.microsoft.com/PowerShell-Console-Weather-430a2eb7

PowerShell Conversion module
This module contains a number of useful functions that convert various units.
http://gallery.technet.microsoft.com/7b436a7d-68a8-4101-a8ac-d8a5f243100c

PowerShell file browser to demonstrate Windows Forms ListView control
This sample script has been created to demostrate the usage of Windows forms listview control in PowerShell
http://gallery.technet.microsoft.com/73dd51d4-d942-4490-aa10-f6c2ac5b233e

PowerShell Graphical List Box
Demonstrates using a list box control in PowerShell. Discussed in Hey Scripting Guy Blog on 3/2/2010
http://gallery.technet.microsoft.com/de33d1e7-eee6-495b-8d23-402dcd5c75d8

PowerShell help browser using Windows Forms and TreeView Control
This is a script example to demonstrate how Windows Forms and TreeView control can be used to create a PowerShell Help Browser.
http://gallery.technet.microsoft.com/ea76e9dd-e6bf-4750-b1a2-de0a0a649797

PowerShell Quiz script
This script provides the ability to create a puzzle based upon Windows PowerShell cmdlet names. But it also has the ability to do a generic quiz based upon a text file. A sample text file is attached, and it consists of the form answer=question. This script is discussed in the He
http://gallery.technet.microsoft.com/PowerShell-Quiz-script-e88a5766

Powershell Show-MsgBox Function
This Powershell advanced function will emulate the Visual Basic msgbox function. It takes five parameters: Prompt, Title, Icon, BoxType, and DefaultButton. Using these five parameters, and so you can customise the pop-up message to many different combinations.
http://gallery.technet.microsoft.com/Powershell-Show-MsgBox-982f6906

Powershell: Customizable Custom Control for New-PSDrive

http://gallery.technet.microsoft.com/Powershell-Customizable-fd23f4bf

Profile script to store PowerShell ISE preferences
This script will take care of saving your ISE preferences such as color schemes, font styles, etc.
http://gallery.technet.microsoft.com/30e3c667-578c-4929-bee2-1d316f7aa579

Provide a Yes/No Prompt in Windows PowerShell

http://gallery.technet.microsoft.com/1a386b01-b1b8-4ac2-926c-a4986ac94fed

PSISELibrary.ps1
This is a collection of functions that I wrote to enhance how I write PowerShell scripts and functions. They can be installed as menu items to make them easier to get at and use. I have a specific template that I follow when writing and these functions automate that somewhat.
http://gallery.technet.microsoft.com/PSISELibraryps1-ec442972

Query Active Directory And Ping Computers
This Windows PowerShell script uses the ActiveDirectory module, see this Hey Scripting Guy! blog article for details about this module, to query for all comptuers the Active Directory. It then uses the Test-Connection Windows PowerShell cmdlet to send a ping to each computer that
http://gallery.technet.microsoft.com/Query-Active-Directory-And-fbf2eba8

randomly draw names out of a virtual "hat".
randomly draw names out of a virtual "hat".
http://gallery.technet.microsoft.com/3ad5a37d-2c3a-42ae-b341-40140a763e67

Read a Text File All at Once

http://gallery.technet.microsoft.com/e2d243a0-fab5-4c81-a32b-16bc9b3f800d

Read a Text File From the Bottom Up

http://gallery.technet.microsoft.com/60b29b99-5f2f-46fa-ba84-ff7fd2c82699

Read the Oxford (en) Dictionary with PowerShell
The guys over at xdxf.revdanica.com kindly offer dictionaries (lots of languages) for free download. Fortunately they are in XML and PowerShell excels at that.
http://gallery.technet.microsoft.com/a395569b-1abb-40b6-ac5d-91174dd6d70a

Registry file to Powershell execution policy to Remote Signed
So I have noticed that some OEM vendors out there are selling systems and are locking down powershell with the execution policy set a restricted. and as a normal user or admin you can't just go right out and run "set-executionpolicy remotesigned" to allow you to get in and play w
http://gallery.technet.microsoft.com/Registry-file-to-232d0d26

ReplaceAliasesInScripts.ps1
This script searches a folder for PowerShell scripts, and replaces all of the aliases in them with the full cmdlet name. It makes a backup copy of the script first.
http://gallery.technet.microsoft.com/533d4058-60f5-4ed2-97a6-b12b80c33fba

Restart-ComputerJob

http://gallery.technet.microsoft.com/Restart-ComputerJob-61e29ff1

Retrieve Information from Yahoo! Weather

http://gallery.technet.microsoft.com/8a34d611-98cb-49d4-a99e-999edb87c8e8

Retrieve the Set-StrictMode setting

http://gallery.technet.microsoft.com/Retrieve-the-Set-2390158a

Roman Numeral Clock
Just something I was messing about with. Creating a Roman Numeral clock. It's cheap, It's console, It's geeky. Play with it :)
http://gallery.technet.microsoft.com/71809824-20ae-4ba4-b84f-eb62df8dfc10

Sample PowerShell Profile
This Windows PowerShell Profile was developed during the week of 11/23/2009 as part of Profile week.
http://gallery.technet.microsoft.com/78681855-4605-4b38-9e88-ecded3654cd4

Scripting Guys Graphical PowerShell Clock
Creates a graphical clock. Discussed in 3/1/2010 Hey Scripting Guy article.
http://gallery.technet.microsoft.com/5180ee3f-2a81-47ec-b89a-1bcac3282894

Scripting Guys WMI Helper Module Version 4
This module provides a number of useful WMI helper functions. The one added to todays module is a HasWMIValue filter. This filter is used to cause a WMI query to only return properties that contain a value. After importing the module, use it like this: gwmi win32_bios | HasWMiVal
http://gallery.technet.microsoft.com/Scripting-Guys-WMI-Helper-5a03aaeb

Scripting Guys WMI helper module version 5
This is the fifth version of the Scripting Guys WMI helper module. Additions include a Get-WMIClassesAndQuery function that will take a wild card, return all non-abstract WMI classes and automatically query those classes. I also added an Out-TempFile function that accepts pipelin
http://gallery.technet.microsoft.com/Scripting-Guys-WMI-helper-bf3cc6d6

Search and download scripts from TechNet Script Center repository
Lets you search and download scripts to local disk from techNet Script center
http://gallery.technet.microsoft.com/969807d4-1a7c-40e8-a579-37ea8ca19da5

Send a HTML email report in a formatted table - Send-HtmlEmail
This will take any Object from the PowerShell interface, convert the object (table) into HTML and then send it by email.
http://gallery.technet.microsoft.com/bd0c8d87-466f-4488-92a2-0f726cb6f4cd

Send script output as an email
insert into existing scripts to email the results
http://gallery.technet.microsoft.com/6091ba33-7182-441b-9a8f-9bbf71e5b744

Send-WebRequest
This is an example of how to use splatting to wrap many operations in a .NET object. Send-WebRequest wraps up the System.Net.WebClient class, and allows you to upload or download data, files, or strings to the web from PowerShell.
http://gallery.technet.microsoft.com/7e7b6bf2-d067-48c3-96b3-b38f26a1d143

Set-PSConsole function

http://gallery.technet.microsoft.com/Set-PSConsole-function-e49ef714

Show-MsgBox Function
Display a messagebox using .NET
http://gallery.technet.microsoft.com/ccbc8347-ca4e-4ac0-9a5e-c47f0e073bef

ShowUI Text Converter

http://gallery.technet.microsoft.com/ShowUI-Text-Converter-6c4128f1

Simple random code generator

http://gallery.technet.microsoft.com/Simple-random-code-b2c9c9c9

Sort With Custom List
Sort with custom list in PowerShell I've seen a couple of people try to do something like this but they didn't know what to call it. In Excel, it's called sorting with a custom list. I thought I'd make one for PowerShell.This comes in handy when you want to sort something but the
http://gallery.technet.microsoft.com/Sort-With-Custom-List-07b1d93a

Sort with custom list and other stuff

http://gallery.technet.microsoft.com/Sort-with-custom-list-and-6f7cba46

Sort-ObjectIf
I wanted to have a long pipeline with Sort-Object in the middle and perform that sort only when a condition is true, but still only have one pipeline. Not quite sure how else to do this.
http://gallery.technet.microsoft.com/c3aa55da-451e-491b-9e18-b320253159c5

Split Directory-Filename.PS1
Global function to split a Directory and Filename
http://gallery.technet.microsoft.com/41dc523d-21de-469e-b938-02b31685b1d2

Start-Typewriter

http://gallery.technet.microsoft.com/291cc08e-6419-4a0c-9e33-57d2af834ba8

Stop Watch using Events in Powershell
This is an alarm clock writted in Powershell using the posibility to subscribe scriptblocks to events. An instance of System.Timers.Timer is used to invoke a personalized action when the elapsed event is raised.
http://gallery.technet.microsoft.com/Stop-Watch-using-Events-in-5f450f58

Test connection
This tiny little script was the beginning of my powerful Multi-Ping Tool written in powershell. its a basic call to a remote system useing the IP address of a system to test if a system is on or off line useing microsoft WMI. who knew something so simple could become so powerfull
http://gallery.technet.microsoft.com/Test-connection-3949fcbc

Test-IsAdmin
This Advanced Function will look to see if the current user context running a command/script is an Administrator or not. If not, a menu is presented to the user to either continue or enter alternate credentials.
http://gallery.technet.microsoft.com/1b5df952-9e10-470f-ad7c-dc2bdc2ac946

Test-OverLapingDateRanges
This Powershell Script will accept two date ranges and return true if the ranges overlap
http://gallery.technet.microsoft.com/12b6f0b3-1b11-41bc-96c9-0017f42c4f7e

This command invokes PSExec

http://gallery.technet.microsoft.com/59e314fc-3d4b-42bc-9769-fd60c20070a5

Toggle the Get-Credential Prompt
Toggles the Get-Credential prompting method between console and CredUI.
http://gallery.technet.microsoft.com/d75ed4b5-964f-4f3e-bfec-fed64dbe9626

Track Script Progress Using Internet Explorer

http://gallery.technet.microsoft.com/e6145976-1f39-4525-a03a-ed67f8eba644

Use PowerShell to Automate Microsoft Visual Studio 2008
Automate Microsoft Visual Studio 2008 using the EnvDTE automation interface.
http://gallery.technet.microsoft.com/9db8e065-bed4-4944-991f-058639b6de48

Using DataGrid control in Windows PowerShell
This is an exmple written to explain how to use DataGrid control to create GUI in PowerShell scripts.
http://gallery.technet.microsoft.com/3dcf0354-e7a7-482c-86f1-2e75809a502d

Vacation Starter
This script creates a Out-Of-Office message based on the users input to be pasted into Outlook
http://gallery.technet.microsoft.com/f73d3a2b-fc93-4702-9a17-de909af43e6b

Validate Xml against XSD Schema
This function will allow you to validate an XmlDocument object ([xml]) against a specified XSD schema. It returns an array of objects containing the line number, line position and reformatted error message.
http://gallery.technet.microsoft.com/2f6f0541-d152-4474-a8c1-b441d7424454

Windows PowerShell ISE Profile And Modules

http://gallery.technet.microsoft.com/Windows-PowerShell-ISE-ff235827

WMI Helper Module for Windows PowerShell Version 6
This is my last version of the Scripting Guy WMI Helper module. It is HSGWMImoduleV6. I added two tags to the comment based help that allow for easy querying of the functions. I divided them into three categories: meta, query, and helper. To find the functions using Get-Help, use
http://gallery.technet.microsoft.com/WMI-Helper-Module-for-90e4f22e

WMI Helper Module V2
This is version 2 of the WMI Helper Module I uploaded the other day. This new module, contains a new WMI function called Get-WMIKey. The Get-WMIKey function is useful if you want to use the [wmi] instance type accelerator because it must connect to a key property of a WMI class.
http://gallery.technet.microsoft.com/WMI-Helper-Module-V2-3d598505

WMI helper module version 3
This is the third version of the Scripting Guy WMI helper module. In this version I add a function, Get-WMiKeyValue. This function will return key property values. These are the paths to instances of a WMI class. These paths are used when calling certain methods, or when setting
http://gallery.technet.microsoft.com/WMI-helper-module-version-3-b72b9e5e

WMI Information Explorer
This script creates a GUI that allows you to view the WMI properties of any WMI class.
http://gallery.technet.microsoft.com/73af26e9-a6f8-49ab-a367-9daffc8081b4

WPF Item Definitions
Provides a GUI that lists public WPF items and queries the definitions. Allows the user to easily view all WPF items and what you can do with them.
http://gallery.technet.microsoft.com/c55f47d2-0259-4cb5-861a-210583235201

XML generator for Remote Outofmemory Testing
This powershell code generates 2 million records in a xml file that later is used to test remote outofmemory scenarios
http://gallery.technet.microsoft.com/d1fe6c44-ce2c-41a1-ae6c-e725e80211c0