powershellscripts.com

PowerShell Logo


2846 results found for the Unsorted Category in about 0.342 seconds
Add-Decimal.ps1:

http://www.pshscripts.blogspot.com

Add-DomainUserToLocalAdministratorsGroup.PS1: Add a domain user to a Local Administrator's group
Uses ADSI to discover computer's account database and add the user to the local Administrator's group. Also does some basic error checking
http://pshscripts.blogspot.com/2008/11/add-domainusertolocaladministatorsgroup.html

Add-FirewallApplication.ps1: This script adds a program to the firewall.
This script used the firewall com object to add a new application to the firewall.
http://pshscripts.blogspot.com/2010/03/add-firewallapplicationps1.html

Add-Hashtable.ps1: Demonstratrs adding items to a hashtable
This script creates a HashTable, then adds some items to it, and finally prints out the resulting hash table.
http://www.pshscripts.blogspot.com

Build-String1.PS1: Demonstrates the sting builder feature of .NET
This script creates a string builer object and adds characters to it. This is an MSDN sample
http://www.pshscripts.blogspot.com

Change-Extensions.ps1: Changes file extension
This script uses the ChangeExtension method to change a file extension
http://pshscripts.blogspot.com/2009/03/change-extensionps1.html

Clear-CustomEventLog.PS1: Writes to then clears a custom event log
This script opens an evnet log called NewPSHLog exists. It then writes some log entries then then retrieves them and displays a count. Finally the log is cleared and
http://www.pshscripts.blogspot.com

Clear-Hashtable.ps1: Demonstrates Hashtable's Clear Method
This script creates and populates a hash table then demostrates use of the .clear method.
http://www.pshscripts.blogspot.com

Clear-Queue.ps1: Demonstrates a .NET Queue object
This script creates a queue, adds some items to it, and displays the queue. Finally, the clear method is called and results
http://www.pshscripts.blogspot.com

Clear-Stack.ps1: Sample of clearing a stack using PowerShell
This script creates a script and shows the impact of clearing the stack
http://pshscripts.blogspot.com/2008/07/clear-stackps1.html

Clear-Stopwatch.ps1: This script displays the use of the Reset method in a StopWatch object.
This script calls the StartNew static method to create and start a new stopwatch object, and displays the current values for the stop watch. The
http://www.pshscripts.blogspot.com

Clone-Hashtable.ps1: Demonstrates the use of the .clone method with hash tables
This script creates and populates a hash table, then demostrates the use of the .clone() method.
http://www.pshscripts.blogspot.com

CloneXMLNode.ps1: This script clones an XML element.
This script creates an XML document, then creates two clone elements.
http://www.pshscripts.blogspot.com

Compare-DateTime.ps1: This script shows how to compare roughy equivalent DateTime values,
This script reimplements an MSDN Scample.
http://www.pshscripts.blogspot.com

Compare-Double.PS1: This script illustrates the CompareExchange Method
This script creates three values, and calls CompareExchange method, and displays the results. The first time, we compare two non-equal values
http://www.pshscripts.blogspot.com

Compare-Int32.PS1: This script illustrates the CompareExchange Method
This script creates three values, and calls CompareExchange method, and displays the results. The first time, we compare two non-equal values
http://www.pshscripts.blogspot.com

Contains-Hashtable.ps1: Hashtable Contains method sample using PowerShell
This script create and populates a hash table then demonstrates use of contains, containskey and containsvalue methods.
http://www.pshscripts.blogspot.com

Convert-date.ps1: This script manipulates a time using TimeZone info methods.
This script reimplements an MSDN sample using PowerShell. The script first creates a DateTime object then it converts it to Universal, UTC, Pacific and 'local' time.
http://www.pshscripts.blogspot.com

Convert-Double.ps1: This script is an updated MSDN sample showing converstion to int32, boolean, string
This script
http://www.pshscripts.blogspot.com

Convert-Time.ps1: This script converts time between two timezones.
This script creates a system.datetime object, then shows that time converted from Hawaian to Local time.
http://www.pshscripts.blogspot.com

Copy-File.PS1: This script displays the usage of the Exists and the
This script sets up two file names, then checks to see if the sorucefile exists. if so, it's copied to a new file.
http://www.pshscripts.blogspot.com

Copy-File2.PS1: This script creates a file, then reads it and displays the output.
This script reimplements the MSDN sample for this page. It first creates a file (assuming the file does not already exist) and writes three lines to it. The script then opens the file, reads each
http://www.pshscripts.blogspot.com

Copy-FileToFtp.ps1: This script Uploads a text file to an FTP Server using PowerShell.

http://www.pshscripts.blogspot.com

Copy-Tempfile.ps1: This script reimplements an MSDN sample in PowerShell
This script creates a temporary file, then copies it.
http://www.pshscripts.blogspot.com

count-gdshows.ps1: Counts the Gratefuld Dead shows in my archives
This script looks at my GD archive, and uses folder names to determine show type (aud, sbd, etc), and checks to see what
http://www.pshscripts.blogspot.com

Create-TempFile.PS1: This script creates then copies a file using
This script first creates a temporary file, then copies it to another file then deletes the
http://www.pshscripts.blogspot.com

Disable-NetworkCard.ps1: Disables active network cards
This script looks at each network card that is currently IP enabled, and disables it by releasing the DHCP Lease. To re-enable the network interrace,
http://www.pshscripts.blogspot.com

Display-Array1.ps1:

http://www.pshscripts.blogspot.com

Display-Counter.PS1: This script is counts down from 3 minutes and displays the time remaining.
This script is an entry to the scripting games 2009.
http://www.pshscripts.blogspot.com

Display-Timespan.ps1: Creates timespan objects and displays properties for each
This script creates time span objects then prints out the properies of each one.
http://www.pshscripts.blogspot.com

Divide-BigInteger.ps1: This script divides big integers using .NET Framework.
This script reimplements an MSDN Sample script using powershell. The script creates a dividor and an arry of dividends, then performs
http://www.pshscripts.blogspot.com

Enable-FWPort.ps1: This script enables then disables the SMTP port on a local system
This script first creates a FW object, then creates a port. The script then addes that port to the firewall rules. The script
http://www.pshscripts.blogspot.com

Enable-FWPort2.ps1: This script creates a rule in the Windows Host Firewall.
This script creates a new firewall rule for port 80 over tcp (i.e. 80).
http://www.pshscripts.blogspot.com

Enable-ICMP.ps1: This script Enables ICMP on the Standard Firewall profile.
This script creates a Firewall object then configures it.
http://www.pshscripts.blogspot.com

Format-GUID.ps1: This script Creates then displays a GUID by using .TOString()
This script demonstrates the 4 format specifiers you can send to .TOString() to affect the display. Note when you run
http://www.pshscripts.blogspot.com

Get-AesEncryptedString.ps1: This script encrypts then decrypts a string using AES
This script re-implements an MSDN sample that first encrypts a string then decrypts it. The crypto is done
http://pshscripts.blogspot.com/2010/08/get-encryptedaesstringps1.html

Get-ALlWmiClasses.ps1: This script displays all the namespaces withing a Windows system
This script uses Get-WMIObject to retreive the names of all the namespaces within a system.
http://www.pshscripts.blogspot.com

get-arraylist.ps1: This script demonstrates the use of the Systems.Collections.Arraylist class
This script is a re-write of an MSDN sample script
http://pshscripts.blogspot.com/2010/09/get-arraylistps1.html

get-arraylist2.ps1: This script demonstrates using an ArrayLIst
This script re-implements an MSDN Sample using a System.Collection.Arraylist
http://www.pshscripts.blogspot.com

Get-AssemblyDetails.ps1: This script demonstrates the Assembly.GetType method.
This script creates an int32, then calls into .NET to find the assembly that the int32 class comes from. The assembly
http://www.pshscripts.blogspot.com

Get-AssemblyName.PS1: Gets assembly full name of a loaded assembly
This
http://www.pshscripts.blogspot.com

Get-AssemblyVersion.ps1: Gets the version number for an assembly

http://www.pshscripts.blogspot.com

Get-AutoHelp.ps1: A summary of what this script does

http://www.pshscripts.blogspot.com

Get-BigInteger.ps1: This script creates and displays a BigInteger
This script is a rewrite of an MSDN sample.
http://www.pshscripts.blogspot.com

Get-BigIntegerProperties.ps1: This script displays dynamic properties of a BigInteger
This script demonstrates the properties on an instance of BigInteger
http://www.pshscripts.blogspot.com

Get-BigIntegerStaticProperties.ps1: This script displays statoc properties of a BigInteger
This script demonstrates the static properties of the BigInteger class.
http://www.pshscripts.blogspot.com

Get-Billtotal.PS1: Calculates a tip on a bill and displays total
This script takes an amount (as a parameter), calculates the tip and displays the total
http://www.pshscripts.blogspot.com

Get-Bios.ps1: This script gets all the computers in a domain and then
This script uses the Active Directory module to get all computers. Then it enumerates this set and uses WMI
http://pshscripts.blogspot.com/2010/06/get-biosps1.html

get-blogping.PS1: Pings blog servers in my list
This script uses the Get-Web cmdlet to ping a group of blog servers. See http://huddledmasses.org/get-web-another-round-of-wget-for-powershell/ for
http://www.pshscripts.blogspot.com

get-blogping.PS1: Pings blog servers in my list
This script uses the Get-Web cmdlet to ping a group of blog servers. See http://huddledmasses.org/get-web-another-round-of-wget-for-powershell/ for
http://www.pshscripts.blogspot.com

get-blogping.PS1: Pings blog servers in my list
This script uses the Get-Web cmdlet to ping a group of blog servers. See http://huddledmasses.org/get-web-another-round-of-wget-for-powershell/ for
http://www.pshscripts.blogspot.com

Get-BrokenHardware.ps1: This script gets a list of non-working hardware using WMI.

http://www.pshscripts.blogspot.com

Get-Calendar.ps1: This script displays details of a Calendar in PowerShell
This script shows the various aspects of this calendar including key properties, fields and selected methods.
http://www.pshscripts.blogspot.com

Get-CalendarValue.ps1: This script displays values from a date/time object before/after adding time to the object.
This script uses System.Globalization features to create a gregorian calendar based DateTime object, set to a particular date, then displays the values on this
http://www.pshscripts.blogspot.com

Get-CalendarValue2.ps1: This script displays values from a date/time object before/after adding time to the object.
This script uses System.Globalization features to create a gregorian calendar based DateTime object, set to a particular date, then displays the values on this
http://www.pshscripts.blogspot.com

Get-CARolesOfCaller.ps1: This script displays the CA roles of the caller
This script instantiates the CA COM object, gets the allowed roles, and displays them. This script
http://www.pshscripts.blogspot.com

Get-ComputerDomain.PS1: Shows use of GetComputerDomain to return information about the domain
Uses system.directoryservices.activedirectory.domain and GetComputerDomain to return domain information of the Computer. Note that this
http://pshscripts.blogspot.com/2009/01/get-domain.html

Get-ComputerDomain.ps1: This script uses WMI to get the name of a computer's domain then displays the name.
This script is a re-write of an MSDN sample, using PowerShell.
http://www.pshscripts.blogspot.com

Get-ComputerName.PS1: Gets system name using PowerShell and WMI
This script uses the Win32_ComputerSystem class to obtain, then dispay, the name of this computer.
http://www.pshscripts.blogspot.com

Get-ConformanceLevelEnum.ps1: This script demonstrates the confirmance level enum.
This script displays the values form the conformancelevel enum and checks it against a value.
http://pshscripts.blogspot.com

Get-ConvertedTime.ps1: This script converts time using ConvertTime method.
This script re-implements an MSDN sample.
http://pshscripts.blogspot.com/2010/08/get-convertedtimeps1.html

Get-Cookie.PS1: This script gets and displays the cookies returned from a site.
This script calls System.Net.WebRequest to get a page. in the response there may be cookies returned which this script then
http://www.pshscripts.blogspot.com

Get-CountJerryShows2.ps1: Counts Jerry Garcia live shows on q: drive
I store Jerry Garcia live shows on my Q: drive. This script counts the shows by year, and gives a total.
http://www.pshscripts.blogspot.com

get-countofjerryshows.ps1: Counts Jerry Garcia live shows on q: drive
I store Jerry Garcia live shows on my Q: drive. This script counts the shows by year, and gives a total.
http://www.pshscripts.blogspot.com

Get-CountryForIPAddress.ps1: Gets country for a Geo-IP address
This function uses the New-WebServiceProxy cmdlet to create a web service proxy. Then it calls that proxy
http://www.pshscripts.blogspot.com

Get-Cultures.ps1: This script displays information of cultures on a system.
This script reimplements an MSDN script using PowerShell. It first gets the cultures then displays them
http://www.pshscripts.blogspot.com

Get-DateTime.ps1: Uses .NET formatting strings to format date/time values
Recreates an MSDN sample for displaying Date/TIme Format. See links section for pointer to original Sample.
http://www.pshscripts.blogspot.com

Get-Decimal1.ps1: Demonstrates Decimal arithmetic.
This script Creates two decimals, then multiplies them and then displays them.
http://www.pshscripts.blogspot.com

Get-DesktopResolution.PS1: Displays Desktop Size
This script is a re-write of an MSDN sample. It uses the Win32_Desktop Monitor WMI class to obtain the
http://www.pshscripts.blogspot.com

Get-DNSAddress.PS1: This script uses the System.Net.Networkinginformation.Networknterface class

http://www.pshscripts.blogspot.com

Get-DNSInfo.ps1: This script re-implements a MSDN Sample in PowerShell that
This script gets network information and formats DNS info. The script is effectively a one-liner!
http://www.pshscripts.blogspot.com

Get-DnsRegisteredNames.ps1: This script gets the reverse lookup zone from a DNS Server and
This script first gets the reverse lookup zone from a DNS Server (i.e. all the computers that have used the DNS server to register!). The
http://www.pshscripts.blogspot.com

Get-Domain.PS1: Shows use of GetCurrentDomain to return information about the domain
Uses system.directoryservices.activedirectory.domain and GetCurrentDomain to return domain information of the currently logged on user. NOte that this
http://pshscripts.blogspot.com/2009/01/get-domain.html

Get-Domain.PS1: Uses Win32_ComputerSystem to determin the domain this computer is in
This script is a re-write of an MSDN sample (sample three three from http://msdn.microsoft.com/en-us/library/aa394586) that uses
http://www.pshscripts.blogspot.com

Get-DomainFromAor.ps1: Gets the target domain from the AOR and displays result
Defines an AOR, then uses PowerShell to get domain from AOR. See http://cacorner.blogspot.com/2008/07/microsoft-office-communicator-auto.html
http://pshscripts.blogspot.com/2008/07/get-domainfromaorps1.html

Get-DomainModeEnumValues.ps1: Prints out the values of the DomainMode Enum
This script use Enum's GetValues method to display the value of this enum. Then the script checks an enum value.
http://www.pshscripts.blogspot.com

Get-DomainRole.PS1: Gets and displays the role a computer plays in a domain
This script uses WIN32_ComputerSystem to get the rold of a system then displays it. This is a re-write of an MSDN sample.
http://www.pshscripts.blogspot.com

Get-Driveinfo.ps1: This script gets and displays basic information about drives on a local system.
This script uses the System.Io.DriveInfo's GetDrives method to get drive info which is then displayed. This is a re-implementation of an MSDN
http://pshscripts.blogspot.com/2010/07/get-driveinfops1.html

Get-Dvd.PS1: Gets details of any CD/DVD devices attached to a computer

http://www.pshscripts.blogspot.com

Get-Elapsedtime.PS1: Demonstrates use of the System.Diagnostics.Stopwatch .NET Class
This script is a community content MSDN sample,using PowerShell
http://pshscripts.blogspot.com

Get-EmptyGuid.ps1: Gets and empty GUID
This script creates and displays an empty GUID, using the EMPTY field
http://www.pshscripts.blogspot.com

get-errordetails.ps1: Shows detals of an $Error record for an exception
Creates an exception then shows how to find out details.
http://pshscripts.blogspot.com/2009/01/get-errordetailsps1.html

Get-EvenNumber.ps1: Detects and reports on even numbers using the Modulo operator (%)
Takes a pipeline of values and tells you the numbers that are are even integers. PowerShell detects non-integers. At the end, this function
http://www.pshscripts.blogspot.com

Get-Extension.ps1: Gets file extension
This script uses the GetExtension method to get a file extension
http://www.pshscripts.blogspot.com

Get-Fan.PS1: Uses Win32_Fan class to return information about fans in a system.

http://pshscripts.blogspot.com/2009/04/win32fan-sample-using-powershell.html

Get-FileCount.PS1: Gets a count of files in a folder
This script uses shell.application to get the folder contents then uses .count to work out how many files there are.
http://www.pshscripts.blogspot.com

Get-Files.PS1: Gets and displays files from a folder
Thsi scritp uses the getfiles method to get and display files in a folder
http://www.pshscripts.blogspot.com

Get-FileVersionInfo.ps1: This script gets and displays the file version information of a file

http://www.pshscripts.blogspot.com

Get-FirewallDetails.ps1: Gets details of Windows Firewall (on Vista and Server 2008 or later)
Uses HNetCfg.FwMgr com object to get and display firewall details for local machine.
http://pshscripts.blogspot.com/2008/12/get-firewalldetailsps1.html

Get-FirewallStatus.ps1: This script gets the status of the host firewall
This script gets the status and displays it to the console. The script also turns on the firewall if it's
http://www.pshscripts.blogspot.com

Get-FolderObjects.ps1: This script displays the WMI objects associated with a folder
This script uses the Associators Of query
http://www.pshscripts.blogspot.com

Get-FolderSize.PS1: This script displays the size of a folder
This script is a rewrite of an MSDN sample. It uses System.IO namespace to determine the size
http://pshscripts.blogspot.com/2009/10/get-foldersizeps1.html

Get-Forest.PS1: Shows use of GetCurrentForest to return information about the forest
This script used .NET to return name of forest.
http://www.pshscripts.blogspot.com

Get-ForestModeEnumValues.PS1: Prints out the values of the ForestMode Enum
This script use Enum's GetValues method to display the value of this enum. Then the script checks an enum value.
http://www.pshscripts.blogspot.com

Get-FreeMemory.ps1: Gets free memory from WMI
This scritp uses Win32_ComputerSystem WMI class to get then display free memory. This PowerShell
http://www.pshscripts.blogspot.com

Get-FSMOHolders.ps1: Gets the names of the systems holding the 5 FSMO holders
Uses system.ds.ad.forest and system.ds.ad.domain to get this info Runs on a domain joined machine.
http://pshscripts.blogspot.com/2008/12/get-fsmoholdersps1.html

Get-FTPDirectory.ps1: This script used FTP to get and display the root of an FTP site.

http://pshscripts.blogspot.com

Get-FTPFile.ps1: This script used FTP to get and display a text file.

http://pshscripts.blogspot.com/2010/09/get-ftpfileps1.html

Get-FWAuthorisedApplications.ps1: This script displays each Firewall Authorised Application
This script gets the list of authorised applications, then displays them. This is a re-write of a MSDN Script written in
http://www.pshscripts.blogspot.com

Get-Gateway.ps1: Gets IP default gateway and displays it/them

http://www.pshscripts.blogspot.com

Get-Guid.ps1: Creates a new guid
This script used sytem.guid to create a new guiod
http://www.pshscripts.blogspot.com

Get-GuidByteString.ps1: Creates and displays a GUID as a byte String
This script first creates a guid, then displays it as a byte string
http://www.pshscripts.blogspot.com

Get-Hash2.PS1: Creates a Hash of a file and returns the hash
Uses System.Security.Cryptography.HashAlgorithm and members to create the hash This scriptimproves on http://pshscripts.blogspot.com/2009/01/get-hashpsm1.html
http://www.pshscripts.blogspot.com

Get-Hashtable.ps1: Sample using Hashtables
This script create, populates and displays a hash table
http://www.pshscripts.blogspot.com

get-hashtable2.ps1: A rich example of using hash tables with PowerShell
This script creates, populates a hash table then operates on the hash table
http://www.pshscripts.blogspot.com

Get-Help.ps1: Opens Windows Help using shell.application
This script creates a shell object then opens help from the shell.
http://www.pshscripts.blogspot.com

Get-HostByName.ps1: This script gets and displays basic DNS Information about a host.
This script just gets and displays host details returnd by GetHostByName.
http://www.pshscripts.blogspot.com

Get-HostEntry.ps1: Demonstrates use of the GetHostEntry method of System.Net.DNS Class
This script is a an MSDN sample, using PowerShell
http://pshscripts.blogspot.com/2009/04/get-hostentryps1.html

Get-HostEntry2.ps1: Demonstrates use of the GetHostEntry method of System.Net.DNS Class
This script is a an MSDN sample, using PowerShell. This script uses the IP address of the host to find.
http://pshscripts.blogspot.com/

Get-HTTPVersion.ps1: Demonstrates use of the HTTPVersion class
This script is a re-write of an MSDN sample,using PowerShell
http://pshscripts.blogspot.com/2009/03/get-httpversionps1.html

Get-InstalledVoice.ps1: This script displays the installed Speech Synthesiser voices

http://www.pshscripts.blogspot.com

Get-Int16.ps1: Illustrates Int16 data type
This script creates,displays and formats an Int16
http://www.pshscripts.blogspot.com

Get-Int32.ps1: Illustrates Int32 data type
This script creates,displays and formats an Int32
http://www.pshscripts.blogspot.com

Get-Int64.ps1: Illustrates Int64 data type
This script creates,displays and formats an Int364
http://www.pshscripts.blogspot.com

Get-IPaddress.PS1: Gets and displays the IP address of a computer
This script uses Win32_NetworkAdapterConfiguration to obtain, then display, a system's IP addresses.
http://www.pshscripts.blogspot.com

get-ipaddress.PS1: Parses an address, returns a System.NET.IPAddress if OK
This script parses an IP address and returns a System.Net.IPAddress if OK. It uses try/catch from Version 2
http://www.pshscripts.blogspot.com

get-ipaddress2.PS1: Thsis script parses using tryparse to parse an IP address string
Thsi script creates three IP address strings and uses tryparse to check them out. This script works with PS v1.
http://www.pshscripts.blogspot.com

Get-JapaneseDate.PS1: This script displays dates using the Japanese calander.
This script creates a new date and time object, then displays things using the Japanese calendar. I have changed the original
http://pshscripts.blogspot.com/2009/06/get-japanesedateps1.html

Get-JulianEraField.PS1: Displays the value of the [System.Globalzation.JulianCalendar}::JulianEra field
This script retreives the JulianEra field and displays it, using the .NET class System.Globalization.JulianCalendar.
http://www.pshscripts.blogspot.com

Get-LeapYear.ps1: Demonstrates use of System.Datetime to determine leap year
This script creates four date objects and checks to see if the date is a leap year. The last object is today's date.
http://www.pshscripts.blogspot.com

Get-LegalInfo.ps1: Gets LegalCopyright and Legal Trademarks from a file, if they exist.
This script uses System.Diagnostic.FileVersionInfo to get the version information of a file. in this sample, I use notepad.exe, as shipped with Windows.
http://www.pshscripts.blogspot.com

Get-LocaleCurrency.ps1: This script displays a number formatted in Currency for each locale
This script first creates a value to be formatted, and creates an array containing all the locales defined on the system. The script then uses
http://www.pshscripts.blogspot.com

Get-LocalGroups.PS1: Gets local groups on a computer.
This script uses Win32_Group to get the local groups on a system then displays those groups.
http://www.pshscripts.blogspot.com

Get-LoggedOnUser.ps1: Displays the logged on user(s)
This script uses Win32_ComputerSystem to get and then display the logged on user
http://www.pshscripts.blogspot.com

Get-LoopBack.ps1: This script checks whether a parameter is an IPv6 or IPv4 Loopback Address
This script checks to see if the passsed string is a loopback address and if so, displays details.
http://www.pshscripts.blogspot.com

Get-MachineConfig.ps1: Displays summary of machine.config
This script is a re-write of an MSDN sample which fetchs the machine.config file, prints out file path, and key sections. Also shows how many sections
http://pshscripts.blogspot.com/2009/02/get-machineconfig.html

Get-MachineStartupShutdownScript.ps1: Gets machine startup and shutdown scripts
From Windows PowerShell Cookbook (O'Reilly) by Lee Holmes (http://www.leeholmes.com/guide)
http://www.pshscripts.blogspot.com

get-math.ps1: Illustrates system.math static methods using PowerShell
This script uses some of the static methods of system.math including ABS, ACOS, ASI, TAN and some others.
http://www.pshscripts.blogspot.com

get-mathe.ps1: Illustrates the expponential
This scritp uses system.math's E field
http://www.pshscripts.blogspot.com

get-mathpi.ps1: Shows use of PI field
This script gets and displays system.math's PI field
http://www.pshscripts.blogspot.com

Get-Mouseinfo.ps1: Uses Win32_Fan class to return information about fans in a system.

http://www.pshscripts.blogspot.com

Get-MultiplyBigInteger.ps1: This script re-implements this MSDN Sample of
This script first tries and fails to multiple a pair of large integers. The script catches the error and then used BigInteger.Multiply to multiply
http://www.pshscripts.blogspot.com

Get-NoDstTimeZones.ps1: This script displays those time zones that do NOT support
This script uses .NET to get the time zones defined on a system then displays those that do not suport daylight savings time.
http://www.pshscripts.blogspot.com

Get-NonWorkingDevices.ps1: Uses Win32_PNPEntity to return information about p&p infor

http://www.pshscripts.blogspot.com

Get-OsInstallDate.ps1: This script gets/displays the Sysgtem Uptime after
This script creates an instance of a SWbemDateTime object, gets the OS install date and converts the date to a more
http://www.pshscripts.blogspot.com

Get-OutLookFolders.PS1: This script displays the MAPI namespace in the current
This script creates and Outlook.application object, then gets and displays the top level folders in the store, and
http://www.pshscripts.blogspot.com

Get-OutlookStores.ps1: This script uses the Outlook COM object to
This script creates an Outlook object, displays user information, and the stores currently
http://www.pshscripts.blogspot.com

Get-ParameterAttribute.ps1: Shows Parameter attributes
Script is decorated with Parameter attributes to demostrate the use of them
http://www.pshscripts.blogspot.com

get-parsedinteger.ps1: This script parses several strings into integers, where possible.
This script uses the TryParse method on [Int32] to attempt to parse a string into a number and writes the results. This script
http://www.pshscripts.blogspot.com

Get-ParsedString.PS1: Formats a number using .NET - an MSDN Sample recoded in PowerShell
This script createa a number and formats it in Hex. Then a negative number is created and formatted several ways. Uses int32.parse method to do the
http://pshscripts.blogspot.com/2008/12/get-parsedstringps1.html

Get-Performance.ps1: This script displays basic performance information for a computer
This script calls Get-Counter on a computer to obtain default performance counters. These are obtained and displayed. The script
http://www.pshscripts.blogspot.com

Get-PersianCalendar.ps1: This script displays details of a Persian Calender in PowerShell
This script re-implements an MSDN C# sample.
http://pshscripts.blogspot.com/2010/09/get-persiancalendarps1.html

Get-PhysicalRam.PS1: Obtains and displays a system's physical RAM
This script uses Win32_ComputerSystem to obtain then display the physical ram memory in a system.
http://www.pshscripts.blogspot.com

Get-PingStatus.PS1: Demonstrates use of the Win32_PingStatus WMI class
This script is a community content MSDN sample,using PowerShell
http://pshscripts.blogspot.com/2009/03/get-pingstatusps1.html

Get-PlatformID.PS1: This script displays the platform id of the system
This script is a rewrite of an MSDN sample. It gets System.Environment.Version's Platform field
http://pshscripts.blogspot.com/2009/09/get-platformidps1.html

Get-PrinterTestPage.PS1: This script uses WMI to print a test page
This script is an MSDN sample,using PowerShell. It first gets all the printrs installed, prints out details then
http://www.pshscripts.blogspot.com

Get-Printqueue.ps1: This script displays the printers on a given computer
This script first has to load system.printing, then it gets the printers (queues). NB: The queues are returned
http://www.pshscripts.blogspot.com

Get-ProcessPerfCounter.PS1: This script creates a process, then displays some perf counters.
This script calls System.Diagnostics.Process's Start static static method to create a process.
http://www.pshscripts.blogspot.com

Get-ProfileFile.ps1: This script gets the details of the PowerShell profile files related
This script gets the 4 script file names from the $profile variable and creates a custom object containing the name and path or each profile, and
http://www.pshscripts.blogspot.com

Get-Random.ps1: Displays random numbers using System.Ransom
Re-implementation of MSDN sample script that generates three sets of random numbers.
http://pshscripts.blogspot.com/

Get-Regextest.ps1: Shows how to use regular expressions to test a string
This script tests a set of strings to determine they are a currency value.
http://www.pshscripts.blogspot.com

Get-Regioninfo.ps1: This script displaysthe property values for a globlisation region
This script
http://www.pshscripts.blogspot.com

Get-Screensaver.ps1: Determine if a computer screen saver requires a password.
This script is a re-write of script 2 on the MSDN site (see below for link). This script also displays the user name for
http://www.pshscripts.blogspot.com

Get-ServiceDetails.ps1: This script displays service details

http://www.pshscripts.blogspot.com

Get-Sha1Hash.ps1: This script uses the SHA1 Crypto Provider to hash a string
This script creates 2 strings, and a SHA1 Crypto Provider. The script then hashes the strings and displays the results.
http://www.pshscripts.blogspot.com

Get-Sha1HashFile.ps1: This script uses the SHA1 Crypto Provider to hash a file
This script uses SHA1 Cryptoprovider to hash a file and print the hash. A second hash is created of the same file, but with a space added. The file I picked is a
http://www.pshscripts.blogspot.com

Get-SortedList.ps1: Demonstrates using a system.collections.sortedlist
This script creates a sorted list, then adds a number of objectss to it, finally printing the resuling list.
http://www.pshscripts.blogspot.com

Get-SortedList.ps1: Sorted list sample
This script creates then manipulates a sorted list
http://pshscripts.blogspot.com/2008/07/get-sortedlistps1.html

Get-SpecialFolders.PS1: This script lists the special folders enumerated in System.Environment.SpecialFolder
This script first enumerates the SpecialFolder Enum. for each member, the script then looks up, and displays, the value of that folder.
http://www.pshscripts.blogspot.com

Get-SQLServer.ps1: This script uses SQL Server Server SMO objects to display server information.
This script first loads the SMO assembly and then creates a server object. The script then prints basic server information plus details of databases and
http://pshscripts.blogspot.com/2010/05/get-sqlserverps1.html

Get-Sqlservers.ps1: Sample showing use of SMO and PowerShell
Uses SMO objects to find available SQL Servers
http://www.pshscripts.blogspot.com

Get-SQLServerVersion.PS1: This script displays the versions of SQL Server running on a system
This script uses WMI to get the SQLServiceAdvancedProperty class from the ComputerManagement namespace to print out the versions. This
http://www.pshscripts.blogspot.com

Get-Stack.ps1: Demonstrates basic functions of a stack
This script creates a stack, pushes three objects onto the stack, then displays the stack
http://pshscripts.blogspot.com/2008/07/get-stackps1.html

Get-Stack1.ps1: MSDN sample showing push and other stack processing using PowerShell
This script creates a script then performs stack operations.
http://www.pshscripts.blogspot.com

Get-Stockquote.ps1: Gets stock quotes using a web servoice
This funciton uses the New-WebServiceProxy cmdlet to create a web service proxy. Then it calls that proxy
http://www.pshscripts.blogspot.com

Get-StopWatchFields.PS1: This script displays the static fields of a stopwatch object.
This script first displays the two static fields in the stop watch object: Frequency, and IsHighResolution. Details of these are on MSDN.
http://www.pshscripts.blogspot.com

Get-StopWatchProperties.PS1: Gets and displays properties of a stopwatch
This script, written as an MSDN Sample, creates and starts a stop watch. The script stops the stopwatch, and displays the properties. To some degree, the
http://pshscripts.blogspot.com/2009/05/get-stopwatchpropertiesps1.html

Get-StringFormat1.ps1: Demonstrates simple string formatting using Powershell
This script formats 5 numbers in Decimal, Hex and Currency and is an adaptation of the C# sample in the MSDN Library
http://www.pshscripts.blogspot.com

Get-StringFormat2.PS1: Demonstrates string formatting using Powershell
This script formats 2 numbers in a variety of ways, also formats an enum.
http://www.pshscripts.blogspot.com

Get-System.Environment.PS1: This script demonstrates the use of System.Environment
This script Uses a variety of the members of System.Environment and is a re-write of a MSDN Sample Script
http://www.pshscripts.blogspot.com

Get-System.EnvironmentStaticProperties.PS1: Demonstrates the static properties on System.Environment
This script uses the System.Environment class to retrieve interesting information about your system. The fields returned are static fields
http://www.pshscripts.blogspot.com

Get-SystemStatus.PS1: Gets system name and domain
This script uses Win32_Computer System to obtain and dislay the host and domain name of the local host. This is a re-write
http://www.pshscripts.blogspot.com

Get-Thursday.ps1: This script checks of a particular date in the past was a Thurday.
This script creates a DateTime object set for 1st May, 2003. The script then check to see if that day is a Thursday then displays the day of
http://pshscripts.blogspot.com/2009/08/get-thursday.html

Get-TiimeStamp.PS1: This script displays the timestamp value of a stopwach object.
This script first calls the GetTimeStamp static method, then displays the result nicely.
http://www.pshscripts.blogspot.com

Get-Time.ps1: This script converts time to different time zones.
This script re-implements an MSDN sample using PowerShell
http://pshscripts.blogspot.com/2010/08/get-time.html

Get-TimeTick.ps1: This script gets and displays the static Tick values from TimeSpan Object
This script create and displays static values.
http://pshscripts.blogspot.com/2009/06/get-timetickps1.html

Get-TimeZoneInfo.PS1: Gets and displays time zone information via WMI

http://pshscripts.blogspot.com/2009/01/get-timezoneinfops1.html

Get-TimeZoneInfoInfo.ps1: This script displays/Uses TimeZoneInfo properties
This script displays the use of all the TimeZoneInfo Properties.
http://www.pshscripts.blogspot.com

get-trycatchfinally.ps1: Shows Try/Catch/Finally using Powershell
This is an MSDN Sample, re-written in PowerShell
http://pshscripts.blogspot.com/2009/01/get-trycatchfinallyps1.html

Get-Type.ps1: Uses GetType to obtain type information
This script creates an object then uses the GetType method to return type info
http://www.pshscripts.blogspot.com

Get-TypeAccelerators.ps1: Gets a list of Type Accelerators in PowerShell and displays them nicely
This script is based on Osin's blog article and uses the TypeAccelerator class to return the type accellerators contained in PowerShell
http://www.pshscripts.blogspot.com

Get-Typetest.PS1: This script displays the value, and type, of an expression.
This script is a rewrite of the second example on this page, The script illustrates how to use the GetType method to return
http://www.pshscripts.blogspot.com

Get-UmAlQuraCalendar.ps1: This script displays details of a UmAlQura Calendar in PowerShell
This script shows the various aspects of this calendar including key properties, fields and selected methods.
http://www.pshscripts.blogspot.com

Get-Uptime.ps1: Demonstrates uptime using WMI
This script used Win32_ComputerSystem to determine how long your system has been running. This is a rewrite/improvement of sample 3 at
http://www.pshscripts.blogspot.com

Get-VirtualMachine.ps1: This script gets the list of Virtual Machines on a Hyper-V Host
This script uses WMI to get the VMs defined on a Hyper-V host then displays them.
http://pshscripts.blogspot.com/2010/09/get-virtualmachineps1.html

Get-VMMemory.ps1: This script displays the virtual Memory assigned to Hyper-V
This script uses The Hyper-V module from Codeplex to first get all the VMs on a given server, then display the memory
http://www.pshscripts.blogspot.com

get-vms.PS1:

http://www.pshscripts.blogspot.com

Get-Win32DiskDriveToDiskPartition.ps1: Shows details from WMI's Win32_DiskDriveToPartition class
This critp shows details of disk drives on a system using several WIn32_ classes
http://www.pshscripts.blogspot.com

get-Win32Share.PS1: Demonstrates WMI and Win32_Share
This script looks at objects retured from Get-WMIObject, and [WMICLASS] and demonstrates the use of a static method (create) and a dynamic or object method (delete).
http://www.pshscripts.blogspot.com

Get-WmiClassDescription.ps1: This script gets and displays the description of a WMI Class.

http://www.pshscripts.blogspot.com

Get-WMILocalTime.ps1: Gets time from WMI and displays it
This script gets Win32_LocalTime and then displays the details.
http://www.pshscripts.blogspot.com

Get-WmiMultiStringValue.ps1: This script Gets and displays a registry
This script uses WMI to get, then display a binary registry Value.
http://www.pshscripts.blogspot.com

Get-WMINameSpace.ps1: This script displays all the namespaces withing a Windows system
This script uses Get-WMIObject to retreive the names of all the namespaces within a system.
http://www.pshscripts.blogspot.com

Get-WmiRegDword.ps1: This script gets a registry value using WMI.
This script uses WMI to get then display a registry value, using the SteRegProv class and the GetDWORDValue static method.
http://www.pshscripts.blogspot.com

Get-WmiRegistryBinaryValue.ps1: This script Gets and displays a registry
This script uses WMI to get, then display a binary registry Value.
http://www.pshscripts.blogspot.com

Get-XMLAttribute.ps1: This script retrieves an attribute from an XML Element
This script first creates an in-memory XML document, then used the HasAttribute and GetAttribute to retrieve an attribute.
http://pshscripts.blogspot.com/2010/06/get-xmlattributeps1.html

Get-XMLFileContents.PS1: This script reads a simple XML file and prints the results
This script is a re-write of an XML C# MSDN Sample.
http://www.pshscripts.blogspot.com

GetUTF8Encoding.ps1: This script implements an MSDN Encoding example in PowerShell
This script creates an encoding plus a unicode string then manipulates it as per the C# sample.
http://www.pshscripts.blogspot.com

helptemplate.PS1: This script
This script
http://www.pshscripts.blogspot.com

Module-AsOjbect.ps1:

http://www.pshscripts.blogspot.com

Move-Directory.ps1:

http://www.pshscripts.blogspot.com

multiply-bignumber.ps1: Multiplies two large int32 values
This script used BigMul method to multiply two large integers
http://www.pshscripts.blogspot.com

New-Credential.ps1: A function to create a credential object from script.
Enables you to create a credential objects from stored details.
http://pshscripts.blogspot.com/2011/03/new-credentialps1.html

New-CustomEventLog.ps1: Creates a new Event Log
This script first checks to see if a log called NewPSHLog exists. if not, it creates it then exits. if the log exists, the script writes an entry ot the log and then
http://www.pshscripts.blogspot.com

New-ExcelWorkbook.ps1: This script creates an Excel workbook using PowerShell
This script demonstrates manipulating Excell with PowerShell and the Excel.Application COM object.
http://pshscripts.blogspot.com/2010/03/new-excelworkbookps1.html

New-Folder.PS1: This script Creates then removes a folder using methods in
This script checks to see if a staticly named folder exists. if not, it creates then removes the folder. The creation/deletion
http://pshscripts.blogspot.com/2009/10/new-folderps1.html

New-MailAddress.ps1: This script demostrates the constructors for system.net.mail.mailaddress
This script uses the three constructors for new objects of the type system.net.mail.mailaddress using PowerShell. These constructors are:
http://www.pshscripts.blogspot.com

New-OU.PS1: This script uses ADSI to add a new OU to a domain.
This script creates a pointer to the domain, then uses the Create method to create a new OU under
http://pshscripts.blogspot.com/2009/08/new-oups1.html

new-task.ps1: This script creates a scheduled task object.

http://pshscripts.blogspot.com/2010/09/new-taskps1.html

new-TestMessage2.ps1: This script creates and sends an email using SMTP.
This script firt creates a mail message, populates it with subject and body, creates an SMTP client that
http://www.pshscripts.blogspot.com

New-WmiRegistryKey.ps1: This script creates a new registry key using WMI.
This script uses WMI to get create a new registry key. This is a re-write of a VB Sample Script
http://www.pshscripts.blogspot.com

New-WmiRegistryValue.ps1: This script creates a new registry Value using WMI.
This script uses WMI to get create a new registry Value. This is a re-write of a VB Sample Script
http://www.pshscripts.blogspot.com

Parse-Int16.ps1: Create and parses an Int16
This script creates an Int16, then parses it using both the parse and tryparse methods
http://www.pshscripts.blogspot.com

Parse-Int32.ps1: Create and parses an Int32
This script creates an Int32, then parses it using both the parse and tryparse methods
http://www.pshscripts.blogspot.com

Parse-Int64.ps1: Create and parses an Int64
This script creates an Int64, then parses it using both the parse and tryparse methods
http://www.pshscripts.blogspot.com

PowerShell Code Repository -
PowerShell Code Repository -
http://poshcode.org/2329

PowerShell Code Repository -
PowerShell Code Repository -
http://poshcode.org/412

PowerShell Code Repository -
PowerShell Code Repository -
http://poshcode.org/569

PowerShell Code Repository -
PowerShell Code Repository -
http://poshcode.org/570

PowerShell Code Repository -
PowerShell Code Repository -
http://poshcode.org/756

PowerShell Code Repository -
PowerShell Code Repository -
http://poshcode.org/757

PowerShell Code Repository -
PowerShell Code Repository -
http://poshcode.org/766

PowerShell Code Repository -
PowerShell Code Repository - Check HBA status
http://poshcode.org/1414

PowerShell Code Repository -
PowerShell Code Repository - ConvertTo-MultiArray
http://poshcode.org/2350

PowerShell Code Repository -
PowerShell Code Repository - Email attachments
http://poshcode.org/1821

PowerShell Code Repository -
PowerShell Code Repository - Get-Packet
http://poshcode.org/765

PowerShell Code Repository -
PowerShell Code Repository - Get-UserWithManyGroups
http://poshcode.org/1387

PowerShell Code Repository -
PowerShell Code Repository - Get-WebFile 1.0
http://poshcode.org/1210

PowerShell Code Repository -
PowerShell Code Repository - Get-WebSite
http://poshcode.org/2500

PowerShell Code Repository -
PowerShell Code Repository - Get/Set Signature (CTP3)
http://poshcode.org/755

PowerShell Code Repository -
PowerShell Code Repository - Help Differ 10000 v0.01
http://poshcode.org/84

PowerShell Code Repository -
PowerShell Code Repository - Import-Instapaper
http://poshcode.org/2589

PowerShell Code Repository -
PowerShell Code Repository - Manual DNS Scavenging
http://poshcode.org/2080

PowerShell Code Repository -
PowerShell Code Repository - New-ComplexPassword
http://poshcode.org/568

PowerShell Code Repository -
PowerShell Code Repository - PS+ImgBurn burn all ISOs
http://poshcode.org/411

PowerShell Code Repository -
PowerShell Code Repository - Remove-XmlNamespace
http://poshcode.org/1493

PowerShell Code Repository -
PowerShell Code Repository - Run-Defrag
http://poshcode.org/653

PowerShell Code Repository -
PowerShell Code Repository - Select-EnumeratedType
http://poshcode.org/2328

PowerShell Code Repository -
PowerShell Code Repository - Set-Computername
http://poshcode.org/2474

PowerShell Code Repository -
PowerShell Code Repository - test.ps1
http://poshcode.org/1923

PowerShell Code Repository -
A module that wraps iscsicli.exe to provide basic iSCSI management capabilities
http://poshcode.org/3066

PowerShell Code Repository -
A print management library
http://poshcode.org/2942

PowerShell Code Repository -
A script to determine if what printerques that are active
http://poshcode.org/515

PowerShell Code Repository -
A set of functions I’ve been working on to allow easy use of Access DBs with PowerShell. A work in progress, but thought they were at a point where others might find them useful.
http://poshcode.org/1278

PowerShell Code Repository -
A set of functions I’ve been working on to allow easy use of Access DBs with PowerShell. A work in progress, but thought they were at a point where others might find them useful.
http://poshcode.org/1279

PowerShell Code Repository -
A simple cached RSS reader. Fetches RSS feeds, displays mutliple feeds merged in date order, opens items in browser.
http://poshcode.org/709

PowerShell Code Repository -
A test that checks for hostname, ip, domain, ping, wsman (with credssp if you wish) remote reg RPC and RDP
http://poshcode.org/3178

PowerShell Code Repository -
Add new smtp address from csv and set new address primary
http://poshcode.org/1712

PowerShell Code Repository -
Add new smtp address from csv and set new address primary
http://poshcode.org/1713

PowerShell Code Repository -
Adds ‘Execute in PowerShell’ options to .ps1 files’ context menu so that you can easily run scripts from Windows Explorer
http://poshcode.org/663

PowerShell Code Repository -
After connecting to your VI server, we get a list of virtual switches on the datacenter and from that we pull out the VHostID that matches the server we passed in at the command-line. Using the VHostID we return a list of networks objects on that server.
http://poshcode.org/2716

PowerShell Code Repository -
Code generates a workable replacement for User Profile details web control on the person.aspx page in SharePoint (allows you to customize the resulting generated code)
http://poshcode.org/1081

PowerShell Code Repository -
Copy Data between Folders including a Progressbar
http://poshcode.org/991

PowerShell Code Repository -
Copy from source to destination and rename existing destination files to .old, if .old exists replace it.
http://poshcode.org/1550

PowerShell Code Repository -
Copy from source to destination and rename existing destination files to .old, if .old exists replace it.
http://poshcode.org/1551

PowerShell Code Repository -
Create new portgroups on a VirtualSwitch
http://poshcode.org/483

PowerShell Code Repository -
CruiseControl.Net build script template with detailed logging via the CCNETListenerFile
http://poshcode.org/3238

PowerShell Code Repository -
Deploying a VM with Static IP in 3 Lines
http://poshcode.org/2010

PowerShell Code Repository -
Detect 32 or 64 bits Windows – regardless of WoW64 – with the PowerShell OSArchitecture function
http://poshcode.org/1450

PowerShell Code Repository -
Enumerate fan speeds on an ESXi / ESX box that is running WSMAN.
http://poshcode.org/805

PowerShell Code Repository -
Fixed minor issue (original: http://poshcode.org/1817) where a cmdlet doesn’t have built-in parameters (e.g Exit-PSSession)
http://poshcode.org/1979

PowerShell Code Repository -
Force $duds to be an array so for small documents exceptions aren’t thrown.
http://poshcode.org/2762

PowerShell Code Repository -
Function that will retrieve all the NFS Exports from a NetApp SAN. Example usage of thee Ontap SDK 3.5 avaliable here http://communities.netapp.com/docs/DOC-1365….
http://poshcode.org/908

PowerShell Code Repository -
Function which crated vDS in vSphere PowerCLI
http://poshcode.org/1988

PowerShell Code Repository -
Functions to encrypt and decrypt strings using the Rijndael symmetric key algorithm
http://poshcode.org/1433

PowerShell Code Repository -
Functions to encrypt and decrypt strings using the Rijndael symmetric key algorithm
http://poshcode.org/1434

PowerShell Code Repository -
Get a screenshot and save it to file
http://poshcode.org/420

PowerShell Code Repository -
Get Local Security Groups and their Members from Remote Computers.
http://poshcode.org/1624

PowerShell Code Repository -
Get mount point volume free space information
http://poshcode.org/1638

PowerShell Code Repository -
Get the groups the current user is a member of
http://poshcode.org/2406

PowerShell Code Repository -
Get VM / Datastore / Host information from VMware clusters and add it to a excel spreadsheet, please note that you will need the VMware powershell plugins and a copy of Excel on the machine running the code.
http://poshcode.org/475

PowerShell Code Repository -
Get-EmptyGroup: Function to find empty groups in Win2000/2003/2003R2/2008 domains.
http://poshcode.org/2023

PowerShell Code Repository -
Get-Help proxy function with URLs for PowerShell Core Help Topics when using the ‘Online’ parameter.
http://poshcode.org/1772

PowerShell Code Repository -
Hack your ESXi welcome screen.
http://poshcode.org/1947

PowerShell Code Repository -
help needed
http://poshcode.org/2304

PowerShell Code Repository -
Here is a simple script that gets the IP address out of a list of servers and shows output on screen
http://poshcode.org/760

PowerShell Code Repository -
Here’s several functions for working with VHD’s in Windows 7. I’ve been working with PowerShell for about a year and this is my first go at a module. I’m a sysadmin and not a developer so some of my solutions are in that mode of thinking. There’s probably .NET ways to accomplish what I did and I’m certainly open to learning if there’s a better way. I’ve found these functions useful and hopefully someone else out there will too. Enjoy.
http://poshcode.org/1448

PowerShell Code Repository -
Heres a script to quickly look up the latest version of the bogon list maintained by Team Cymru from within PowerShell.
http://poshcode.org/1621

PowerShell Code Repository -
I wish I could learn powershell
http://poshcode.org/1226

PowerShell Code Repository -
If you do something more than once, automated it! Well, I certainly check the Leaderboards often enough… so here is a quick script to do just that.
http://poshcode.org/2623

PowerShell Code Repository -
If you have a medium to large size website, you can provide a Sitemap so that search engines intelligently index your site’s content.
http://poshcode.org/831

PowerShell Code Repository -
Import/reload powershell libraries.
http://poshcode.org/668

PowerShell Code Repository -
just a script in progress
http://poshcode.org/1552

PowerShell Code Repository -
just a script in progress file 2
http://poshcode.org/1553

PowerShell Code Repository -
Log SharePoint content deletions in all sites fora specified web application. Motivation was to determine content deletion dates to easily find the right backup for a selective restore.
http://poshcode.org/1798

PowerShell Code Repository -
Monitors VMware Infrastructure’s network configuration for compliance to network isolation policy. Sends alert emails when a virtual machine is connected simultaneously to Intranet and DMZ. Based on VMware VI Toolkit (for Windows). The script assumes a pre-established connection to a Virtual Center server.
http://poshcode.org/943

PowerShell Code Repository -
Monitors VMware Infrastructure’s network configuration for compliance to network isolation policy. Sends alert emails when a vurtual machine is connected simultaneously to Intranet and DMZ. Based on VMware VI Toolkit (for Windows). The script assumes a pre-established connection to a Virtual Center server.
http://poshcode.org/942

PowerShell Code Repository -
Moving a VMware offline VM within the VI without changing its Datastore
http://poshcode.org/812

PowerShell Code Repository -
My old bytes module with some extra functions from SANS all wrapped up into a single module.
http://poshcode.org/1729

PowerShell Code Repository -
physical / logical drive space function – doesn’t work yet
http://poshcode.org/1442

PowerShell Code Repository -
Power Shell 1 script used to grab mailbox stats for a Exchange 2007 server. It saves the information into a .csv file by changing the $OUTFILE variable.
http://poshcode.org/2083

PowerShell Code Repository -
PowerCLI to upgrade guests tools, hardware and record to CSV
http://poshcode.org/1686

PowerShell Code Repository -
PowerShell script for gathering remote PC information
http://poshcode.org/1242

PowerShell Code Repository -
PowerShell script for shrinking a partition, works with Vista and Server 2008.
http://poshcode.org/1163

PowerShell Code Repository -
PowerShell Windows Event Creator
http://poshcode.org/579

PowerShell Code Repository -
Read in an IIS *log file saved in format W3C.
http://poshcode.org/2572

PowerShell Code Repository -
Read in an IIS *log file saved in format W3C.
http://poshcode.org/2573

PowerShell Code Repository -
Redirecting script to both console and file
http://poshcode.org/1196

PowerShell Code Repository -
Redirecting script to both console and file
http://poshcode.org/1197

PowerShell Code Repository -
Redirecting script to both console and file
http://poshcode.org/1198

PowerShell Code Repository -
Restarts applications using a ManagementEventWatcher to watch for an InstanceDeletionEventuse at your own risk ;)
http://poshcode.org/1808

PowerShell Code Repository -
Restarts applications using a ManagementEventWatcher to watch for an InstanceDeletionEventuse at your own risk ;)
http://poshcode.org/1809

PowerShell Code Repository -
Returns the encoding type of the file; uses Byte Order Marker (BOM) if exists else analyzes files contents to determine encoding.
http://poshcode.org/3251

PowerShell Code Repository -
Run PowerShell Script from an ASP.Net web page
http://poshcode.org/402

PowerShell Code Repository -
Runs a FullTextSqlQuery against your local MOSS farm; useful as a quick(!) search query test workbench.
http://poshcode.org/1177

PowerShell Code Repository -
Runs a FullTextSqlQuery against your local MOSS farm; useful as a quick(!) search query test workbench.
http://poshcode.org/1013

PowerShell Code Repository -
Scan the System Event log for all GPRS online activity – PCMCIA, USB, mobile phone, etc. A Balloon Tip will also be issued when the SIM card is about to expire (Needs an icon file to be named ‘exclamation.ico’ for this feature to work).
http://poshcode.org/1415

PowerShell Code Repository -
Script demonstrates automated SQL database restore using SQLPSX SQLServer module that relocates files to default directory and kills all connections to database.
http://poshcode.org/2530

PowerShell Code Repository -
Script to translate Service DACL’s into HRL (Human Readable Language) :)
http://poshcode.org/2232

PowerShell Code Repository -
Scrub the Systray (Notification Area) of icons from terminated/crashed apps.
http://poshcode.org/1786

PowerShell Code Repository -
Search for PowerCLI 4.1 incompatible type references
http://poshcode.org/1996

PowerShell Code Repository -
Selects only objects containing a hostname that is pingable.
http://poshcode.org/601

PowerShell Code Repository -
Show values for enumeration parameter.
http://poshcode.org/1720

PowerShell Code Repository -
The beginnings of a complete rewrite … I’m actually going to recreate the functionality (but not the API) of my HttpRest module based on Hammock … this is just the first function.
http://poshcode.org/2378

PowerShell Code Repository -
The Easy Migration script enables you to manually VMotion and SVMotion virtual machines very quickly and easily. You don’t have to specify the resource pools and it reduces the amount of mouse clicks required. There is also an Undo feature.
http://poshcode.org/2285

PowerShell Code Repository -
The script leverages Powershell’s .NET, COM and ADODB functionality to automate the creation of Excel workbooks pre-populated with data retrieved from a SQL2008R2 database using stored procedures.
http://poshcode.org/3127

PowerShell Code Repository -
This extends the functionality of the SharePoint Search Administration page, producing dashboard-like analysis of your farm’s search crawls. I do not intend to use this script in production, but instead will use it as a starting point to help me build out search crawl health monitoring functionality.
http://poshcode.org/1255

PowerShell Code Repository -
This extends the functionality of the SharePoint Search Administration page, producing dashboard-like analysis of your farm’s search crawls. I do not intend to use this script in production, but instead will use it as a starting point to help me build out search crawl health monitoring functionality.
http://poshcode.org/1256

PowerShell Code Repository -
This extends the functionality of the SharePoint Search Administration page, producing dashboard-like analysis of your farm’s search crawls. I do not intend to use this script in production, but instead will use it as a starting point to help me build out search crawl health monitoring functionality.
http://poshcode.org/1257

PowerShell Code Repository -
this function calculates cpu usage through wmi object
http://poshcode.org/565

PowerShell Code Repository -
This function should be included in the PowerShell ISE profile.ps1 and it will display the start and end times of any scripts started clicking ‘Run Script’ (or ALT+R) in the Add-ons Menu; additionally they will be logged to the Scripts Event Log (which needs creating first) and also to a text log file. This defaults to that created by the Windows Script Monitor Service (available from www.SeaStarDevelopment.Bravehost.com) which normally indicates the full command line used to start each script.
http://poshcode.org/3083

PowerShell Code Repository -
This is the sister script to a bigger project. I will have the full script and uses on my blog vnoob.com soon
http://poshcode.org/2688

PowerShell Code Repository -
This powershell function is a simple one that will kill any currently open connections on the specified server and database. There is no requirements other than PowerShell (obviously!! ;) ).
http://poshcode.org/1282

PowerShell Code Repository -
This script is a re-developed MSDN Sample using PowerShell. It creates an email message then sends it with a BCC.
http://poshcode.org/809

PowerShell Code Repository -
This script will recursively enumerate your entire “server” objects, if they all reside under an OU and get the service tag via WMI for each one of them excluding the VMWare guest servers. This is good if you have a lot of servers and don’t want to spend the time having to go to each one of them to manually get the information.
http://poshcode.org/1122

PowerShell Code Repository -
This script will take a Twitter User’s Screen name and get their RSS feed of posts
http://poshcode.org/2687

PowerShell Code Repository -
This scripts compares the agents that are installed in two zones and gives the agents that are not common.Pretty useful when you have moved agents from one zone to another and now want to verify if all of them have moved.
http://poshcode.org/2357

PowerShell Code Repository -
Update SharePoint Search scopes, useful when revving the Scope definitions.
http://poshcode.org/925

PowerShell Code Repository -
Use SSRS ReportViewer with PowerShell, use parameters and catch navigate event
http://poshcode.org/1977

PowerShell Code Repository -
Use the wide unicode versions (FindFirstFileW and FindNextFileW) to report a directory listing of all files, including those that exceed the MAX_PATH ANSI limitations
http://poshcode.org/401

PowerShell Code Repository - Require-Function
This is a bit similar to Python import module. If a function is present, nothing happens, otherwise Path is searched for a file with the functionname and the extension .ps1 and that file is dot sourced
http://poshcode.org/1617

PowerShell Code Repository - .displayName to .cn
Convert a list of user object displaynames to commonnames. This can be used to manually populate large distribution lists in the “Members” tab of an Active Directory user object.
http://poshcode.org/1027

PowerShell Code Repository - [CTP3] Invoke-ISE
A little starter for ISE using advanced functions
http://poshcode.org/774

PowerShell Code Repository - [CTP3] Invoke-ISE
A little starter for ISE using advanced functions
http://poshcode.org/775

PowerShell Code Repository - 2nd Line Support
A script to ping servers (gets the servers from a text file) & report whether they are online or offline, to check free disks space on all servers and to report on any services which are set to automatic startup but are in a stopped state. It puts all this on a nicely formatted excel sheet, then saves a copy as H:\dailychecks\checks_todaysdate.xls (so if I’m not in I can review it later). It also launches my web browser (my home page is set to my company’s site) so that I can check the site is up, and it imports the exchange modules as I intend eventually to add another sheet to check Exchange services, when I can figure out how to do it.
http://poshcode.org/3069

PowerShell Code Repository - 86.88.239.115
This script runs a variety of checks on server hardware to get status or basic information. It can check memory, perc events, firmware versions, gets service tags, shows summary hardware status, retrieves ESM log, and can auto load the omsa webpage. This is a basic overview of some dell WMI related namespace operations which can be easily extended as needed. To run the script, provide the name of the function you want to call and the remote machine name to check. Note: WMI namespace for Dell is installed with dell openmanage software, v4 and higher.
http://poshcode.org/1815

PowerShell Code Repository - A Compare-Object Bug
Demo for unexpected output of Compare-Object
http://poshcode.org/1069

PowerShell Code Repository - A Process Block
A Process Block
http://poshcode.org/1145

PowerShell Code Repository - ACE.psm1
ACE.psm1 is a module for getting data from Microsoft Office Access (*.mdb and .accdb) files and Microsoft Office Excel (.xls, *.xlsx, and *.xlsb) files.
http://poshcode.org/2630

PowerShell Code Repository - ActiveDirectoryFunctions
A bunch of AD-related functions … I’m only pasting this because I can’t find another Get-ADComputer
http://poshcode.org/3008

PowerShell Code Repository - ActiveDirectoryFunctions
A bunch of AD-related functions … I’m only pasting this because I can’t find another Get-ADComputer or Get-NTAccountName
http://poshcode.org/3009

PowerShell Code Repository - ActiveDirectoryFunctions
A bunch of AD-related functions … I’m only pasting this because I can’t find another Get-ADComputer or Get-NTAccountName
http://poshcode.org/3011

PowerShell Code Repository - AD Exch Users to Groups
PowerShell Code Repository - TruncatePath
http://poshcode.org/662

PowerShell Code Repository - AD Recycle Bin - Restore
PowerShell Code Repository - Sith Remote logon mon
http://poshcode.org/2652

PowerShell Code Repository - AD-GroupMembers_v1
PowerShell Code Repository - Get-InstalledProgram_v3
http://poshcode.org/1738

PowerShell Code Repository - AD-GroupMembers_v2
PowerShell Code Repository - AD-GroupMembers_v1
http://poshcode.org/1739

PowerShell Code Repository - AD-PromiscDetect
PowerShell Code Repository -
http://poshcode.org/1417

PowerShell Code Repository - Add new smtp/set prmary
Add new smtp address from csv and set new address primary
http://poshcode.org/1714

PowerShell Code Repository - Add new smtp/set prmary
Add new smtp address from csv and set new address primary
http://poshcode.org/3193

PowerShell Code Repository - Add new smtp/set prmary
anand@xx.com
http://poshcode.org/2864

PowerShell Code Repository - Add SSL Cert to IIS
How to add a SSL Certificate to IIS with Powershell as well as set the SSL Binding for the site that’s using the certificate.
http://poshcode.org/2684

PowerShell Code Repository - Add Voice to Powershell
Add voice to your Powershell script
http://poshcode.org/2409

PowerShell Code Repository - Add Voice to Powershell
Add voice to your Powershell script
http://poshcode.org/667

PowerShell Code Repository - Add-ADPhoto
This is a self service end user script for updating/adding their Active Directory user account thumbnailphoto attribute. The script resizes the original file to the recommended dimensions and file size.
http://poshcode.org/3092

PowerShell Code Repository - Add-ExcelAddins.ps1
PowerShell Code Repository - Get-ADGroupModifications
http://poshcode.org/1811

PowerShell Code Repository - Add-ExtendedFileProperti
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2128

PowerShell Code Repository - Add-FormatTableIndexPara
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2129

PowerShell Code Repository - Add-Namespace
Imports the types in the specified namespaces in the specified assemblies.
http://poshcode.org/1957

PowerShell Code Repository - Add-Namespace
Imports the types in the specified namespaces in the specified assemblies.
http://poshcode.org/1958

PowerShell Code Repository - Add-Namespace
Version 1.0
http://poshcode.org/1964

PowerShell Code Repository - Add-Namespace v1.1
Version 1.1
http://poshcode.org/1972

PowerShell Code Repository - Add-NetworkPrinter.ps1
Windows PowerShell script to map a network printer based on Active Directory group membership.
http://poshcode.org/1494

PowerShell Code Repository - Add-ObjectCollector.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2130

PowerShell Code Repository - add-OLPublicFolder
Create Public Folders with Outlook and specify name, optional folder type and parent folder.
http://poshcode.org/450

PowerShell Code Repository - Add-PrinterDriver
PowerShell Code Repository - Get-MACFromIP
http://poshcode.org/2764

PowerShell Code Repository - Add-RelativePathCapture.
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2131

PowerShell Code Repository - Add-SharePointLibraryFil
Add-SharePointLibraryFile – Uploads a file to a SharePoint library via HTTP PUT.
http://poshcode.org/2784

PowerShell Code Repository - Add-Slide
Snipped of my powerpoint movie creator. This is not general purpose code only a sample for entertainment. Scrubbed to take out some meaningful strings, I’ll try to post something better another time.
http://poshcode.org/1899

PowerShell Code Repository - Add-SqlTable
Creates a SQL Server table from a DataTable using SMO.
http://poshcode.org/3088

PowerShell Code Repository - Add-SqlTable
Creates a SQL Server table from a DataTable using SMO.
http://poshcode.org/3133

PowerShell Code Repository - Add-SqlTable
Creates a SQL Server table from a DataTable using SMO.
http://poshcode.org/2277

PowerShell Code Repository - Add-SqlTable
Creates a SQL Server table from a DataTable using SMO.
http://poshcode.org/2120

PowerShell Code Repository - Add-SqlTable
Creates a SQL Server table from a DataTable using SMO.
http://poshcode.org/2654

PowerShell Code Repository - Add-TnsAdminEntry
Since there is no Oracle command line tool to create the tnsnames.ora file, this script has been created to fill that void.
http://poshcode.org/1602

PowerShell Code Repository - Add-UniqueEndings
A function to take an array of strings and force all of them to be unique by adding _<number> tails to duplicates.
http://poshcode.org/710

PowerShell Code Repository - Added/Deleted AD Objects
I earlier converted a VBScript written by Chrissy LeMaire to Powershell but later wanted to add in some code to include Active directory objects that have been deleted.
http://poshcode.org/141

PowerShell Code Repository - Added/Deleted AD Objects
I earlier converted a VBScript written by Chrissy LeMaire to Powershell but later wanted to add in some code to include Active directory objects that have been deleted.
http://poshcode.org/140

PowerShell Code Repository - Added/Deleted AD Objects
I earlier converted a VBScript written by Chrissy LeMaire to Powershell but later wanted to add in some code to include Active directory objects that have been deleted.
http://poshcode.org/142

PowerShell Code Repository - AddTo-HostsFile
Add entries to the Windows hosts file. The function checks first to see if the entry exists in the file. If the entry does not exist, the function adds the entry and verifies it was added. Please feel free to add improvements.
http://poshcode.org/2816

PowerShell Code Repository - AddTo-HostsFile
Add entries to the Windows hosts file. The function checks first to see if the entry exists in the file. If the entry does not exist, the function adds the entry and verifies it was added. Please feel free to add improvements. The function Utility.Time-Stamp is another helper function I use to denote the current Time. It can be found here: http://poshcode.org/2795.
http://poshcode.org/2817

PowerShell Code Repository - adv2
PowerShell Code Repository - Import-NmapXML
http://poshcode.org/2601

PowerShell Code Repository - Aero Glass PowerShell
PowerShell Code Repository - Updated CloneVM from CSV
http://poshcode.org/2052

PowerShell Code Repository - after
The Get-Computer cmdlet retrieves basic information such as computer name, domain or workgroup name, and whether or not the computer is on a workgroup or a domain for the local computer without using WMI. It uses Netapi32.dll to get the domain/workgroup name and .Net for the computername.
http://poshcode.org/1636

PowerShell Code Repository - AJAX Scrape
Scrape AJAX driven websites example using Watin and HtmlAgilityPack.
http://poshcode.org/3144

PowerShell Code Repository - Alias latest msbuild
This is just a little trick I use to find InstallUtil and MsBuild, and make sure I’m using the latest version of them.
http://poshcode.org/896

PowerShell Code Repository - All Exchange 2003 Server
Gathers all Exchange 2003 server objects from Active Directory Configuration container using ADSI and LDAP.
http://poshcode.org/1021

PowerShell Code Repository - Am I a purist?
PS1 script to launch gpupdate on all computers in domain, without some stupid QAD cmdlets, just pure PS1 and WMI
http://poshcode.org/1141

PowerShell Code Repository - An example for you
This is just to show how to do it
http://poshcode.org/630

PowerShell Code Repository - AnalizeScript.ps1
AnalizeScript opens a dialog box for user selection; checks that input is a powershell script; parses and agrigates the script components.
http://poshcode.org/2576

PowerShell Code Repository - AnalyzeScript.ps1
AnalyzeScript opens a dialog box for user selection; checks that input is a powershell script; parses and agrigates the script components.
http://poshcode.org/2577

PowerShell Code Repository - Apache Log Browser Count
A PowerShell implementation of Commandline Fu Episode 38, I skipped the first step of looking only at posts to login just because I don’t have anything like that in my logs :)
http://poshcode.org/1119

PowerShell Code Repository - app memory deltas
PowerShell Code Repository - HttpRest 1.0.1
http://poshcode.org/788

PowerShell Code Repository - Appscanner v0.10
File Access scanner for ACL and Applocker policy. Scan a particular file/folder for write/execute access for ACL and Applocker based on the rights of a supplied user. Can be used to test the success of an applocker policy. Or to simulate what access a particular user would have. Scripts will also show direct membership and inherited membership for a user. Output is a table formatted in html. The following user types can be used; domain,local and domain cached. The domain cached can only be used when you are logged in as the cached user. Access Denied Exception errors may be produced when attempting to scan a folder that the particular user doesnt have access to( Errors are not fatal and will not effect the script outcome).
http://poshcode.org/3102

PowerShell Code Repository - archive
PowerShell Code Repository - Get-MX
http://poshcode.org/113

PowerShell Code Repository - Array-Randomizer.ps1
Originally written to regenerate the init.txt file for server based Halo 1 PC multiplayer games. It may however be easily edited and used to randomize any array or group of arrays.
http://poshcode.org/2564

PowerShell Code Repository - AS function
AS function. simple wrapper for generating the hashtables that select-object uses
http://poshcode.org/1019

PowerShell Code Repository - ASP Security Flaw Detect
PowerShell Code Repository - BufferBox 3.0
http://poshcode.org/2239

PowerShell Code Repository - Asp.net-Using httpConext
ASP.NET – Using httpContext
http://poshcode.org/2441

PowerShell Code Repository - Asp.net-Using httpConext
ASP.NET – Using httpContext
http://poshcode.org/2442

PowerShell Code Repository - Asp.net-Using httpConext
ASP.NET – Using httpContext
http://poshcode.org/2443

PowerShell Code Repository - ASPX Mailbox (1 of 6)
PowerShell Code Repository - update-powerpackcolumns
http://poshcode.org/505

PowerShell Code Repository - ASPX Mailbox (2 of 6)
PowerShell Code Repository - ASPX Mailbox (1 of 6)
http://poshcode.org/506

PowerShell Code Repository - ASPX Mailbox (3 of 6)
PowerShell Code Repository - ASPX Mailbox (2 of 6)
http://poshcode.org/507

PowerShell Code Repository - ASPX Mailbox (4 of 6)
PowerShell Code Repository - ASPX Mailbox (3 of 6)
http://poshcode.org/508

PowerShell Code Repository - ASPX Mailbox (5 of 6)
PowerShell Code Repository - ASPX Mailbox (4 of 6)
http://poshcode.org/509

PowerShell Code Repository - ASPX Mailbox (6 of 6)
PowerShell Code Repository - ASPX Mailbox (5 of 6)
http://poshcode.org/510

PowerShell Code Repository - Assert
A simple “assert” for testing
http://poshcode.org/1942

PowerShell Code Repository - Async Sockets
Derived from Oisin’s New-ScriptBlockCallback, this is an example of how to do asynchronous sockets in PowerShell. The two functions below enable simple “expect” scripting of socket communications.
http://poshcode.org/2454

PowerShell Code Repository - Async SQL Backup
PowerShell Code Repository - Get-User
http://poshcode.org/2787

PowerShell Code Repository - AsyncCallbacks in .NET
Allows running ScriptBlocks via .NET async callbacks. Internally this is managed by converting .NET async callbacks into .NET events. This enables PowerShell 2.0 to run ScriptBlocks indirectly through Register-ObjectEvent.
http://poshcode.org/1382

PowerShell Code Repository - Atlassian Jira Interface
This is a set of Powershell functions to interface with the Atlassian Jira bug/issue tracking software using a WSDL interface.
http://poshcode.org/751

PowerShell Code Repository - Audit iPhone Users
This script is intended to use IIS logs to audit OWA logs for syncing of mail from an iPhone. In our environment this is an unauthorized device and needs to be audited. This script is not perfect, nor the prettiest thing in the world but it works. IIS logging must be on for this to work. email the results to yourself in $To varible. Have Fun!
http://poshcode.org/1280

PowerShell Code Repository - Audit iPhone/Palm Users
This script is intended to use IIS logs to audit OWA/Activesync logs for syncing of mail from an iPhone or a palm device. This script is not perfect, nor the prettiest thing in the world but it works. It could be further added to parse for windows mobile devices. If it was really slick it would grab all the unique values in the DeviceType= portion and then automatically include all mobile types. You can email the results to yourself in $To varible.
http://poshcode.org/1685

PowerShell Code Repository - Audit NTFS on Shares
Audit Folders/Shares and Export to Excel
http://poshcode.org/1721

PowerShell Code Repository - Audit NTFS on Shares
Audit Folders/Shares and Export to Excel
http://poshcode.org/2125

PowerShell Code Repository - Audit Script
PowerShell Code Repository - Lab Manager Demo
http://poshcode.org/794

PowerShell Code Repository - Audit Script
Audit script by Alan Renouf, Usage: Audit.ps1 ‘path’ path needs to be in single quotes. The file needs to be a plain text list of computers to be audited one on each line. Output will be a htm file for each server with detailed system information. Any comments please contact me.
http://poshcode.org/639

PowerShell Code Repository - Audit Script
Ok, i guess i have too much code for the paste bin, please can someone remove this !
http://poshcode.org/641

PowerShell Code Repository - Audit Script
Thanks but that messed it up, I have fixed it now.
http://poshcode.org/795

PowerShell Code Repository - Auto ISE Preferences
You can just copy paste this entire script to your PowerShell ISE profile script. This script will take care of saving your ISE preferences such as color schemes, font styles, etc. You can change any of these values and this script will take care of storing and re-storing those preferences everytime you open ISE.
http://poshcode.org/2230

PowerShell Code Repository - AutoArchive
AutoArchive Script
http://poshcode.org/2563

PowerShell Code Repository - Autoload (beta 2)
The Autoload functionality of the Korn shell — Now Module compatible.
http://poshcode.org/1828

PowerShell Code Repository - Autoload (beta 3)
The Autoload functionality of the Korn shell — Now Module compatible.
http://poshcode.org/1829

PowerShell Code Repository - Autoload (beta 4)
Autoload function like the Korn shell — can inject functions to modules.
http://poshcode.org/1830

PowerShell Code Repository - Autoload (beta 5)
Autoload function like the Korn shell — can inject functions to modules.
http://poshcode.org/1831

PowerShell Code Repository - Autoload (beta 6)
Autoload function like the Korn shell — can inject functions to modules.
http://poshcode.org/1860

PowerShell Code Repository - Autoload (beta 8)
Autoload function like the Korn shell — can inject functions to modules.
http://poshcode.org/2243

PowerShell Code Repository - Autoload (beta)
My first attempt at the Autoload functionality of the Korn shell
http://poshcode.org/1777

PowerShell Code Repository - Autoload Module
Autoload function like the Korn shell — can inject functions to modules.
http://poshcode.org/2312

PowerShell Code Repository - Autoload Module
Autoload function like the Korn shell — can inject functions to modules.
http://poshcode.org/2495

PowerShell Code Repository - Autoload Module 1.2
Autoload function like the Korn shell — can inject functions to modules.
http://poshcode.org/3173

PowerShell Code Repository - Automount new PSDrives
This only works PowerShell v2.0 CTP2, and you’ll need to save it as AutoMount.psm1 in a directory under your documents folder like so (vista example):
http://poshcode.org/525

PowerShell Code Repository - Ayth
Script which reads in a csv containing the Identity parameter of a group of Public Folders, and if they are not mail enabled it will mail enable them. Thanks to Shay and Karl for helping get around confirmation on each action.
http://poshcode.org/589

PowerShell Code Repository - Ayth
Script which reads in a csv containing the Identity parameter of a group of Public Folders, and if they are not mail enabled it will mail enable them. Thanks to Shay and Karl for helping get around confirmation on each action.
http://poshcode.org/590

PowerShell Code Repository - Backup AdventureWorks
PowerShell Code Repository - Set-Computername
http://poshcode.org/1663

PowerShell Code Repository - Backup all ESXi
Back up all your ESXi hosts to a local directory.
http://poshcode.org/1557

PowerShell Code Repository - Backup all ESXi
Back up all your ESXi hosts to a local directory.
http://poshcode.org/1558

PowerShell Code Repository - Backup all ESXi
Back up all your ESXi hosts to a local directory.
http://poshcode.org/1559

PowerShell Code Repository - Backup-EventLogs
PowerShell Code Repository - Set-FSMORoleOwner
http://poshcode.org/2729

PowerShell Code Repository - Backup-EventLogs
This function backs up eventlogs on a remote computer, where the recordcount for a given log is greater than zero.
http://poshcode.org/2725

PowerShell Code Repository - Backup-ModifiedGPOs
PowerShell Code Repository - Set-Computername
http://poshcode.org/1914

PowerShell Code Repository - Backup-ModifiedGPOs.ps1
PowerShell Code Repository - Get-Netstat 1,2
http://poshcode.org/2400

PowerShell Code Repository - Backup-ModifiedGPOs.ps1
PowerShell Code Repository - Powershell iTunes
http://poshcode.org/2386

PowerShell Code Repository - Backup-ModifiedGPOsv1.1
PowerShell Code Repository - Backup-ModifiedGPOsv1.1
http://poshcode.org/2369

PowerShell Code Repository - Backup-ModifiedGPOsv1.1
PowerShell Code Repository - Split-String
http://poshcode.org/2368

PowerShell Code Repository - Balance-Datastores.ps1
Requires mGet-DatastoreList.ps1
http://poshcode.org/2449

PowerShell Code Repository - Bash Aliases
This is an old script I had lying around. It has NOT been updated in a long time :)
http://poshcode.org/2330

PowerShell Code Repository - Begin Block
A Begin Block
http://poshcode.org/1144

PowerShell Code Repository - Beginner event 10
PowerShell Code Repository - Beginner event 10
http://poshcode.org/1175

PowerShell Code Repository - Beginner event 10
PowerShell Code Repository - Beginner event 10
http://poshcode.org/1176

PowerShell Code Repository - Beginner event 10
PowerShell Code Repository - Speech Recognition
http://poshcode.org/1174

PowerShell Code Repository - Binary Clock
I’ve gone mad, I’ve gone crazy! in just moments you TOO can own you very own pointless Binary clock :)
http://poshcode.org/2833

PowerShell Code Repository - Binary Clock
This is a binary clock written in PowerShell that works just like you would expect from a binary clock. Complete with options to show the date, “human readable” time and an option to show binary values. See my blog post for more information. http://learn-powershell.net/2011/07/05/building-a-binary-clock-with-powershell/
http://poshcode.org/2770

PowerShell Code Repository - BinaryClock V2.0
PowerShell Code Repository - AddTo-HostsFile
http://poshcode.org/2818

PowerShell Code Repository - BinaryClock V2.0
PowerShell Code Repository - BinaryClock V2.0
http://poshcode.org/2819

PowerShell Code Repository - Blow up ESXi
Blow up your ESXi host. For entertainment purposes only.
http://poshcode.org/1554

PowerShell Code Repository - Boots & Background Jobs
This sample was put together with Jaykul’s help and bits and pieces were taken from the Sample.ps1 distributed with PowerBoots
http://poshcode.org/2307

PowerShell Code Repository - Boots & Background Jobs
This sample was put together with Jaykul’s help and bits and pieces were taken from the Sample.ps1 distributed with PowerBoots. It requires the current changeset of PowerBoots. Not the 0.2 beta.
http://poshcode.org/2315

PowerShell Code Repository - Boots DataGrid Binding
Bind DataGrid to an object array using Powerboots
http://poshcode.org/2257

PowerShell Code Repository - Boots DataGrid Binding
Bind DataGrid to an object array using Powerboots
http://poshcode.org/2259

PowerShell Code Repository - Boots Hierarchical Bind
Example of how to use Treeview Hierarchical databind using Boots. It took me a while to figure this out. Thanks JasonMArcher for your help!
http://poshcode.org/2371

PowerShell Code Repository - Boots UI Uhtpdate Sample
This sample was put together with Jaykul’s help and bits and pieces were taken from the Sample.ps1 distributed with PowerBoots
http://poshcode.org/2306

PowerShell Code Repository - Boots UI Update Sample
This sample was put together with Jaykul’s help and bits and pieces were taken from the Sample.ps1 distributed with PowerBoots
http://poshcode.org/2305

PowerShell Code Repository - BridgeBot 1.0
The source to PoshBot – who bridges IRC and Jabber
http://poshcode.org/119

PowerShell Code Repository - BridgeBot 1.1
The source to PoshBot – who bridges IRC and Jabber
http://poshcode.org/136

PowerShell Code Repository - BridgeBot 1.2
The source to PowerBot – who bridges IRC and Jabber on #PowerShell
http://poshcode.org/138

PowerShell Code Repository - BufferBox 3.0
Some functions for drawing mini-buffers. Please try the two demo functions included!
http://poshcode.org/2238

PowerShell Code Repository - BufferBox 3.1
Some functions for drawing mini-buffers. Please try the two Test functions included: Test-DisplayBox and Test-BufferBox
http://poshcode.org/2586

PowerShell Code Repository - BufferBox 3.5
Added a useful Show-ConsoleMenu (which is also usable outside the buffer box), but this one is coded for 10 items or less.
http://poshcode.org/2894

PowerShell Code Repository - BufferBox 3.6
Added a useful Show-ConsoleMenu (which is also usable outside the buffer box), but this one is coded for 10 items or less.
http://poshcode.org/2898

PowerShell Code Repository - BufferBox 3.6
This is a collection of functions I use when I want to draw boxes on the console. There are two demo functions (both with the verb Test), and in this release I’ve added a useful Show-ConsoleMenu (which is also usable outside the buffer box) which I’ve now made work properly with more than 10 items (and with string input) and even enhanced it to support custom formatting, multiple selection, and prompt text.
http://poshcode.org/2899

PowerShell Code Repository - Build-TFSProjects
moved source from Poshcomm http://powershellcommunity.org/Forums/tabid/54/aff/1/aft/3804/afv/topic/afpgj/2/Default.aspx#4926 to accelerate development, and because I was sick of fighting the WYSIWYG editor…
http://poshcode.org/1056

PowerShell Code Repository - Build-TFSProjects
moved source from Poshcomm http://powershellcommunity.org/Forums/tabid/54/aff/1/aft/3804/afv/topic/afpgj/2/Default.aspx#4926 to accelerate development, and because I was sick of fighting the WYSIWYG editor…
http://poshcode.org/1059

PowerShell Code Repository - Build-TFSProjects
moved source from Poshcomm http://powershellcommunity.org/Forums/tabid/54/aff/1/aft/3804/afv/topic/afpgj/2/Default.aspx#4926 to accelerate development, and because I was sick of fighting the WYSIWYG editor…
http://poshcode.org/1065

PowerShell Code Repository - Bulk Change AD Passwords
PowerShell Code Repository - Findup
http://poshcode.org/2394

PowerShell Code Repository - Bytes
My old bytes module with some extra functions from SANS all wrapped up into a single module.
http://poshcode.org/1730

PowerShell Code Repository - Calculate HA Capaicty
Calculate the HA capacity of a VMware HA Cluster.
http://poshcode.org/492

PowerShell Code Repository - Call WSPBuilder
Small snippet of my build script, I think this is a good template to use when calling the command-line WSPBuilder.
http://poshcode.org/1365

PowerShell Code Repository - Call WSPBuilder
Small snippet of my build script, I think this is a good template to use when calling the command-line WSPBuilder.
http://poshcode.org/1366

PowerShell Code Repository - callias
PowerShell Code Repository - Get-WebSite
http://poshcode.org/2505

PowerShell Code Repository - cd command with history
I got this script originally from Jim Truher and have tweaked it a bit over time (nothing major). Basically it replaces your CD function with one that keeps a history.
http://poshcode.org/697

PowerShell Code Repository - CD.psm1
Very simple module that’s add ‘cd -’ functionality. It basically keeps track of folders you have visited (using prompt function) and make those available in Set-PrevLocation function. Alias cd- make it (almost) feel like original. You can add argument [int] that will limit list’s length. If you have other modules that modify prompt: keep in mind that it will restore prompt function on removal but will use state that existed when it was imported… So any changes done in between will be probably lost.
http://poshcode.org/2489

PowerShell Code Repository - CenturionPortal
PowerShell Code Repository - New-ISEScript.ps1
http://poshcode.org/2102

PowerShell Code Repository - CertMgmt pack
these two functions provide basic local certificate store management features.
http://poshcode.org/1360

PowerShell Code Repository - CertMgmt pack
these two functions provide basic local certificate store management features.
http://poshcode.org/1361

PowerShell Code Repository - CertMgmt pack
these two functions provide basic local certificate store management features.
http://poshcode.org/1362

PowerShell Code Repository - CertMgmt pack
these two functions provide basic local certificate store management features.
http://poshcode.org/1357

PowerShell Code Repository - CertMgmt pack
these two functions provide basic local certificate store management features.
http://poshcode.org/1358

PowerShell Code Repository - CertMgmt pack
these two functions provide basic local certificate store management features.
http://poshcode.org/1359

PowerShell Code Repository - Change-ServicePassword
Changes the Service Account Username and/or Password on Given Service
http://poshcode.org/92

PowerShell Code Repository - Change-ServicePassword
Changes the Service Account Username and/or Password on Given Service
http://poshcode.org/91

PowerShell Code Repository - Chassis Type
Ever wonder what kind of chassis your computer thinks it’s running on? Have a need to know if you’re RDP’d into a physical or virtual system? This script can probably answer the question for you. This script was adapted to PowerShell from a VBScript I’ve had for a while. It uses WMI to determine the Chassis type and translates the reported numerical code into decipherable text.
http://poshcode.org/2941

PowerShell Code Repository - Chassis Type
Ever wonder what kind of chassis your computer thinks it’s running on? Have a need to know if you’re RDP’d into a physical or virtual system? This script can probably answer the question for you. This script was adapted to PowerShell from a VBScript I’ve had for a while. It uses WMI to determine the Chassis type and translates the reported numerical code into decipherable text. – Thought i would rewrite this code using the switch function rather than elseif. Easier to read and less code to write.
http://poshcode.org/2996

PowerShell Code Repository - Check Chromium Build
PowerShell Code Repository -
http://poshcode.org/840

PowerShell Code Repository - Check Exchange2010 queue
PowerShell Code Repository - Get-UIChildItem
http://poshcode.org/2674

PowerShell Code Repository - Check HBA status
VMWARE In a Fibre Channel enviroment i generate an HTML report of LUN visibility. FeedBack welcome
http://poshcode.org/1412

PowerShell Code Repository - Check latest BIOS Rev
This script is pretty simple, it connects to a remote computer and grabs the BIOS class. It then connects to the Dell support page for the remote computer’s ServiceTag. If the computer is a Dell, it grabs the BIOS revision listed on the page. The inspiration came from reading the Scripting Guy blog about comments. (http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/16/add-excellent-comments-to-your-powershell-script.aspx)
http://poshcode.org/2677

PowerShell Code Repository - Check latest BIOS Rev
This script is pretty simple, it connects to a remote computer and grabs the BIOS class. It then connects to the Dell support page for the remote computer’s ServiceTag. If the computer is a Dell, it grabs the BIOS revision listed on the page. The inspiration came from reading the Scripting Guy blog about comments. (http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/16/add-excellent-comments-to-your-powershell-script.aspx)
http://poshcode.org/2678

PowerShell Code Repository - Check latest BIOS Rev
This script is pretty simple, it connects to a remote computer and grabs the BIOS class. It then connects to the Dell support page for the remote computer’s ServiceTag. If the computer is a Dell, it grabs the BIOS revision listed on the page. The inspiration came from reading the Scripting Guy blog about comments. (http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/16/add-excellent-comments-to-your-powershell-script.aspx)
http://poshcode.org/2679

PowerShell Code Repository - Check Modules path.
Today I had spent a lot of time troubleshooting one module. After few checks I realized that it was simple typo that prevented PS from seeing my module in correct way. So here is function for you to avoid same problems… ;)
http://poshcode.org/3073

PowerShell Code Repository - Check Modules path.
Today I had spent a lot of time troubleshooting one module. After few checks I realized that it was simple typo that prevented PS from seeing my module in correct way. So here is function for you to avoid same problems… ;)
http://poshcode.org/3074

PowerShell Code Repository - Check Modules path.
Today I had spent a lot of time troubleshooting one module. After few checks I realized that it was simple typo that prevented PS from seeing my module in correct way. So here is function for you to avoid same problems… ;)
http://poshcode.org/1816

PowerShell Code Repository - Check Server Health
Finds meaning of given abbreviation
http://poshcode.org/820

PowerShell Code Repository - Check Service
Use to check a service on a remote server and if it is not running, start it and send an email to warn. Added a ping request to make sure the server is up before checking the service.
http://poshcode.org/1228

PowerShell Code Repository - Check Service
Use to check a service on a remote server and if it is not running, start it and send an email to warn. Added a ping request to make sure the server is up before checking the service.
http://poshcode.org/1229

PowerShell Code Repository - Check-ClusterPatches
Compares hotfix patch levels across Microsoft Cluster Nodes.
http://poshcode.org/816

PowerShell Code Repository - check-disabledstatus
This script reads a list of usernames from a text file and outputs (to the screen) a comma-delimited list of usernames with a status value (OK, DISABLED or NOTFOUND). This uses ADSI.
http://poshcode.org/1066

PowerShell Code Repository - Check-LotusHealth
Check-LotusHealth is a multi server, multi port ping script. Originally designed to handle the port checks for a client’s entire Lotus Notes environment, I’ve removed the actual servers and replaced them with placeholders. You’ll need to adjust this to your environment.
http://poshcode.org/723

PowerShell Code Repository - check-nsca.ps1
Sends with nsca (Nagios Client) all Status Informations over VMs
http://poshcode.org/1630

PowerShell Code Repository - chkhash.ps1
ChkHash.ps1 will compute SHA512 hashes of specified files and save them in the specified .xml database, subsequently chkhash.ps1 will check if the SHA512 hash of the file has changed. chkhash.ps1 has the ability to add to it’s xml databases, so you can run it against your d:\ drive, add files to d:\data, then only add d:\data files to the xml database without having to re-add your whole drive’s files. Use “chkhash.ps1 -h” for help and usage.
http://poshcode.org/2824

PowerShell Code Repository - ciao
A VI toolkit script to update all VM Guests on the selected hosts
http://poshcode.org/3041

PowerShell Code Repository - Cisco-Inventory.ps1
As written it will poll Cisco routers and switches and if the snmp OID’s match it will pull out model, serial, and IOS version. The resulting spreadsheet contains IP, host name, serial, model, IOS version, and rack location. The script is heavily documented internally. See the script for more info.
http://poshcode.org/2550

PowerShell Code Repository - Citrix License Info
This is a script I wrote to pull information from the Citrix License Web console by dumpingthe contents and searching for the area needed. A better way of doing this is by using the BSonPoSH WMI script but unfortunatly there is an issue with the WMI classes on some installations as described on my blog here….http://teckinfo.blogspot.com/
http://poshcode.org/631

PowerShell Code Repository - Citrix-Functions.ps1
A collection of Powershell functions for Citrix Management
http://poshcode.org/90

PowerShell Code Repository - Claimtypes, ADFS SP2010
Here’s how you create a claim type mapping (for Claims based authentication) for Email and Role when using ADFS 2.0 and SharePoint 2010.
http://poshcode.org/2034

PowerShell Code Repository - COE_IMAGE
PowerShell Code Repository - Prompt Replacement
http://poshcode.org/2507

PowerShell Code Repository - Colorize Subversion SVN
PowerShell Code Repository - Am I a purist?
http://poshcode.org/1142

PowerShell Code Repository - Colorize Subversion SVN
PowerShell Code Repository - Colorize Subversion SVN
http://poshcode.org/1143

PowerShell Code Repository - Colorize Subversion SVN
PowerShell Code Repository - Get # of Web Connections
http://poshcode.org/1148

PowerShell Code Repository - Colorize Subversion SVN
PowerShell Code Repository - Get-DirSize
http://poshcode.org/1186

PowerShell Code Repository - Colorize Subversion SVN
PowerShell Code Repository - num
http://poshcode.org/688

PowerShell Code Repository - Colorize Subversion SVN
PowerShell Code Repository - POC $psnull
http://poshcode.org/894

PowerShell Code Repository - CommandTranscript
PowerShell Code Repository - CommandTranscript
http://poshcode.org/2292

PowerShell Code Repository - CommandTranscript
PowerShell Code Repository - Xml Module 4.6
http://poshcode.org/2291

PowerShell Code Repository - ComObjects.Types
This is a .ps1xml file for use with Update-TypeData … it adds methods onto the COM object for GetProperty (including support for parametrized properties), SetProperty, and InvokeMethod.
http://poshcode.org/1998

PowerShell Code Repository - Compare 2 foldertrees
a small script to find changed files between 2 to foldertrees.
http://poshcode.org/1826

PowerShell Code Repository - Compare 2 foldertrees
a small script to find changed files between 2 to foldertrees. Added call to diffmerge (from VS 2008)
http://poshcode.org/1827

PowerShell Code Repository - Compare Reg Keys
Two functions Get-AllRegkey and Compare-AllRegKey which will recursivly retrieve a key’s properties and subkeys, and their properties and subkeys, as an array of objects, across multiple computers. The Compare-AllRegKey function uses Compare-Object to compare the arrays returned from each computer to an array returned from a specified reference computer.
http://poshcode.org/2850

PowerShell Code Repository - Compare SQL Tables II
Another version to compare 2 SQL Tables. Uses code to exclude specified columns from SELECT *
http://poshcode.org/2390

PowerShell Code Repository - Compare Table & DataRow
Compare 2 system.Data.DataSet each containing 1 table
http://poshcode.org/2387

PowerShell Code Repository - Compare Table & DataRow
Compare 2 system.Data.DataSet each containing 1 table
http://poshcode.org/2388

PowerShell Code Repository - Compare Table & DataRow
Compare 2 system.Data.DataSet each containing 1 table
http://poshcode.org/2389

PowerShell Code Repository - Compare-AD
PowerShell Code Repository - List Object Discoveries
http://poshcode.org/638

PowerShell Code Repository - Compare-ADUserGroups
This function returns a list of group names that are not in common between two users in Active Directory. Requires Quest.ActiveRoles.ADManagement snapin.
http://poshcode.org/719

PowerShell Code Repository - Compare-Agents
This scripts compares the agents that are installed in two zones and gives the agents that are not common.Pretty useful when you have moved agents from one zone to another and now want to verify if all of them have moved.
http://poshcode.org/2358

PowerShell Code Repository - Compare-Agents
This scripts compares the agents that are installed in two zones and gives the agents that are not common.Pretty useful when you have moved agents from one zone to another and now want to verify if all of them have moved.
http://poshcode.org/2359

PowerShell Code Repository - Compare-DatabaseColumns
This script compares the column structure between two databases with tables of the same name. Table names to compare can be passed in as an array or piped in either as string values, or as a property of Name or TableName.
http://poshcode.org/974

PowerShell Code Repository - Compare-DatabaseSchema
Compare the tables (and columns with the -Column parameter) in two databases, checking for differences.
http://poshcode.org/865

PowerShell Code Repository - Compare-DellUpdates
This script will compare the bios/firmware/driver/OMSA versions of a remote server against the Dell SUU update package. To use it, get a copy of the latest Dell SUU. Inside the SUU file structure, look for catalog.xml in the repository. This file will be read to determine the latest versions, and compare it to the currently installed versions on the remote machine (reporting any differences). The output can be used to easily push updates as well, since the update file name is returned in the results.
http://poshcode.org/3200

PowerShell Code Repository - Compare-DellUpdates
This script will compare the bios/firmware/driver/OMSA versions of a remote server against the Dell SUU update package. To use it, get a copy of the latest Dell SUU. Inside the SUU file structure, look for catalog.xml in the repository. This file will be read to determine the latest versions, and compare it to the currently installed versions on the remote machine (reporting any differences). The output can be used to easily push updates as well, since the update file name is returned in the results.
http://poshcode.org/3214

PowerShell Code Repository - Compare-InstalledHotfix
Takes two servers and provides the delta of installed hotfixes between them
http://poshcode.org/1296

PowerShell Code Repository - Compare-Property.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2132

PowerShell Code Repository - Compare-TwitterNames.ps1
This script will compare the names of the people you follow on Twitter and the people following you. It returns a comparison object consisting of the Twitter name of a subject and a side indicator – “<=” means that you are following a subject who is not following you, “=>” means that you are followed by someone who you are not following.
http://poshcode.org/499

PowerShell Code Repository - Compare-TwitterNames.ps1
This script will compare the names of the people you follow on Twitter and the people following you. It returns a comparison object consisting of the Twitter name of a subject and a side indicator – “<=” means that you are following a subject who is not following you, “=>” means that you are followed by someone who you are not following.
http://poshcode.org/500

PowerShell Code Repository - Compare-TwitterNames.ps1
This script will compare the names of the people you follow on Twitter and the people following you. It returns a comparison object consisting of the Twitter name of a subject and a side indicator – “<=” means that you are following a subject who is not following you, “=>” means that you are followed by someone who you are not following.
http://poshcode.org/871

PowerShell Code Repository - Compile-Help
This script uses the text and XML PowerShell help files to generate HTML help for all PowerShell Cmdlets, PSProviders, and “about” topics. the help topics are compiled into a .chm file using HTML Help Workshop.
http://poshcode.org/99

PowerShell Code Repository - Compile-Help
This script uses the text and XML PowerShell help files to generate HTML help for all PowerShell Cmdlets, PSProviders, and “about” topics. the help topics are compiled into a .chm file using HTML Help Workshop.
http://poshcode.org/1136

PowerShell Code Repository - Compile-Help
This script uses the text and XML PowerShell help files to generate HTML help for all PowerShell Cmdlets, PSProviders, and “about” topics. the help topics are compiled into a .chm file using HTML Help Workshop.
http://poshcode.org/144

PowerShell Code Repository - Compiled-Help 1.1
An update of Jeff Hillman’s outstanding Compile-Help (http://poshcode.org/99) that brings PowerShell 2.0 support and fixes a few bugs.
http://poshcode.org/1370

PowerShell Code Repository - Compress-Bitmap
Compress a bitmap to a certain filesize, using the PSCX Import-Bitmap, Resize-Bitmap, and Export-Bitmap … and a little trial and error.
http://poshcode.org/1290

PowerShell Code Repository - Computer Inventory
PowerShell Code Repository - get-netstat 1.3
http://poshcode.org/594

PowerShell Code Repository - Computer Inventory
PowerShell Code Repository - Remove-DeadITunesTracks
http://poshcode.org/596

PowerShell Code Repository - Computer Inventory
PowerShell Code Repository - The Letter Diamond Oneli
http://poshcode.org/1033

PowerShell Code Repository - Connect-AccessDB
A set of functions I’ve been working on to allow easy use of Access DBs with PowerShell. A work in progress, but thought they were at a point where others might find them useful.
http://poshcode.org/1277

PowerShell Code Repository - Connect-AccessDB
A set of functions I’ve been working on to allow easy use of Access DBs with PowerShell. A work in progress, but thought they were at a point where others might find them useful.
http://poshcode.org/2670

PowerShell Code Repository - Connect-AccessDB
The Write-Output in the function Get-AccessRecordSetStructure, doesn’t return anything for me. Replacing Write-Output by return fixes the problem.
http://poshcode.org/2885

PowerShell Code Repository - connect-domain
We have multiple domains. I added this function to my profile for each of our domains to easily connect to them using Quest ActiveRoles Management Shell for Active Directory. The function kicks you into a nested prompt to work in the domain that you connect to and lets you exit back out. It also modifies your foregroundcolor so you remember that you’re in a nested prompt.
http://poshcode.org/622

PowerShell Code Repository - Connect-LabManager
If you have VMware Lab Manager, this script makes it easier than ever to connect to and automate Lab Manager actions.
http://poshcode.org/753

PowerShell Code Repository - Connect-VMHost
Reconnect a VMHost that has been disconnected from vCenter… Example using the VI API real world use Set-VMHost -State
http://poshcode.org/902

PowerShell Code Repository - Connect-VMHost
Reconnect a VMHost that has been disconnected from vCenter… Function requires CTP3 mainly b/c I love the inline help!
http://poshcode.org/899

PowerShell Code Repository - Connect-WebService.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2133

PowerShell Code Repository - Console Function Run
This is the Console version of the ISE Run-Script function posted earlier. Typing ‘Run example’ from the command line will run and log the start and end times of ‘example.ps1’
http://poshcode.org/3086

PowerShell Code Repository - Console Function Run
This is the Console version of the ISE Run-Script function posted earlier. Typing ‘Run example’ from the command line will run and log the start and end times of ‘example.ps1’
http://poshcode.org/3087

PowerShell Code Repository - Continue.Ps1
Wait until specified time to continue pipeline processing
http://poshcode.org/2056

PowerShell Code Repository - convert CSV/s to Excel
This script allows you to convert one or more CSVs into an Excel file with each CSV being a new worksheet in excel. The worksheet name will be the name of the file with the exception of the extension. So a file called test.csv will be named ‘test’. CSVs can be piped into the function or you can use the -inputfile parameter to accomplish this.
http://poshcode.org/2123

PowerShell Code Repository - Convert File Encoding
R.Vantrease ver 1.0 – The source control I use does not understand the default encoding that PowerShell_ISE saves scripts in (Unicode Big Endian), so I wanted a way to quickly convert my scripts to a friendlier encoding. I wrote the following little ditty to convert all the PowerShell scripts and module files to ASCII encoding.
http://poshcode.org/2999

PowerShell Code Repository - Convert-BounceToX500
PowerShell Code Repository - WSUS Admin Module
http://poshcode.org/2364

PowerShell Code Repository - Convert-BounceToX500
Convert a URL Encoded address most commonly found in bounce messages into an X500 address that can be added as an alias to the appropriate mail-enabled object.
http://poshcode.org/2361

PowerShell Code Repository - Convert-BounceToX500
IMCEAEX-_O=BAYMAIL_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SP DLT+29_CN=RECIPIENTS_CN=IMMTZ@bayer.cnb
http://poshcode.org/2547

PowerShell Code Repository - Convert-BounceToX500
IMCEAEX-_O=BAYMAIL_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SP DLT+29_CN=RECIPIENTS_CN=IMMTZ@bayer.cnb
http://poshcode.org/2548

PowerShell Code Repository - Convert-BounceToX500
IMCEAEX-_O=CMA_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=Alain+20Dewitf0d@easyconsult.be
http://poshcode.org/3220

PowerShell Code Repository - Convert-CBZ2CBR
PowerShell Code Repository - Get-FirewallStatus
http://poshcode.org/837

PowerShell Code Repository - Convert-FspToUsername
This function converts FSP’s to sAMAccountName’s
http://poshcode.org/2957

PowerShell Code Repository - Convert-MacAddress
PowerShell Code Repository - ResetOutlookLivePassword
http://poshcode.org/2948

PowerShell Code Repository - Convert-PowerPack2Ps1
PowerShell Code Repository - Check-ClusterPatches
http://poshcode.org/817

PowerShell Code Repository - Convert-PowerPack2Ps1
PowerShell Code Repository - Convert-PowerPack2Ps1
http://poshcode.org/818

PowerShell Code Repository - Convert-PowerPack2Ps1
PowerShell Code Repository - Get-Weather 2.1
http://poshcode.org/822

PowerShell Code Repository - Convert-StringSID
Converts a string containing the SDDL SID format (e.g. ‘S-1-5-21-39260824-743453154-142223018-195717’) to a Win32_SID WMI object. Also adds a property with the base64 encoded binary SID to match the format used by some AD backup utilities.
http://poshcode.org/1070

PowerShell Code Repository - Convert-StringSID
Converts a string containing the SDDL SID format (e.g. ‘S-1-5-21-39260824-743453154-142223018-195717’) to a Win32_SID WMI object. Also adds a property with the base64 encoded binary SID to match the format used by some AD backup utilities.
http://poshcode.org/1071

PowerShell Code Repository - Convert-StringSID
Converts a string containing the SDDL SID format (e.g. ‘S-1-5-21-39260824-743453154-142223018-195717’) to a Win32_SID WMI object. Also adds a property with the base64 encoded binary SID to match the format used by some AD backup utilities.
http://poshcode.org/1072

PowerShell Code Repository - Convert-TextObject.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2134

PowerShell Code Repository - Convert-ToCHexString
Converts an input string into its C ASCI Hex equivalent, useful for converting a string into an unsigned char array
http://poshcode.org/1153

PowerShell Code Repository - Convert-ToCHexString
Converts an input string into its C ASCI Hex equivalent, useful for converting a string into an unsigned char array
http://poshcode.org/1154

PowerShell Code Repository - Convert-ToCHexString
Converts an input string into its C ASCI Hex equivalent, useful for converting a string into an unsigned char array
http://poshcode.org/1155

PowerShell Code Repository - Convert-ToMP3
This script uses VLC to convert an audio file to MP3 format. It makes the assumption that you have an Alias “vlc” that points to the VLC executable.
http://poshcode.org/1501

PowerShell Code Repository - Convert-ToMP3
This script uses VLC to convert an audio file to MP3 format. It makes the assumption that you have an Alias “vlc” that points to the VLC executable.
http://poshcode.org/1561

PowerShell Code Repository - convert-vim2css.ps1
Converts Vim syntax highlighting styles to nice CSS for embedding code in a blog. Originally by Tomas Restrepo (http://www.winterdom.com/weblog/2008/08/01/StylingCodeForBlogVim2Css.aspx).
http://poshcode.org/498

PowerShell Code Repository - ConvertFrom-CliXml
A pair with ConvertTo-CliXml — this version closes and disposes the string reader handle.
http://poshcode.org/2302

PowerShell Code Repository - ConvertFrom-CliXml
I wrote this based on ConvertTo-CliXml. This takes a xml string from the pipeline and converts it to objects.
http://poshcode.org/2294

PowerShell Code Repository - ConvertFrom-FahrenheitWi
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2135

PowerShell Code Repository - ConvertFrom-FahrenheitWi
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2136

PowerShell Code Repository - ConvertFrom-FahrenheitWi
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2459

PowerShell Code Repository - ConvertFrom-Hashtable
This script has appeared in many places in many different forms. Eg: PowerShell.com Sometimes it’s called ConvertTo-Object, but I find that too generic, since it can ONLY convert hashtables.
http://poshcode.org/1116

PowerShell Code Repository - ConvertFrom-Hashtable
This script has appeared in many places in many different forms. Eg: PowerShell.com Sometimes it’s called ConvertTo-Object, but I find that too generic, since it can ONLY convert hashtables.
http://poshcode.org/1117

PowerShell Code Repository - ConvertFrom-Hashtable
This script has appeared in many places in many different forms. Eg: PowerShell.com Sometimes it’s called ConvertTo-Object, but I find that too generic, since it can ONLY convert hashtables.
http://poshcode.org/1118

PowerShell Code Repository - ConvertFrom-Hashtable 2
Create PSObjects from hashtables. Supports converting nested hashtables, and joining multiple pipelined hashtables into one object using Join-Object
http://poshcode.org/1819

PowerShell Code Repository - ConvertFrom-Property
ConvertFrom-PropertyString 3.0 can convert ini files, property files, and other flat key-value data strings into PSObjects.
http://poshcode.org/2050

PowerShell Code Repository - ConvertFrom-Property
ConvertFrom-PropertyString can convert ini files, property files, and other flat key-value data strings into PSObjects
http://poshcode.org/1915

PowerShell Code Repository - ConvertFrom-Property
ConvertFrom-PropertyString can convert ini files, property files, and other flat key-value data strings into PSObjects. v2 changes the output so that if there are multiple instances of the same key, we collect the values in an array
http://poshcode.org/1956

PowerShell Code Repository - ConvertHelpTo-Html
ConvertTo-DekiContent is an improvement on New-HtmlHelp, with a specific focus on output suitable for DekiWiki. I commented out the html and body tags, etc. because the HTML markup is destined for the DekiWiki. It’s an improvement over the original because we cleaned up the parameter and example code, and broke apart the syntax, so it’s easier to read.
http://poshcode.org/670

PowerShell Code Repository - ConvertTo-ASCII
Here is a quick script I created to convert files to ASCII character set. This came about because I found Out-File was creating files as Unicode and Add-Content was writing ASCII (Even though the help says it defaults to Unicode). So writing to the files with Add-Content would use the wrong encoding and add garbage to the log files. I changed all my code to include the -Encoding ASCII parameter, but had thousands of files encoded as Unicode. (Note: To see what format it is, open in Notepad and select Save As… it will be listed at the bottom). It replaces the file with a new ASCII encoded file so I also added some logic to capture and set the original file timestamps. This is my first draft so I’m sure there is room for improvements. Such as error handling and adjustments so the input parameters don’t have to be so exact, but it works and thought I would share. -=Levon
http://poshcode.org/2612

PowerShell Code Repository - ConvertTo-ASCII
Here is a quick script I created to convert files to ASCII character set. This came about because I found Out-File was creating files as Unicode and Add-Content was writing ASCII (Even though the help says it defaults to Unicode). So writing to the files with Add-Content would use the wrong encoding and add garbage to the log files. I changed all my code to include the -Encoding ASCII parameter, but had thousands of files encoded as Unicode. (Note: To see what format it is, open in Notepad and select Save As… it will be listed at the bottom). It replaces the file with a new ASCII encoded file so I also added some logic to capture and set the original file timestamps. This is my first draft so I’m sure there is room for improvements. Such as error handling and adjustments so the input parameters don’t have to be so exact, but it works and thought I would share. -=Levon
http://poshcode.org/2613

PowerShell Code Repository - ConvertTo-ASCII
Here is a quick script I created to convert files to ASCII character set. This came about because I found Out-File was creating files as Unicode and Add-Content was writing ASCII (Even though the help says it defaults to Unicode). So writing to the files with Add-Content would use the wrong encoding and add garbage to the log files. I changed all my code to include the -Encoding ASCII parameter, but had thousands of files encoded as Unicode. (Note: To see what format it is, open in Notepad and select Save As… it will be listed at the bottom). It replaces the file with a new ASCII encoded file so I also added some logic to capture and set the original file timestamps. This is my first draft so I’m sure there is room for improvements. Such as error handling and adjustments so the input parameters don’t have to be so exact, but it works and thought I would share. -=Levon
http://poshcode.org/2614

PowerShell Code Repository - ConvertTo-CliXml
Export-CliXml and Import-CliXml only work with files. This is an implementation for sending CliXML directly to the pipeline. Probably needs v2 powershell (not tested in v1).
http://poshcode.org/2293

PowerShell Code Repository - ConvertTo-CliXml
Export-CliXml and Import-CliXml only work with files. This is an implementation for sending CliXML directly to the pipeline. Probably needs v2 powershell (not tested in v1).
http://poshcode.org/1672

PowerShell Code Repository - ConvertTo-CliXml
Export-CliXml and Import-CliXml only work with files. This is an implementation for sending CliXML directly to the pipeline. Requires PowerShell 2.0
http://poshcode.org/2301

PowerShell Code Repository - ConvertTo-DN
A couple functions I use to convert DN to Canonical, and canonical to DN. I find them handy for adhoc AD tasks… I saw someone ask about it on #powershell and figured I would share :)
http://poshcode.org/511

PowerShell Code Repository - ConvertTo-DN
A couple functions I use to convert DN to Canonical, and canonical to DN. I find them handy for adhoc AD tasks… I saw someone ask about it on #powershell and figured I would share :)
http://poshcode.org/512

PowerShell Code Repository - ConvertTo-Function
This script takes a path to a script (full or relative), a fileinfo object, or either as pipeline input. It converts the script’s content to a function of the same name as the file. For example, ./ConvertTo-Function Get-Server.ps1 would create a function called Get-Server. If the function already exists, it will replace it with the new script.
http://poshcode.org/849

PowerShell Code Repository - ConvertTo-GoogleChartNum
A rounding encoder for Google Charts data: converts numbers to their relative values within Google’s 0..4095 range, and encodes them in their slightly strange 2-digit base 64 encoding.
http://poshcode.org/686

PowerShell Code Repository - ConvertTo-Hashtable
Converts objects properties into key-value hashtable
http://poshcode.org/1568

PowerShell Code Repository - ConvertTo-Hex
PowerShell Code Repository - Get-ExchangeDBSizes
http://poshcode.org/2037

PowerShell Code Repository - ConvertTo-Hex
This scConvertTo-Hex S-1-5-21-2108236516-395065666-114579206-1802ript will convert a security identifier (SID) in string format to its hexadecimal equivalent. e.g.
http://poshcode.org/3259

PowerShell Code Repository - ConvertTo-Hex
This scConvertTo-Hex S-1-5-21-357043131-537017027-1947940980-1289ript will convert a security identifier (SID) in string format to its hexadecimal equivalent. e.g.
http://poshcode.org/3239

PowerShell Code Repository - ConvertTo-Hex
This scConvertTo-Hex S-1-5-21-357043131-537017027-1947940980-1289ript will convert a security identifier (SID) in string format to its hexadecimal equivalent. e.g.
http://poshcode.org/3071

PowerShell Code Repository - ConvertTo-Hex
This scConvertTo-Hex S-1-5-21-357043131-537017027-1947940980-1289ript will convert a security identifier (SID) in string format to its hexadecimal equivalent. e.g.
http://poshcode.org/2973

PowerShell Code Repository - ConvertTo-Hex
This scConvertTo-Hex S-1-5-21-357043131-537017027-1947940980-1289ript will convert a security identifier (SID) in string format to its hexadecimal equivalent. e.g.
http://poshcode.org/2769

PowerShell Code Repository - ConvertTo-Hex
This scConvertTo-Hex S-1-5-21-357043131-537017027-1947940980-1289ript will convert a security identifier (SID) in string format to its hexadecimal equivalent. e.g.
http://poshcode.org/2038

PowerShell Code Repository - ConvertTo-Icon
Converts Image Files to icon files
http://poshcode.org/2765

PowerShell Code Repository - ConvertTo-JaggedObjects
A script to convert a group of arrays into columns in objects: each array becomes a property for objects, and objects are generated for every value in the longest array.
http://poshcode.org/875

PowerShell Code Repository - ConvertTo-MultiArray
PowerShell Code Repository - Findup
http://poshcode.org/2347

PowerShell Code Repository - ConvertTo-MultiArray
PowerShell Code Repository - Findup
http://poshcode.org/2348

PowerShell Code Repository - ConvertTo-MultiArray
PowerShell Code Repository - Findup
http://poshcode.org/2349

PowerShell Code Repository - ConvertTo-PseudoType
Converts objects to custom PSObjects with robust type support. Allows converting data from Import-CSV etc into type-safe pseduo structs …
http://poshcode.org/2638

PowerShell Code Repository - ConvertTo-PseudoType
Converts objects to custom PSObjects with robust type support. Allows converting data from Import-CSV etc into type-safe pseudo structs …
http://poshcode.org/2639

PowerShell Code Repository - ConvertTo-PseudoType
Converts objects to custom PSObjects with robust type support. Allows converting data from Import-CSV etc into type-safe pseudo structs …
http://poshcode.org/2640

PowerShell Code Repository - ConvertTo-RelativeTime
Converts a pair of DateTime’s or a TimeSpan into a very approximate relative time like “about 4 days ago.”
http://poshcode.org/1463

PowerShell Code Repository - ConvertToStringData
Converts a hashtable to a string representation of the hashtable definition. Useful in persisting hashtables to .NET Isolated Storage
http://poshcode.org/1986

PowerShell Code Repository - coolprompt
A cool prompt function. Insert code into your profile script (“C:\Users\%username%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1”). Must use Consolas font in powershell (set font, then restart powershell) for special characters to appear correctly. Displays path + uptime in title, example prompt as: jgentile@quadbox&#9679;~\powershell&#9658;
http://poshcode.org/1788

PowerShell Code Repository - Copy files
PowerShell Code Repository - Copy files
http://poshcode.org/3098

PowerShell Code Repository - Copy files
PowerShell Code Repository - Start-RDP
http://poshcode.org/3097

PowerShell Code Repository - copy-data
Copy Data between Folders including a Progressbar
http://poshcode.org/1103

PowerShell Code Repository - Copy-File (Safely)
Recursively copies all files and folders in $source folder to $destination folder, but with .copy inserted before the extension if the file already exists
http://poshcode.org/1931

PowerShell Code Repository - Copy-FilePlus
PowerShell Code Repository - Server Inventory
http://poshcode.org/934

PowerShell Code Repository - Copy-Function
Copy a function from your current session to another session. Allows you to easily copy function definitions into remote PSSessions.
http://poshcode.org/1410

PowerShell Code Repository - Copy-GroupMembership.ps1
This script will copy the group membership from an existing user account to a new user account. This script relies on functions that I source in, so you’ll need to grab my code from http://scripts.patton-tech.com/browser/powershell/production/includes/ActiveDirectoryManagement.ps1
http://poshcode.org/2964

PowerShell Code Repository - Copy-History.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2137

PowerShell Code Repository - count-object
PowerShell Code Repository - count-object
http://poshcode.org/2533

PowerShell Code Repository - count-object
PowerShell Code Repository - Restore-Database.ps1
http://poshcode.org/2532

PowerShell Code Repository - Create a VIAccount
Create a VIAccount object suitable for use with New-VIPermission, Get-VIPermission, etc. from PowerCLI.
http://poshcode.org/1517

PowerShell Code Repository - Create AD Test Lab
This script expands on Dmitry Sotnikov’s blog post on creating demo Active Directory environments. http://dmitrysotnikov.wordpress.com/2007/12/14/setting-demo-ad-environments/
http://poshcode.org/1666

PowerShell Code Repository - Create random strings
Generate one or more random strings for use as passwords or pre-shared keys using a Windows form in PowerShell. User can customize the alphabet, length and number of strings generated.
http://poshcode.org/851

PowerShell Code Repository - Create random strings
Generate one or more random strings for use as passwords or pre-shared keys using a Windows form in PowerShell. User can customize the alphabet, length and number of strings generated.
http://poshcode.org/852

PowerShell Code Repository - Create RTF File
Very simple script to create an RTF (Rich Text Format) file with Windows Powershell with variable substitution. Yes this could be a very basic Mail Merge type document WITHOUT the use of Microsoft Word
http://poshcode.org/3244

PowerShell Code Repository - Create SP2010 Farm V03
Create a Sharepoint 2010 farm
http://poshcode.org/3105

PowerShell Code Repository - Create SP2010 Farm V03
Create a Sharepoint 2010 farm
http://poshcode.org/3106

PowerShell Code Repository - Create SP2010 Farm V03
Create a Sharepoint 2010 farm
http://poshcode.org/2561

PowerShell Code Repository - Create SP2010 Farm V03
Create a Sharepoint 2010 farm
http://poshcode.org/2424

PowerShell Code Repository - Create SP2010 Farm V03
Create a Sharepoint 2010 farm
http://poshcode.org/1485

PowerShell Code Repository - Create VApps in vSphere
A simple script to create VApps within vSphere
http://poshcode.org/3237

PowerShell Code Repository - Create VMKernel on vDS
Create VMKernel on vDS with New-VMHostNetworkAdapter vSphere PowerCLI 4.1
http://poshcode.org/1992

PowerShell Code Repository - Create-Certificate
Creates self-signed signing certificate and installs it to certificate store.
http://poshcode.org/1793

PowerShell Code Repository - Create-Mdb.ps1
A Script that demonstrates how to create a Microsoft Access database in powershell without Microsoft Access installed. It works in 32 and 64 bit instances of powershell.
http://poshcode.org/2928

PowerShell Code Repository - Create-Printers.ps1
Simple script to bulk-create printers on a print-server. Printers are imported from a csv-file.
http://poshcode.org/1466

PowerShell Code Repository - Create-Printers.ps1
Simple script to bulk-create printers on a print-server. Printers are imported from a csv-file.
http://poshcode.org/1467

PowerShell Code Repository - Create-Printers.ps1
Simple script to bulk-create printers on a print-server. Printers are imported from a csv-file.
http://poshcode.org/1462

PowerShell Code Repository - Create-SCCMCollection
PowerShell Code Repository - Inovke command exclusive
http://poshcode.org/2229

PowerShell Code Repository - Create-SCCMCollection
PowerShell Code Repository - Test-Port.ps1
http://poshcode.org/850

PowerShell Code Repository - Create-Sequence
Create a sequence object similar to an Oracle sequence.
http://poshcode.org/665

PowerShell Code Repository - CreateVDS
Function, which creates vDS in vSphere PowerCLI
http://poshcode.org/1991

PowerShell Code Repository - CreateVDS
Function, which creates vDS in vSphere PowerCLI
http://poshcode.org/2446

PowerShell Code Repository - CreateVDS
Function, which creates vDS in vSphere PowerCLI
http://poshcode.org/1993

PowerShell Code Repository - CSV Validator Framework
PowerShell Code Repository - Backup AdventureWorks
http://poshcode.org/1664

PowerShell Code Repository - CSV Validator Framework
PowerShell Code Repository - CSV Validator Framework
http://poshcode.org/1665

PowerShell Code Repository - CSV-DVS
Takes a list of VMs from a CSV file, creates them, changes the NIC to vmxnet3 and connects them to a dVS switch
http://poshcode.org/1647

PowerShell Code Repository - CTP3: Watch Folder
Requires PS 2.0 CTP3
http://poshcode.org/859

PowerShell Code Repository - Custom Accelerators
A script module for PowerShell 2.0 which allows the user to create their own custom type accelerators. Thanks to Oisin Grehan for the discovery.
http://poshcode.org/1398

PowerShell Code Repository - Custom Accelerators
This module makes it easier to create and remove type accelerators in PowerShell 2.0
http://poshcode.org/1869

PowerShell Code Repository - Custom Accelerators CTP3
A script module for CTP3 which allows the user to create their own custom type accelerators. Thanks to Oisin Grehan for the discovery.
http://poshcode.org/762

PowerShell Code Repository - Custom Object Factory Te
four lines that will read a function’s parameters, and create a PSObject having Properties by those names, with the function’s arguments (including default arguments and ParamterSetName,as the values of those Properties. Saves quite a bit of typeing if you need to create custom objects and want a “factory” that makes the PSobject for you.
http://poshcode.org/2772

PowerShell Code Repository - Custom Speech Commands
PowerShell Code Repository - Custom Speech Commands
http://poshcode.org/1850

PowerShell Code Repository - Custom Speech Commands
PowerShell Code Repository - Custom Speech Commands
http://poshcode.org/1851

PowerShell Code Repository - Custom Speech Commands
PowerShell Code Repository - Logger.psm1 0.6
http://poshcode.org/1859

PowerShell Code Repository - Custom Speech Commands
PowerShell Code Repository - Profile Function
http://poshcode.org/1849

PowerShell Code Repository - datareader to dataset
Converting datareader to dataset
http://poshcode.org/2444

PowerShell Code Repository - DataStoreBalancer.ps1
Scans VM datastores and moves a single VM from the most heavily loaded to the most lightly loaded. See internal documentation for more.
http://poshcode.org/2552

PowerShell Code Repository - Debug Regex match
Debug Regex operation when matching any string
http://poshcode.org/3196

PowerShell Code Repository - Debug Regex match
Debug Regex operation when matching any string
http://poshcode.org/3185

PowerShell Code Repository - Decode Psi IM passwords
Creates a bridge between (any) MUC chatroom and a Jabber user — by default it joins the #PowerShell channel at IRC.FreeNode.net and echos everything said there to you, and everything you say to it … to the chat room. Really quite useless, except as a demonstration.
http://poshcode.org/1060

PowerShell Code Repository - Decrypt Psi Password
PowerShell Code Repository - Get-SameTimeChatHistory
http://poshcode.org/1235

PowerShell Code Repository - default.config
An example config for Log4Net
http://poshcode.org/1743

PowerShell Code Repository - DefaultParameterValues
For PowerShell 3: Export and Import DefaultParameterValues, optionally overwrite existing ones
http://poshcode.org/3255

PowerShell Code Repository - DefaultParameterValues
For PowerShell 3: Export and Import DefaultParameterValues, optionally overwrite existing ones
http://poshcode.org/3256

PowerShell Code Repository - DefaultParameterValues
For PowerShell 3: Export and Import DefaultParameterValues, optionally overwrite existing ones
http://poshcode.org/2990

PowerShell Code Repository - DekiWiki Module 1.0
DekiWiki module, a package of a few script cmdlets (more to come, I promise) for working with DekiWiki. Included so far: Set-DekiCredential, Get-DekiContent, Set-DekiContent, New-DekiContent, Get-DekiFile … conspicuously absent: Add-DekiFile, Remove-DekiFile, Remove-DekiContent …
http://poshcode.org/671

PowerShell Code Repository - DekiWiki Module 1.5
PowerShell Code Repository - HttpRest
http://poshcode.org/692

PowerShell Code Repository - Del. TrailingBlank (ISE)
PowerShell Code Repository - Send-FTP 1.0
http://poshcode.org/1626

PowerShell Code Repository - Delete AD Users
This script will delete all Active Directory User accounts that have not logged in within the number of days specified in the $NumDays variable. The script only deletes the Active Directory user accounts, not any associated Exchange mailboxes. The script also includes the Delete-ADUser function, which can be used separately from this script. All accounts that are deleted are logged in the “Removed-User-Accounts.log” file found in the local directory. The format of the log file is very basic, but effective.
http://poshcode.org/2938

PowerShell Code Repository - Delete-LocalAccount
This script searches ActiveDirectory for computer accounts, for each computer account it removes the specified user account.
http://poshcode.org/2869

PowerShell Code Repository - Deleted-Folders
PowerShell Code Repository - Xml Module 4.5
http://poshcode.org/1889

PowerShell Code Repository - Deleted-Objects
Remove the folder or folders from computer on your network.
http://poshcode.org/1896

PowerShell Code Repository - Deleted-ObjectsAD
Remove the folder or folders from computer on your domen network.
http://poshcode.org/1904

PowerShell Code Repository - Deleted-ObjectsAD
Remove the folder or folders from computer on your domen network.
http://poshcode.org/1905

PowerShell Code Repository - Deleted-ObjectsAD
Remove the folder or folders from computer on your domen network.
http://poshcode.org/1906

PowerShell Code Repository - Dell hardware checker
This script runs a variety of checks on server hardware to get status or basic information. It can check memory, perc events, firmware versions, gets service tags, shows summary hardware status, retrieves ESM log, and can auto load the omsa webpage. This is a basic overview of some dell WMI related namespace operations which can be easily extended as needed. To run the script, provide the name of the function you want to call and the remote machine name to check. Note: WMI namespace for Dell is installed with dell openmanage software, v4 and higher.
http://poshcode.org/1812

PowerShell Code Repository - Dell Order Status
Functions to encrypt and decrypt strings using the Rijndael symmetric key algorithm
http://poshcode.org/1161

PowerShell Code Repository - Dell Order Status
This script will take a Twitter User’s Screen name and get their RSS feed of posts
http://poshcode.org/2744

PowerShell Code Repository - Dell Order Status
This script will take a Twitter User’s Screen name and get their RSS feed of posts
http://poshcode.org/2745

PowerShell Code Repository - demo
demo
http://poshcode.org/524

PowerShell Code Repository - demo-attributes
a demo of using some build in dotnet attributes to store some powershell METADATA (hashtables) and extract that.
http://poshcode.org/2511

PowerShell Code Repository - Demo-Confirm
By way of demonstrating how the -Confirm parameter affects $ConfirmPreference and thus the output of cmdlets called in a script.
http://poshcode.org/2298

PowerShell Code Repository - DEMO: Trap Ctrl+C
This is a demo of one way you could implement handling Ctrl+C (CancelKeyPressed) without using PSEvent or PInvoke …
http://poshcode.org/542

PowerShell Code Repository - Deny-PendingRequest
Denies certificate request from a pending request. For this function to succeed, the certificate request must be pending. CAConfig string must be specified in a ‘CAComputerName\CAName’ form
http://poshcode.org/2063

PowerShell Code Repository - Deploy Folder
This will pull a list of computers from AD and copy a folder to that system.
http://poshcode.org/3018

PowerShell Code Repository - Deploy Multiple VMs v1
Use this script to deploy multiple vmware VMs using template(s). It uses a CSV to gather all the configuration info. Only thing left is to add any required data/application vdisks. In my environment, I use several custom attributes to track VMs, so you will need to comment out or adjust the lines as needed. The VM will be moved to a VMs/Templates Blue folder.
http://poshcode.org/2883

PowerShell Code Repository - Deploy Multiple VMs v1.1
Use this script to deploy multiple vmware VMs using template(s). It uses a CSV to gather all the configuration info. Only thing left is to add any required data/application vdisks. In my environment, I use several custom attributes to track VMs, so you will need to comment out or adjust the lines as needed. The VM will be moved to a VMs/Templates Blue folder specified in the csv.
http://poshcode.org/2884

PowerShell Code Repository - Deploy VM with Static IP
Deploying a VM with Static IP in 3 Lines
http://poshcode.org/2011

PowerShell Code Repository - Deploy VM with Static IP
Deploying a VM with Static IP in 3 steps
http://poshcode.org/2014

PowerShell Code Repository - Deploy VM with Static IP
Deploying a VM with Static IP in 3 steps
http://poshcode.org/2015

PowerShell Code Repository - Deploy VM with Static IP
Deploying VM with static ip in 3 steps
http://poshcode.org/2012

PowerShell Code Repository - Deploy VM with Static IP
Deploying VM with static ip in 3 steps
http://poshcode.org/2013

PowerShell Code Repository - Deploying VM with static
Deploying VM with static IP in 3 lines
http://poshcode.org/2003

PowerShell Code Repository - Deploying VM with static
Deploying VM with static IP in 3 lines
http://poshcode.org/2004

PowerShell Code Repository - Desktop
A C# class (use with Add-Type -Path) that encapsulates the desktop APIs…
http://poshcode.org/2008

PowerShell Code Repository - Determine Computer Uptim
PowerShell Code Repository - Sort-ISE_Boots
http://poshcode.org/802

PowerShell Code Repository - df
A simple df (disk free) function for PowerShell
http://poshcode.org/428

PowerShell Code Repository - DirToday Extended
Extended version of Hal’s original “dirtoday” script via twitter https://twitter.com/#!/halr9000/status/88211937720156160
http://poshcode.org/2771

PowerShell Code Repository - Disable AD Users
This script will disable all Active Directory User accounts that have not logged in within the number of days specified by the $NumDays variable. All accounts that are disabled are logged in the “Disabled-User-Accounts.log” file created in the local directory. The formatting of the log file is very basic, but effective.
http://poshcode.org/2937

PowerShell Code Repository - Disable-CopyPasta-1.ps1
Updated
http://poshcode.org/1475

PowerShell Code Repository - Disable-CopyPasta.ps1
Authenticode 2.1 for PowerShell 2.0: Added Start-AutoSign function :) see my blog post
http://poshcode.org/1474

PowerShell Code Repository - Disconnect-VMHost
Disconnect a VMHost from vCenter…
http://poshcode.org/900

PowerShell Code Repository - Disconnect-VMHost
Disconnect a VMHost from vCenter… Example using the VI API real world use Set-VMHost -State
http://poshcode.org/901

PowerShell Code Repository - divide integer
powershell does all dividing by doubles, even integers, so often to simulate a interger division you have to [math]::floor the quotient. Here are some functions to do pure integer division
http://poshcode.org/869

PowerShell Code Repository - Down with SOPA!
Let’s fill the logs of the US House and Senate servers with the message we don’t want SOPA or E-Parasite!
http://poshcode.org/3053

PowerShell Code Repository - Download File (with %)
This script will download a file showing the download progression as it completes
http://poshcode.org/2461

PowerShell Code Repository - DriveSpace.format.ps1xml
Inspired by Jeff Hicks’s Friday Fun post I thought I’d do the graphs purely as an output format. All you have to do is Update-FormatData -Prepend .\DriveSpace.format.ps1xml and then any time you have a Win32_LogicalDisk output it will show up as a bar graph. Try this: get-wmiobject -Class Win32_logicaldisk -filter "Size>0"
http://poshcode.org/3089

PowerShell Code Repository - DriveSpace.format.ps1xml
Inspired by Jeff Hicks’s Friday Fun post I thought I’d do the graphs purely as an output format. All you have to do is Update-FormatData -Prepend .\DriveSpace.format.ps1xml and then any time you have a Win32_LogicalDisk output it will show up as a bar graph. Try this: get-wmiobject -Class Win32_logicaldisk -filter "Size>0"
http://poshcode.org/3090

PowerShell Code Repository - DriveUtilization
Obtain disk usage stats for local or remote computer. Originally by Jeffrey Hicks (http://blog.sapien.com/index.php/2008/08/01/powershell-driveutilization/).
http://poshcode.org/497

PowerShell Code Repository - DS L Order brneanew game
This script will take a Twitter User’s Screen name and get their RSS feed of posts
http://poshcode.org/2746

PowerShell Code Repository - dvSwitchNetworkAdapter
A simple module to temporarily replace the stock PowerCLI networkadapter cmdlets until they work with vdSwitches. Based off LucD’s functions http://www.lucd.info/2010/03/04/dvswitch-scripting-part-8-get-and-set-network-adapters/
http://poshcode.org/1895

PowerShell Code Repository - Easy Migration Tool v2.0
Easy Migration Script for VMware Using PowerCLI (Version 2.0) – The Easy Migration script enables you to manually VMotion and SVMotion virtual machines very quickly and easily. You don’t have to specify the resource pools and it reduces the amount of mouse clicks required. There is also an Undo feature.
http://poshcode.org/2401

PowerShell Code Repository - Easy Migration Tool v2.1
Easy Migration Script for VMware Using PowerCLI – The Easy Migration script enables you to manually VMotion and SVMotion virtual machines very quickly and easily. You don’t have to specify the resource pools and it reduces the amount of mouse clicks required. There is also an Undo feature.
http://poshcode.org/2485

PowerShell Code Repository - Easy Migration Tool v2.1
Easy Migration Script for VMware Using PowerCLI (Version 2.0) – The Easy Migration script enables you to manually VMotion and SVMotion virtual machines very quickly and easily. You don’t have to specify the resource pools and it reduces the amount of mouse clicks required. There is also an Undo feature.
http://poshcode.org/2456

PowerShell Code Repository - EchoTest.cmd
A DOS cmd script to show how your arguments look to “native” console apps
http://poshcode.org/2110

PowerShell Code Repository - edit-file
edit-file from PS+
http://poshcode.org/790

PowerShell Code Repository - Edit-File in Notepad++
A script to open files for editing in Notepad++ — you may need to edit the $npp variable in the BEGIN block to put the full path in, if you didn’t run the Notepad++ installer.
http://poshcode.org/808

PowerShell Code Repository - Edit-File in Notepad++
Fixed a script to open files for editing in Notepad++ — you may need to edit the $npp variable in the BEGIN block to put the full path in, if you didn’t run the Notepad++ installer.
http://poshcode.org/1541

PowerShell Code Repository - Edit-RDP
Function/script that opens an RDP file for editing using Terminal Services Client.
http://poshcode.org/675

PowerShell Code Repository - Edit-Variable
A way to easily edit textual variables and environment variables: Edit-Variable env:path
http://poshcode.org/2471

PowerShell Code Repository - egg_timer
A script I submitted for Event 10 of the Scripting games. Displays a simple Windows Form that counts down three minutes. It makes a good example for using Windows forms.
http://poshcode.org/1190

PowerShell Code Repository - egg_timer
A script I submitted for Event 10 of the Scripting games. Displays a simple Windows Form that counts down three minutes. It makes a good example for using Windows forms.
http://poshcode.org/1191

PowerShell Code Repository - egg_timer
A script I submitted for Event 10 of the Scripting games. Displays a simple Windows Form that counts down three minutes. It makes a good example for using Windows forms.
http://poshcode.org/1192

PowerShell Code Repository - elevate-process (sudo)
As a former UNIX guy, I love the non-admin stuff in Vista, but got annoyed keeping two shells open (one admin and one non-admin). I wanted sudo! PowerShell made that easy. Enjoy!
http://poshcode.org/695

PowerShell Code Repository - elevate-process (sudo)
As a former UNIX guy, I love the non-admin stuff in Vista, but got annoyed keeping two shells open (one admin and one non-admin). I wanted sudo! PowerShell made that easy. Just put this in your $profile script. Enjoy!
http://poshcode.org/696

PowerShell Code Repository - ELIM (Event Log IM) 1.0
Event Log Instant Messaging (ELIM) is a quick little wrapper for the *EventLog cmdlets and the Register-ObjectEvent as a way of showing off how to work with them. You can, however, really actually use this as a light-weight instant messenger.
http://poshcode.org/2881

PowerShell Code Repository - ELIM (Event Log IM) 1.1
Event Log Instant Messaging (ELIM) is a quick little wrapper for the *EventLog cmdlets and the Register-ObjectEvent as a way of showing off how to work with them. You can, however, really actually use this as a light-weight instant messenger.
http://poshcode.org/2882

PowerShell Code Repository - Ellipsis
The infamous ellipsis function lets you pick out a single property, rather like using Select -Expand … except it runs in about 2/3 the time.
http://poshcode.org/477

PowerShell Code Repository - Email attachments
All descriptions on the web which show how to do this so far have left the email attachment open which means if the script is continuing after the email and you wish to use the file you have attached you will not be able to as it will show as locked, use this example to close the attached file correctly using .Dispose()
http://poshcode.org/1820

PowerShell Code Repository - Email attachments
All descriptions on the web which show how to do this so far have left the email attachment open which means if the script is continuing after the email and you wish to use the file you have attached you will not be able to as it will show as locked, use this example to close the attached file correctly using .Dispose()
http://poshcode.org/1697

PowerShell Code Repository - Email-ExpiringADAccounts
Quick and simple, send an email to AD accounts expiring before a specified date. The $body is specific to my org needs, but simply customize this to suit.
http://poshcode.org/3140

PowerShell Code Repository - Email-ExpiringADAccounts
Quick and simple, send an email to AD accounts expiring before a specified date. The $body is specific to my org needs, but simply customize this to suit. Give values to $smtp,$from,$subject etc and away you go.
http://poshcode.org/3152

PowerShell Code Repository - Email-ExpiringADAccounts
Quick and simple, send an email to AD accounts expiring before a specified date. The $body is specific to my org needs, but simply customize this to suit. Give values to $smtp,$from,$subject etc and away you go.
http://poshcode.org/3153

PowerShell Code Repository - Empty working set
Pipe filter which empties working set for any received System.Diagnostics.Process object
http://poshcode.org/2413

PowerShell Code Repository - Enable and Configure SNM
PowerShell Code Repository - Get-Field
http://poshcode.org/2065

PowerShell Code Repository - Enable PS Remoting
Enable Powershell Remoting allowing access for all trusted hosts
http://poshcode.org/2073

PowerShell Code Repository - Enable PS Remoting
Enable Powershell Remoting allowing access for all trusted hosts
http://poshcode.org/3249

PowerShell Code Repository - Enable-BreakOnError.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2138

PowerShell Code Repository - Enable-HistoryPersistenc
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2139

PowerShell Code Repository - Enable-MailboxJunkEmail
Exchange 2007 SP3 Aware script that handles the canaries.
http://poshcode.org/2554

PowerShell Code Repository - Enable-MailboxJunkEmail.
Enable Server Side Junk E-mail filtering for Exchange 2007 mailboxes
http://poshcode.org/1194

PowerShell Code Repository - Enable-MailboxJunkEmail.
Enable Server Side Junk E-mail filtering for Exchange 2007 mailboxes
http://poshcode.org/830

PowerShell Code Repository - Enable-RemoteCredSSP.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2140

PowerShell Code Repository - Enable-RemotePsRemoting.
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2141

PowerShell Code Repository - Enable/Configure SNMP
PowerShell Code Repository - Compare SQL Tables II
http://poshcode.org/2391

PowerShell Code Repository - Enable/Configure SNMP
PowerShell Code Repository - Enable and Configure SNM
http://poshcode.org/2066

PowerShell Code Repository - Enable/Disable FusionLog
http://georgemauer.net/blog/enabledisable-fusionlog-powershell-script/
http://poshcode.org/2107

PowerShell Code Repository - Enable/Disable NIC, XP+
Enabling/Disabling network adapter. Works on Windows XP and higher.
http://poshcode.org/1800

PowerShell Code Repository - Enter-Module.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2142

PowerShell Code Repository - EnvStacks Module 1.0
PowerShell Code Repository - Find-String
http://poshcode.org/427

PowerShell Code Repository - Error handling PowerCLI
Error handling with PowerCLI 4.1
http://poshcode.org/2017

PowerShell Code Repository - ErrorLogstoHTML
I needed a script that would query the event logs for certain errors in the Security logs and then be shipped to an EVP with our company. This is what I wound up doing, using an email script as an attachment.
http://poshcode.org/2282

PowerShell Code Repository - ESX Lun Latencies
Given an ESX host, produce a report of read and write latencies for all attached LUNs.
http://poshcode.org/2515

PowerShell Code Repository - ESX Lun Latencies
Given an ESX host, produce a report of read and write latencies for all attached LUNs.
http://poshcode.org/1425

PowerShell Code Repository - ESXi Config Backup Scrip
**********EDIT: See Carter’s Example, it’s way simpler: http://poshcode.org/1559**********
http://poshcode.org/1955

PowerShell Code Repository - ESXi Config Backup Scrip
PowerShell Code Repository - ProcuriosJSON.psm1
http://poshcode.org/1530

PowerShell Code Repository - ESXi Config BackupScript
PowerShell Code Repository - ESXi Config Backup Scrip
http://poshcode.org/1532

PowerShell Code Repository - ESXi Config BackupScript
PowerShell Code Repository - ESXi Config BackupScript
http://poshcode.org/1533

PowerShell Code Repository - ESXiMgmt module
How can you automate your ESXi tasks having only bare ESXi software? May cmdlets in such case don’t work or work with serious limitations. To fulfill though partially the lack of ‘bare ESXi’ management tools, the ESXiMgmt module has been written and tested.
http://poshcode.org/2907

PowerShell Code Repository - ESXiMgmt module sample 1
This sample demonstrates how to create ten of virtual machines using one as a template.
http://poshcode.org/2908

PowerShell Code Repository - ESXiMgmt module sample 2
This sample shows how it can be possible to start a bunch of virtual machines using a name prefix as a condition.
http://poshcode.org/2909

PowerShell Code Repository - ESXiMgmt module sample 3
This is to demonstrate how to shutdown the machines you started while be reading the sample 2.
http://poshcode.org/2918

PowerShell Code Repository - ESXiMgmt module sample 3
This is to demonstrate how to shutdown the machines you started while read the sample 2.
http://poshcode.org/2910

PowerShell Code Repository - ESXiMgmt module sample 4
This sample resolves a list of guest host names to a list of the corresponding virtual machine names.
http://poshcode.org/2911

PowerShell Code Repository - ESXiMgmt module sample 5
This sample register all the virtual machines laying as folders on a ESXi host.
http://poshcode.org/2914

PowerShell Code Repository - Event Log SOX audit
Sarbanes–Oxley (SOX) compliance auditing often requires proof of review of the Windows Security Log and Remote Connections. This script captures Server 2008’s event logging and sends it to a csv for review and/or longterm archiving. The Security filter below encompasses the Account Management, Audit Policy CHanges, Failed Logins, and Audit Cleared filters. I left them for possible granular reporting in the future.
http://poshcode.org/3162

PowerShell Code Repository - Excel Auto-frontend
Automatically create an Excel frontend to a cmdlet or advanced function. Not really general purpose yet. There are a couple of examples within the script.
http://poshcode.org/1253

PowerShell Code Repository - ExceptionHandling
Facilitates exception handling as used to under C# or Java.
http://poshcode.org/1379

PowerShell Code Repository - Exch07 Quota Report
Power Shell 1 script used to grab mailbox stats for a Exchange 2007 server. It saves the information into a .csv file by changing the $OUTFILE variable.
http://poshcode.org/2117

PowerShell Code Repository - Exch07 Snd/Rec Report
Script to run daily send/receive reports in .csv format on a Exchange 2007 server using Power Shell 1.
http://poshcode.org/2085

PowerShell Code Repository - Exchange Mailbox report
This file was uploaded by a PowerGUI Script Editor Add-on.
http://poshcode.org/2464

PowerShell Code Repository - Exchange PST Export
Export 2007/2010 usermailbox to PST located on File Share
http://poshcode.org/2231

PowerShell Code Repository - Exchange07 Mbox Report
Power Shell 1 Script for Exchange 2007 mailbox statistics.
http://poshcode.org/2084

PowerShell Code Repository - exclude properties?
This script runs a variety of checks on server hardware to get status or basic information. It can check memory, perc events, firmware versions, gets service tags, shows summary hardware status, retrieves ESM log, and can auto load the omsa webpage. This is a basic overview of some dell WMI related namespace operations which can be easily extended as needed. To run the script, provide the name of the function you want to call and the remote machine name to check. Note: WMI namespace for Dell is installed with dell openmanage software, v4 and higher.
http://poshcode.org/1813

PowerShell Code Repository - exclude properties?
This script runs a variety of checks on server hardware to get status or basic information. It can check memory, perc events, firmware versions, gets service tags, shows summary hardware status, retrieves ESM log, and can auto load the omsa webpage. This is a basic overview of some dell WMI related namespace operations which can be easily extended as needed. To run the script, provide the name of the function you want to call and the remote machine name to check. Note: WMI namespace for Dell is installed with dell openmanage software, v4 and higher.
http://poshcode.org/1814

PowerShell Code Repository - Execute in PowerShell
Adds ‘Execute in PowerShell’ options to .ps1 files’ context menu so that you can easily run scripts from Windows Explorer
http://poshcode.org/664

PowerShell Code Repository - Execute-SQLCommand
Simple function that executes a command (stored procedure) against an SQL database.
http://poshcode.org/2579

PowerShell Code Repository - Execute-SQLCommand
Simple function that executes a command (stored procedure) against an SQL database.
http://poshcode.org/479

PowerShell Code Repository - Execute-SQLCommand
Simple function that executes a command (stored procedure) against an SQL database.
http://poshcode.org/480

PowerShell Code Repository - Execute-SQLCommand
Simple function that executes a command (stored procedure) against an SQL database.
http://poshcode.org/481

PowerShell Code Repository - ExecutePowerShell.cmd
This is a batch file … with a PowerShell script inside. It’s my answer to all those “compile your .ps1” solutions that are floating around. Why would you do that, when PowerShell still has to be installed?
http://poshcode.org/2447

PowerShell Code Repository - Exif query script
‘Get-exif’ doesn’t seem to exist. There are various solutions suggested for this, but I could not find a way to get FNumber and Focal Length in 35mm. So I have parsed out ‘exif’ output in this script.
http://poshcode.org/425

PowerShell Code Repository - Expand-Alias 2.0
Converts aliases and parameter shortcuts in scripts to make them more portable. Now resolves command names to include the module (make sure you load modules you need), resolves parameter aliases, etc. (Works in PowerShell 3 CTP1 too).
http://poshcode.org/2980

PowerShell Code Repository - Experimental.IO 1.0
Here’s a first simple hit on how to use the Experimental.IO LongPath library from the Microsoft Base Class Library codeplex project. Will list files and/or folders (recursively) ...
http://poshcode.org/2476

PowerShell Code Repository - Experimental.IO 2.0
A simple implemenation of the Experimental.IO LongPath library from the Microsoft Base Class Library project as a module.
http://poshcode.org/2488

PowerShell Code Repository - Export-CSV -Append
Add this function to your profile to make Export-CSV cmdlet handle -Append parameter
http://poshcode.org/1590

PowerShell Code Repository - Export-CustomProperty
An example of making “custom objects” with strongly-typed properties, custom enumeration/validation and error messages.
http://poshcode.org/2269

PowerShell Code Repository - Export-HTML
PowerShell Code Repository - BridgeBot 1.2
http://poshcode.org/1380

PowerShell Code Repository - Export-PSCredential
original filename: lib-authentication.ps1
http://poshcode.org/470

PowerShell Code Repository - Export-PSCredential
original filename: lib-authentication.ps1
http://poshcode.org/471

PowerShell Code Repository - Export-PSCredential
original filename: lib-authentication.ps1
http://poshcode.org/472

PowerShell Code Repository - Export-PSCredential
original filename: lib-authentication.ps1
http://poshcode.org/473

PowerShell Code Repository - Export-PSCredential
original filename: lib-authentication.ps1
http://poshcode.org/474

PowerShell Code Repository - Export-PSCredential
original filename: lib-authentication.ps1
http://poshcode.org/501

PowerShell Code Repository - Export-ScreenShot
Export-Screenshot and Get-Screenshot let you get a System.Drawing.Bitmap of the full virtual screen or a cropped area of it, and save it to file …
http://poshcode.org/585

PowerShell Code Repository - Export-SPListToSQL
Exports a SharePoint list to a SQL Server table using OLEDB
http://poshcode.org/1064

PowerShell Code Repository - Export-SPListToSQL
Exports a SharePoint list to a SQL Server table using OLEDB
http://poshcode.org/1002

PowerShell Code Repository - Export-WLANSettings.ps1
Using netsh.exe to loop through each WLAN on the system and export the settings to the user-provided output-file.
http://poshcode.org/1700

PowerShell Code Repository - Exporting SQLData to CSV
PowerShell Code Repository - Set-Computername
http://poshcode.org/1662

PowerShell Code Repository - Fast vMotion with GUI
More information, screenshots and a short movie can be found here: http://ict-freak.nl/2009/07/21/powercli-fast-vmotion-script-with-gui/
http://poshcode.org/1220

PowerShell Code Repository - FastNFS - PowerCLI
Mounts a NFS datastore to several vSphere 4.X hosts with PowerCLI. The script assumes you are already connected to a VI server.
http://poshcode.org/2735

PowerShell Code Repository - Feeds Module
A script module that allows you to sync feeds using the Microsoft Feeds Manager automation API, as well as mark items read for all or specific folders.
http://poshcode.org/1135

PowerShell Code Repository - File Archive by Creation
PowerShell Code Repository - ServicePWChgReset
http://poshcode.org/553

PowerShell Code Repository - File encoding no BOM
Returns the encoding type of the file; uses Byte Order Marker (BOM) if exists else analyzes files contents to determine encoding.
http://poshcode.org/3252

PowerShell Code Repository - Filtering hosts
PowerShell Code Repository - Get-ADMetaData.ps1
http://poshcode.org/940

PowerShell Code Repository - Find files not containig
Find all files which does not contains specific text
http://poshcode.org/744

PowerShell Code Repository - Find FSMO Roles
Find all DC’s FSMO roles
http://poshcode.org/429

PowerShell Code Repository - Find Local Group Members
PowerShell Code Repository - List Object Discoveries
http://poshcode.org/645

PowerShell Code Repository - Find Local Group Members
Amended line $ChildGroups = “Domain Admins”, “group two” to clear bug from my previous post :)
http://poshcode.org/905

PowerShell Code Repository - Find Local Group Members
Find matching members in a local group
http://poshcode.org/544

PowerShell Code Repository - Find Local Group Members
Find matching members in a local group
http://poshcode.org/2240

PowerShell Code Repository - Find Local Group Members
Find matching members in a local group
http://poshcode.org/2241

PowerShell Code Repository - Find Local Group Members
If you output the original script to a txt file you cannot tell if a remote PC is switched off. Script below will now report a “Connection Error” if network path is not found
http://poshcode.org/904

PowerShell Code Repository - Find old snapshots
Simple PowerCLI example to find old snapshots. Note that I would not actually use the techniques shown here, this script was intentionally written this way as a part of a training video in which I am building on techniques.
http://poshcode.org/1548

PowerShell Code Repository - Find sharable storage
This function finds storage within VMware that can be shared between ESX hosts.
http://poshcode.org/1269

PowerShell Code Repository - Find sharable storage
This function finds storage within VMware that can be shared between ESX hosts.
http://poshcode.org/1299

PowerShell Code Repository - Find-Abbreviation.ps1
Finds meaning of given abbreviation
http://poshcode.org/819

PowerShell Code Repository - Find-AmazonBook
Find-AmazonBook searches Amazon’s books by Title (and optionally Author). It’s a simple example of the power of the HttpRest module, see the original here: http://posh.jaykul.com/p/1602 (and note there are extra features in this version).
http://poshcode.org/725

PowerShell Code Repository - Find-Command
Because people keep asking questions on IRC where the answer seems obvious…
http://poshcode.org/3019

PowerShell Code Repository - Find-DuplicateSMTP
PowerShell Code Repository - Find-DuplicateSMTP
http://poshcode.org/1632

PowerShell Code Repository - Find-DuplicateSMTP
This script will query your AD for all users, groups and contacts. It will then process through each of the SMTP addresses for all objects and count the number of occurances of each address. The scope expanded as I kept thinking of other interesting questions regarding the SMTP addresses that were in my domain. Once the script has finished gathering interesting data regarding the SMTP addresses in your domain, it will dump that information out to a spreadsheet (requires Excel), then send the spreadsheet as an email to you.
http://poshcode.org/1631

PowerShell Code Repository - Find-GeoCode
A quick demonstration of using the MapPoint (aka Bing Maps?) web services to get addresses from Lat,Long pairs and vice-versa. Requires you to sign up for (at least) the free developer account in order to use the API.
http://poshcode.org/1422

PowerShell Code Repository - Find-GeoCode
A quick demonstration of using the MapPoint (aka Bing Maps?) web services to get addresses from Lat,Long pairs and vice-versa. Requires you to sign up for (at least) the free developer account in order to use the API.
http://poshcode.org/1490

PowerShell Code Repository - find-localadmins
This script searches ActiveDirectory for computers. It then queries each computer for the list of users who are in the local Administrators group.
http://poshcode.org/2870

PowerShell Code Repository - Find-MSDN
Modified version of meson’s which uses invoke-item rather than an IE COM object. Type a .NET class and the docs will pop up in your default browser.
http://poshcode.org/406

PowerShell Code Repository - Find-String
Find-String and Highligh-Matches work together to do formatted output of matches in strings
http://poshcode.org/426

PowerShell Code Repository - Find-String
Yet another find text in text files, this time with context, too.
http://poshcode.org/2296

PowerShell Code Repository - Find-String
Yet another find text in text files, this time with context, too.
http://poshcode.org/1096

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directories/files> and all sub-directories comparing size then MD5 of files. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] ; -delete will prompt to delete duplicates. -delete and -noprompt together will delete duplicates without prompting. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1783

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directories/files> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] ; -delete will prompt to delete duplicates. -delete and -noprompt will delete duplicates without prompting. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1779

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directories/files> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] ; -delete will prompt to delete duplicates. -delete and -noprompt will delete duplicates without prompting. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1774

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directories/files> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] ; -delete will prompt to delete duplicates. -delete and -noprompt will delete duplicates without prompting. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1775

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directories/files> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] ; -delete will prompt to delete duplicates. -delete and -noprompt will delete duplicates without prompting. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1776

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directories/files> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] ; -delete will prompt to delete duplicates. -delete and -noprompt will delete duplicates without prompting. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1770

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directories/files> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] ; -delete will prompt to delete duplicates. -delete and -noprompt will delete duplicates without prompting. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1765

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directories/files> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] ; -delete will prompt to delete duplicates. -delete and -noprompt will delete duplicates without prompting. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1766

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directories/files> comparing size then MD5 of files. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] [-recurse] ; -delete will prompt to delete duplicates. -delete and -noprompt together will delete duplicates without prompting. -recurse looks in all subdirectories of all listed directories. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1784

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directories/files> comparing size then SHA-512 hash of files. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] [-recurse] ; -delete will prompt to delete duplicates. -delete and -noprompt together will delete duplicates without prompting. -recurse looks in all subdirectories of all listed directories. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/2617

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directory> and all sub-directories. Usage: finddupe.ps1 <directory>
http://poshcode.org/1753

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directory> and all sub-directories. Usage: finddupe.ps1 <directory> (forgot get-md5 function in original)
http://poshcode.org/1754

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directorys> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> – otherwise does current directory.
http://poshcode.org/1757

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directorys> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> – otherwise does current directory.
http://poshcode.org/1758

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directorys> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] ; -delete will prompt to delete duplicates. -delete and -noprompt will delete duplicates without prompting. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1759

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directorys> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] ; -delete will prompt to delete duplicates. -delete and -noprompt will delete duplicates without prompting. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1760

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directorys> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] ; -delete will prompt to delete duplicates. -delete and -noprompt will delete duplicates without prompting. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1761

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directorys> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] ; -delete will prompt to delete duplicates. -delete and -noprompt will delete duplicates without prompting. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1762

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directorys> and all sub-directories. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] ; -delete will prompt to delete duplicates. -delete and -noprompt will delete duplicates without prompting. The first file in a duplicate pair will not be deleted ever.
http://poshcode.org/1763

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directorys> and all sub-directories. Usage: finddupe.ps1 <directory1> <directory2> ... <directory3>
http://poshcode.org/1755

PowerShell Code Repository - finddupe.ps1
Find duplicates in <directorys> and all sub-directories. Usage: finddupe.ps1 <directory1> <directory2> ... <directory3> – otherwise does current directory.
http://poshcode.org/1756

PowerShell Code Repository - Finding Old or Unused Ac
PowerShell Code Repository - Get-CrawlHealth (MOSS)
http://poshcode.org/1265

PowerShell Code Repository - FindNewVirtualMachines
Script to find any VM’s that we’re added to vCenter in the last x days.
http://poshcode.org/1084

PowerShell Code Repository - FindNewVirtualMachines
Script to find any VM’s that we’re added to vCenter in the last x days.
http://poshcode.org/1085

PowerShell Code Repository - Findup
PowerShell Code Repository - Bash Aliases
http://poshcode.org/2332

PowerShell Code Repository - Findup
PowerShell Code Repository - Bulk Change AD Passwords
http://poshcode.org/2395

PowerShell Code Repository - Findup
PowerShell Code Repository - Findup
http://poshcode.org/2344

PowerShell Code Repository - Findup
PowerShell Code Repository - Findup
http://poshcode.org/2345

PowerShell Code Repository - Findup
PowerShell Code Repository - Findup
http://poshcode.org/2346

PowerShell Code Repository - Findup
PowerShell Code Repository - Findup
http://poshcode.org/2340

PowerShell Code Repository - Findup
PowerShell Code Repository - Findup
http://poshcode.org/2341

PowerShell Code Repository - Findup
PowerShell Code Repository - Get-ComputerSession
http://poshcode.org/2343

PowerShell Code Repository - Findup
PowerShell Code Repository - Get-NextPrime
http://poshcode.org/2339

PowerShell Code Repository - Findup
PowerShell Code Repository - h20 -Hashtables 2 object
http://poshcode.org/2336

PowerShell Code Repository - Findup
PowerShell Code Repository - h20 -Hashtables 2 object
http://poshcode.org/2326

PowerShell Code Repository - Findup
PowerShell Code Repository - New-DFSRHealthReport
http://poshcode.org/2428

PowerShell Code Repository - Findup
PowerShell Code Repository - Set-IISLogLocation
http://poshcode.org/2375

PowerShell Code Repository - Findup
PowerShell Code Repository - Test-Port.ps1
http://poshcode.org/2393

PowerShell Code Repository - Findup
Findup – Find Duplicates, and optionall delete them. C# version of the powershell script FindDupe.ps1, C# version is probably 100 times faster though.
http://poshcode.org/2321

PowerShell Code Repository - Firefox Bookmarks By Key
This script uses current Show-UI and SQLite to query a copy of your Firefox Bookmark Database for Bookmarks tagged with combinations of 1 to 3 keywords. It uses the WPF 4.0 Datagrid. (Improvements in Eventhandling of Hyperlinks are welcome)
http://poshcode.org/2676

PowerShell Code Repository - Fisher-Yates shuffle
How to shuffle an array
http://poshcode.org/649

PowerShell Code Repository - Fix for datastore
The Easy Migration script enables you to manually VMotion and SVMotion virtual machines very quickly and easily. You don’t have to specify the resource pools and it reduces the amount of mouse clicks required. There is also an Undo feature.
http://poshcode.org/2283

PowerShell Code Repository - Fix VPC Console
Fix the Virtual PC Console options for left and top position “
http://poshcode.org/139

PowerShell Code Repository - FixInvalidVMs.ps1
This script cycle through an entire VMware Virtual Center instance and identify any virtual machines that are “invald” or “inaccessible”. This typically occurs as a result of a host crash. Running VMs are left with lock files in place making them unusable. The script is internally documented and has lots of status available. Use at your own risk
http://poshcode.org/2549

PowerShell Code Repository - Force WSUS Check
Remotely force WSUS Check on Servers within your network. Powershell remoting must be enabled.
http://poshcode.org/2074

PowerShell Code Repository - foreach-withexception
simple function like foreach, but that traps exceptions using v2, and logs then in the $lastex variable. this way the pipeline can continue and process the objects that aren’t having errors happen against them. eventually this needs to be made much better, and be a v2 advanced function
http://poshcode.org/861

PowerShell Code Repository - foreach-withexception
simple function like foreach, but that traps exceptions using v2, and logs then in the $lastex variable. this way the pipeline can continue and process the objects that aren’t having errors happen against them. eventually this needs to be made much better, and be a v2 advanced function
http://poshcode.org/864

PowerShell Code Repository - format-custom
I really am still working on this replacement for the WASP module ;-)
http://poshcode.org/3189

PowerShell Code Repository - format-custom
I really am still working on this replacement for the WASP module ;-)
http://poshcode.org/3190

PowerShell Code Repository - Format-Hex.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2143

PowerShell Code Repository - Format-HexString
Format a byte array as a hexadecimal string
http://poshcode.org/107

PowerShell Code Repository - Format-PoshTable
Format-PoshTable puts the output in a WPF DataGrid (inline in PoshConsole, popup otherwise)
http://poshcode.org/1699

PowerShell Code Repository - Format-String.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2144

PowerShell Code Repository - Format-TablePlus
Robert, the problem is that this script requires version 2.0 … that “GetSteppablePipeline” is a new feature. I forgot to mark it.
http://poshcode.org/1209

PowerShell Code Repository - Format-TablePlus
This is a wrapper function for Format-Table that adds a -Width parameter, and a -PadEnd parameter (without which it trims the end of every line of output. Set -PadEnd to get the original Format-Table behavior of adding needless whitespace on the end of every line of output.
http://poshcode.org/1187

PowerShell Code Repository - FormsLib.ps1
PowerShell Code Repository - SSL Oblivious Web Client
http://poshcode.org/625

PowerShell Code Repository - Fridays thirteenth
Short script show Fridays thirteenth from 13.2.2009 to given date.
http://poshcode.org/866

PowerShell Code Repository - FTP download
quick hard coded script for uploading a file to an ftp server.
http://poshcode.org/3004

PowerShell Code Repository - FTP ListDirectory
An example showing how to get a file listing via ftp. NOTE: the listing comes back in (bad) html…
http://poshcode.org/1689

PowerShell Code Repository - FTP module
Module for communicating with FTP server
http://poshcode.org/2316

PowerShell Code Repository - FTP upload
quick hard coded script for uploading a file to an ftp server.
http://poshcode.org/2710

PowerShell Code Repository - FTP upload
quick hard coded script for uploading a file to an ftp server.
http://poshcode.org/1133

PowerShell Code Repository - FTP upload
quick hard coded script for uploading a file to an ftp server.
http://poshcode.org/1134

PowerShell Code Repository - FTP Upload Dir Tree
Uploads a directory tree to a remote FTP server. Uses NetCmdlets (send-ftp).
http://poshcode.org/1140

PowerShell Code Repository - FuncionInfo.types.ps1xml
PowerShell Code Repository - ModuleWriteError.psm1
http://poshcode.org/1575

PowerShell Code Repository - FuncionInfo.types.ps1xml
PowerShell Code Repository - MWE_UsageSample.psm1
http://poshcode.org/1577

PowerShell Code Repository - FuncionInfo.types.ps1xml
Required types for ModuleWriteError.psm1. Adds Verb, Noun, Prefix, and InternalName fields to the FunctionInfo object for advanced functions.
http://poshcode.org/1571

PowerShell Code Repository - Function Run-Script
This function should be included in the PowerShell ISE profile.ps1 and it will display the start and end times of any scripts started clicking ‘Run Script’ (or ALT+R) in the Add-ons Menu; additionally they will be logged to the Scripts Event Log (which needs creating first) and also to a text log file. This defaults to that created by the Windows Script Monitor Service (available from www.SeaStarDevelopment.Bravehost.com) which normally indicates the full command line used to start each script.
http://poshcode.org/3103

PowerShell Code Repository - Function Run-Script
This function should be included in the PowerShell ISE profile.ps1 and it will display the start and end times of any scripts started clicking ‘Run Script’ (or ALT+R) in the Add-ons Menu; additionally they will be logged to the Scripts Event Log (which needs creating first) and also to a text log file. This defaults to that created by the Windows Script Monitor Service (available from www.SeaStarDevelopment.Bravehost.com) which normally indicates the full command line used to start each script.
http://poshcode.org/3093

PowerShell Code Repository - Function Run-Script
This function should be included in the PowerShell ISE profile.ps1 and it will display the start and end times of any scripts started clicking ‘Run Script’ (or ALT+R) in the Add-ons Menu; additionally they will be logged to the Scripts Event Log (which needs creating first) and also to a text log file. This defaults to that created by the Windows Script Monitor Service (available from www.SeaStarDevelopment.Bravehost.com) which normally indicates the full command line used to start each script.
http://poshcode.org/3094

PowerShell Code Repository - Function Run-Script
This function should be included in the PowerShell ISE profile.ps1 and it will display the start and end times of any scripts started clicking ‘Run Script’ (or ALT+R) in the Add-ons Menu; additionally they will be logged to the Scripts Event Log (which needs creating first) and also to a text log file. This defaults to that created by the Windows Script Monitor Service (available from www.SeaStarDevelopment.Bravehost.com) which normally indicates the full command line used to start each script.
http://poshcode.org/3084

PowerShell Code Repository - Function Run-Script
This function should be included in the PowerShell ISE profile.ps1 and it will display the start and end times of any scripts started clicking ‘Run Script’ (or F2) in the Add-ons Menu; additionally they will be logged to the Scripts Event Log (which needs creating first) and also to a text log file. This defaults to that created by the Windows Script Monitor Service (available from www.SeaStarDevelopment.Bravehost.com) which normally indicates the full command line used to start each script.
http://poshcode.org/3104

PowerShell Code Repository - FunctionInfo.types.ps1xm
PowerShell Code Repository - FuncionInfo.types.ps1xml
http://poshcode.org/1578

PowerShell Code Repository - g
PowerShell Code Repository - FormsLib.ps1
http://poshcode.org/627

PowerShell Code Repository - Generate New Password
A Function which can be added to a Script or $PROFILE which generates password from 1 to whatever characters long with controlled levels of Complexity specified by the User
http://poshcode.org/1945

PowerShell Code Repository - Generate-Acronyms
PowerShell Code Repository -
http://poshcode.org/1083

PowerShell Code Repository - GeSHi PowerShell Syntax
This is the PowerShell syntax file for GeSHi that we use on PoshCode 1.0
http://poshcode.org/1101

PowerShell Code Repository - Get # of Web Connections
PowerShell Code Repository - A Process Block
http://poshcode.org/1146

PowerShell Code Repository - Get default AppPath
This function helps getting the default application path for any given file extension. For example, when you have multiple PowerShell Script editors installed on a system, you can find the default script editor for all your .PS1 files.
http://poshcode.org/2645

PowerShell Code Repository - Get Exchange2003 Servers
PowerShell Code Repository - All Exchange 2003 Server
http://poshcode.org/1023

PowerShell Code Repository - Get KB-articles of SP1
How do you know which hotfix or security fix is included in Windows 7 or Windows Server 2008 R2 SP1? This script downloads the necessary informations and puts it into objects, so you can query and work with it.
http://poshcode.org/2708

PowerShell Code Repository - Get KB-articles of SP1
How do you know which hotfix or security fix is included in Windows 7 or Windows Server 2008 R2 SP1? This script downloads the necessary informations and puts it into objects, so you can query and work with it.
http://poshcode.org/2709

PowerShell Code Repository - Get MOSS User Profile
PowerShell Code Repository - Get MOSS User Profile
http://poshcode.org/1306

PowerShell Code Repository - Get MOSS User Profile
PowerShell Code Repository - New-Shortcut
http://poshcode.org/1303

PowerShell Code Repository - Get MOSS User Profile
PowerShell Code Repository - Run-Query (SharePoint)
http://poshcode.org/1305

PowerShell Code Repository - Get Network Utilization
get utilization from all network interfaces
http://poshcode.org/1352

PowerShell Code Repository - Get Network Utilization
get utilization from all network interfaces
http://poshcode.org/1900

PowerShell Code Repository - Get Network Utilization
replace $inst with your NIC name. You can find that out by running (new-object System.Diagnostics.PerformanceCounterCategory(“network interface”)).GetInstanceNames()
http://poshcode.org/1349

PowerShell Code Repository - Get Old Outlook Events
PowerShell Code Repository - Set-PrimaryDnsSuffix
http://poshcode.org/2956

PowerShell Code Repository - Get Stock Quotes
Get-StockQuotes gives a very easy way to get stock quotes using PowerShell CTP3’s new Web Services capabilities.
http://poshcode.org/752

PowerShell Code Repository - Get Twitter RSS Feed
A first attempt at a generic graphing function using commands from WPFToolkit’s DataVisualization dll
http://poshcode.org/2782

PowerShell Code Repository - Get Twitter RSS Feed
Download and install Google Chromium if there is a newer version available.
http://poshcode.org/2748

PowerShell Code Repository - Get Twitter RSS Feed
kyletboat3
http://poshcode.org/2733

PowerShell Code Repository - Get Twitter RSS Feed
This script will take a Twitter User’s Screen name and get their RSS feed of posts
http://poshcode.org/2739

PowerShell Code Repository - Get Twitter RSS Feed
This script will take a Twitter User’s Screen name and get their RSS feed of posts
http://poshcode.org/2703

PowerShell Code Repository - Get Twitter RSS Feed
This script will take a Twitter User’s Screen name and get their RSS feed of posts
http://poshcode.org/2685

PowerShell Code Repository - Get Twitter RSS Feed
This script will take a Twitter User’s Screen name and get their RSS feed of posts
http://poshcode.org/2821

PowerShell Code Repository - Get Twitter RSS Feed
This script will take a Twitter User’s Screen name and get their RSS feed of posts
http://poshcode.org/2822

PowerShell Code Repository - Get Twitter RSS Feed
This script will take a Twitter User’s Screen name and get their RSS feed of posts
http://poshcode.org/2967

PowerShell Code Repository - Get Twitter RSS Feed
This script will take a Twitter User’s Screen name and get their RSS feed of posts
http://poshcode.org/2971

PowerShell Code Repository - Get User for Svc/Tasks
PowerShell Code Repository -
http://poshcode.org/2082

PowerShell Code Repository - Get Virtual ESXi IP Addr
This code determines the IP address of a virtual ESXi VM in what might just be the dumbest way possible, namely by taking a screenshot of it, OCRing the results and extracting the IP. For educational purposes only. Unfortunately it’s pretty slow due to some cmdlet slowness. Requires PowerCLI 4.0 U1, PowerShell v2, and Microsoft Office Document Imaging (MODI) to be installed and configured.
http://poshcode.org/1823

PowerShell Code Repository - Get Virtual ESXi IP Addr
This code determines the IP address of a virtual ESXi VM in what might just be the dumbest way possible, namely by taking a screenshot of it, OCRing the results and extracting the IP. For educational purposes only. Unfortunately it’s pretty slow due to some cmdlet slowness. Requires PowerCLI 4.0 U1, PowerShell v2, and Microsoft Office Document Imaging (MODI) to be installed and configured.
http://poshcode.org/1495

PowerShell Code Repository - Get VMs on a LUN
Given a LUN, this script returns all VMs using that LUN. This technique uses the performance manager, which is not the only way to do it but is actually a very easy way to do it.
http://poshcode.org/1426

PowerShell Code Repository - Get VMware Information
Get VM / Datastore / Host information from VMware clusters and add it to a excel spreadsheet, please note that you will need the VMware powershell plugins and a copy of Excel on the machine running the code.
http://poshcode.org/489

PowerShell Code Repository - Get VMware Information
Get VM / Datastore / Host information from VMware clusters and add it to a excel spreadsheet, please note that you will need the VMware powershell plugins and a copy of Excel on the machine running the code.
http://poshcode.org/476

PowerShell Code Repository - get windows product key
in progress -buggy
http://poshcode.org/867

PowerShell Code Repository - get windows product key
retrieve the windows product key of a specified machine using WMI
http://poshcode.org/868

PowerShell Code Repository - get windows product key
Retrieve the windows product key of a specified machine using WMI — Updated for v2 and to take an array of computers (without rewriting anything)
http://poshcode.org/1544

PowerShell Code Repository - Get-2011SGScriptingScore
Function to retrieve score information for the 2011 Microsoft Scripting Games.
http://poshcode.org/2622

PowerShell Code Repository - Get-AclMisconfiguration.
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2145

PowerShell Code Repository - Get-ActiveRules (SCOM)
This function, Get-ActiveRules, requires Microsoft.SystemCenter.Internal.Tasks.mp located in the SupportTools folder of the SP1 CD. It runs the task “Get All Running Workflows” and writes it to an XML file, by default it’s $server-Rules.xml. This task returns all the workflows (Rules & Monitors) that run on a given server name.
http://poshcode.org/454

PowerShell Code Repository - Get-ActivesyncUsers
Script to retreive all users with an active sync device partnership
http://poshcode.org/698

PowerShell Code Repository - Get-ADGroupMembers
This function returns an object that contains all the properties of a user object. This function works for small groups as well as groups in excess of 1000.
http://poshcode.org/3170

PowerShell Code Repository - Get-ADGroupMembers
This function returns an object that contains all the properties of a user object. This function works for small groups as well as groups in excess of 1000.
http://poshcode.org/2834

PowerShell Code Repository - Get-ADGroupMembers
This function returns an object that contains all the properties of a user object. This function works for small groups as well as groups in excess of 1000.
http://poshcode.org/2812

PowerShell Code Repository - Get-ADGroupMembers
This function returns an object that contains all the properties of a user object. This function works for small groups as well as groups in excess of 1000.
http://poshcode.org/2656

PowerShell Code Repository - Get-ADGroupMembers
This function returns an object that contains all the properties of a user object. This function works for small groups as well as groups in excess of 1000.
http://poshcode.org/2658

PowerShell Code Repository - Get-ADGroupModifications
Generates a HTML-report of Active Directory group membership modifications (additions and deletions). Specify a valid path on line 211 to store the report. For more details, see this blog post
http://poshcode.org/1402

PowerShell Code Repository - Get-ADGroupModifications
The Get-ADGroupModificationsReport script, which were posted on http://poshcode.org/1402, are now enhanced in due to performance by storing each domain controllers security eventlog in a variable
http://poshcode.org/1810

PowerShell Code Repository - Get-ADMapObject
PowerShell Code Repository - Start-Demo 3.3.3
http://poshcode.org/706

PowerShell Code Repository - Get-ADMetaData.ps1
Gets the Active Directory Metadata for a specified Object
http://poshcode.org/94

PowerShell Code Repository - Get-ADNonExpPass
This script will retrieve all user accounts whose passwords are set to not expire for a given LDAP path. Defaults to root of the domain.
http://poshcode.org/1067

PowerShell Code Repository - Get-ADSite-byIP
This script takes an IPv4 address (optionally with subnet mask or mask length) and searches the subnets in active directory from most significant to least significant. Which ever subnet matches the IP address first will be returned in distinguished name format. If no subnets match, the script will return Subnet_not_assigned
http://poshcode.org/2888

PowerShell Code Repository - Get-AliasSuggestion.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2146

PowerShell Code Repository - Get-Answer.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2147

PowerShell Code Repository - Get-APOD
Get-Apod parses the Astronomy Picture of the Day website and downloads the current day’s image. It then sets the image as the desktop wallpaper for the system.
http://poshcode.org/1588

PowerShell Code Repository - Get-App
Attempt to resolve the path to an executable using Get-Command or the “App Paths” registry key — returns an ApplicationInfo object
http://poshcode.org/170

PowerShell Code Repository - Get-App 1.1
PowerShell Code Repository - AD-GroupMembers_v2
http://poshcode.org/174

PowerShell Code Repository - Get-Application 2.1
PowerShell Code Repository - target.local
http://poshcode.org/2635

PowerShell Code Repository - Get-Arguments.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2148

PowerShell Code Repository - Get-BogonList
Heres a function to quickly look up the latest version of the bogon list maintained by Team Cymru from within PowerShell.
http://poshcode.org/2657

PowerShell Code Repository - Get-BogonList
Heres a function to quickly look up the latest version of the bogon list maintained by Team Cymru from within PowerShell.
http://poshcode.org/2913

PowerShell Code Repository - Get-BogonList
Heres a script to quickly look up the latest version of the bogon list maintained by Team Cymru from within PowerShell.
http://poshcode.org/1892

PowerShell Code Repository - Get-BogonList
Heres a script to quickly look up the latest version of the bogon list maintained by Team Cymru from within PowerShell.
http://poshcode.org/1622

PowerShell Code Repository - Get-BracketContent
This script logs all commands entered at the prompt (similar to Start-Transcript, but without the output logging). I got the idea from @testfirst on Twitter.
http://poshcode.org/714

PowerShell Code Repository - Get-CalendarWeek
PowerShell Code Repository - AsyncCallbacks in .NET
http://poshcode.org/1383

PowerShell Code Repository - Get-CalendarWeek
PowerShell Code Repository - Get-CalendarWeek
http://poshcode.org/1392

PowerShell Code Repository - Get-CalendarWeek
PowerShell Code Repository - New-TestDataSet
http://poshcode.org/1391

PowerShell Code Repository - Get-CertificationAuthori
Retrieves all Enterprise Certification Authorities (CA) in cuurent AD forest
http://poshcode.org/1394

PowerShell Code Repository - Get-Characteristics.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2149

PowerShell Code Repository - Get-ChildItemColor
PowerShell Code Repository - SharpSsh Functions
http://poshcode.org/878

PowerShell Code Repository - Get-ChildItemColor
A wrapper for Get-ChildItem with color highlighting for different file types. I was thinking of the Linux ‘ls —color’, but didn’t bother to match up colors or anything. TODO: I should probably update it to precompile the regexes at the top so that they aren’t compiled for each item returned by Get-ChildItem, and the ability to sort by type would be nice. Note: you will have to remove the documentation at the beginning of the function if you want to use it with versions prior to v2.0 CTP3.
http://poshcode.org/876

PowerShell Code Repository - Get-ChildItemProxy
PowerShell Code Repository - ISE-Lines
http://poshcode.org/785

PowerShell Code Repository - Get-ChildItemRecurse
A recursive function that allows the user to do a container search and specify the number of levels they would like to recurse. (Requires v2.0 CTP3 or later)
http://poshcode.org/1113

PowerShell Code Repository - Get-ChildItemRecurse
A recursive function that allows the user to do a container search and specify the number of levels they would like to recurse. (Requires v2.0 CTP3 or later)
http://poshcode.org/1114

PowerShell Code Repository - Get-ChildItemRecurse
A recursive function that allows the user to do a container search and specify the number of levels they would like to recurse. (Requires v2.0 CTP3 or later)
http://poshcode.org/1115

PowerShell Code Repository - Get-ChilditemsRecursive
PowerShell Code Repository - Get-VariableType
http://poshcode.org/999

PowerShell Code Repository - Get-Clipboard.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2150

PowerShell Code Repository - Get-Comic
Gets the latest comic from any of several different comic strips and downloads it to “My Pictures\Comix”
http://poshcode.org/1003

PowerShell Code Repository - Get-Command (which)
A function to replace Get-Command and output the commands in the correct order (the first one is the one the shell will use by default).
http://poshcode.org/122

PowerShell Code Repository - Get-Command 2.0
Finally, a working Which (or Whence) for PowerShell. This function supplants Get-Command and outputs the commands in the correct order — that is, the first one output is the one the shell will use.
http://poshcode.org/173

PowerShell Code Repository - Get-Computer
The Get-Computer cmdlet retrieves basic information such as computer name, domain or workgroup name, and whether or not the computer is on a workgroup or a domain for the local computer without using WMI. It uses Netapi32.dll to get the domain/workgroup name and .Net for the computername.
http://poshcode.org/1635

PowerShell Code Repository - Get-ComputerSession
This script uses query.exe to query local or remote computers and returns back the current logon sessions. This script will only work on Vista and above client OS’s and Windows 2008 and above server OS’s unless a Windows 2003 server is configured as a Terminal Server.
http://poshcode.org/2342

PowerShell Code Repository - Get-ComputerUpdateRport
This script uses two functions to get a list of computers from ActiveDirectory and then query each computer for a list of pending updates. It then returns selected fields from that function to create the report.
http://poshcode.org/2906

PowerShell Code Repository - Get-Constructor
A simple little script to show all the (public) constructors for a type
http://poshcode.org/1201

PowerShell Code Repository - Get-Constructor
Enumerates the constructors of a type with the parameters that they take, so you can figure out what your options are when calling New-Object.
http://poshcode.org/1368

PowerShell Code Repository - Get-Constructor
Enumerates the constructors of a type with the parameters that they take, so you can figure out what your options are when calling New-Object. Changed it to output something closer to PowerShell syntax
http://poshcode.org/1861

PowerShell Code Repository - Get-Constructor
Enumerates the constructors of a type with the parameters that they take, so you can figure out what your options are when calling New-Object. Now outputs fully paste-able syntax ;)
http://poshcode.org/1862

PowerShell Code Repository - Get-CountDown
A simple countdown timer as an advanced function.
http://poshcode.org/2590

PowerShell Code Repository - Get-Cpl
A function to retrieve available Control Panel Applets along with a description.
http://poshcode.org/2397

PowerShell Code Repository - Get-CrawlHealth (MOSS)
This extends the functionality of the SharePoint Search Administration page, producing dashboard-like analysis of your farm’s search crawls. I do not intend to use this script in production, but instead will use it as a starting point to help me build out search crawl health monitoring functionality.
http://poshcode.org/1258

PowerShell Code Repository - Get-CrawlHealth (MOSS)
This extends the functionality of the SharePoint Search Administration page, producing dashboard-like analysis of your farm’s search crawls. I do not intend to use this script in production, but instead will use it as a starting point to help me build out search crawl health monitoring functionality.
http://poshcode.org/1259

PowerShell Code Repository - Get-CrawlHealth (MOSS)
This extends the functionality of the SharePoint Search Administration page, producing dashboard-like analysis of your farm’s search crawls. I do not intend to use this script in production, but instead will use it as a starting point to help me build out search crawl health monitoring functionality.
http://poshcode.org/1264

PowerShell Code Repository - Get-Credential
An improvement over the default Get-Credential cmdlet (doesn’t take much, eh?) offering, among other things, a -Console switch.
http://poshcode.org/680

PowerShell Code Repository - Get-Credential 1.2
An improvement over the default Get-Credential cmdlet (doesn’t take much, eh?) offering, among other things, a -Console switch.
http://poshcode.org/681

PowerShell Code Repository - Get-Credential 2.1
Replaces Get-Credential, with options to set the dialog title and message, as well as defaulting the domain and username, and offering the option to prompt in-line in the console, and to get generic (non-domain) credentials (without a leading “\”). Better in every way than the built-in Get-Credential ;)
http://poshcode.org/1480

PowerShell Code Repository - Get-Credential++
Replaces Get-Credential, with options to set the dialog title and message, as well as defaulting the domain and username, and offering the option to prompt in-line in the console, and to get generic (non-domain) credentials (without a leading “\”). Better than the default in every way than th
http://poshcode.org/1478

PowerShell Code Repository - Get-Credential++
Replaces Get-Credential, with options to set the dialog title and message, as well as defaulting the domain and username, and offering the option to prompt in-line in the console, and to get generic (non-domain) credentials (without a leading “\”). Better than the default in every way than the built-in Get-Credential ;-)
http://poshcode.org/1479

PowerShell Code Repository - Get-CryptoBytes
PowerShell Code Repository -
http://poshcode.org/2287

PowerShell Code Repository - Get-CryptoBytes
PowerShell Code Repository - Set-Domain
http://poshcode.org/2271

PowerShell Code Repository - Get-CrystalReportTable
Find the tables used in a Crystal Report.
http://poshcode.org/1471

PowerShell Code Repository - Get-DCsFromDNS
A function that allows me to query DNS on my internal servers for Domain Controllers
http://poshcode.org/2042

PowerShell Code Repository - Get-DefragAnalysis.ps1
Displays disk fragmentation statistics for a remote server. My first attempt at using Windows Forms with PrimalForms.
http://poshcode.org/655

PowerShell Code Repository - Get-DefragAnalysis.ps1
Displays disk fragmentation statistics for a remote server. My first attempt at using Windows Forms with PrimalForms. Edit: fixed spacing.
http://poshcode.org/656

PowerShell Code Repository - Get-Delegate.ps1
Use Reflection and IL to emit arbitrary delegatesfrom PowerShell script
http://poshcode.org/194

PowerShell Code Repository - Get-DellWarranty
Queries the Dell Website for a list of service tags and returns the warranty information as a custom object.
http://poshcode.org/2482

PowerShell Code Repository - Get-DellWarranty
Queries the Dell Website for a list of service tags and returns the warranty information as a custom object.
http://poshcode.org/3254

PowerShell Code Repository - Get-Dependency
PowerShell Code Repository - Get-Dependency
http://poshcode.org/1075

PowerShell Code Repository - Get-Dependency
PowerShell Code Repository - Send-Mapi
http://poshcode.org/1074

PowerShell Code Repository - Get-Desktop.ps1
4 lines of PowerShell to wrap that C# class and show you how to use it… (with Add-Type -Path)
http://poshcode.org/2009

PowerShell Code Repository - Get-DesktopResolution.ps
This script is a re-write of an MSDN sample. It usesnthe Win32_Desktop Monitor WMI class to obtain the screen dimensions.
http://poshcode.org/797

PowerShell Code Repository - Get-DetailedSystemInform
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2151

PowerShell Code Repository - Get-DhcpClient
More C# than PowerShell. A script to return DHCP client leases from a DHCP server.
http://poshcode.org/2310

PowerShell Code Repository - Get-DirSize
A v2.0 function to recursively get the sizes of all subdirectories under a root path.
http://poshcode.org/1185

PowerShell Code Repository - Get-Dirty Extended
Extended version of Hal’s original “dirtoday” script via twitter https://twitter.com/#!/halr9000/status/88211937720156160
http://poshcode.org/2768

PowerShell Code Repository - Get-DiskUsage
The Linux/Unix ‘du -sh’ command, ala PowerShell (faster than other versions of this script, but still ever so much slower than compiled code)
http://poshcode.org/721

PowerShell Code Repository - Get-DiskUsage.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2152

PowerShell Code Repository - get-DiskVolumeInfo
This function returns information about disk volumes, works on Win2K, WinXP, Win2003, Win2008, WinVista, Win7. Can be used in a pipeline with -Raw switch or stand-alone.
http://poshcode.org/2976

PowerShell Code Repository - get-DiskVolumeInfo
This function returns information about disk volumes, works on Win2K, WinXP, Win2003, Win2008, WinVista, Win7. Can be used in a pipeline with -Raw switch or stand-alone.
http://poshcode.org/2977

PowerShell Code Repository - Get-DistanceOnEarth
PowerShell Code Repository - Get-CountDown
http://poshcode.org/2591

PowerShell Code Repository - Get-DLRestriction
PowerShell Code Repository - Get-DLRestriction
http://poshcode.org/1884

PowerShell Code Repository - Get-DLRestriction
PowerShell Code Repository - Get/Set Signature 2.3
http://poshcode.org/1883

PowerShell Code Repository - Get-DNSZoneRecords
A simple update of Steven Saehrig’s script was written to query DNS servers via WMI to remove the odd dependencies and take parameters
http://poshcode.org/647

PowerShell Code Repository - Get-DNSZoneRecords
This Script was written to query remote DNS servers for A record in the local domain. I wrote this in CTP 2 and unsure if it will work in Posh v1.
http://poshcode.org/642

PowerShell Code Repository - Get-DomainPasswordPolicy
This is a function that queries the domain for the password policies that are set via Group Policy. Output objects include Min Password Length, Min Password Age, Max Password Age, number of passwords remembered (for password history restrictions), Lockout Threshold, Lockout Duration, and the Lockout Counter Reset time.
http://poshcode.org/2939

PowerShell Code Repository - Get-DominosOrderStatus
Gets the status of your Dominos pizza order. Your phone number is the only input parameter. This is the most important Psh module you’ll ever import.
http://poshcode.org/1355

PowerShell Code Repository - Get-DPMRecoveryPointRepo
This script generates a report of all the recovery points from your DPM server.
http://poshcode.org/2871

PowerShell Code Repository - Get-EnumValues
This function will simply return the values of an enumerator. Input can be an enum type or an object which is derived from one. Usage examples:
http://poshcode.org/514

PowerShell Code Repository - Get-Environment
It gets the System Environment Variables from Registry
http://poshcode.org/133

PowerShell Code Repository - Get-EventLogBackup.ps1
PowerShell Code Repository - RunSSIS
http://poshcode.org/89

PowerShell Code Repository - Get-EwsEmail
This is a sample script to read emails from an Inbox using Exchange Web Services. The code is a basic port of the C# found here: http://omegacoder.com/?p=454. The EWS SDK is a dependency: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1
http://poshcode.org/2978

PowerShell Code Repository - Get-Exception
Helps you find the right exception to throw. It can take a filter parameter to filter results down. Usage is Get-Exception -filter MYFILTER like Get-Exception Null. (to port to version 1, just remove the multi-line comments)
http://poshcode.org/827

PowerShell Code Repository - Get-Exchange-Mail.ps1
PowerShell Code Repository - Get-Exchange-Mail.ps1
http://poshcode.org/2520

PowerShell Code Repository - Get-Exchange-Mail.ps1
PowerShell Code Repository - Get-PSExecutionPolicy
http://poshcode.org/2519

PowerShell Code Repository - Get-ExchangeDBSizes
PowerShell Code Repository - Get Network Utilization
http://poshcode.org/1901

PowerShell Code Repository - Get-ExchangeDBSizes
PowerShell Code Repository - Get-ExchangeDBSizes
http://poshcode.org/1902

PowerShell Code Repository - Get-ExchangeDBSizes
PowerShell Code Repository - Get-OnlineHelp
http://poshcode.org/2025

PowerShell Code Repository - Get-ExchangeDBSizes
PowerShell Code Repository - MoveExch2010SP1Archives
http://poshcode.org/2036

PowerShell Code Repository - Get-Excuse
Suffering from Monday morning due to server failure. Maybe an excuse should be automatically added to mails sent from members of my team.
http://poshcode.org/2380

PowerShell Code Repository - Get-ExpiredCert
Reports the number of expired certificates published to a user account in Active Directory.
http://poshcode.org/1329

PowerShell Code Repository - Get-FactualData
Retrieve data from factual.com. Note: Requires you to establish an API key before you can use it.
http://poshcode.org/1732

PowerShell Code Repository - Get-FailingDrive
PowerShell Code Repository - Hash Checker
http://poshcode.org/2921

PowerShell Code Repository - Get-FeedInfo
Takes an array of RSS feed URLs and gets the site URL and title..
http://poshcode.org/1698

PowerShell Code Repository - Get-Field
Displays private fields of passed object. This function is useful only if you want to want to see what is under the hood in powershell
http://poshcode.org/2067

PowerShell Code Repository - Get-Field
Displays private fields of passed object. This function is useful only if you want to want to see what is under the hood in powershell
http://poshcode.org/2057

PowerShell Code Repository - Get-Field
Displays private fields of passed object. This function is useful only if you want to want to see what is under the hood in powershell
http://poshcode.org/2064

PowerShell Code Repository - Get-FileEncoding
Get-FileEncoding function determines encoding by looking at Byte Order Mark (BOM).
http://poshcode.org/2075

PowerShell Code Repository - Get-FileEncoding
Get-FileEncoding function determines encoding by looking at Byte Order Mark (BOM).
http://poshcode.org/2059

PowerShell Code Repository - Get-FileEncoding
Get-FileEncoding function determines encoding by looking at Byte Order Mark (BOM).
http://poshcode.org/3227

PowerShell Code Repository - Get-FileEncoding
Get-FileEncoding function determines encoding by looking at Byte Order Mark (BOM).
http://poshcode.org/3223

PowerShell Code Repository - Get-FileEncoding
Get-FileEncoding function determines encoding by looking at Byte Order Mark (BOM). Output strings are determined from the possible values in the System.Text.Encoding enumeration (ASCII, BigEndianUnicode, Default, Unicode, UTF32, UTF7, UTF8) and are valid values for the “-encoding” parameter in cmdlets like Set-Content, Out-File, etc.
http://poshcode.org/3231

PowerShell Code Repository - Get-FileEncoding.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2153

PowerShell Code Repository - Get-FileHash.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2154

PowerShell Code Repository - Get-FileTail 1.0
A PowerShell 2.0 function to do the equivalent of the ‘nix tail, including the continuous feature (tail -f). Notice this does not try to emulate the ‘nix command parameters, which never made sense to me. I’ll leave that to someone else.
http://poshcode.org/1061

PowerShell Code Repository - Get-Films (From Netflix)
An example usage of the Netflix API from PowerShell via the New-ODataServiceProxy function.
http://poshcode.org/2041

PowerShell Code Repository - Get-FirewallStatus
Returns $true if the Windows Firewall is enabled, $false if it is disabled.
http://poshcode.org/836

PowerShell Code Repository - Get-FirewallStatus2
An alternate method of querying the registry to return the firewall status (returns $true or $false). This one does not use WMI.
http://poshcode.org/838

PowerShell Code Repository - Get-FreeDiskSpace
This script works in conjunction with an Event Trigger on the System event on our file servers. This script queries the System log for EventID 2013, and returns the drive letter from the most recent event.
http://poshcode.org/2872

PowerShell Code Repository - Get-FreeRAM
Get the Free RAM from a system
http://poshcode.org/2962

PowerShell Code Repository - Get-FSMORoleOwner
PowerShell Code Repository - Backup-EventLogs
http://poshcode.org/2726

PowerShell Code Repository - Get-FSMORoleOwner
This advanced function will get all FSMO role owners for each domain in a forest. Returns an object that contains the collection of FSMO role owners.
http://poshcode.org/2727

PowerShell Code Repository - Get-FSMORoleOwner
This advanced function will get all FSMO role owners for each domain in a forest. Returns an object that contains the collection of FSMO role owners.
http://poshcode.org/2723

PowerShell Code Repository - Get-FSMORoleOwner
This advanced function will get all FSMO role owners for each domain in a forest. Returns an object that contains the collection of FSMO role owners.
http://poshcode.org/2724

PowerShell Code Repository - Get-FtpList
A function to get a file listing via FTP and parse it into objects.
http://poshcode.org/1692

PowerShell Code Repository - Get-Gender
Guesses the gender of a first name. Uses BabyNameAddicts.com, and works with most common names (not just anglo) ...
http://poshcode.org/623

PowerShell Code Repository - Get-Gender.ps1
This script serves three purposes, including the obvious:
http://poshcode.org/926

PowerShell Code Repository - Get-GoogleSpreadsheets
PowerShell Code Repository - Get-EventLogBackup.ps1
http://poshcode.org/890

PowerShell Code Repository - Get-GPOSettings
This script gets a list of all Group Policy Objects in the domain filtered on the value of GPOSettingName. For each GPO if the Extension Name matches GPOSettingName the Extensions are then reported back.
http://poshcode.org/2919

PowerShell Code Repository - Get-GroupMembership
Two cmdlets for and from the Active-Directory uninitiated…
http://poshcode.org/1642

PowerShell Code Repository - Get-GroupMembership
Two cmdlets for and from the Active-Directory uninitiated…
http://poshcode.org/578

PowerShell Code Repository - Get-GrowthRate
PowerShell Code Repository - Highlight-Syntax 1.0
http://poshcode.org/704

PowerShell Code Repository - Get-GrowthRate
Calculates percentage growth rate given a starting value, ending value, and number of periods in the range. @stahler thx!
http://poshcode.org/699

PowerShell Code Repository - Get-GrowthRate
Calculates percentage growth rate given a starting value, ending value, and number of periods in the range. @stahler thx!
http://poshcode.org/700

PowerShell Code Repository - Get-GrowthRate
Calculates percentage growth rate given a starting value, ending value, and number of periods in the range. @stahler thx!
http://poshcode.org/701

PowerShell Code Repository - Get-GrowthRate
Calculates percentage growth rate given a starting value, ending value, and number of periods in the range. @stahler thx!
http://poshcode.org/702

PowerShell Code Repository - Get-Head
Read the first few characters of a file … fast.
http://poshcode.org/3184

PowerShell Code Repository - Get-Help
gh is a wrapper around get-help and get-command to list the parameter sets for commands when there is no help
http://poshcode.org/711

PowerShell Code Repository - Get-HostEntry.ps1
Queries DNS to return the host name and associated IP addresses, given either an IP address or a host name via the pipeline or parameter (accepts arrays).
http://poshcode.org/2558

PowerShell Code Repository - Get-Hostname
Print the hostname of the system. Complete with v2 comment-based help, but works fine on v1.
http://poshcode.org/1384

PowerShell Code Repository - Get-HostsFile
This function will allow you to retreive the contents of a hosts file on a local or remote system. This can be used with one or more systems.
http://poshcode.org/2562

PowerShell Code Repository - Get-HostsFile
This function will allow you to retreive the contents of a hosts file on a local or remote system. This can be used with one or more systems.
http://poshcode.org/2565

PowerShell Code Repository - Get-HostsFile
This function will allow you to retreive the contents of a hosts file on a local or remote system. This can be used with one or more systems.
http://poshcode.org/2568

PowerShell Code Repository - Get-HotFix
PowerShell Code Repository - Get-RecurseMember
http://poshcode.org/1078

PowerShell Code Repository - Get-HtmlHelp 3.0
A script to convert MAML help to HTML.
http://poshcode.org/3187

PowerShell Code Repository - Get-HtmlHelp 3.2
A script to convert MAML help to HTML.
http://poshcode.org/3197

PowerShell Code Repository - Get-HttpResponseUri
Fetch the HEAD for a url and return the ResponseUri. Good for service-independent short-url lengthening ;)
http://poshcode.org/1722

PowerShell Code Repository - Get-IISLogLocation
This advanced function can be run against a single server or multiple servers to find the location of the log files for each website configured in IIS. This has been tested against II6 and IIS7.
http://poshcode.org/2373

PowerShell Code Repository - Get-ImageMetaData
Get-ImageMetadata lets you access the EXIF, XMP and other metadata about image files … this should only be taken as an example and a reference, not for solid production work — in other words, I won’t take the blame if you zero out all your jpgs trying to modify this to ReadWrite instead of just Read :)
http://poshcode.org/2616

PowerShell Code Repository - Get-ImageMetaData
Get-ImageMetadata lets you access the EXIF, XMP and other metadata about image files … this should only be taken as an example and a reference, not for solid production work — in other words, I won’t take the blame if you zero out all your jpgs trying to modify this to ReadWrite instead of just Read :)
http://poshcode.org/617

PowerShell Code Repository - Get-InstalledApps
Gets Installed applications on a server (if they were installed via the MSI installer.)
http://poshcode.org/95

PowerShell Code Repository - Get-InstalledProgram
PowerShell Code Repository - Get-LatestChromium
http://poshcode.org/1348

PowerShell Code Repository - Get-InstalledProgram_v2
PowerShell Code Repository - Get-InstalledProgram_v2
http://poshcode.org/1377

PowerShell Code Repository - Get-InstalledProgram_v2
PowerShell Code Repository - Get-InstalledProgram_v2
http://poshcode.org/1378

PowerShell Code Repository - Get-InstalledProgram_v2
PowerShell Code Repository - Kill-Process_v2
http://poshcode.org/1376

PowerShell Code Repository - Get-InstalledProgram_v3
PowerShell Code Repository - Get-InstalledProgram_v4
http://poshcode.org/1737

PowerShell Code Repository - Get-InstalledProgram_v3
PowerShell Code Repository - MacroScopeParser
http://poshcode.org/1734

PowerShell Code Repository - Get-InstalledProgram_v4
PowerShell Code Repository - Get-InstalledProgram_v3
http://poshcode.org/1735

PowerShell Code Repository - Get-InstalledProgram_v4
PowerShell Code Repository - Get-InstalledProgram_v4
http://poshcode.org/1736

PowerShell Code Repository - Get-InstalledSoftware.ps
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2155

PowerShell Code Repository - Get-InvocationInfo.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2156

PowerShell Code Repository - get-ipinformation
early code
http://poshcode.org/1055

PowerShell Code Repository - get-kbinfo
Identifying knowledge base article by its id number taken from string or filename.
http://poshcode.org/1881

PowerShell Code Repository - Get-LatestChromium
Downloads the latest Chromium build. Must change the $sevenz variable.
http://poshcode.org/1347

PowerShell Code Repository - Get-LeaderBoard
PowerShell Code Repository - out-form with sort colum
http://poshcode.org/2629

PowerShell Code Repository - Get-LeaderBoard
If you do something more than once, automated it! Well, I certainly check the Leaderboards often enough… so here is a quick script to do just that.
http://poshcode.org/2625

PowerShell Code Repository - Get-LeaderBoard
Script to retrieve the leader boards from the 2011 Scripting Games as objects. New version fixes an error with regex that caused usernames with periods or other non-english characters to be excluded (Thanks to Scott Alvarino for noticing this). Also added rankings, which unfortunately causes PowerShell to default the display to a list format, but I assume that any PowerSheller looking at the leaderboards is capable of piping the output to “Format-Table -AutoSize” :)
http://poshcode.org/2631

PowerShell Code Repository - Get-LeaderBoard
Script to retrieve the leader boards from the 2011 Scripting Games as objects. New version fixes an error with regex that caused usernames with periods or other non-english characters to be excluded (Thanks to Scott Alvarino for noticing this). Also added rankings, which unfortunately causes PowerShell to default the display to a list format, but I assume that any PowerSheller looking at the leaderboards is capable of piping the output to “Format-Table -AutoSize” :)
http://poshcode.org/2632

PowerShell Code Repository - Get-Link
Sorry, but for now this is an all-in-one link creating/editing function: GET-Link and then call methods on it … feel free to polish it up and paste back. All credit goes to Ian Clegg for writing 90% of this code.
http://poshcode.org/2493

PowerShell Code Repository - Get-LocalGroupMember
Find matching members in local groups on one or more computers, and make the output Helpful
http://poshcode.org/2803

PowerShell Code Repository - Get-LocalGroupMember
Find matching members in local groups on one or more computers, and make the output helpful.
http://poshcode.org/2804

PowerShell Code Repository - Get-LocalGroupMember
Find matching members in local groups on one or more computers, and make the output helpful.
http://poshcode.org/2805

PowerShell Code Repository - Get-LocalGroupMember
Gets local group memebers
http://poshcode.org/2865

PowerShell Code Repository - Get-LocalGroupMember
Gets local group memebers
http://poshcode.org/2866

PowerShell Code Repository - Get-LocalGroupMembers
Enumerate users of a given local group. Uses WMI. Outputs strings, sorry about that.
http://poshcode.org/1286

PowerShell Code Repository - Get-LocalGroups
I import this as a module because it depends on the other two functions. You could easily dot-source it as well. Requires v2 CTP3 or higher to get the help documentation to work.
http://poshcode.org/1267

PowerShell Code Repository - Get-LocalGroups
I import this as a module because it depends on the other two functions. You could easily dot-source it as well. Requires v2 CTP3 or higher to get the help documentation to work.
http://poshcode.org/1268

PowerShell Code Repository - get-lockedtime
Finds the length of time a session has been “locked”.
http://poshcode.org/3061

PowerShell Code Repository - Get-LockoutInfo
Used to find invalid login/lockout events. Should be run on each domain controller with the output being reviewed after each run. The output report should contain events pertaining to invalid login attempts or lockout events. By reviewing the report, you should be able to determine the system where the invalid attempt is originating.
http://poshcode.org/2880

PowerShell Code Repository - Get-LogicalDiskInfo
Hard disk drives have dramatically increased capacity over the years, yet there is always a time when they fill up and critical applications stop working.
http://poshcode.org/2811

PowerShell Code Repository - Get-LogicalDiskInfo
Hard disk drives have dramatically increased in capacity over the years, yet there is always a time when they just fill up and critical applications just stop working.
http://poshcode.org/2810

PowerShell Code Repository - Get-Lotterynumbers
Generates lottery numbers based on user input.
http://poshcode.org/1605

PowerShell Code Repository - Get-MacAddressOui
PowerShell Code Repository - Get-WifiNetwork
http://poshcode.org/2946

PowerShell Code Repository - Get-MacAddressOui
PowerShell Code Repository - Write-DataTable
http://poshcode.org/2944

PowerShell Code Repository - Get-MACFromIP
PowerShell Code Repository -
http://poshcode.org/2763

PowerShell Code Repository - Get-MachineStartupShutdo
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2157

PowerShell Code Repository - Get-MailAttachment.ps1
PowerShell Code Repository - AnalyzeScript.ps1
http://poshcode.org/2578

PowerShell Code Repository - Get-MailboxesOverSizeLim
PowerShell Code Repository - Get-EwsEmail
http://poshcode.org/2979

PowerShell Code Repository - Get-MailboxesOverSizeLim
PowerShell Code Repository - Import-NmapXML
http://poshcode.org/2597

PowerShell Code Repository - Get-MailboxImportRequest
This Exchange 2010 MailboxImportRequest cmdlet is to help identify imports that may never complete successfully or are taking a long time to complete so they can be suspended and other imports in the queued can complete in a timely manner. This version fixes pipeline input support and improves type handling.
http://poshcode.org/2792

PowerShell Code Repository - Get-MailboxImportRequest
This Exchange 2010 MailboxImportRequest cmdlet is to help identify imports that may never complete successfully or are taking a long time to complete so they can be suspended and other imports in the queued can complete in a timly manner.
http://poshcode.org/2783

PowerShell Code Repository - Get-McAfeeInfo
PowerShell Code Repository - SMS.psm1
http://poshcode.org/598

PowerShell Code Repository - Get-MemoryChart
Updated for current PowerBoot (latest chackin)
http://poshcode.org/2309

PowerShell Code Repository - Get-MemoryChart
Uses PowerBoots to draw a pipe-chart of each computer’s memory use, and display them each in turn, with nice navigation between them.
http://poshcode.org/1016

PowerShell Code Repository - Get-MemoryChart
Uses PowerBoots to draw a pipe-chart of each computer’s memory use, and display them each in turn, with nice navigation between them.
http://poshcode.org/1018

PowerShell Code Repository - Get-MIX10Video
Modified Jaykul’s PDC downloader for the MIX 10 Conference.
http://poshcode.org/1715

PowerShell Code Repository - Get-MIX10Video
Modified Jaykul’s PDC downloader for the MIX 10 Conference.
http://poshcode.org/1716

PowerShell Code Repository - Get-MountPointInfo
Get mount point volume free space information
http://poshcode.org/1639

PowerShell Code Repository - Get-MSCSRestartAction
Returns the restart action for Microsoft Cluster resources. Useful in finding non-critical resources like Backup S/W which have affect group setting on. See http://msdn.microsoft.com/en-us/library/aa371464(VS.85).aspx for restartAction description.
http://poshcode.org/1912

PowerShell Code Repository - Get-MSDNInfo
Opens the MSDN web page of an object member: type, method or property.
http://poshcode.org/2278

PowerShell Code Repository - Get-MWSOrder
Get seller orders from Amazon’s MWS web services … with items optionally included
http://poshcode.org/3045

PowerShell Code Repository - Get-MWSOrder
Get seller orders from Amazon’s MWS web services … with items optionally included.
http://poshcode.org/3046

PowerShell Code Repository - Get-MWSOrder
Get seller orders from Amazon’s MWS web services … with items optionally included.
http://poshcode.org/3047

PowerShell Code Repository - Get-MX
Returns the priority mail server (SMTP) to send email directly to the SMTP server of a particular domain/email address. Uses NetCmdlets (get-dns).
http://poshcode.org/1128

PowerShell Code Repository - Get-MyDomain
PowerShell Code Repository - Test-BufferBox 2.0
http://poshcode.org/731

PowerShell Code Repository - Get-MyPublicIPAddress
The Get-MyPublicIPAddress script uses DNS-O-Matic, an OpenDNS resource, to retreive the public IP address that represents your computer on the internet.
http://poshcode.org/2661

PowerShell Code Repository - Get-NaCifs
PowerShell Code Repository - Get-NaNfsExport
http://poshcode.org/924

PowerShell Code Repository - Get-NaNfsExport
Function that will retrieve all the NFS Exports from a NetApp SAN. Example usage of thee Ontap SDK 3.5 avaliable here http://communities.netapp.com/docs/DOC-1365….
http://poshcode.org/923

PowerShell Code Repository - Get-NaNfsExport
Function that will retrieve all the NFS Exports from a NetApp SAN. Example usage of thee Ontap SDK 3.5 avaliable here http://communities.netapp.com/docs/DOC-1365….
http://poshcode.org/909

PowerShell Code Repository - Get-NaShares
PowerShell Code Repository - Twitbrain cheat
http://poshcode.org/911

PowerShell Code Repository - Get-NaVolumeLatency
Using the DataOnTap toolkit get the different protocol latencies for a specified volume.
http://poshcode.org/1951

PowerShell Code Repository - Get-Netstat 0.9
This will perform a basic netstat.exe command and “objectize” its output. This version only handles the TCP stuff because I ran out of time. This needs perhaps a switch statement and a second regex to do the rest justice.
http://poshcode.org/554

PowerShell Code Repository - Get-Netstat 0.9
This will perform a basic netstat.exe command and “objectize” its output. This version only handles the TCP stuff because I ran out of time. This needs perhaps a switch statement and a second regex to do the rest justice.
http://poshcode.org/555

PowerShell Code Repository - Get-Netstat 1,0
It would really be sweet if I could get-netstat -sate CLOSE_WAIT
http://poshcode.org/884

PowerShell Code Repository - Get-Netstat 1,1
This will perform a basic netstat.exe command and “objectize” its output.
http://poshcode.org/560

PowerShell Code Repository - Get-Netstat 1,1
This will perform a basic netstat.exe command and “objectize” its output.
http://poshcode.org/2974

PowerShell Code Repository - Get-Netstat 1,1
This will perform a basic netstat.exe command and “objectize” its output.
http://poshcode.org/2975

PowerShell Code Repository - Get-Netstat 1,2
This will perform a basic netstat.exe command and “objectize” its output.
http://poshcode.org/2398

PowerShell Code Repository - Get-Netstat 1,3
This will perform a basic netstat.exe command and “objectize” its output.
http://poshcode.org/2694

PowerShell Code Repository - Get-Netstat 1.2
This will perform a basic netstat.exe command and “objectize” its output.
http://poshcode.org/3139

PowerShell Code Repository - get-netstat 1.2
This will perform a basic netstat.exe command and “objectize” its output.
http://poshcode.org/591

PowerShell Code Repository - get-netstat 1.3
This will perform a basic netstat.exe command and “objectize” its output.
http://poshcode.org/592

PowerShell Code Repository - Get-NetView
A one liner that parses the output of NET.EXE’s VIEW command. NET.EXE VIEW displays a list of computers in your current domain by default, to display another domain change it to read NET.EXE VIEW /domain <domainName>.
http://poshcode.org/882

PowerShell Code Repository - Get-NetworkStatistics
Displays active TCP connections and includes the process ID (PID) and Name for each connection.
http://poshcode.org/2701

PowerShell Code Repository - Get-NewPassword
Password gerneration function originally posted on PoshCode.org by Sean Kearney. Without any arguments, Get-NewPassword generates an 8 character password with upper, lower, and numeric characters. It can accept 2 options, the first is password length (up to 94 chars) and the other is complexity (1 to 4). I had to modify the code so that it wouldn’t create repeating characters. The code may be ugly, but it’s because I am a network admin and not a programmer. I hope it helps someone.
http://poshcode.org/2237

PowerShell Code Repository - GET-NewPasswordPlus
combines a previous Poshcode New-Password with one I just posted for something a little more interesting. It’s a function but REALLY useful :)
http://poshcode.org/1946

PowerShell Code Repository - Get-NextPrime
Calculate prime numbers
http://poshcode.org/2337

PowerShell Code Repository - Get-NextPrime
Calculate prime numbers …
http://poshcode.org/2338

PowerShell Code Repository - Get-NICSettings
PowerShell Code Repository - Find Local Group Members
http://poshcode.org/545

PowerShell Code Repository - Get-NistNtpServer
The Get-NistNtpServer function retrieves the list of NIST NTP server names, IP addresses, and locations.
http://poshcode.org/3138

PowerShell Code Repository - Get-ObjectIdentifier
Resolves OID value to a Friendly Name and vice versa. The cmdlet resolves both well-known OIDs (used in Internet PKI) and Active Directory forest specific registered OIDs.
http://poshcode.org/2334

PowerShell Code Repository - Get-ObservedIPRange
Get observed IP address ranges and VLAN IDs from an ESX host’s physical adapter. Sample use at the bottom.
http://poshcode.org/1680

PowerShell Code Repository - Get-ObservedIPRange
Get observed IP address ranges and VLAN IDs from an ESX host’s physical adapter. Sample use at the bottom.
http://poshcode.org/1653

PowerShell Code Repository - Get-OLEDBData
Generic function to execute query and return DataTable from any OLEDB data source. Tested against Excel, Informix, Oracle and SQL Server sources.
http://poshcode.org/1591

PowerShell Code Repository - Get-OleDBPSObject
Get-OleDBPSObject ([string]$ConnectionString, [string]$Query)
http://poshcode.org/2536

PowerShell Code Repository - Get-OnlineHelp
A VERY EARLY prototype of a function that could retrieve cmdlet help from TechNet …
http://poshcode.org/1719

PowerShell Code Repository - Get-OnlineHelp
Retrieve Online Cmdlet Help
http://poshcode.org/2024

PowerShell Code Repository - Get-OnlineHelp
Retrieve Online Cmdlet Help — An update to remove external dependencies.
http://poshcode.org/1723

PowerShell Code Repository - Get-OnlineHelp
Retrieve Online Cmdlet Help — Fix a type check
http://poshcode.org/1724

PowerShell Code Repository - Get-OpenLDAP.ps1
PowerShell Code Repository - CTP3: Watch Folder
http://poshcode.org/86

PowerShell Code Repository - Get-OUComputerNames
PowerShell Code Repository - Get-NICSettings
http://poshcode.org/546

PowerShell Code Repository - Get-OwnerReport.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2158

PowerShell Code Repository - Get-Packet
This is an updated version of Get-Packet, an IP packet sniffer for Powershell.
http://poshcode.org/764

PowerShell Code Repository - Get-PageUrls.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2159

PowerShell Code Repository - Get-Parameter
PowerShell Code Repository -
http://poshcode.org/1980

PowerShell Code Repository - Get-Parameter
PowerShell Code Repository - Check Modules path.
http://poshcode.org/1817

PowerShell Code Repository - Get-Parameter
PowerShell Code Repository - Get-Parameter
http://poshcode.org/435

PowerShell Code Repository - Get-Parameter
PowerShell Code Repository - Get-Parameter
http://poshcode.org/441

PowerShell Code Repository - Get-Parameter
PowerShell Code Repository - Get-Parameter
http://poshcode.org/444

PowerShell Code Repository - Get-Parameter
PowerShell Code Repository - Get-Parameter
http://poshcode.org/445

PowerShell Code Repository - Get-Parameter
PowerShell Code Repository - Get/Set Signature (CTP2)
http://poshcode.org/438

PowerShell Code Repository - Get-Parameter
PowerShell Code Repository - Remote WSUS Settings
http://poshcode.org/1344

PowerShell Code Repository - Get-Parameter
PowerShell Code Repository - Tac (reverse cat)
http://poshcode.org/434

PowerShell Code Repository - Get-Parameter
Enumerate the Parameters of a command by ParameterSet, including DynamicParameters. Includes a -Full output mode and support for specifying the module. The only Get-Parameter you need :)
http://poshcode.org/1592

PowerShell Code Repository - Get-Parameter
Enumerate the Parameters of a command by ParameterSet. Includes a -Full output mode and support for specifying the module.
http://poshcode.org/1587

PowerShell Code Repository - Get-Parameter
Get-Parameter is used to obtain all of the parameters for a cmdlet. It also returns info like aliases and whether a parameter is mandatory.
http://poshcode.org/446

PowerShell Code Repository - Get-Parameter
Get-Parameter is used to obtain all of the parameters for a cmdlet. It also returns info like aliases and whether a parameter is mandatory.
http://poshcode.org/462

PowerShell Code Repository - Get-Parameter
Get-Parameter is used to obtain all of the parameters for a cmdlet. It also returns info like aliases and whether a parameter is mandatory.
http://poshcode.org/548

PowerShell Code Repository - Get-Parameter
Get-Parameter is used to obtain all of the parameters for a cmdlet. It also returns info like aliases and whether a parameter is mandatory.
http://poshcode.org/549

PowerShell Code Repository - Get-Parameter
Give as input a cmdlet name. Output is a set of properties about each parameter, including: name, parameter set, aliases, ismandatory, and CommonParameter. Thanks to LucD for the technique.
http://poshcode.org/255

PowerShell Code Repository - Get-Parameter
Not quite finished effort at a script intended to spit out the parameters of a cmdlet. I’m sure there’s a better but this is…adequate for now.
http://poshcode.org/186

PowerShell Code Repository - Get-Parameter 1.1
PowerShell Code Repository - Get-Parameter
http://poshcode.org/1981

PowerShell Code Repository - Get-Parameter 1.2
PowerShell Code Repository - Get-Parameter 1.1
http://poshcode.org/1982

PowerShell Code Repository - Get-Parameter 1.21
PowerShell Code Repository - sophos_mrupdate.ps1
http://poshcode.org/3161

PowerShell Code Repository - Get-Parameter 2.0
Deploying VM with static IP in 3 lines
http://poshcode.org/2005

PowerShell Code Repository - Get-Parameter 2.1
This script was written to test comment based help. In current version supports only v2 comments. Only minimal tests, so there may be some bugs…
http://poshcode.org/2007

PowerShell Code Repository - Get-Parameter 2.2
This MANDATORY UPGRADE ;-) fixes a bug which breaks Get-Parameter if you run it against the same command twice.
http://poshcode.org/2030

PowerShell Code Repository - Get-Parameter 2.3
This MANDATORY UPGRADE ;-) fixes a bug which breaks Get-Parameter if you run it against the same command twice.
http://poshcode.org/2031

PowerShell Code Repository - Get-Parameter 2.4
This is another Must Have upgrade, because I screwed up the last one ;-)
http://poshcode.org/2032

PowerShell Code Repository - Get-Parameter 2.5
Fixed issue with large amounts of temporary files getting left behind.
http://poshcode.org/2405

PowerShell Code Repository - Get-Parameter 2.5
This is another Must Have upgrade, because I screwed up the last one ;-)
http://poshcode.org/2404

PowerShell Code Repository - Get-Parameter 2.6
This is another Must Have upgrade, because I screwed up the last one ;-)
http://poshcode.org/2815

PowerShell Code Repository - Get-Parameter function
Get a dictionary of parameters for a function or cmdlet, optionally including the common parameters (verbose, debug etc) for functions using cmdletbinding, or ordinary cmdlets.
http://poshcode.org/1053

PowerShell Code Repository - Get-ParameterAlias.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2160

PowerShell Code Repository - Get-Password
I have constantly been looking for a quick and lightweight way to generate random passwords of varrying length and complexity and ended up writting this. A random password generator that if added to a folder in your system path can be called by using Get-Password with optional parameters to control the length and how complex of a character set is used. I use this when creating service account passwords.
http://poshcode.org/2793

PowerShell Code Repository - Get-PasswordExpiredUser
Gets users will password not set to expire.
http://poshcode.org/163

PowerShell Code Repository - Get-PasswordExpiredUser
Gets users will password not set to expire.
http://poshcode.org/164

PowerShell Code Repository - Get-Path
Get-Path converts relative paths to drive or PSProvider -qualified paths.
http://poshcode.org/2734

PowerShell Code Repository - Get-Path
Get-Path converts relative paths to drive or PSProvider -qualified paths.
http://poshcode.org/3054

PowerShell Code Repository - Get-Payment
PowerShell Code Repository - Get-ADMapObject
http://poshcode.org/707

PowerShell Code Repository - Get-Payment
PowerShell Code Repository - Get-Payment
http://poshcode.org/708

PowerShell Code Repository - Get-PDC09Videos
Another way to download all the session videos via BITS transfer (no curl needed) with PowerShell 2.0 (This version creates separate jobs for each file, so you have to be LOGGED IN as an admin, and in an ELEVATED host to use this method, because otherwise you hit the limit on the number of bits jobs).
http://poshcode.org/1483

PowerShell Code Repository - Get-PDC09Videos
Download all the session videos via BITS transfer (no curl needed) with PowerShell 2.0
http://poshcode.org/1481

PowerShell Code Repository - Get-PDC09Videos
Download all the session videos via BITS transfer (no curl needed) with PowerShell 2.0
http://poshcode.org/1482

PowerShell Code Repository - Get-PendingUpdates
This function will allow you to query local or remote computer/s and determine if there are pending WSUS updates that need to be installed. A report is returned that can be exported to a CSV file if desired.
http://poshcode.org/2540

PowerShell Code Repository - Get-PerformanceCounter
Get one or more performance counter objects.
http://poshcode.org/2475

PowerShell Code Repository - Get-PerformanceHistory 2
This much more complicated version of Get-PerformanceHistory shows the approximate length of the command or script, as well as how long it took to run. Great for those “my script is shorter/faster/cooler” than yours bragging sessions on IRC ... or whatever. Lets you compare several commands by just running each of them and then calling Get-PerformanceHistory -Count 4
http://poshcode.org/155

PowerShell Code Repository - Get-PerformanceHistory 2
This much more complicated version of Get-PerformanceHistory shows the approximate length of the command or script, as well as how long it took to run. Great for those “my script is shorter/faster/cooler” than yours bragging sessions on IRC ... or whatever. Lets you compare several commands by just running each of them and then calling Get-PerformanceHistory -Count 4
http://poshcode.org/156

PowerShell Code Repository - Get-PerformanceHistory 2
This much more complicated version of Get-PerformanceHistory shows the approximate length of the command or script, as well as how long it took to run. Great for those “my script is shorter/faster/cooler” than yours bragging sessions on IRC ... or whatever. Lets you compare several commands by just running each of them and then calling Get-PerformanceHistory -Count 4
http://poshcode.org/683

PowerShell Code Repository - Get-PipeLineObject
PowerShell Code Repository - Get-PipeLineObject
http://poshcode.org/783

PowerShell Code Repository - Get-PipeLineObject
PowerShell Code Repository - Show-ADObject
http://poshcode.org/737

PowerShell Code Repository - Get-PipeLineObject
PowerShell Code Repository - TabExpansion
http://poshcode.org/782

PowerShell Code Repository - Get-PrimaryIPAddress
As seen on http://halr9000.com/article/829#comments. Needs some prettying up with help and stuff but should work well.
http://poshcode.org/1403

PowerShell Code Repository - Get-PrivateKeyPath
Function return path and file name of certificates private key. It’s working similar to FindPrivateKey.
http://poshcode.org/2352

PowerShell Code Repository - Get-PrivateProfileString
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2161

PowerShell Code Repository - Get-ProcedureCallTree
Uses SQLParser.ps1 script http://poshcode.org/1445 to return a Stored Procedure Call Tree
http://poshcode.org/1446

PowerShell Code Repository - Get-ProcessCount
Get-ProcessCount returns the number of running processes on local or remote machine. If it can’t find the requested process, it tries to guess what you want.
http://poshcode.org/564

PowerShell Code Repository - Get-ProcessCount
Get-ProcessCount returns the number of running processes on local or remote machine. If it can’t find the requested process, it tries to guess what you want.
http://poshcode.org/572

PowerShell Code Repository - Get-ProcessCount
Get-ProcessCount returns the number of running processes on local or remote machine. If it can’t find the requested process, it tries to guess what you want.
http://poshcode.org/573

PowerShell Code Repository - Get-ProxyAddress
This script enables you too search AD for SMTP addresses that are possibly in use, using the QUEST PowerShell PSSnapIn and searching the “proxyAddress” attribute of objects. The output details either that the SMTP address is not found in AD or you get details of the object that owns the SMTP address.
http://poshcode.org/1594

PowerShell Code Repository - Get-ProxyAddress
This script enables you too search AD for SMTP addresses that are possibly in use, using the QUEST PowerShell PSSnapIn and searching the “proxyAddress” attribute of objects. The output details either that the SMTP address is not found in AD or you get details of the object that owns the SMTP address.
http://poshcode.org/2517

PowerShell Code Repository - Get-PSExecutionPolicy
Get-PSExecutionPolicy.ps1 uses WMI to query remote registry for PowerShell path and exeuction policy settings. Because WMI is used works from x86 to x64 machines.
http://poshcode.org/2518

PowerShell Code Repository - Get-PSVersion
Simple Function to get powershell version
http://poshcode.org/959

PowerShell Code Repository - Get-QADGroupNesting
I came across an article on the “Microsoft Active Directory PowerShell Blog”, it has a great script for analysing nested group memberships. Unfortunatly to use the PowerShell script you need to be running Windows 2008 servers for the Active Directory cmdlets to be available. So not put off I converted the script to use the Quest cmdlets available with the “Quest Active Roles Management” PSSnapIn. You will need to have these installed for the script to function.
http://poshcode.org/1595

PowerShell Code Repository - Get-QADGroupNesting
I came across an article on the “Microsoft Active Directory PowerShell Blog”, it has a great script for analysing nested group memberships. Unfortunatly to use the PowerShell script you need to be running Windows 2008 servers for the Active Directory cmdlets to be available. So not put off I converted the script to use the Quest cmdlets available with the “Quest Active Roles Management” PSSnapIn. You will need to have these installed for the script to function.
http://poshcode.org/1890

PowerShell Code Repository - Get-RDPSettings
Function/script to get the settings from a RDP file for Terminal Services.
http://poshcode.org/677

PowerShell Code Repository - Get-RebootTime.ps1
Gets the last time the server was booted.
http://poshcode.org/166

PowerShell Code Repository - Get-RecurseMember
A function for recursively getting a list of unique users that are members of a Domain Group.
http://poshcode.org/1076

PowerShell Code Repository - Get-RecurseMember
A function for recursively getting a list of unique users that are members of a Domain Group.
http://poshcode.org/1077

PowerShell Code Repository - Get-RelativePath
Converts a file path to a relative path based on a specified folder
http://poshcode.org/1751

PowerShell Code Repository - GET-Remoteapps
Find an Application on remote list of computers.
http://poshcode.org/2121

PowerShell Code Repository - Get-RemoteRegistry
PowerShell Code Repository -
http://poshcode.org/181

PowerShell Code Repository - Get-RemoteRegistry
PowerShell Code Repository - CenturionPortal
http://poshcode.org/2103

PowerShell Code Repository - Get-RemoteRegistry
PowerShell Code Repository - Get-RemoteRegistry
http://poshcode.org/615

PowerShell Code Repository - Get-RemoteRegistry
PowerShell Code Repository - Pause-Script & Out-More
http://poshcode.org/614

PowerShell Code Repository - Get-RemoteRegistry
Added the ability to retrieve (Default) values for keys.
http://poshcode.org/2915

PowerShell Code Repository - Get-RemoteRegistryChildI
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2162

PowerShell Code Repository - Get-RemoteRegistryKeyPro
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2163

PowerShell Code Repository - Get-SameTimeChatHistory
Reads Sametime R8 chat transcript HTML files and outputs custom objects
http://poshcode.org/1234

PowerShell Code Repository - Get-Scope
A script to help you figure out what scope you are in “right now” (you have to always call it like: Get-Scope $MyInvocation)
http://poshcode.org/2595

PowerShell Code Repository - Get-Scope
Get PowerShell numbered scope in anytime!!!
http://poshcode.org/2636

PowerShell Code Repository - Get-Scope
Get PowerShell numbered scope in anytime!!!
http://poshcode.org/2642

PowerShell Code Repository - Get-Screenshot
Get a screenshot and save it to file
http://poshcode.org/419

PowerShell Code Repository - Get-ScriptCoverage.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2164

PowerShell Code Repository - Get-ScriptDirectory
Returns the directory that current script is running in.
http://poshcode.org/2887

PowerShell Code Repository - Get-ScriptPerformancePro
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2165

PowerShell Code Repository - Get-Selection
Presents a text menu that prompts for a selection based on an array or list of input.
http://poshcode.org/1307

PowerShell Code Repository - Get-Sequence
Get-Sequence gets a sequence of numbers with an optional increment value, like the bash “seq” command.
http://poshcode.org/612

PowerShell Code Repository - Get-SerialNumber
Get ESX server serial numbers.
http://poshcode.org/1337

PowerShell Code Repository - get-serials
Return a list of computers with their serial numbers. For Dell computers the Win32_BIOS.SerialNumber property is the service tag of the computer. This identifies the computer on the Dell support site, and with it you can get the proper drivers/manuals and warranty information.
http://poshcode.org/2873

PowerShell Code Repository - Get-ServiceAccounts
Script will help discover any service accounts that are currently being used. I have been using this script for about a month in production. While your mileage may vary this script is strictly read only, thus -confirm, and -whatif are not supported.
http://poshcode.org/502

PowerShell Code Repository - Get-ServiceAccounts
Script will help discover any service accounts that are currently being used. I have been using this script for about a month in production. While your mileage may vary this script is strictly read only, thus -confirm, and -whatif are not supported.
http://poshcode.org/503

PowerShell Code Repository - Get-ShortURL
Uses the Bit.ly api to create a short url. Requires a login and api key from http://bit.ly
http://poshcode.org/1407

PowerShell Code Repository - Get-SiSReport
This function returns the sisadmin /v status and basic disk information for a given disk.
http://poshcode.org/2774

PowerShell Code Repository - Get-SiSReport
This function returns the sisadmin /v status and basic disk information for a given disk. Adjusted code to return numbers that made sense.
http://poshcode.org/2776

PowerShell Code Repository - Get-SiSReport
This function returns the sisadmin /v status and basic disk information for a given disk. Now handles C or C:
http://poshcode.org/2853

PowerShell Code Repository - Get-SiSReport
This function returns the sisadmin /v status and basic disk information for a given disk. Oops, copied the whole function library, here is just the aforementioned function!
http://poshcode.org/2775

PowerShell Code Repository - Get-SiSReport
This function returns the sisadmin /v status and basic disk information for a given disk. Spaces and parens bad.
http://poshcode.org/2777

PowerShell Code Repository - Get-Snapinfo
Get the snapshot info out of a Virtual Machine Managed Entity. Most useful for reporting, although if you don’t mind the extra work the Snapshot moref is there so you can delete it.
http://poshcode.org/1319

PowerShell Code Repository - Get-Snapinfo
Get the snapshot info out of a Virtual Machine Managed Entity. Most useful for reporting, although if you don’t mind the extra work the Snapshot moref is there so you can delete it.
http://poshcode.org/1320

PowerShell Code Repository - Get-SNMPHost.ps1
Gets the VMHostSnmp object for VMWare VI Toolkit consumption
http://poshcode.org/1132

PowerShell Code Repository - Get-Software Function
PowerShell Code Repository - Debug Regex match
http://poshcode.org/3186

PowerShell Code Repository - Get-SpecialPath
This is an enhancement on top of the [Environment]::GetFolderPath to add support for additional folders like QuickLaunch and the “Common” folders (CommonStartMenu, etc) by using the WshShell SpecialFolders enum from COM...
http://poshcode.org/858

PowerShell Code Repository - Get-Speech
A script to do VOICE interactive prompting. That is: to generate a text-to-speech prompt, and use speech-recognition to get the answer from a list of answers. Because you provide the list of answers, this basically doesn’t require the user to have trained the voice recognition system at all, and works very well in my testing. Notice that it requires PSEventing and .Net 3.x for the speech recognition libraries.
http://poshcode.org/112

PowerShell Code Repository - Get-SQLDatabaseFreespace
I created this script because of the need to monitor a MSDE 2000 database which have reached the 2 GB database limit until the application administrator deleted old data from the database. SQL Server 2008 Management Studio Express must be installed on the computer running the script as a scheduled task.
http://poshcode.org/1086

PowerShell Code Repository - Get-SQLFileSize
This function will allow you to query any server hosting SQL and return the file sizes for the each Database file(MDF) and Transaction Log file(LDF). This does not return back the file locations for each database. I have tested this on SQL 2000, 2005 and 2008.
http://poshcode.org/2537

PowerShell Code Repository - get-SQLInstanceInfo
Function to retrieve selected information about all SQL Server Instances on a given server. Will work remotely if the Server supports integrated security and the user has rights on the SQL Instance.
http://poshcode.org/2984

PowerShell Code Repository - Get-SqlSpn
Gets MSSQLSvc service principal names from Active Directory
http://poshcode.org/3234

PowerShell Code Repository - Get-SqlWmi
The Get-SqlWmi function gets port, instance and service account wmi information for all SQL instances on a computer.
http://poshcode.org/3235

PowerShell Code Repository - Get-SRVPriority
Returns the priority SRV hostname and port for a particular service and domain. Requires NetCmdlets (get-dns).
http://poshcode.org/1125

PowerShell Code Repository - Get-StaticMethodDefin
Helper function to list the definitions of static methods
http://poshcode.org/967

PowerShell Code Repository - Get-StaticMethodDefin
Helper function to list the definitions of static methods
http://poshcode.org/968

PowerShell Code Repository - Get-StatType proxy
PowerShell Code Repository - Get-Snapinfo
http://poshcode.org/1321

PowerShell Code Repository - Get-StrictMode.psm1
Retrieve the Set-StrictMode session setting. Use as a Module (psm1) and expose any of the user’s settings, but the ‘latest’ parameter cannot be retrieved at present.
http://poshcode.org/3136

PowerShell Code Repository - Get-StrictMode.psm1
Retrieve the Set-StrictMode session setting. Use as a Module (psm1) and expose any of the user’s settings, but the ‘latest’ parameter cannot be retrieved at present.
http://poshcode.org/3137

PowerShell Code Repository - Get-StringRange
Works like the integer range operator “..”, but for characters.
http://poshcode.org/1216

PowerShell Code Repository - Get-StringRange
Works like the integer range operator “..”, but for strings. Technique by Joel Bennett.
http://poshcode.org/1215

PowerShell Code Repository - Get-Sysinternals
Downloads the current sysinternals from \\live.sysinternals.com\tools and then updates your path environment variable to include the location saved to. Along with that it sorts, and removes duplicate entries in the path variable. If you call get-sysinternals without any args the local directory will be systemroot\Sysinternals\ Otherwise, the files will be put in the specified path.
http://poshcode.org/2682

PowerShell Code Repository - Get-Sysinternals
Downloads the current sysinternals from \\live.sysinternsals.com\tools and then updates your path environment variable to include the location saved to. Along with that it sorts, and removes duplicate entries in the path variable. If you call get-sysinternals without any args the local directory will be systemroot\Sysinternals\ Otherwise, the files will be put in the specified path.
http://poshcode.org/2680

PowerShell Code Repository - Get-Sysinternals
Downloads the current sysinternals from \\live.sysinternsals.com\tools and then updates your path environment variable to include the location saved to. Along with that it sorts, and removes duplicate entries in the path variable. If you call get-sysinternals without any args the local directory will be systemroot\Sysinternals\ Otherwise, the files will be put in the specified path.
http://poshcode.org/2681

PowerShell Code Repository - Get-Tail.ps1
Tails a File
http://poshcode.org/87

PowerShell Code Repository - Get-Tail.ps1
Tails a File, but does not work. No output to screen, not even an error when not setting number of lines variables.
http://poshcode.org/2618

PowerShell Code Repository - Get-TheVillageChurchPod
The Get-TheVillageChurchPodcast function returns objects of all the available sermon podcasts from The Village Church. The objects can be filtered by speaker, series, title, or date and optionally downloaded to a specified folder.
http://poshcode.org/2951

PowerShell Code Repository - Get-Tomorrow.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2166

PowerShell Code Repository - Get-TopProcess
Returns the top processes by CPU usage
http://poshcode.org/1224

PowerShell Code Repository - Get-TopProcess
Returns the top processes by CPU usage
http://poshcode.org/1225

PowerShell Code Repository - Get-TranscriptFilePath
Get the name of the current (or last) transcription file used in the current session. Requires powershell v2.0. Some things to note:
http://poshcode.org/2423

PowerShell Code Repository - Get-Tree
It just needs presents under it…
http://poshcode.org/2416

PowerShell Code Repository - Get-TwitterReply
Get-TwitterReply modification get all replies
http://poshcode.org/1300

PowerShell Code Repository - Get-UIChildItem
Very simple script that will create file list from -Path in simple UI generated using Show-UI. ToolTip show size and last write time of a file, and once clicked – it will pass fullname down the pipe. It was created mainly as a attempt to use some animated effects in Show-UI.
http://poshcode.org/2673

PowerShell Code Repository - Get-UIInput
This is a flexible multiple-input prompt for Show-UI (it works against the Latest Changeset ‘d7ad095858eb’ right now, so you can just hit the download link on the right)
http://poshcode.org/2666

PowerShell Code Repository - Get-UNCPath
Simple function that returns the UNC path (administrative share) of a local path.
http://poshcode.org/478

PowerShell Code Repository - Get-UnityLicense
This function connects via HTTP to a Cisco Unity server and returns license information as a PSCustomObject.
http://poshcode.org/750

PowerShell Code Repository - Get-Uptime
Function to report uptimes for single/multiple hosts as objects. Useful if not very original.
http://poshcode.org/3143

PowerShell Code Repository - Get-User
This function is an attempt to duplicate the Quest Get-QADUser cmdlet without using any third party snap-ins. If you want to run it against a Global Catalog you simply need to replace LDAP: with GC: and you will want to comment out the lines that pull the password last set and last logon timestamp unless you happen to be replicating those to your GC.
http://poshcode.org/3148

PowerShell Code Repository - Get-User
This function is an attempt to duplicate the Quest Get-QADUser cmdlet without using any third party snap-ins. If you want to run it against a Global Catalog you simply need to replace LDAP: with GC: and you will want to comment out the lines that pull the password last set and last logon timestamp unless you happen to be replicating those to your GC.
http://poshcode.org/3042

PowerShell Code Repository - Get-User
This function is an attempt to duplicate the Quest Get-QADUser cmdlet without using any third party snap-ins. If you want to run it against a Global Catalog you simply need to replace LDAP: with GC: and you will want to comment out the lines that pull the password last set and last logon timestamp unless you happen to be replicating those to your GC.
http://poshcode.org/3035

PowerShell Code Repository - Get-User
This function is an attempt to duplicate the Quest Get-QADUser cmdlet without using any third party snap-ins. If you want to run it against a Global Catalog you simply need to replace LDAP: with GC: and you will want to comment out the lines that pull the password last set and last logon timestamp unless you happen to be replicating those to your GC.
http://poshcode.org/2736

PowerShell Code Repository - Get-User
This function is an attempt to duplicate the Quest Get-QADUser cmdlet without using any third party snap-ins. If you want to run it against a Global Catalog you simply need to replace LDAP: with GC: and you will want to comment out the lines that pull the password last set and last logon timestamp unless you happen to be replicating those to your GC.
http://poshcode.org/2785

PowerShell Code Repository - Get-User
This function is an attempt to duplicate the Quest Get-QADUser cmdlet without using any third party snap-ins. If you want to run it against a Global Catalog you simply need to replace LDAP: with GC: and you will want to comment out the lines that pull the password last set and last logon timestamp unless you happen to be replicating those to your GC.
http://poshcode.org/2786

PowerShell Code Repository - Get-User
This function is an attempt to duplicate the Quest Get-QADUser cmdlet without using any third party snap-ins. If you want to run it against a Global Catalog you simply need to replace LDAP: with GC: and you will want to comment out the lines that pull the password last set and last logon timestamp unless you happen to be replicating those to your GC.
http://poshcode.org/3001

PowerShell Code Repository - Get-User
This function is an attempt to duplicate the Quest Get-QADUser cmdlet without using any third party snap-ins. If you want to run it against a Global Catalog you simply need to replace LDAP: with GC: and you will want to comment out the lines that pull the password last set and last logon timestamp unless you happen to be replicating those to your GC.
http://poshcode.org/2419

PowerShell Code Repository - Get-User
This function is an attempt to duplicate the Quest Get-QADUser cmdlet without using any third party snap-ins. If you want to run it against a Global Catalog you simply need to replace LDAP: with GC: and you will want to comment out the lines that pull the password last set and last logon timestamp unless you happen to be replicating those to your GC.
http://poshcode.org/2487

PowerShell Code Repository - Get-User
This function is an attempt to duplicate the Quest Get-QADUser cmdlet without using any third party snap-ins. If you want to run it against a Global Catalog you simply need to replace LDAP: with GC: and you will want to comment out the lines that pull the password last set and last logon timestamp unless you happen to be replicating those to your GC.
http://poshcode.org/628

PowerShell Code Repository - Get-User
This is nice, but a bit over complicated for my liking… Here are a few others that may be of help to someone.
http://poshcode.org/3039

PowerShell Code Repository - Get-UserLogonLogoffScrip
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2167

PowerShell Code Repository - Get-UserWithManyGroups
Lists Active Directory user accounts which are members of too many groups, and can thus cause token bloat issues
http://poshcode.org/1385

PowerShell Code Repository - get-uuid_allHVs.ps1
PowerShell Code Repository - get-uuid_allHVs.ps1
http://poshcode.org/1152

PowerShell Code Repository - get-uuid_allHVs.ps1
PowerShell Code Repository - PowerOracle
http://poshcode.org/1151

PowerShell Code Repository - Get-VariableType
Easily discover a variable’s type when it is $null.
http://poshcode.org/998

PowerShell Code Repository - Get-VMCreationReport
Produces a report of the number of and names of VMs created broken down by month and year.
http://poshcode.org/1679

PowerShell Code Repository - Get-VMHostNetworks
After connecting to your VI server, we get a list of virtual switches on the datacenter and from that we pull out the VHostID that matches the server we passed in at the command-line. Using the VHostID we return a list of networks objects on that server.
http://poshcode.org/2717

PowerShell Code Repository - Get-VMHostNetworks
After connecting to your VI server, we get a list of virtual switches on the datacenter and from that we pull out the VHostID that matches the server we passed in at the command-line. Using the VHostID we return a list of networks objects on that server.
http://poshcode.org/2718

PowerShell Code Repository - Get-VMHostSerialNumber
Get ESX server serial numbers.
http://poshcode.org/1341

PowerShell Code Repository - Get-VMStorageAdapters
This script iterates through each Datacenter,Cluster, and Host in a vCenter environment and then lists the Fibre Channel HBAs that are present.
http://poshcode.org/1404

PowerShell Code Repository - Get-VMware-Guest-Invento
This script will create an inventory of all guests in the target Virtual Center and then create a csv
http://poshcode.org/2952

PowerShell Code Repository - Get-WarningsAndErrors.ps
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2168

PowerShell Code Repository - Get-Weather
Get-Weather parses and displays the current weather and forecast from the Yahoo! RSS. Simply enter your zipcode (or IXX code from Yahoo weather) and -c(elcius) if you don’t want Fahrenheit temperatures.
http://poshcode.org/559

PowerShell Code Repository - Get-Weather
This advanced function will allow you to retrieve the current weather information for a given country/city.
http://poshcode.org/2508

PowerShell Code Repository - Get-Weather
This advanced function will allow you to retrieve the current weather information for a given country/city.
http://poshcode.org/2509

PowerShell Code Repository - Get-Weather 2.1
Get-Weather parses and displays the current weather and forecast from the Yahoo! RSS. Simply enter your zipcode (or IXX code from Yahoo weather) and -c(elcius) if you don’t want Fahrenheit temperatures.
http://poshcode.org/821

PowerShell Code Repository - Get-Weather 2.2
Get-Weather parses and displays the current weather and forecast from the Yahoo! RSS. Simply enter your zipcode (or IXX code from Yahoo weather) and -c(elcius) if you don’t want Fahrenheit temperatures.
http://poshcode.org/1805

PowerShell Code Repository - Get-WebFile 1.0
The simplest form of WGet … no options, no passwords, no nothing. But it works.
http://poshcode.org/121

PowerShell Code Repository - Get-WebFile 3.0
A complete rewrite of my wget script to use HttpWebRequest and Response to figure out the filename
http://poshcode.org/169

PowerShell Code Repository - Get-WebFile 3.1
A complete rewrite of my wget script to use HttpWebRequest and Response to figure out the filename, added some unwrapping because a couple sites had quotes around the file names.
http://poshcode.org/172

PowerShell Code Repository - Get-WebFile 3.1
cls
http://poshcode.org/2802

PowerShell Code Repository - Get-WebFile 3.5
A complete rewrite of my wget script to use HttpWebRequest and Response to figure out the filename, added some unwrapping because a couple sites had quotes around the file names.
http://poshcode.org/189

PowerShell Code Repository - Get-WebFile 3.6
An upgrade to my wget script which can output the downloaded html to the pipeline. Get-WebFile can download text or binary files, automatically determine file names, and present a progress report for large files…
http://poshcode.org/417

PowerShell Code Repository - Get-WebFile 3.6
Fix for redirect loops
http://poshcode.org/2767

PowerShell Code Repository - Get-WebFile 3.7
An upgrade to my wget script which can output the downloaded html to the pipeline. Get-WebFile can download text or binary files, automatically determine file names, and present a progress report for large files…
http://poshcode.org/3203

PowerShell Code Repository - Get-WebFile 3.7
An upgrade to my wget script which can output the downloaded html to the pipeline. Get-WebFile can download text or binary files, automatically determine file names, and present a progress report for large files…
http://poshcode.org/3204

PowerShell Code Repository - Get-WebFile 3.7.1
An upgrade to my wget script which can output the downloaded html to the pipeline. Get-WebFile can download text or binary files, automatically determine file names, and present a progress report for large files… branch 3.7.1 – try/catch for HTTP connection errors, terminates execution if connection fails.
http://poshcode.org/3217

PowerShell Code Repository - Get-WebFile 3.7.2
An upgrade to my wget script which can output the downloaded html to the pipeline. Get-WebFile can download text or binary files, automatically determine file names, and present a progress report for large files… branch 3.7.2 – try/catch for file path errors.
http://poshcode.org/3218

PowerShell Code Repository - Get-WebFile 3.7.3
An upgrade to my wget script which can output the downloaded html to the pipeline. Get-WebFile can download text or binary files, automatically determine file names, and present a progress report for large files… branch 3.7.3 – tries to prevent problems involving bad URL formatting
http://poshcode.org/3219

PowerShell Code Repository - Get-WebFile 3.7.3
Get-WebFile by Gwen Dallas converted to an advanced function for use as PS module.
http://poshcode.org/3226

PowerShell Code Repository - Get-WebFile 3.7.3
If CharacterSet is $null [System.Text.Encoding]::GetEncoding throws an error. This is the case if the content type is not text e.g. application/xml.
http://poshcode.org/3225

PowerShell Code Repository - Get-WebPage
This function allows you to download the contents of a webpage to display on a PowerShell console. &#65279;Also included is a switch to show the size of the web page.
http://poshcode.org/2497

PowerShell Code Repository - Get-WebPage
This function allows you to download the contents of a webpage to display on a PowerShell console. &#65279;Also included is a switch to show the size of the web page.
http://poshcode.org/2498

PowerShell Code Repository - Get-WebSite
This script will allow you to query a web site and retrieve information about the web site and whether it is available or not.
http://poshcode.org/2499

PowerShell Code Repository - Get-WebSite
This script will allow you to query a web site and retrieve information about the web site and whether it is available or not.
http://poshcode.org/2502

PowerShell Code Repository - Get-WebSite
This script will allow you to query a web site and retrieve information about the web site and whether it is available or not.
http://poshcode.org/2503

PowerShell Code Repository - Get-WebSite
This script will allow you to query a web site and retrieve information about the web site and whether it is available or not.
http://poshcode.org/2504

PowerShell Code Repository - Get-WebSite
This script will allow you to query a web site and retrieve information about the web site and whether it is available or not.
http://poshcode.org/2496

PowerShell Code Repository - Get-WebsiteCertificate
This will return the specified website’s X.509 certificate either as an object or a file (if the -OutputFile parameter is specified). See included comment based help for documentation.
http://poshcode.org/2521

PowerShell Code Repository - Get-WifiNetwork
Get-WifiNetwork – return the parsed output of netsh wlan show network mode=bssid in psobject form. Does exactly what it says on the tin. Requires Vista/2008 or higher, or XP SP3 with a hotfix (I can’t recall which one, sorry.)
http://poshcode.org/2945

PowerShell Code Repository - Get-WindowsExperience
Get the Windows Experience Rating
http://poshcode.org/2961

PowerShell Code Repository - Get-WindowsExperience
Get the Windows Experience Rating
http://poshcode.org/2311

PowerShell Code Repository - Get-WmiClassKeyProperty.
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2169

PowerShell Code Repository - Get-WmiNamespace
In order to enumerate all the WMI namespaces, you must first connect to the “root” namespace, query for all the “__NAMESPACE” instances, and for each instance recursively repeat this process. You can use the computerName parameter of Get-WmiNamespace to list the WMI namespaces on the remote computer.
http://poshcode.org/1079

PowerShell Code Repository - Get-WMIVersions
Use this script to detect installed .NET versions on a remote server using WMI. Requires credentials and a computername.
http://poshcode.org/1627

PowerShell Code Repository - Get-WMIVersions
Use this script to detect installed .NET versions on a remote server using WMI. Requires credentials and a computername.
http://poshcode.org/1628

PowerShell Code Repository - Get-WootDeal
Gets the daily Woot! deal (www.woot.com) and emails it.
http://poshcode.org/1984

PowerShell Code Repository - Get-WordOutline
PowerShell Code Repository - Get-WordOutline
http://poshcode.org/611

PowerShell Code Repository - Get-WordOutline
PowerShell Code Repository - WhileTimeout
http://poshcode.org/610

PowerShell Code Repository - Get-XamlControlTemplate
Dump a WPF control’s default XAML template
http://poshcode.org/430

PowerShell Code Repository - Get/Set Signature (CTP2)
VERSION 1.1
http://poshcode.org/437

PowerShell Code Repository - Get/Set Signature (CTP2)
VERSION 1.3
http://poshcode.org/456

PowerShell Code Repository - Get/Set Signature (CTP2)
VERSION 1.4 — The default cert setting must be put in an external .PSD1 file!
http://poshcode.org/464

PowerShell Code Repository - Get/Set Signature (CTP2)
VERSION 1.5 for CTP3 — The default cert should be put in the ModuleInfo file.
http://poshcode.org/749

PowerShell Code Repository - Get/Set Signature (CTP2)
Wrappers for the Get-AuthenticodeSignature and Set-AuthenticodeSignature which properly parse paths and don’t kill your pipeline and script when you hit a folder by accident…
http://poshcode.org/436

PowerShell Code Repository - Get/Set Signature (CTP3)
Authenticode 1.6 for CTP3: Now with integrated help. NOTE: The default cert should be put in a ModuleInfo file, but it will work without that, and will prompt you for a certificate (and/or the password for it) only once per session.
http://poshcode.org/754

PowerShell Code Repository - Get/Set Signature (CTP3)
Authenticode 1.7 for CTP3: Now with integrated help. NOTE: The default cert should be put in a ModuleInfo file, but it will work without that, and will prompt you for a certificate (and/or the password for it) only once per session.
http://poshcode.org/1111

PowerShell Code Repository - Get/Set Signature 2.0
Authenticode 1.8 for PowerShell 2.0: The default cert should be put in a ModuleInfo file, but it will work without that, and will prompt you for a certificate (and/or the password for it) only once per session.
http://poshcode.org/1470

PowerShell Code Repository - Get/Set Signature 2.0
Authenticode 2.1 for PowerShell 2.0: Added Start-AutoSign function :) see my blog post
http://poshcode.org/1473

PowerShell Code Repository - Get/Set Signature 2.0
Authenticode 2.1 for PowerShell 2.0: Added Start-AutoSign function :) see my blog post
http://poshcode.org/1643

PowerShell Code Repository - Get/Set Signature 2.0
Authenticode 2.2 Improved automatic cert picking, and serializing the selected cert as the default cert so you don’t have to pick it each time.
http://poshcode.org/1580

PowerShell Code Repository - Get/Set Signature 2.3
Changes: Major improvements to Get-UserCertificate and Get-AuthenticodeCertificate
http://poshcode.org/1882

PowerShell Code Repository - Get/Set Signature 2.4
Changes: Added a -Module parameter to Set-AuthenticodeCertificate to make signing whole modules easier.
http://poshcode.org/1965

PowerShell Code Repository - Get/Set Signature 2.5
The improved code-signing module with automatic cert picking and finding.
http://poshcode.org/1966

PowerShell Code Repository - getMyModulePrefix
Functions in modules imported with the -prefix option have two command names. The module defined name and the prefixed name. When calling one of these functions externally the prefixed name is required, when calling internally the defined name is required.
http://poshcode.org/1564

PowerShell Code Repository - Google Chromium Download
Download and install Google Chromium if there is a newer version available.
http://poshcode.org/2959

PowerShell Code Repository - Google Chromium Download
Download and install Google Chromium if there is a newer version available.
http://poshcode.org/2747

PowerShell Code Repository - Google Chromium Download
Download and install Google Chromium if there is a newer version available.
http://poshcode.org/2422

PowerShell Code Repository - GPPreferencesPrinters
PowerShell Code Repository - Get-APOD
http://poshcode.org/1589

PowerShell Code Repository - GPRS Online log
Scan the System Event log for all GPRS online activity – PCMCIA, USB, mobile phone, etc. A Balloon Tip will also be issued when the SIM card is about to expire (Needs an icon file to be named ‘exclamation.ico’ for this feature to work).
http://poshcode.org/1468

PowerShell Code Repository - GPRS Online log
Scan the System Event log for all GPRS online activity – PCMCIA, USB, mobile phone, etc. A Balloon Tip will also be issued when the SIM card is about to expire (Needs an icon file to be named ‘exclamation.ico’ for this feature to work).
http://poshcode.org/1469

PowerShell Code Repository - GPRS Online log
Scan the System Event log for all GPRS online activity – PCMCIA, USB, mobile phone, etc. A Balloon Tip will also be issued when the SIM card is about to expire (Needs an icon file to be named ‘exclamation.ico’ for this feature to work).
http://poshcode.org/3124

PowerShell Code Repository - GPRS Online log
Scan the System Event log for all GPRS online activity – PCMCIA, USB, mobile phone, etc. A Balloon Tip will also be issued when the SIM card is about to expire (Needs an icon file to be named ‘exclamation.ico’ for this feature to work).
http://poshcode.org/3125

PowerShell Code Repository - GPRS Online log
Scan the System Event log for all GPRS online activity – PCMCIA, USB, mobile phone, etc. A Balloon Tip will also be issued when the SIM card is about to expire.
http://poshcode.org/3126

PowerShell Code Repository - GPRS Online log
Scan the System Event log for all GPRS online activity – PCMCIA, USB, mobile phone, etc. A Balloon Tip will also be issued when the SIM card is about to expire.
http://poshcode.org/3128

PowerShell Code Repository - GPRS Online log
Scan the System Event log for all GPRS online activity – PCMCIA, USB, mobile phone, etc. A Balloon Tip will also be issued when the SIM card is about to expire.
http://poshcode.org/3130

PowerShell Code Repository - GPRS Online log
Scan the System Event log for all GPRS online activity – PCMCIA, USB, mobile phone, etc. A Balloon Tip will also be issued when the SIM card is about to expire.
http://poshcode.org/3131

PowerShell Code Repository - GPRS Online log
Scan the System Event log for all GPRS online activity – PCMCIA, USB, mobile phone, etc. A Balloon Tip will also be issued when the SIM card is about to expire.
http://poshcode.org/3132

PowerShell Code Repository - GPRS Online log
Scan the System Event log for all GPRS online activity – PCMCIA, USB, mobile phone, etc. A Balloon Tip will also be issued when the SIM card is about to expire.
http://poshcode.org/3157

PowerShell Code Repository - gpupdate on remote pc's
This script gets all pc’s or servers from a OU and runs GPUpdate /force on these machines.
http://poshcode.org/2985

PowerShell Code Repository - gpupdate on remote pc's
This script gets all pc’s or servers from a OU and runs GPUpdate /force on these machines.
http://poshcode.org/1080

PowerShell Code Repository - Grant-RegistryAccessFull
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2170

PowerShell Code Repository - group-byobject
PowerShell Code Repository - Get-PendingUpdates
http://poshcode.org/2541

PowerShell Code Repository - group-byobject
PowerShell Code Repository - group-byobject
http://poshcode.org/2542

PowerShell Code Repository - group-byobject
Groups by a set of properties, but rather than return a string as the “name” of the group, teturns one of the original objects with separate properties for each property used to group, and optionally adds _count and _details properties which are the original Count and Group properties returned from group-object.
http://poshcode.org/2543

PowerShell Code Repository - group-byobject
Groups by a set of properties, but rather than return a string as the “name” of the group, teturns one of the original objects with separate properties for each property used to group, and optionally adds _count and _details properties which are the original Count and Group properties returned from group-object.
http://poshcode.org/2544

PowerShell Code Repository - group-byobject
Groups by a set of properties, but rather than return a string as the “name” of the group, teturns one of the original objects with separate properties for each property used to group, and optionally adds _count and _details properties which are the original Count and Group properties returned from group-object.
http://poshcode.org/2545

PowerShell Code Repository - h20 - Hashtables to obje
PowerShell Code Repository - Findup
http://poshcode.org/2322

PowerShell Code Repository - h20 -Hashtables 2 object
PowerShell Code Repository - Get-ObjectIdentifier
http://poshcode.org/2335

PowerShell Code Repository - h20 -Hashtables 2 object
PowerShell Code Repository - h20 - Hashtables to obje
http://poshcode.org/2323

PowerShell Code Repository - h20 -Hashtables 2 object
PowerShell Code Repository - h20 -Hashtables 2 object
http://poshcode.org/2324

PowerShell Code Repository - h20 -Hashtables 2 object
PowerShell Code Repository - h20 -Hashtables 2 object
http://poshcode.org/2325

PowerShell Code Repository - h20 -Hashtables 2 object
PowerShell Code Repository - h20 -Hashtables 2 object
http://poshcode.org/2697

PowerShell Code Repository - h20 -Hashtables 2 object
PowerShell Code Repository - Powershell Only Outlook
http://poshcode.org/2696

PowerShell Code Repository - Hack ESX MOTD
Hack your ESXi welcome screen.
http://poshcode.org/1950

PowerShell Code Repository - Hack ESX MOTD
Hack your ESXi welcome screen.
http://poshcode.org/1949

PowerShell Code Repository - Hack ESXi
Description
http://poshcode.org/2261

PowerShell Code Repository - Hack ESXi
Hack your ESXi welcome screen.
http://poshcode.org/2633

PowerShell Code Repository - Hack ESXi
Hack your ESXi welcome screen.
http://poshcode.org/3145

PowerShell Code Repository - Hack ESXi
Hack your ESXi welcome screen.
http://poshcode.org/1556

PowerShell Code Repository - Hardware Inventory
Hardware Inventory script to run on Windows Servers and output the JSON string to a CouchDB Database
http://poshcode.org/3031

PowerShell Code Repository - Hardware Inventory
Windows Script to collect Hardware information on a local system and Convert it to a JSON String and Upload that to a CouchDB Database
http://poshcode.org/3003

PowerShell Code Repository - Harley
DELL Welcome to your computer come sit in front of me nice Harley Trike
http://poshcode.org/3134

PowerShell Code Repository - Hash Checker
3014c106d0704f92677d34a02c29cc96
http://poshcode.org/2761

PowerShell Code Repository - Hash Checker
Check md5/sha1/etc hashes
http://poshcode.org/2920

PowerShell Code Repository - Hash Checker
Check md5/sha1/etc hashes
http://poshcode.org/989

PowerShell Code Repository - Hash Checker On One Line
Check and md5 or sha1 hash in a “single line” of PowerShell.
http://poshcode.org/988

PowerShell Code Repository - Help Differ 10000 v0.01
Help Differ 10000
http://poshcode.org/854

PowerShell Code Repository - Help Differ 10000 v0.01
Help Differ 10000
http://poshcode.org/839

PowerShell Code Repository - Help Differ 10000 v0.01
Help Differ 10000
http://poshcode.org/1260

PowerShell Code Repository - Hex dump sample
Calculate the HA capacity of a VMware HA Cluster.
http://poshcode.org/494

PowerShell Code Repository - HEX string to SID string
PowerShell Code Repository - set-FSRMQuotaBasedOnSQL
http://poshcode.org/3181

PowerShell Code Repository - Highlight-Syntax 1.0
The Get-Command cmdlet reveals all that you need to know about PowerShell.
http://poshcode.org/703

PowerShell Code Repository - Highlight-Syntax 1.0
This script uses regular expressions to highlight PowerShell syntax with HTML.
http://poshcode.org/100

PowerShell Code Repository - Highlight-Syntax 2.0
This script uses the System.Management.Automation.PsParser class to highlight PowerShell syntax with HTML.
http://poshcode.org/101

PowerShell Code Repository - Highlight-Syntax 2.0
This script uses the System.Management.Automation.PsParser class to highlight PowerShell syntax with HTML.
http://poshcode.org/1497

PowerShell Code Repository - Highlight-Syntax 2.0
This script uses the System.Management.Automation.PsParser class to highlight PowerShell syntax with HTML.
http://poshcode.org/1498

PowerShell Code Repository - Hostprofile Update GUI
GUI interface that helps you update host profiles faster.
http://poshcode.org/3202

PowerShell Code Repository - HP_Plink_ISO
Plink to map ISO on iLO
http://poshcode.org/3212

PowerShell Code Repository - http://bestfreeipadgames
A man is not old as long as he is seeking something. A man is not old until regrets take the place of dreams.
http://poshcode.org/2410

PowerShell Code Repository - http://harleydavidsonmot
Sow nothing, reap nothing.
http://poshcode.org/2403

PowerShell Code Repository - HttpRest
An initial implementation of some Http REST cmdlets, as a series of script functions (usable as a script module, just save as a .psm1)
http://poshcode.org/691

PowerShell Code Repository - HttpRest 1.0.1
Added Get-WebPageContent to the initial implementation of the Http REST script functions (usable as a v1 script or as a module).
http://poshcode.org/787

PowerShell Code Repository - HttpRest 1.0.2
A BUG FIX for Invoke-Http
http://poshcode.org/1104

PowerShell Code Repository - HttpRest 1.1.0
First STEP of Reworking in PowerShell 2.0 with parameter sets, etc.
http://poshcode.org/1105

PowerShell Code Repository - HttpRest 1.1.1
Continued reworking in PowerShell 2.0 with parameter sets.
http://poshcode.org/1107

PowerShell Code Repository - HttpRest 1.2
Some enhancements to HttpRest to support posting content, and a couple other things I needed for OAuth support…
http://poshcode.org/1262

PowerShell Code Repository - HttpRest 1.4
A few miscellaneous enhancements to HttpRest for pipelining urls, and the beginning of documentation …
http://poshcode.org/2028

PowerShell Code Repository - HttpRest 2.0
PowerShell Code Repository - My Profile.ps1
http://poshcode.org/2097

PowerShell Code Repository - HuddledTricks
A simple trick to show and hide windows — and an extra bonus trick ;)
http://poshcode.org/844

PowerShell Code Repository - HuddledTricks
A simple trick to show and hide windows — and an extra bonus trick ;)
http://poshcode.org/845

PowerShell Code Repository - HuddledTricks
I just added a bunch of tricks, including Ghosting windows (and unghosting), as well as messing with aero peek
http://poshcode.org/1741

PowerShell Code Repository - IADsDNWithBinary Cmdlet
I cooked this up to configure OCS user policy, but it should work for other attributes of this type as well.
http://poshcode.org/1168

PowerShell Code Repository - IADsDNWithBinary Cmdlet
I cooked this up to configure OCS user policy, but it should work for other attributes of this type as well. Added example for the read operation since it is picky about casting.
http://poshcode.org/1281

PowerShell Code Repository - IE Proxy Toggle (Silent)
Immediately toggle the current user’s Internet Explorer proxy settings on/off. Uses a ‘hidden’ Internet Explorer process to trigger the application of the new proxy setting once its been changed in the registry. Accepts a single command line parameter “disable”. If no parameter is given, the proxy is “enabled”.
http://poshcode.org/2895

PowerShell Code Repository - IE Proxy Toggle (Silent)
Immediately toggle the current user’s Internet Explorer proxy settings on/off. Uses a ‘hidden’ Internet Explorer process to trigger the application of the new proxy setting once its been changed in the registry. Accepts a single command line parameter “disable”. If no parameter is given, the proxy is “enabled”.
http://poshcode.org/2896

PowerShell Code Repository - IE Proxy Toggle (Silent)
Immediately toggle the current user’s Internet Explorer proxy settings on/off. Uses a ‘hidden’ Internet Explorer process to trigger the application of the new proxy setting once its been changed in the registry. Accepts a single command line parameter “disable”. If no parameter is given, the proxy is “enabled”.
http://poshcode.org/2897

PowerShell Code Repository - IIS FTP Site Creation
Automatically creates a Local User on server, Local directory on server, and Virtual directory in IIS based on User Inputs. Also sets user flags to read/write on directory and sets password options for user
http://poshcode.org/685

PowerShell Code Repository - ImaginaryFriendFeed
For FriendFeed users: get any twitter friends who aren’t on FriendFeed, and make imaginary versions of them, complete with avatars.
http://poshcode.org/1109

PowerShell Code Repository - ImaginaryFriendFeed
For FriendFeed users: get any twitter friends who aren’t on FriendFeed, and make imaginary versions of them, complete with avatars.
http://poshcode.org/1110

PowerShell Code Repository - Impersonation
A Module to solve fileshare permission issues once and for all
http://poshcode.org/1856

PowerShell Code Repository - Impersonation 1.1
A Module to solve fileshare permission issues once and for all. Allows you to impersonate other network credentials for windows network authentication.
http://poshcode.org/1867

PowerShell Code Repository - Import Group Policies
Import Bulk Group Policies by only specifying the import directory. All group policies will be imported to domain. Script is currently only able to be run from Server 2008 R2.
http://poshcode.org/3109

PowerShell Code Repository - Import-ADUser.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2171

PowerShell Code Repository - Import-Asup
import a NetApp auto support into a PSObject
http://poshcode.org/1651

PowerShell Code Repository - Import-BufferBox
A bunch of script functions for creating a simple in-console split-view with output above and an input line below. It allows scripts to sort-of simulate accepting input while they output text. It’s still pretty fragile and occasionally does weird things while you’re typing, because it’s not really multi-threaded and the $Host doesn’t have a “LineAvailable” method … and if you pause a script, you can’t see output from typing, so the whole things is well and truly a hack. But it works!
http://poshcode.org/110

PowerShell Code Repository - Import-Certificate
Function to import security certificates.
http://poshcode.org/1934

PowerShell Code Repository - Import-Certificate
Function to import security certificates.
http://poshcode.org/1935

PowerShell Code Repository - Import-Certificate
Function to import security certificates.
http://poshcode.org/1937

PowerShell Code Repository - Import-Certificate
Function to import security certificates.
http://poshcode.org/3037

PowerShell Code Repository - Import-Certificate.ps1
Imports certificate in specified certificate store.
http://poshcode.org/2643

PowerShell Code Repository - Import-Certificate.ps1
Imports certificate in specified certificate store.
http://poshcode.org/2644

PowerShell Code Repository - Import-CmdEnvironment
Invoke the specified command (with parameters) in cmd.exe, and import any environment variable changes back to PowerShell
http://poshcode.org/1926

PowerShell Code Repository - Import-CmdEnvironment
Invoke the specified command (with parameters) in cmd.exe, and import any environment variable changes back to PowerShell
http://poshcode.org/1929

PowerShell Code Repository - Import-CSV.ps1
Import-Csv that takes headers
http://poshcode.org/93

PowerShell Code Repository - Import-Delimited
PowerShell Code Repository - Join-Collections
http://poshcode.org/146

PowerShell Code Repository - Import-Delimited 2
PowerShell Code Repository - Hack ESX MOTD
http://poshcode.org/195

PowerShell Code Repository - Import-Delimited 2.3
Convert and import from delimited text files. Includes two functions: Convert-Delimiter and Import-Delimited.
http://poshcode.org/496

PowerShell Code Repository - Import-Delimited 2.4
Convert and import from delimited text files. Includes two functions: Convert-Delimiter and Import-Delimited.
http://poshcode.org/1528

PowerShell Code Repository - Import-ExcelToSQL
Imports an Excel spreadsheet to a SQL Server table using OLEDB
http://poshcode.org/1098

PowerShell Code Repository - Import-ExcelToSQL
Imports an Excel spreadsheet to a SQL Server table using OLEDB
http://poshcode.org/1063

PowerShell Code Repository - Import-GmailFilterXml
Gmail can now import and export filters as XML. This script will read in an XML file generated by Gmail (the Path parameter), and create from it a flat PSObject with Id, Updated, Name and Value fields. Since it is flat, you must use the Id field to correlate the filter criteria and actions. As far as I can tell, the first item in a filter is the criteria, and any subsequent ones describe the action to take. More info about filter import/export can be found here: http://gmailblog.blogspot.com/2009/03/new-in-labs-filter-importexport.html
http://poshcode.org/960

PowerShell Code Repository - Import-Iis-Log
Read in an IIS *log file saved in format W3C.
http://poshcode.org/3253

PowerShell Code Repository - Import-Iis-Log
Read in an IIS *log file saved in format W3C.
http://poshcode.org/3118

PowerShell Code Repository - Import-Iis-Log
Read in an IIS *log file saved in format W3C.
http://poshcode.org/2574

PowerShell Code Repository - Import-Instapaper
Search and browse to url in an instapaper csv.
http://poshcode.org/2588

PowerShell Code Repository - Import-Methods
PowerShell Code Repository - Write-IseFile
http://poshcode.org/162

PowerShell Code Repository - Import-Methods
Add functions to the scope for each static method of a type. Originally from Oisin Grehan
http://poshcode.org/969

PowerShell Code Repository - Import-NmapXML
This is a Powershell v2 module that takes NMAP XML output and formats it into custom powershell objects, allowing you to manipulate NMAP output data in Powershell. It operates similarly to import-csv.
http://poshcode.org/2596

PowerShell Code Repository - Import-NmapXML
This is a Powershell v2 module that takes NMAP XML output and formats it into custom powershell objects, allowing you to manipulate NMAP output data in Powershell. It operates similarly to import-csv.
http://poshcode.org/2486

PowerShell Code Repository - Import-UniqueModule
An attempt to resolve namespace clashes without overwriting functions …
http://poshcode.org/2303

PowerShell Code Repository - Import-VCBImage
Script that will use the Converter to import a VCB created disk image into a datacenter
http://poshcode.org/1331

PowerShell Code Repository - IniFile Functions 1.0
A bunch of functions for working with .ini files…
http://poshcode.org/160

PowerShell Code Repository - Inovke command exclusive
This invokes a command exclusively
http://poshcode.org/2228

PowerShell Code Repository - Install-Bginfo.ps1
Install and run BGInfo at startup using registry method
http://poshcode.org/2766

PowerShell Code Repository - Install-Module
A function to install single-file modules (create the folder, make sure the file is named the same as the folder, etc).
http://poshcode.org/1875

PowerShell Code Repository - Install-Patches
This module uses PSexec,vbscript and PowerShell to install patches on local or remote systems. This does require PSexec to be in the same directory as where you are running the function within this module. Save as a .psm1 file.
http://poshcode.org/2689

PowerShell Code Repository - Install-Solarized
Convert a console shortcut (e.g.: to PowerShell.exe) to the Solarized color scheme(s).
http://poshcode.org/3080

PowerShell Code Repository - Install-Solarized
Convert a Windows PowerShell shortcut to the Solarized color scheme(s).
http://poshcode.org/2648

PowerShell Code Repository - Interact with in-VM UI
Demostrates interaction with user interfaces running inside virtual machine. Based on VMware PowerCLI and WASP. Starts installalation of beta version of VMware tools, then simulates mouse click in unsigned driver confirmation window which appears inside the virtual machine.
http://poshcode.org/1094

PowerShell Code Repository - Inventory
Presents the user with a .NET GUI box to collect subnet (10.30.49), starting node (1) and ending node (254). Uses this info to collect information from every PC on that subnet within that node range and then outputs data to a spreadsheet. Example shown outputs to OpenOffice Calc but I have a seperate one for Excel output. This is one of my first attempts at really useful scripts. Im sure there are some things that could have (should have) been done differently or better.
http://poshcode.org/1801

PowerShell Code Repository - Inventory
Presents the user with a .NET GUI box to collect subnet (10.30.49), starting node (1) and ending node (254). Uses this info to collect information from every PC on that subnet within that node range and then outputs data to a spreadsheet. Example shown outputs to OpenOffice Calc but I have a seperate one for Excel output. This is one of my first attempts at really useful scripts. Im sure there are some things that could have (should have) been done differently or better.
http://poshcode.org/1802

PowerShell Code Repository - Inventory.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2172

PowerShell Code Repository - Invoke-AddTypeTypeDefini
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2173

PowerShell Code Repository - Invoke-ADMTUserMigration
This is an example on how to script the Active Directory Migration Tool (ADMT) using PowerShell.
http://poshcode.org/2046

PowerShell Code Repository - Invoke-AdvancedFunction.
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2174

PowerShell Code Repository - Invoke-AppAsAdmin
GUI script that helps to workaround problems with desktop sharing by non-admin person and running process as admin. In default scenario UAC kicks in and will show user/password prompt to non-admin user rather than remotely connected IT person. This script separates alternating credentials and elevating, so IT person can enter credentials first, and remote user gets only yes/no prompt. GUI code generated using PrimalForms community edition and re-written a bit. If you have any comments please ping me via twitter (@bielawb) or e-mail (bartb at aster.pl)
http://poshcode.org/2457

PowerShell Code Repository - Invoke-BinaryProcess.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2175

PowerShell Code Repository - Invoke-BPAModeling
PowerShell Code Repository - Get-FileEncoding
http://poshcode.org/2076

PowerShell Code Repository - Invoke-CmdScript.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2176

PowerShell Code Repository - Invoke-Command
PowerShell Code Repository - Add-SqlTable
http://poshcode.org/2655

PowerShell Code Repository - Invoke-Command
PowerShell Code Repository - Get-PSVersion
http://poshcode.org/96

PowerShell Code Repository - Invoke-Command on subnet
This script pingscan a subnet for running machines (full parallel) and executes (full parallel) any command on these machines
http://poshcode.org/2705

PowerShell Code Repository - Invoke-ComplexDebuggerSc
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2177

PowerShell Code Repository - Invoke-ComplexScript.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2178

PowerShell Code Repository - Invoke-ElevatedCommand
Corrected the enhanced error handling, added window display option, corrected interactivity of hidden windows, added header area, wrapped in a function.
http://poshcode.org/3158

PowerShell Code Repository - Invoke-ElevatedCommand.p
Enhanced error handling
http://poshcode.org/2297

PowerShell Code Repository - Invoke-ElevatedCommand.p
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2179

PowerShell Code Repository - Invoke-Generic
PowerShell Code Repository - Get-FileEncoding
http://poshcode.org/2060

PowerShell Code Repository - Invoke-Generic
PowerShell Code Repository - Get-MyPublicIPAddress
http://poshcode.org/2662

PowerShell Code Repository - Invoke-Generic
PowerShell Code Repository - Install-Solarized
http://poshcode.org/2649

PowerShell Code Repository - Invoke-Generic
PowerShell Code Repository - Invoke-Generic
http://poshcode.org/2663

PowerShell Code Repository - Invoke-Inline.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2180

PowerShell Code Repository - Invoke-JQuery
PowerShell Code Repository -
http://poshcode.org/2351

PowerShell Code Repository - Invoke-LocalizedScript.p
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2181

PowerShell Code Repository - Invoke-LongRunningOperat
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2182

PowerShell Code Repository - Invoke-Member.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2183

PowerShell Code Repository - Invoke-MoveRequest
PowerShell Code Repository - Inventory
http://poshcode.org/1803

PowerShell Code Repository - Invoke-MoveRequest
PowerShell Code Repository - Set-TopMost
http://poshcode.org/1838

PowerShell Code Repository - Invoke-NamedParameter
A function that simplifies calling methods with named parameters to make it easier to deal with long signatures and optional parameters. This is particularly helpful for COM objects.
http://poshcode.org/2607

PowerShell Code Repository - Invoke-NamedParameter
A function that simplifies calling methods with named parameters to make it easier to deal with long signatures and optional parameters. This is particularly helpful for COM objects.
http://poshcode.org/2608

PowerShell Code Repository - Invoke-NamedParameters
A function that simplifies calling methods with named parameters to make it easier to deal with long signatures and optional parameters. This is particularly helpful for COM objects.
http://poshcode.org/2606

PowerShell Code Repository - Invoke-PoshCode
Download and execute a script block from PoshCode.org … without checking signatures or anything ;)
http://poshcode.org/2408

PowerShell Code Repository - Invoke-RemoteExpression.
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2184

PowerShell Code Repository - Invoke-RemoteExpression.
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/3085

PowerShell Code Repository - Invoke-ResetPassword
Used to reset a Users Password
http://poshcode.org/88

PowerShell Code Repository - Invoke-ScriptBlock.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2185

PowerShell Code Repository - Invoke-ScriptBlockClosur
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2186

PowerShell Code Repository - Invoke-ScriptThatRequire
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2187

PowerShell Code Repository - Invoke-Sql.ps1
Wrapper script for executing a T-SQL call and optionally returning a delimited file. Informational/Error messages are written to the Application EventLog. Purpose of script is run T-SQL commands from external scheduler (UniCenter, AutoSys, etc.), log messages to EventLog and return success/failed status.
http://poshcode.org/2484

PowerShell Code Repository - Invoke-Sql.ps1
Wrapper script for executing a T-SQL call and optionally returning a delimited file. Informational/Error messages are written to the Application EventLog. Purpose of script is run T-SQL commands from external scheduler (UniCenter, AutoSys, etc.), log messages to EventLog and return success/failed status.
http://poshcode.org/3194

PowerShell Code Repository - Invoke-SqlCmd2
Implements SQL Server 2008 Invoke-Sqlcmd and addresses bug where querytimeout does not work correctly https://connect.microsoft.com/SQLServer/feedback/details/551799/invoke-sqlcmd-querytimeout-0-still-times-out
http://poshcode.org/1789

PowerShell Code Repository - Invoke-SqlCmd2
Modeled after SQL Server 2008 Invoke-Sqlcmd, but fixes bug in QueryTimeout
http://poshcode.org/1790

PowerShell Code Repository - Invoke-SqlCmd2
Modeled after SQL Server 2008 Invoke-Sqlcmd, but fixes bug in QueryTimeout, and allows for paramaterized queries.
http://poshcode.org/2950

PowerShell Code Repository - Invoke-SqlCmd2
Modeled after SQL Server 2008 Invoke-Sqlcmd, but fixes bug in QueryTimeout.
http://poshcode.org/2279

PowerShell Code Repository - Invoke-SqlCmd2
Modeled after SQL Server 2008 Invoke-Sqlcmd, but fixes bug in QueryTimeout.
http://poshcode.org/2111

PowerShell Code Repository - Invoke-SqlCmd2
Modeled after SQL Server 2008 Invoke-Sqlcmd, but fixes bug in QueryTimeout.
http://poshcode.org/2112

PowerShell Code Repository - Invoke-SqlCmd2
Modeled after SQL Server 2008 Invoke-Sqlcmd, but fixes bug in QueryTimeout. Fixed minor issue closing connection.
http://poshcode.org/1791

PowerShell Code Repository - Invoke-SqlCmd2
Modeled after SQL Server 2008 Invoke-Sqlcmd, but fixes bug in QueryTimeout. Put closing connection in finally block.
http://poshcode.org/2665

PowerShell Code Repository - Invoke-SqlCommand.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2188

PowerShell Code Repository - Invoke-SSH Wrapper
This function is a wrapper for the Invoke-SSH cmdlet which is included in the Netcmdlets package (http://www.nsoftware.com/PowerShell/). I don’t care for its output or syntax complexity, so I made this to suit my needs.
http://poshcode.org/646

PowerShell Code Repository - Invoke-Standby
Collection of functions to Shutdown, Reboot, Logoff, Standby(sleep) or Hibernate your computer.
http://poshcode.org/2280

PowerShell Code Repository - Invoke-V2Script
Function may be useful for people who want to play with CTP1 for PowerShell 3 but need to use v2 scripts (and prefer ISE over PowerShell.exe)
http://poshcode.org/2963

PowerShell Code Repository - Invoke-WindowsApi.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2189

PowerShell Code Repository - Invoke-WindowsUpdate
PowerShell Code Repository - Copy-File (Safely)
http://poshcode.org/1932

PowerShell Code Repository - Invoke-WMSettingsChange
Notifies other processes that the global environment block has changed. This lets other processes pick changes to ENV: without having to reboot or logoff/logon. A non-zero result from SendMessageTimeout indicates success.
http://poshcode.org/2049

PowerShell Code Repository - InvokeCSharp
PowerShell Code Repository - Find-GeoCode
http://poshcode.org/1423

PowerShell Code Repository - IP Scan/Local User admin
PowerShell Code Repository - Xml Module 4.3
http://poshcode.org/1684

PowerShell Code Repository - IPv4 Helpers
A collection of V1 functions to assist with most IPv4 math. A majority of the code was translated from VBScript found http://www.highorbit.co.uk/?p=270=1
http://poshcode.org/975

PowerShell Code Repository - Is-SameSubnet
Simple function that determines whether a pair of IP’s are on the same subnet, given a specified mask.
http://poshcode.org/527

PowerShell Code Repository - iSCSI Module
A module that wraps iscsicli.exe to provide basic iSCSI management capabilities
http://poshcode.org/3067

PowerShell Code Repository - ISE-Comments
PowerShell Code Repository - ISE-CopyOutPutToEditor
http://poshcode.org/1726

PowerShell Code Repository - ISE-Comments
PowerShell Code Repository - ISE-Lines
http://poshcode.org/773

PowerShell Code Repository - ISE-CopyOutPutToEditor
PowerShell Code Repository - Get-OnlineHelp
http://poshcode.org/1725

PowerShell Code Repository - ISE-CopyOutPutToEditor
Some of the new ISE custom menue functions only work in the editor pane and not in the output. If you have something in the output that you want to use, just copy it to a fresh editor pane. You can even save it, if you want. Nobody said, that only valid PowerShell scripts can be edited by ISE
http://poshcode.org/779

PowerShell Code Repository - ISE-CopyOutPutToEditor
Some of the new ISE custom menue functions only work in the editor pane and not in the output. If you have something in the output that you want to use, just copy it to a fresh editor pane. You can even save it, if you want. Nobody said, that only valid PowerShell scripts can be edited by ISE
http://poshcode.org/780

PowerShell Code Repository - ISE-FileName
PowerShell Code Repository - ISE-Lines
http://poshcode.org/1728

PowerShell Code Repository - ISE-Lines
PowerShell Code Repository - Get-PipeLineObject
http://poshcode.org/784

PowerShell Code Repository - ISE-Lines
PowerShell Code Repository - ISE-Comments
http://poshcode.org/1727

PowerShell Code Repository - ISE-Lines
PowerShell Code Repository - Prompt [for ISE]
http://poshcode.org/772

PowerShell Code Repository - ISE-Snippets
PowerShell Code Repository - Get-ChildItemProxy
http://poshcode.org/786

PowerShell Code Repository - ISE-Snippets variant
PowerShell Code Repository - app memory deltas
http://poshcode.org/789

PowerShell Code Repository - ISEFun.psm1
Module to extend PowerShell ISE functionality. Adds two GUIs (one to play with token colors, second to get command from history back to commandpane), and three functions that may be useful when using ISE (Edit-Function, Add-MyMenuItem and Expand-Alias). Comment-based help included. Have ISE – Fun! ;)
http://poshcode.org/2490

PowerShell Code Repository - ISEFun.psm1
Module to extend PowerShell ISE functionality. Adds two GUIs (one to play with token colors, second to get command from history back to commandpane), and three functions that may be useful when using ISE (Edit-Function, Add-MyMenuItem and Expand-Alias). Comment-based help included. Have ISE – Fun! ;)
http://poshcode.org/2458

PowerShell Code Repository - isMSDTC.ps1
Checks whether MSDTC is enabled for network access. By default MSDTC network access is disabled. This feature is needed by SQL Server Linked Servers
http://poshcode.org/2027

PowerShell Code Repository - IsoDates.psm1
A handful of functions for returning IS0-8601 formatted dates and parsing them. All functions work (even in the pipeline) in both PowerShell 1 and 2.
http://poshcode.org/966

PowerShell Code Repository - Issue-PendingRequest
Issues certificate request from a pending request. For this function to succeed, the certificate request must be pending. CAConfig string must be specified in a ‘CAComputerName\CAName’ form.
http://poshcode.org/2061

PowerShell Code Repository - Issue-PendingRequest
Issues certificate request from a pending request. For this function to succeed, the certificate request must be pending. CAConfig string must be specified in a ‘CAComputerName\CAName’ form.
http://poshcode.org/2062

PowerShell Code Repository - Join
Joins array elements together using a specific string separator
http://poshcode.org/455

PowerShell Code Repository - Join-Collections
Performs an inner join on two collections of objects which share a common key value.
http://poshcode.org/1460

PowerShell Code Repository - Join-Collections
Performs an inner join on two collections of objects which share a common key value.
http://poshcode.org/1459

PowerShell Code Repository - Join-Collections 2.0
Performs an inner join on two collections of objects which share a common key value. Now works on DataTable objects (ie: can join the rows from two tables).
http://poshcode.org/1461

PowerShell Code Repository - Join-Collections 2.1
PowerShell Code Repository - Get-ObservedIPRange
http://poshcode.org/1654

PowerShell Code Repository - Join-Objects 2.1
Performs a simple join of all properties from two objects. Now supports scriptblock evaluation:
http://poshcode.org/1596

PowerShell Code Repository - Join-Objects 3.0
Performs a join of all properties from two objects. Supports scriptblock evaluation, pipeline joining, etc.
http://poshcode.org/1818

PowerShell Code Repository - Join-String
Joins array elements together using a specific string separator
http://poshcode.org/2516

PowerShell Code Repository - JSON
Json.psm1 is a first draft of a JSON module. I has a full set of tools for exporting, importing, and converting Json objects. For instance, this actually works (it round trips a bunch of FileInfo objects through JSON, XML, JSON, and back to objects).
http://poshcode.org/1513

PowerShell Code Repository - JSON
Version 1.0 of my JSON module. I has a full set of tools for exporting, importing, and converting Json objects (including arbitrary objects). See comments in script header for usage examples, but basically, you can do things like:
http://poshcode.org/1514

PowerShell Code Repository - JSON 1.1
Version 1.1 of my JSON module. I has a full set of tools for exporting, importing, and converting Json objects (including arbitrary objects). See comments in script header for usage examples, but basically, you can do things like:
http://poshcode.org/1857

PowerShell Code Repository - JSON 1.2
Identical to Version 1.1, but code-signed.
http://poshcode.org/1907

PowerShell Code Repository - JSON 1.3
A fix for JSON that returns no items.
http://poshcode.org/1908

PowerShell Code Repository - JSON 1.4
Added -File parameter to ConvertFrom-JSON
http://poshcode.org/1927

PowerShell Code Repository - JSON 1.5
Added -File parameter to ConvertFrom-JSON and corrected handling of arrays
http://poshcode.org/1928

PowerShell Code Repository - JSON 1.5
In this JSON module, I have a full set of tools for exporting, importing, and converting Json objects (including arbitrary objects). See comments in script header for usage examples, but basically, you can do things like:
http://poshcode.org/2098

PowerShell Code Repository - JSON 1.7
In this JSON module, I have a full set of tools for exporting, importing, and converting Json objects (including arbitrary objects). See comments in script header for usage examples, but basically, you can do things like:
http://poshcode.org/2930

PowerShell Code Repository - Kill Outlook + CopyPST
A complete rewrite of my wget script to use HttpWebRequest and Response to figure out the filename
http://poshcode.org/1690

PowerShell Code Repository - Kill Outlook + CopyPST
A complete rewrite of my wget script to use HttpWebRequest and Response to figure out the filename
http://poshcode.org/1691

PowerShell Code Repository - Kill-Process
The script is intended for process end on any computer in a local area network. Class WMI is used. The rights of the manager to the local area network computer are necessary.
http://poshcode.org/1353

PowerShell Code Repository - Kill-Process
The script is intended for process end on any computer in a local area network. Class WMI is used. The rights of the manager to the local area network computer are necessary.
http://poshcode.org/1354

PowerShell Code Repository - Kill-Process_v2
The script is intended for process end on any computer in a local area network. Class WMI is used. The rights of the manager to the local area network computer are necessary.
http://poshcode.org/1375

PowerShell Code Repository - Lab Manager Demo
Demo showing using VMware Lab Manager.
http://poshcode.org/793

PowerShell Code Repository - Language
A script to use some web services for guessing languages and translating to English…
http://poshcode.org/188

PowerShell Code Repository - lazywinadmin.com
Check if all the services with StartMode AUTOMATIC are actually Running
http://poshcode.org/2758

PowerShell Code Repository - LetterDiamondOneliner v2
PowerShell Code Repository - LetterDiamondOneliner v2
http://poshcode.org/1037

PowerShell Code Repository - LetterDiamondOneliner v2
PowerShell Code Repository - LetterDiamondOneliner v3
http://poshcode.org/1039

PowerShell Code Repository - LetterDiamondOneliner v2
PowerShell Code Repository - LetterDiamondOneliner v3
http://poshcode.org/1041

PowerShell Code Repository - LetterDiamondOneliner v2
PowerShell Code Repository - Send-HTMLFormattedEmail
http://poshcode.org/1036

PowerShell Code Repository - LetterDiamondOneliner v3
PowerShell Code Repository - LetterDiamondOneliner v2
http://poshcode.org/1038

PowerShell Code Repository - LetterDiamondOneliner v3
PowerShell Code Repository - Read-HostMasked
http://poshcode.org/1040

PowerShell Code Repository - LetterDiamondOneLiner v4
PowerShell Code Repository - pslauncher
http://poshcode.org/1044

PowerShell Code Repository - LibraryChart
Defines functions for wokring with Microsoft Chart Control for .NET 3.5 Framework.Pipe output to Out-Chart function and specify chart type. Chart will display in form or save to image file. Real-time charts are supported by passing in a script block
http://poshcode.org/1204

PowerShell Code Repository - LibraryChart
Defines functions for wokring with Microsoft Chart Control for .NET 3.5 Framework.Pipe output to Out-Chart function and specify chart type. Chart will display in form or save to image file. Real-time charts are supported by passing in a script block. Updated to fix line chart. Line Chart XAxis needs tweaking.
http://poshcode.org/1205

PowerShell Code Repository - LibraryChart
Defines functions for wokring with Microsoft Chart Control for .NET 3.5 Framework.Pipe output to Out-Chart function and specify chart type. Chart will display in form or save to image file. Real-time charts are supported by passing in a script block. Updated to fix line chart. Line Chart XAxis needs tweaking.
http://poshcode.org/1330

PowerShell Code Repository - LibraryChart
Defines functions for wokring with Microsoft Chart Control for .NET 3.5 Framework.Pipe output to Out-Chart function and specify chart type. Chart will display in form or save to image file. Real-time charts are supported by passing in a script block. Updated to fix line chart. Line Chart XAxis needs tweaking.
http://poshcode.org/1598

PowerShell Code Repository - LibraryDirectory.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2190

PowerShell Code Repository - LibraryInputComparison.p
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2191

PowerShell Code Repository - LibraryInvocation.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2192

PowerShell Code Repository - LibraryLinkedServer
Filters for backing and removing SQL Server linked servers or linked server login mappings
http://poshcode.org/3048

PowerShell Code Repository - LibraryMSCS
Although Windows Server 2008 R2/Powershell 2.0 includes a FailoverClusters module, it only works on a machine running cluster service and NOT against Windows 2003/2008 clusters. This script provides a library functions for working with Microsft Cluster Services (MSCS) using the WMI MSCluster* class. Base class properties are extended with additional info from association classes.
http://poshcode.org/2886

PowerShell Code Repository - LibraryMSCS
Although Windows Server 2008 R2/Powershell 2.0 includes a FailoverClusters module, it only works on a machine running cluster service and NOT against Windows 2003/2008 clusters. This script provides a library functions for working with Microsft Cluster Services (MSCS) using the WMI MSCluster* class. Base class properties are extended with additional info from association classes.
http://poshcode.org/2421

PowerShell Code Repository - LibraryMSCS
Although Windows Server 2008 R2/Powershell 2.0 includes a FailoverClusters module, it only works on a machine running cluster service and NOT against Windows 2003/2008 clusters. This script provides a library functions for working with Microsft Cluster Services (MSCS) using the WMI MSCluster* class. Base class properties are extended with additional info from association classes.
http://poshcode.org/2426

PowerShell Code Repository - LibraryMSCS
Although Windows Server 2008 R2/Powershell 2.0 includes a FailoverClusters module, it only works on a machine running cluster service and against Windows 2003/2008 clusters. This script provides a library functions for working with Microsft Cluster Services (MSCS) using the WMI MSCluster* class. Base class properties are extended with additional info from association classes.
http://poshcode.org/2420

PowerShell Code Repository - LibraryMSCS
Windows Server 2008 R2/Powershell 2.0 will include cluster cmdlets, until then this script provides a library functions for working with Microsft Cluster Services (MSCS) using the WMI MSCluster* class and parsing the output of cluster.exe
http://poshcode.org/724

PowerShell Code Repository - LibraryPrompt.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2193

PowerShell Code Repository - LibraryProperties.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2194

PowerShell Code Repository - LibrarySqlBackup
Standalone script adapted from SQL Server Powershell Extensions (sqlpsx) http://sqlpsx.codeplex.com. Defines SQL Server backup and restore functions.
http://poshcode.org/1188

PowerShell Code Repository - LibrarySqlBackup
The trap statement for this script does not appear to function as suggested. When I try to run it and force an incorrect file location, it ignores the inner exception that would show the correct error.
http://poshcode.org/1202

PowerShell Code Repository - LibrarySqlData
Library defines two simple functions that use ADO.NET to get and set SQL data.
http://poshcode.org/1139

PowerShell Code Repository - List AD Attributes
List active directory attributes from schema
http://poshcode.org/1241

PowerShell Code Repository - List AD Attributes
List active directory attributes from schema
http://poshcode.org/2753

PowerShell Code Repository - List AD Attributes
List active directory attributes from schema
http://poshcode.org/2754

PowerShell Code Repository - List AD Attributes
List active directory attributes from schema
http://poshcode.org/2755

PowerShell Code Repository - List AD Computers CSV
This script will list all computer objects (and some information about them) into a CSV file. The “Ping Status” and various information items are determined through WMI. Some filtering is done for special characters that regularly appear in the Operating System Caption entry and the hardware Vendor entry. This is largely the same as the List AD Computers XLS script, but is intended for use on systems that do not have Excel installed. The CSV file that is produced can easily be imported into Excel and re-saved as an XLS at a later time if required.
http://poshcode.org/2935

PowerShell Code Repository - List AD Computers XLS
This script will list all computer objects (and some information about them) directly into an MS Excel spreadsheet. The Excel object is created using COM and the “Ping Status” and various information items are determined through WMI. Some filtering is done for special characters that regularly appear in the Operating System Caption entry and the hardware Vendor entry.
http://poshcode.org/2934

PowerShell Code Repository - List AD Users CSV
This script will list all User objects in the current Active Directory domain. The data gathered includes Display Name, Username, Last Logon Date, and Disabled Status. All data is exported to a CSV file.
http://poshcode.org/2936

PowerShell Code Repository - List AD Users CSV
This script will list all User objects in the current Active Directory domain. The data gathered includes Display Name, Username, Last Logon Date, and Disabled Status. All data is exported to a CSV file.
http://poshcode.org/3257

PowerShell Code Repository - List AD Users CSV
This script will list all User objects in the current Active Directory domain. The data gathered includes Display Name, Username, Last Logon Date, and Disabled Status. All data is exported to a CSV file.
http://poshcode.org/3258

PowerShell Code Repository - List AddRemovePrograms
This script creates a WMI Class Win32_AddRemovePrograms (and, on 64bit systems, a Win32_AddRemovePrograms32 for 32bit apps) which are backed by the registry provider. They can then be queried to list installed apps (and versions) and perform much faster than running the same queries using the PowerShell Registry provider. Additionally, they can be used in GPO policies, etc.
http://poshcode.org/2470

PowerShell Code Repository - List DHCP Clients
Function to list all clients in a Microsoft DHCP server database. The script Uses P/Invoke function signatures, structs & ports the DhcpEnumSubnetClients() C# code example to PowerShell from PInvoke.net. There is no other (nice!) way to get this information in an object form, other than scraping the output from netsh.exe.
http://poshcode.org/1477

PowerShell Code Repository - List Object Discoveries
PowerShell Code Repository - Get-DNSZoneRecords
http://poshcode.org/644

PowerShell Code Repository - List Object Discoveries
This function creates a web client that will ignore all SSL certificate errors. Useful for uploading (HTTP PUT, maybe POST as well) to an https web server using a self-signed cert.
http://poshcode.org/637

PowerShell Code Repository - ListCmdletParameters
Extract all Parameters for a cmdlet from GET-HELP, list them in a single column
http://poshcode.org/3188

PowerShell Code Repository - Live@Edu password reset
Simple Windows form to connect to Live@Edu for the purpose of searching for accounts and resetting their passwords.
http://poshcode.org/2411

PowerShell Code Repository - LNK file testing
Finds all .lnk files under a given path (Windows drive (c:\) is default) and tests validity of the the target. Useful for finding invalid targets like UNC paths that no longer exist and may slow things down.
http://poshcode.org/3111

PowerShell Code Repository - LNK file testing
Finds all .lnk files under a given path (Windows drive (c:\) is default) and tests validity of the the target. Useful for finding invalid targets like UNC paths that no longer exist and may slow things down.
http://poshcode.org/3112

PowerShell Code Repository - LoadModuleConfig
Module aware local user configuration settings generator, loader, and exporter setup that invokes during module import. Unlike a module’s PrivateData this was created for storing user/project settings that wouldn’t change with module versions (like default param values the user would get tired of passing). And instead of doing xml creation and parsing manually it makes use of import/export CliXml.
http://poshcode.org/1601

PowerShell Code Repository - LoadModuleConfig
Module aware local user configuration settings generator, loader, and exporter setup that invokes during module import. Unlike a module’s PrivateData this was created for storing user/project settings that wouldn’t change with module versions (like default param values the user would get tired of passing). And instead of doing xml creation and parsing manually it makes use of import/export CliXml.
http://poshcode.org/1603

PowerShell Code Repository - LoadModuleConfig
Module aware local user configuration settings generator, loader, and exporter setup that invokes during module import. Unlike a module’s PrivateData this was created for storing user/project settings that wouldn’t change with module versions (like default param values the user would get tired of passing). And instead of doing xml creation and parsing manually it makes use of import/export CliXml.
http://poshcode.org/1604

PowerShell Code Repository - LoadModuleConfig
Module aware local user configuration settings generator, loader, and exporter setup that invokes during module import. Unlike a module’s PrivateData this was created for storing user/project settings that wouldn’t change with module versions (like default param values the user would get tired of passing). And instead of doing xml creation and parsing manually it makes use of import/export CliXml.
http://poshcode.org/1608

PowerShell Code Repository - Local Software Inventory
This script will create (using COM) an MS Excel spreadsheet of all the software installed on the local machine. Basic information about the software, as provided in the registry, is also included. When the script has completed the data collection, all columns are set to “Auto Fit” for width and blank rows in the spreadsheet are removed.
http://poshcode.org/2940

PowerShell Code Repository - Lock-WorkStation
Locks the workstation’s display. Locking a workstation protects it from unauthorized use.
http://poshcode.org/1640

PowerShell Code Repository - Log 4 SP easy restore
Log SharePoint content deletions in all sites fora specified web application. Motivation was to determine content deletion dates to easily find the right backup for a selective restore.
http://poshcode.org/1799

PowerShell Code Repository - Log Lost Pings
This script uses /n Software’s NetCmdlets, specifically the cmdlet “send-ping”, to continually ping a host, and log to a file whenever connectivity is lost.
http://poshcode.org/607

PowerShell Code Repository - Log ports used by app
PowerShell Code Repository - Log ports used by applic
http://poshcode.org/2890

PowerShell Code Repository - Log ports used by applic
PowerShell Code Repository - Get-ADSite-byIP
http://poshcode.org/2889

PowerShell Code Repository - Log4Net.xslt
A better xsl stylesheet for log4net. Auto-refreshes, maintains scroll position.
http://poshcode.org/1750

PowerShell Code Repository - Log4Net.xslt
A stylesheet for viewing log4net xml files (which is a bit of a trick, anyway)
http://poshcode.org/1746

PowerShell Code Repository - Logger.psm1
A trivial Log4Net implementation which (optionally) causes Write-Host, Write-Verbose, Write-Warning, Write-Debug, and Write-Error to log their output when called from (any) script.
http://poshcode.org/1744

PowerShell Code Repository - Logger.psm1 0.2
The simplest logger. In your script just import-module Logger and debug, verbose, warnings and errors are logged to file.
http://poshcode.org/1745

PowerShell Code Repository - Logger.psm1 0.2
The simplest logger. In your script just import-module Logger and debug, verbose, warnings and errors are logged to file.
http://poshcode.org/1747

PowerShell Code Repository - Logger.psm1 0.3
The simplest logger. In your script just import-module Logger and debug, verbose, warnings and errors are logged to file.
http://poshcode.org/1748

PowerShell Code Repository - Logger.psm1 0.4
The simplest logger. In your script just import-module Logger and debug, verbose, warnings and errors are logged to file.
http://poshcode.org/1752

PowerShell Code Repository - Logger.psm1 0.5
The simplest logger. In your script just import-module Logger and debug, verbose, warnings and errors are logged to file.
http://poshcode.org/1825

PowerShell Code Repository - Logger.psm1 0.6
The simplest logger. In your script just import-module Logger and debug, verbose, warnings and errors are logged to file.
http://poshcode.org/1858

PowerShell Code Repository - lol
PowerShell Code Repository - SNTP
http://poshcode.org/2605

PowerShell Code Repository - LookUp-WirelessLocation
PowerShell Code Repository - Get-DNSZoneRecords
http://poshcode.org/643

PowerShell Code Repository - MachineKey.psm1
A module for updating the machineKey element in some or all of the web.config files on a server at once.
http://poshcode.org/2275

PowerShell Code Repository - MacroScopeParser
Uses MacroScope/Antlr to parse SQL query for tables and table aliases
http://poshcode.org/1733

PowerShell Code Repository - Mailbox User_Update
Powershell script with a gui that will search for a mailbox user and display most properties on one page and allow for changes to be made.
http://poshcode.org/1832

PowerShell Code Repository - MainulatingCustomObjects
Add Properties to Existing Custom Objects
http://poshcode.org/1581

PowerShell Code Repository - Manage ASP.NET Providers
Manage ASP.NET MemberShip, Role and Profile Provider with PowerShell. Especially useful with SqlMembershipProvider. I use it to manage SharePoint users with form based authentication (FBA).
http://poshcode.org/1668

PowerShell Code Repository - Manage ASP.NET Providers
Manage ASP.NET MemberShip, Role and Profile Provider with PowerShell. Especially useful with SqlMembershipProvider. I use it to manage SharePoint users with form based authentication (FBA).
http://poshcode.org/1669

PowerShell Code Repository - Manage ASP.NET Providers
Manage ASP.NET MemberShip, Role and Profile Provider with PowerShell. Especially useful with SqlMembershipProvider. I use it to manage SharePoint users with form based authentication (FBA).
http://poshcode.org/1673

PowerShell Code Repository - Manage ASP.NET Providers
Manage ASP.NET MemberShip, Role and Profile Provider with PowerShell. Especially useful with SqlMembershipProvider. I use it to manage SharePoint users with form based authentication (FBA).
http://poshcode.org/1674

PowerShell Code Repository - Manage ASP.NET Providers
Manage ASP.NET MemberShip, Role and Profile Provider with PowerShell. Especially useful with SqlMembershipProvider. I use it to manage SharePoint users with form based authentication (FBA).
http://poshcode.org/1670

PowerShell Code Repository - Manage ASP.NET Providers
Manage ASP.NET MemberShip, Role and Profile Provider with PowerShell. Especially useful with SqlMembershipProvider. I use it to manage SharePoint users with form based authentication (FBA).
http://poshcode.org/1671

PowerShell Code Repository - Manual DNS Scavenging
PowerShell Code Repository - Invoke-BPAModeling
http://poshcode.org/2077

PowerShell Code Repository - Manual DNS Scavenging
PowerShell Code Repository - Invoke-BPAModeling
http://poshcode.org/2079

PowerShell Code Repository - Map a Network Drive
A simple function for connecting a UNC path to a specified Windows drive letter. Some other things I’d like to see added:
http://poshcode.org/2058

PowerShell Code Repository - Map a Network Drive
A simple function for connecting a UNC path to a specified Windows drive letter. Some other things I’d like to see added:
http://poshcode.org/3233

PowerShell Code Repository - Measure-CommandPerforman
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2195

PowerShell Code Repository - Measure-File
A lightweight function similar to unix’s “wc” word count application. In my testing, this outputs the same numbers as wc, but without totals. See Measure-Total for a general-purpose numeric column “totals row” generating function :)
http://poshcode.org/1030

PowerShell Code Repository - Measure-Total
A general-purpose function for generating a “totals” row for data with numeric properties.
http://poshcode.org/1031

PowerShell Code Repository - Memory helper functions
Memory management helpers. Set-SessionVariableList creates a baseline of variable names. Remove-NewVariable clears out any variables not in the SessionVariableList and calls the garbage collector to free up memory.
http://poshcode.org/973

PowerShell Code Repository - mGet-DatastoreList
A version of the VMware Get-Datastore cmdlet that filters out datastore we don’t want to use for VMs by type of datastore and our naming conventions for the datastore naming indicating what kind of data is on the datastore. Line 9 will have to be updated for your own environment.
http://poshcode.org/2448

PowerShell Code Repository - MIFParser.ps1
Parses Management Information Format (MIF) files. See http://chadwickmiller.spaces.live.com/blog/cns!EA42395138308430!522.entry
http://poshcode.org/1447

PowerShell Code Repository - Migrate-ADMTUser
PowerShell Code Repository - Migrate-ADMTUser
http://poshcode.org/2048

PowerShell Code Repository - Migrate-ADMTUser
A function to migrate a single user in the Active Directory Migration Tool, based on the sample script Invoke-ADMTUserMigration.ps1: http://poshcode.org/2046
http://poshcode.org/2047

PowerShell Code Repository - mklink
MKLINK – Make Symbolic File and Directory links. Useful for making symbolic links from powershell.
http://poshcode.org/2353

PowerShell Code Repository - Modal File Dialogs
There are problems with displaying modal dialogs from PowerShell in XP SP3. When the ShowDialog() method is called, the dialog is not modal and is behind the PowerShell window. To solve this problem, you need to add a class that implements System.Windows.Forms.IWin32Window and instantiate that class with the handle to the main window of the running process, and then pass that handle as a parameter to the ShowDialog() method to make the dialog act modally.
http://poshcode.org/2002

PowerShell Code Repository - Modified WOL impl.
This function can send WOL packages. Note that this a modified version of code already floating online. You need to specify the Mac address as a string. Optionally use -Ports (0,1000) to specify the udp ports. (use -verbose to show which pacakges are being send).
http://poshcode.org/2114

PowerShell Code Repository - Modified WOL impl.
This function can send WOL packages. Note that this a modified version of code already floating online. You need to specify the Mac address as a string. Optionally use -Ports (0,1000) to specify the udp ports. (use -verbose to show which pacakges are being send).
http://poshcode.org/2115

PowerShell Code Repository - ModuleWriteError.psd1
Module manifest for ModuleWriteError.psm1
http://poshcode.org/1572

PowerShell Code Repository - ModuleWriteError.psm1
Provides a New-ModuleError function for the creation of an error record that is populated and formatted with an imported module’s advanced function information.
http://poshcode.org/1573

PowerShell Code Repository - ModuleWriteError.psm1
Provides a New-ModuleError function for the creation of an error record that is populated and formatted with an imported module’s advanced function information.
http://poshcode.org/1574

PowerShell Code Repository - Monitor ESX with WS-MAN
This script shows how to monitor ESX with PowerShell v2 CTP3’s new WSMan cmdlets.
http://poshcode.org/928

PowerShell Code Repository - Monitor ESX with WS-MAN
This script shows how to monitor ESX with PowerShell v2 CTP3’s new WSMan cmdlets.
http://poshcode.org/903

PowerShell Code Repository - Move-FileSafely
A wrapper around Move-Item which moves a whole folder tree and creates backup copies if the files already exist in the destination.
http://poshcode.org/1943

PowerShell Code Repository - Move-LockedFile.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2196

PowerShell Code Repository - Move-Template
V2 advanced Function based off http://tinyurl.com/yabqtgy…. an example of how parameter binding/validation/parameter sets can really enhance even a simple script.
http://poshcode.org/1600

PowerShell Code Repository - Move-Template
V2 advanced Function based off http://tinyurl.com/yabqtgy…. an example of how parameter binding/validation/parametersets can really enhance even a simple script.
http://poshcode.org/1599

PowerShell Code Repository - Move-VMTemplate
A simple script to simplify moving templates from one ESX Host to another.
http://poshcode.org/556

PowerShell Code Repository - Move-VMThin SVMotion
A powershell module to perform Storage VMotions from Thick-to-Thin. Meant to be used in place of Move-VM. Currently only accepts one VM and strings for performance reasons, will accept objects in next revision as well as more documentation.
http://poshcode.org/1579

PowerShell Code Repository - MoveExch2010SP1Archives
This script allows you to move the archive mailbox for a User or all your users to a database for Exchange 2010 SP1
http://poshcode.org/2035

PowerShell Code Repository - MoveMailboxBySize
This script was developed to assist a customer with moving customizable batches of users, starting smallest mailboxes first in batches, and move them into datastores sorted by last name. This script is modular and can be extended to different filtering mechanisms, or a different datastore sorting criteria.
http://poshcode.org/2029

PowerShell Code Repository - mstsc-Ac.ps1
Pings a host until it responds, tries to connect to the RDP port, and then when that succeeds, launches a remote desktop connection via mstsc.exe. I discuss this version here http://www.justaprogrammer.net/2012/01/07/making-an-rdp-connection-to-a-server-you-just-rebooted-with-powershell/
http://poshcode.org/3154

PowerShell Code Repository - Multiple strings params
Multiple string parameters
http://poshcode.org/1512

PowerShell Code Repository - MWE_UsageSample.psm1
This is a sample usage of the ModuleWriteError demonstrating the output and what is gets written to an ErrorVariable or the $Global:Error queue.
http://poshcode.org/1576

PowerShell Code Repository - My Profile.ps1
This is my profile script … it contains a few things that are specific to my setup (particularly: which modules I load, and the scripts which I Autoload), but they are all available here on PoshCode.org :-)
http://poshcode.org/2096

PowerShell Code Repository - Netapp SDK
Here is a handful of functions that I use to manage netapp appliances. The code could be improved in several ways, but I think it is a good starting point and functions as a good set of examples for those interested in using the ontap SDK in powershell.
http://poshcode.org/2467

PowerShell Code Repository - Netapp SDK
Here is a handful of functions that I use to manage netapp appliances. The code could be improved in several ways, but I think it is a good starting point and functions as a good set of examples for those interested in using the ontap SDK in powershell.
http://poshcode.org/1323

PowerShell Code Repository - NetBackup Backup Report
PowerShell Code Repository - Receive-Stream
http://poshcode.org/2415

PowerShell Code Repository - NetSnmp.psm1
Beginnings of a PowerShell v2 module that serves as a convenience wrapper for the Net-SNMP executables.
http://poshcode.org/1238

PowerShell Code Repository - Network Config | Excel
Scan an [Array] of Windows 2003 Servers and export their Network Adapter Configuration into an Excel Spreadsheet.
http://poshcode.org/1024

PowerShell Code Repository - Networker - Delete ssids
Delete NW ssids by clientname , for use in adv_file environments.
http://poshcode.org/1317

PowerShell Code Repository - Networker - Delete ssids
Delete NW ssids by clientname , for use in adv_file environments.
http://poshcode.org/1131

PowerShell Code Repository - new get-childitem
proxy-function to get-childitem
http://poshcode.org/3072

PowerShell Code Repository - New Portgroups
Create new portgroups on a VirtualSwitch
http://poshcode.org/484

PowerShell Code Repository - New Switch and Portgroup
Create a brand new switch and add the portgroup and vlan ID. This will create the switch on every ESX server in VirtualCenter.
http://poshcode.org/485

PowerShell Code Repository - New-Activity
Wraps a pre-existing PowerShell cmdlet in a binary Workflow Activity and outputs a DLL that can be used in Visual Studio.
http://poshcode.org/3164

PowerShell Code Repository - New-ADSubnet
This script will create a new subnet in AD Sites and Services given the subnet, site name and location.
http://poshcode.org/1068

PowerShell Code Repository - New-AdUser
Here is a function to create an Active Directory user. This function doesn’t do nearly everything that the Quest AD cmdlet can do, however it does provide user password configuration options such as setting the ‘User cannot change password’ and ‘Password never expires’ flags. The new AD account is enabled by default when created.
http://poshcode.org/2430

PowerShell Code Repository - New-AdUserAccount
Here is a function to create an Active Directory user. This function doesn’t do nearly everything that the Quest AD cmdlet can do, however it does provide user password configuration options such as setting the ‘User cannot change password’ and ‘Password never expires’ flags. The new AD account is enabled by default when created.
http://poshcode.org/2431

PowerShell Code Repository - New-ArgsTestExe
A demonstration app to highlight (and diagnose) the problems with invoking applications with PowerShell. For demonstration purposes, try a command line like this:
http://poshcode.org/2555

PowerShell Code Repository - New-BootsGadget
A wrapper for creating gadget windows with PowerBoots like these
http://poshcode.org/1546

PowerShell Code Repository - New-Choice
Creates a Choice Dialog for end users. It will return the string that the user chose.
http://poshcode.org/2659

PowerShell Code Repository - New-Choice
New-Choice Update
http://poshcode.org/2660

PowerShell Code Repository - New-CodeSigningCert
PowerShell Code Repository - vibackup-lx1.ps1
http://poshcode.org/1049

PowerShell Code Repository - New-CodeSigningCertifica
Creates new self-signed code signing certificate and installs it to current user’s personal store. Supports Windows XP and higher.
http://poshcode.org/2700

PowerShell Code Repository - New-CommandWrapper.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2197

PowerShell Code Repository - New-ComplexPassword
Generate random passwords with specific complexity requirements
http://poshcode.org/567

PowerShell Code Repository - New-CustomColumn (V1.0)
New-CustomColumn for PowerShell V1.0
http://poshcode.org/828

PowerShell Code Repository - New-DesktopIni
Create a desktop.ini in your PowerShell folder setting the icon and messing with the display name.
http://poshcode.org/1842

PowerShell Code Repository - New-DFSRHealthReport
A Windows PowerShell-script for generating an HTML-report for DFS-R SYSVOL and sending it via e-mail.
http://poshcode.org/2427

PowerShell Code Repository - New-DynamicVariable.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2198

PowerShell Code Repository - New-ElevatedTask
Creates a new “On Demand Only” scheduled task to run an “Elevated” application, and a shortcut to launch it on demand, so you can bypass UAC prompting on specific apps.
http://poshcode.org/907

PowerShell Code Repository - New-ElevatedTask 2.7
Creates a new “On Demand Only” scheduled task to run an “Elevated” application, and a shortcut to launch it on demand, so you can bypass UAC prompting on specific apps.
http://poshcode.org/1301

PowerShell Code Repository - New-Event
A PowerShell client for NaturalInputs.com to parse natural language dates into (optionally recurring) calendar event objects.
http://poshcode.org/3059

PowerShell Code Repository - New-Event
A PowerShell client for NaturalInputs.com to parse natural language dates…
http://poshcode.org/1597

PowerShell Code Repository - New-Exch2010NlbCluster
PowerShell Code Repository - Findup
http://poshcode.org/2333

PowerShell Code Repository - New-Exch2010NlbCluster
PowerShell Code Repository - Impersonation 1.1
http://poshcode.org/1868

PowerShell Code Repository - New-FileShare
PowerShell Code Repository - Copy-FilePlus
http://poshcode.org/935

PowerShell Code Repository - New-FilesystemHardLink.p
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2199

PowerShell Code Repository - New-FullDataSet
Generates a simple dataset based on the files in the current directory. I whipped this up while answering questions about databinding because I needed to be able to create multiple DataSets/DataTables easily, without needing an actual database.
http://poshcode.org/2262

PowerShell Code Repository - New-GenericObject.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2200

PowerShell Code Repository - New-GenericType
A wrapper for calling constructors for generic types. I don’t remember where I got this, but it seems to work great :)
http://poshcode.org/117

PowerShell Code Repository - New-HyperVVM
PowerShell Code Repository - Convert-BounceToX500
http://poshcode.org/2365

PowerShell Code Repository - New-IseFile
PowerShell Code Repository - Require-Function
http://poshcode.org/1618

PowerShell Code Repository - New-ISEMenu
This is a little tweak of Ravikanth’s Script to generate a dialog for adding menu items in PowerShell ISE. All I did was just clean it up a little bit following a few guidelines:
http://poshcode.org/2798

PowerShell Code Repository - New-ISEMenu
This is a little tweak of Ravikanth’s Script to generate a dialog for adding menu items in PowerShell ISE. All I did was just clean it up a little bit following a few guidelines:
http://poshcode.org/2799

PowerShell Code Repository - New-ISEMenu
This is a little tweak of Ravikanth’s Script to generate a dialog for adding menu items in PowerShell ISE. All I did was just clean it up a little bit following a few guidelines:
http://poshcode.org/2800

PowerShell Code Repository - New-ISEMenu
This is a little tweak of Ravikanth’s Script to generate a dialog for adding menu items in PowerShell ISE. All I did was just clean it up a little bit following a few guidelines:
http://poshcode.org/2801

PowerShell Code Repository - New-ISEMenu
This is just a little tweak of Ravikanth’s Script to generate a dialog for adding menu items in PowerShell ISE. All I did was just clean it up a little bit following a few guidelines:
http://poshcode.org/2796

PowerShell Code Repository - New-ISEMenu
This is just a little tweak of Ravikanth’s Script to generate a dialog for adding menu items in PowerShell ISE. All I did was just clean it up a little bit following a few guidelines:
http://poshcode.org/2797

PowerShell Code Repository - New-ISEScript.ps1
just a quick re-write of gmagerr’s Powershell Template script to enable his template to create Powershell ISE help-comment based structure which I often use; I just put this function into an add-isemenu custom menu array. Thanks to gmagerr for the structure I just added a couple of things (most of which work fine!). thx for the base gmagerr.
http://poshcode.org/2101

PowerShell Code Repository - New-LinkedClone
PowerCLI script to create linked clones on an ESX server (does require vCenter). This feature is not normally supported on ESX, so this is a pretty nifty thing to do if you like living dangerously. Info on linked clones: http://www.vmware.com/support/ws55/doc/ws_clone_overview.html#wp1028798.
http://poshcode.org/1549

PowerShell Code Repository - New-MAML
Generates External MAML Powershell help file for any loaded cmdlet or function
http://poshcode.org/1338

PowerShell Code Repository - New-NamedPipe
The below will create a bi-directional named pipe with the name you specify in the $pipeName variable. Note that .NET 3.5 is required for the System.IO.Pipes namespace.
http://poshcode.org/898

PowerShell Code Repository - New-ObjectRecursive.ps1
I saw few questions about this functionality on VUG, so I decided to give it a try and create function that would allow user to created object with nested objects. I needed to have also possibility to define type of nested object, so I’ve used key in hashtable to define it, if exists. Works fine now with Windows.Forms :) Meanwhile I’ve noticed Karl already produced another script that does similar things. Oh, well, maybe that will be also handy for somebody. :)
http://poshcode.org/2523

PowerShell Code Repository - New-ObjectRecursive.ps1
I saw few questions about this functionality on VUG, so I decided to give it a try and create function that would allow user to created object with nested objects. I needed to have also possibility to define type of nested object, so I’ve used key in hashtable to define it, if exists. Works fine now with Windows.Forms :) Meanwhile I’ve noticed Karl already produced another script that does similar things. Oh, well, maybe that will be also handy for somebody. :)
http://poshcode.org/2527

PowerShell Code Repository - New-ODataServiceProxy
A wrapper for DataSvcUtil to generate web service proxies in-memory for OData services like NetFlix (which are not handled correctly by PowerShell’s built-in New-WebServiceProxy).
http://poshcode.org/2460

PowerShell Code Repository - New-ODataServiceProxy
A wrapper for DataSvcUtil to generate web service proxies in-memory for OData services like NetFlix (which are not handled correctly by PowerShell’s built-in New-WebServiceProxy).
http://poshcode.org/2039

PowerShell Code Repository - New-ODataServiceProxy
A wrapper for DataSvcUtil to generate web service proxies in-memory for OData services like NetFlix (which are not handled correctly by PowerShell’s built-in New-WebServiceProxy).
http://poshcode.org/2040

PowerShell Code Repository - New-ODataServiceProxy
A wrapper for DataSvcUtil to generate web service proxies in-memory for OData services like NetFlix (which are not handled correctly by PowerShell’s built-in New-WebServiceProxy).
http://poshcode.org/2043

PowerShell Code Repository - New-Password
The ultimate template-based password generator. Example usage: New-Password Cvcvc.## generates a memorable 8 character password with uppercase, lowercase, punctuation and a number. Of course, since these passwords are templated, they are arguably easier to crack (if someone knows your template), but of course, you can generate purely random passwords using New-Password ******** or you can vary the length of the password by allowing variable numbers of characters in your template: New-Password "Cv3c2v3c#4"
http://poshcode.org/1610

PowerShell Code Repository - New-Password 1.1
The ultimate template-based password generator. Example usage: New-Password Cvcvc.## generates a memorable 8 character password with uppercase, lowercase, punctuation and a number. Of course, since these passwords are templated, they are arguably easier to crack (if someone knows your template), but of course, you can generate purely random passwords using New-Password ******** or you can vary the length of the password by allowing variable numbers of characters in your template: New-Password "Cv3c2v3c#4"
http://poshcode.org/1611

PowerShell Code Repository - New-PemFile
PowerShell Code Repository - Check Modules path.
http://poshcode.org/3075

PowerShell Code Repository - New-PInvoke
A fixed version of the New-PInvoke function that’s in the Windows 7 resource kit (PowerShellPack) PSCodeGen module. This one has correct documentation and a better example. It also generates a (global) PowerShell wrapper function so you can call the API function easily.
http://poshcode.org/1409

PowerShell Code Repository - New-PInvoke
A fixed version of the New-PInvoke function that’s in the Windows 7 resource kit (PowerShellPack) PSCodeGen module. This one has correct documentation, and also generates a (global) PowerShell wrapper function so you can call it easily.
http://poshcode.org/1408

PowerShell Code Repository - New-PrintJob
This script works in conjunction with an Event Trigger on the PrintService event on our print servers. This script queries the Microsoft-Windows-PrintService/Operational log for EventID 307, and returns the drive letter from the most recent event.
http://poshcode.org/2916

PowerShell Code Repository - new-pshash
this function takes nested hashtables and converts them to nested pscustomobjects.it can also contain arrays of hashtables, and it will turn those hashtables in the arrays also into PScustomobjects
http://poshcode.org/2522

PowerShell Code Repository - New-PSOCustomObject
This function will create a custom PSObject using a hashtable as input.
http://poshcode.org/1543

PowerShell Code Repository - New-RandomPassword
Creates a random password with the specified length and number of non-alphanumeric characters. Returns clear text or a secure string depending on whether switch AsSecureString is specified.
http://poshcode.org/2929

PowerShell Code Repository - New-RDCManFile
PowerShell Code Repository - Get-Field
http://poshcode.org/2069

PowerShell Code Repository - New-RDP
Function/script that creates a new RDP file for Terminal Services. Nothing fancy though.
http://poshcode.org/674

PowerShell Code Repository - New-RssFeed
Usage:
http://poshcode.org/669

PowerShell Code Repository - New-Script
Create a new script from a series of commands in your history… or copy them to the clipboard.
http://poshcode.org/167

PowerShell Code Repository - New-Script 1.1
Create a new script from a series of commands in your history… or copy them to the clipboard.
http://poshcode.org/168

PowerShell Code Repository - New-Script 2
Create a new script from a series of commands in your history… or copy them to the clipboard.
http://poshcode.org/171

PowerShell Code Repository - New-ScriptCmdlet
A script to generate advanced functions that wrap cmdlets so you can tweak them, add features, etc. From the PowerShell Team Blog
http://poshcode.org/1193

PowerShell Code Repository - New-SelfRestartingTask
Restarts applications using a ManagementEventWatcher to watch for an InstanceDeletionEventuse at your own risk ;)
http://poshcode.org/1795

PowerShell Code Repository - New-SelfRestartingTask
Restarts applications using a ManagementEventWatcher to watch for an InstanceDeletionEventuse at your own risk ;)
http://poshcode.org/1807

PowerShell Code Repository - New-SelfSignedCertificat
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2201

PowerShell Code Repository - New-Shortcut
A script to create shortcuts … with support for short “special folder” names.
http://poshcode.org/906

PowerShell Code Repository - New-Shortcut
A script to create shortcuts … with support for short “special folder” names. (fixed) the [parameter named as [param bug
http://poshcode.org/1302

PowerShell Code Repository - New-Shortcut
This is a Powershell wrapper around the CreateShortCut method of the WScript.Shell COM object. I’ve added a feature to set the “Run as Administrator” flag. This feature is used on OS versions with UAC.
http://poshcode.org/2513

PowerShell Code Repository - New-SQLComputerLogin
Create a computer login on a SQL server, optionally forcing the issue by removing any pre-existing account. For some reason, we run into this all the time with renamed computers…
http://poshcode.org/3010

PowerShell Code Repository - New-SQLComputerLogin
Create a computer login on a SQL server, optionally forcing the issue by removing any pre-existing account. For some reason, we run into this all the time with renamed computers…
http://poshcode.org/3012

PowerShell Code Repository - New-SQLComputerLogin
NOTE: This version REQUIRES Quest ActiveDirectory cmdlets and SQL PS Module for the Get-QADComputer and Invoke-SQL commands. There are similar (dependency free) functions on PoshCode for each of those, but for now I’ll leave replacing them as an exercise for the reader.
http://poshcode.org/3007

PowerShell Code Repository - New-SqlConnectionString
Build a SQL Connection String using specified parameters
http://poshcode.org/2720

PowerShell Code Repository - New-StoredProcFunction
Create functions that wrap chosen stored procedures and surface their input parameters as function parameters. Output parameters are returned in a custom object with a property name for each output parameter.
http://poshcode.org/1007

PowerShell Code Repository - New-StoredProcFunction
Create functions that wrap chosen stored procedures and surface their input parameters as function parameters. Output parameters are returned in a custom object with a property name for each output parameter.
http://poshcode.org/1008

PowerShell Code Repository - New-StoredProcFunction
Create functions that wrap chosen stored procedures and surface their input parameters as function parameters. Output parameters are returned in a custom object with a property name for each output parameter.
http://poshcode.org/1009

PowerShell Code Repository - New-StoredProcFunction
Create functions that wrap chosen stored procedures and surface their input parameters as function parameters. Output parameters are returned in a custom object with a property name for each output parameter.
http://poshcode.org/1011

PowerShell Code Repository - New-Struct
PowerShell Code Repository -
http://poshcode.org/654

PowerShell Code Repository - New-Struct
PowerShell Code Repository - Add-Slide
http://poshcode.org/190

PowerShell Code Repository - New-Struct
A code-generating and emitting magic function for creating type-safe struct classes for use in PowerShell!
http://poshcode.org/143

PowerShell Code Repository - New-Struct 3
A code-generating and emitting magic function for creating type-safe struct classes for use in PowerShell!
http://poshcode.org/3146

PowerShell Code Repository - New-Task
Allows for the creation of tasks in Microsoft Outlook from Windows PowerShell. The majority of task options available can be configured with the function.
http://poshcode.org/829

PowerShell Code Repository - New-TestDataSet
Generates a simple dataset based on the files in the current directory. I whipped this up while answering questions about databinding because I needed to be able to create multiple DataSets/DataTables easily, without needing an actual database.
http://poshcode.org/1390

PowerShell Code Repository - New-TiedVariable
A function for creating tied variables using Robert Robelo’s idea to create breakpoints that update the variable values.
http://poshcode.org/2750

PowerShell Code Repository - New-Type
Analogous to ONE of PowerShell 2’s Add-Type cmdlet’s overrides, this script/function will take C# code and compile it in memory.
http://poshcode.org/720

PowerShell Code Repository - New-UrlFile
Use this to create a .url file which can then be opened in your default browser using the Invoke-Item cmdlet. Usage: New-UrlFile $url # or invoke-item (new-urlfile $url)
http://poshcode.org/407

PowerShell Code Repository - New-VMHostShellAccount
The VI Toolkit comes with a cmdlet to create user accounts, but it does not allow for you to specify shell access. This script goes to the VI SDK to get the job done.
http://poshcode.org/563

PowerShell Code Repository - New-WebServiceProxy.ps1
compatibility: PowerShell 1.0, PowerShell v2.0
http://poshcode.org/538

PowerShell Code Repository - New-WebServiceProxy.ps1
compatibility: PowerShell 1.0, PowerShell v2.0
http://poshcode.org/1339

PowerShell Code Repository - New-WebServiceProxy.ps1
compatibility: PowerShell 1.0, PowerShell v2.0
http://poshcode.org/1340

PowerShell Code Repository - New-Wrapper
PowerShell Code Repository - Backup-EventLogs
http://poshcode.org/2730

PowerShell Code Repository - New-XML
This is a first stab at creating a little DSL to generate XML. Note that I used System.Linq.XML (and output an XDocument) instead of the old XmlDocument… This means you have to have .Net 3.5 (LINQ) installed. It also means that if you want to be able to use the output via PowerShell’s magic XML dot-notation, you have to cast it to XmlDocument, just write: [xml]$xml = New-XML ...
http://poshcode.org/1233

PowerShell Code Repository - New-XML 2
An update to my mini-DSL for generating XML documents.
http://poshcode.org/1244

PowerShell Code Repository - New-XSD
Generates an XSD File with SQLXML annotations for a Powershell object. The XSD file can be used with SQLXML Assembly or COM-based to automatically create a SQL table and import the XML. Use in conjunction with New-XML. See article at http://www.sqlservercentral.com/articles/powershell/65196/ for example.
http://poshcode.org/841

PowerShell Code Repository - New-Zip
PowerZip – PowerShell Module that allows you to zip files
http://poshcode.org/3211

PowerShell Code Repository - New-Zip
PowerZip – PowerShell Module that allows you to zip files
http://poshcode.org/2440

PowerShell Code Repository - New-Zip
PowerZip – PowerShell Module that allows you to zip files
http://poshcode.org/2433

PowerShell Code Repository - New-Zip
PowerZip – PowerShell Module that allows you to zip files
http://poshcode.org/2435

PowerShell Code Repository - New-Zip
PowerZip – PowerShell Module that allows you to zip files
http://poshcode.org/2436

PowerShell Code Repository - New-Zip
PowerZip – PowerShell Module that allows you to zip files
http://poshcode.org/2437

PowerShell Code Repository - New-ZipFile.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2202

PowerShell Code Repository - Newer-LinkedClone.ps1
Adapted from New-LinkedClone.ps1 from Hal Rottenberg. This version takes a third parameter called SnapName that allows a user to statically assign the snapshot that the clone should be built from.
http://poshcode.org/3016

PowerShell Code Repository - NewUser in AD/OCS/Email
A Powershell Script meant for a novice to understand how to work with Variables. I use it daily. Creates a user via Exchange 2007 and automatically populates the email address by defined policy. Using supplied scriptlets (referenced in PS1 file) it also populates the Users’ info in OCS 2007 R2 standard as well as populates all fields in A/D with pertinent info. It also sets up the Display name in a Lastname, Firstname format and creates the users home folder with permissions allocated to the user only. The only information it requests is Firstname, Lastname and Password. It is easy to modify to make it a bulk user setup. Thank you Jeffrey Snover and Microsoft for Powershell! The Manna to Administrators Everywhere
http://poshcode.org/2469

PowerShell Code Repository - NewUser in AD/OCS/Email
A Powershell Script meant for a novice to understand how to work with Variables. I use it daily. Creates a user via Exchange 2007 and automatically populates the email address by defined policy. Using supplied scriptlets (referenced in PS1 file) it also populates the Users’ info in OCS 2007 R2 standard as well as populates all fields in A/D with pertinent info. It also sets up the Display name in a Lastname, Firstname format and creates the users home folder with permissions allocated to the user only. The only information it requests is Firstname, Lastname and Password. It is easy to modify to make it a bulk user setup. Thank you Jeffrey Snover and Microsoft for Powershell! The Manna to Administrators Everywhere
http://poshcode.org/1491

PowerShell Code Repository - NFSMountUsingReference
Mount NFS datastore using reference host – DNS or IP
http://poshcode.org/3250

PowerShell Code Repository - NIC Performance
Reads perfmon counters from all network interfaces
http://poshcode.org/1345

PowerShell Code Repository - NIC Performance
Reads perfmon counters from all network interfaces
http://poshcode.org/1346

PowerShell Code Repository - Note, open Notepad++
PowerShell Code Repository - New-ObjectRecursive.ps1
http://poshcode.org/2525

PowerShell Code Repository - Note, open Notepad++
PowerShell Code Repository - Note, open Notepad++
http://poshcode.org/2526

PowerShell Code Repository - NPS Server Synchronize
This script can be run on a secondary Network Policy Server and will mirror the configuration from the specified Primary Server, simplifying the management of a redundant or distributed configuration. This script is designed to run as a Scheduled task.
http://poshcode.org/1502

PowerShell Code Repository - NTFS ACLs Folder Tree
This script generate a HTML report show all ACLs asociated with a Folder tree structure starting in root specified by the user
http://poshcode.org/1271

PowerShell Code Repository - NTFS ACLs Folder Tree
This script generate a HTML report show all ACLs asociated with a Folder tree structure starting in root specified by the user
http://poshcode.org/1272

PowerShell Code Repository - NTFS ACLs Folder Tree
This script generate a HTML report show all ACLs asociated with a Folder tree structure starting in root specified by the user
http://poshcode.org/1273

PowerShell Code Repository - NTFS ACLs Folder Tree
This script generate a HTML report show all ACLs asociated with a Folder tree structure starting in root specified by the user
http://poshcode.org/3246

PowerShell Code Repository - NTFS ACLs Folder Tree
This script generate a HTML report show all ACLs asociated with a Folder tree structure starting in root specified by the user
http://poshcode.org/3172

PowerShell Code Repository - NTFS Streams 1.0
Provides access to NTFS Alternate Data Streams, including functions for blocking and unblocking downloaded files. Tweet @Jaykul if you find problems.
http://poshcode.org/1458

PowerShell Code Repository - num
PowerShell Code Repository - ConvertTo-GoogleChartNum
http://poshcode.org/687

PowerShell Code Repository - O-ChristmasTree
And dropping mirror balls too. A silly little PowerBoots script!
http://poshcode.org/1560

PowerShell Code Repository - Object ProxyAddress Scan
This script enables you too search AD for SMTP addresses that are possibly in use, using the QUEST PowerShell PSSnapIn and searching the “proxyAddress” attribute of objects. The output details either that the SMTP address is not found in AD or you get details of the object that owns the SMTP address.
http://poshcode.org/1593

PowerShell Code Repository - ONTAPI Module
PowerShell Code Repository - Monitor ESX with WS-MAN
http://poshcode.org/929

PowerShell Code Repository - OnTapSDK_Discoverability
PowerShell Code Repository - Resolve-Aliases 1.7
http://poshcode.org/921

PowerShell Code Repository - Open-ISEFile
This cmdlet allows you to open a file in a new file tab within your current Powershell tab. You can pass a collection of files to open more than one file.
http://poshcode.org/1930

PowerShell Code Repository - Open-Solution
Open the sln file in the given directory hierarchy. Present a list if there is more than one.
http://poshcode.org/2790

PowerShell Code Repository - OpsMgr State Changes
PowerShell Code Repository - Create a VIAccount
http://poshcode.org/1518

PowerShell Code Repository - OpsMgr.psd1
A module manifest Wrapper for Microsoft’s Operations Manager Shell. Requires Operations Manager Shell on build machine, but resulting module can be copied/used on clients w/o Operations Manager installation.
http://poshcode.org/2425

PowerShell Code Repository - Oracle NetApp CommVault
This file was uploaded by a PowerGUI Script Editor Add-on.
http://poshcode.org/2463

PowerShell Code Repository - Out-AnsiGraph
Pipe numeric output into a horizontal ansi barchart in Psh. Poshcode doesn’t handle ANSI characters. Replace &#9608; with an ANSI block character. Copy/Paste from http://xcud.com/post/193522355/out-ansigraph
http://poshcode.org/1334

PowerShell Code Repository - Out-AnsiGraph
Pipe numeric output into a horizontal ansi barchart in Psh. Poshcode doesn’t handle ANSI characters. Replace &#9608; with an ANSI block character. Copy/Paste from http://xcud.com/post/193522355/out-ansigraph
http://poshcode.org/1335

PowerShell Code Repository - Out-Balloon.ps1
PowerShell Code Repository - SyntaxHighlighter Brush
http://poshcode.org/1005

PowerShell Code Repository - Out-Balloon.ps1
PowerShell Code Repository - SyntaxHighlighter Brush
http://poshcode.org/1006

PowerShell Code Repository - Out-Balloon.ps1
Work-in-progress. This script is meant to be run from a “scripts/” subdirectory as part of a larger build structure. It won’t run by itself, but maybe you’ll find the SharePoint deployment bits useful.
http://poshcode.org/1051

PowerShell Code Repository - Out-Balloon.ps1
Work-in-progress. This script is meant to be run from a “scripts/” subdirectory as part of a larger build structure. It won’t run by itself, but maybe you’ll find the SharePoint deployment bits useful.
http://poshcode.org/1052

PowerShell Code Repository - Out-ColorMatchInfo
PowerShell Code Repository - Interact with in-VM UI
http://poshcode.org/1095

PowerShell Code Repository - Out-Colour
This function will, when used at the end of pipe, produce colourful output for any format-table’d data. It has some bugs in it (problem with columns which name is right-aligned, kills pipe), but maybe someone will pick up from here and fix those. ;)
http://poshcode.org/1954

PowerShell Code Repository - Out-DataTable
Creates a DataTable for an object, based on script by Marc van Orsouw
http://poshcode.org/2119

PowerShell Code Repository - Out-DataTable
Creates a DataTable for an object, based on script by Marc van Orsouw
http://poshcode.org/2116

PowerShell Code Repository - Out-DataTable
Creates a DataTable for an object, based on script by Marc van Orsouw
http://poshcode.org/2954

PowerShell Code Repository - Out-Default URL Launcher
This bad boy is from an email by Bruce Payette—the master. Here are some notes from the email:
http://poshcode.org/803

PowerShell Code Repository - out-form with sort colum
From a great function in Powertab (on Codeplex).
http://poshcode.org/2627

PowerShell Code Repository - out-form with sort colum
From a great function in Powertab (on Codeplex).
http://poshcode.org/2628

PowerShell Code Repository - Out-Html
PowerShell Code Repository - New-Password 1.1
http://poshcode.org/1612

PowerShell Code Repository - Out-Html
PowerShell Code Repository - SCOM-RunRemoteExecutable
http://poshcode.org/587

PowerShell Code Repository - Out-Html
PowerShell Code Repository - UIAutomation 1.7
http://poshcode.org/3101

PowerShell Code Repository - Out-HTMLTable
This will output a sortable HTML table
http://poshcode.org/1903

PowerShell Code Repository - Out-IseFile
PowerShell Code Repository - Get-BogonList
http://poshcode.org/1623

PowerShell Code Repository - Out-LogFile Module
Log file managment advanced function/ module. Supports WriteHost, Pipleline, Encoding, BlankLines, Datestring formatting and others.
http://poshcode.org/3232

PowerShell Code Repository - out-playlist.ps1
Aaron Nelson asked via twitter: “hey beefarino or JeffHicks is there a way to GCI -Recurse on a directory and basically do an Out-WindowsMediaPlayer? #PoorMansPlayList”
http://poshcode.org/3159

PowerShell Code Repository - Out-Posh
A little wrapper script/function to put pipeline output into New-BootsWindow
http://poshcode.org/1708

PowerShell Code Repository - Out-Report
Sends output to Excel, PDF, or Image files
http://poshcode.org/1015

PowerShell Code Repository - Out-Voice 1.2
PowerShell Code Repository - PowerShell Talk Xen1
http://poshcode.org/109

PowerShell Code Repository - Out-Voice 2.0
Speaks text using Speech.Net (requires .Net 3.0 or higher) text-to-speech api (if you don’t have .Net 3.x, please just use the old one that uses the COM objects.
http://poshcode.org/111

PowerShell Code Repository - Out-Wiki
PowerShell Code Repository - Automount new PSDrives
http://poshcode.org/526

PowerShell Code Repository - Out-Working
Display a “working” animation without knowing how much work you’ll be doing …
http://poshcode.org/105

PowerShell Code Repository - Page-Output 1.1
This is like a (very simple) “more” script for PowerShell … the problem with it is that you’re paging by a count of objects, not by how many lines of text they’ll output … so the paging doesn’t really work except for format-table output … unless you specify it manually. However, this script provides you with “an option” if you want to have paging and still be able to use a script to color the output based on context or syntax.
http://poshcode.org/175

PowerShell Code Repository - Paraimpu
The first couple of functions for sending data to Paraimpu from PowerShell. It’s the first step in letting PowerShell participate in a network of things…
http://poshcode.org/2931

PowerShell Code Repository - Parse HTML Tables
A function to parse tables out of HTML files and return them as PowerShell objects.
http://poshcode.org/561

PowerShell Code Repository - Parse nmap XML output
A PowerShell script into which one or more nmap XML output file objects can be piped, then the script emits synthetic objects representing port-scanned hosts from the XML file(s). Get Windows and Linux versions of the nmap scanner for free from http://nmap.org. Get a sample nmap XML file to play with and see some examples of using the script at https://blogs.sans.org/windows-security/2009/06/11/powershell-script-to-parse-nmap-xml-output/
http://poshcode.org/1179

PowerShell Code Repository - partial application
A proof of concept module implementing partial application (not currying) of functions and cmdlets in powershell. This is a functional language technique often used in languages like Haskell, ML etc.
http://poshcode.org/1687

PowerShell Code Repository - Password Gen Form V2
Update to original password generator form (http://gallery.technet.microsoft.com/scriptcenter/54c3832a-4d20-4d6e-81ac-2d6f7bc10bfe). Uses WPF as opposed to Windows Forms to create the front end UI. Able to generate passwords and allows printing of the form or just display the password. Password is copied to clipboard so you can paste it into a password reset dialog. Password is also cleared from clipboard when form is closed.
http://poshcode.org/2794

PowerShell Code Repository - Password Generator Form
Creates a form that allows you to generate a random password based on the requirements listed within the code. Can then print out the form to give to user. Password also saved to clipboard and can be pasted into the password reset dialog.
http://poshcode.org/2022

PowerShell Code Repository - PasswordNeverExpires
Email list of AD Accounts with PasswordNeverExpires Set
http://poshcode.org/2998

PowerShell Code Repository - Pastebin Functions
A collection of functions for working with the script repository:
http://poshcode.org/421

PowerShell Code Repository - Patch-VMHost
This script will patch an ESX Host using VMware Update Manager.
http://poshcode.org/1000

PowerShell Code Repository - Patch-VMHost
This script will patch an ESX Host using VMware Update Manager.
http://poshcode.org/1001

PowerShell Code Repository - Pause
A script to handle “Pause“ing output command without polluting your buffer
http://poshcode.org/177

PowerShell Code Repository - Pause-Script & Out-More
Two functions, one that emulates the pause functionality from cmd.exe, and one that gives similar functionality to more.com. Out-More is especially useful if you’re doing something like “gc somefile.txt | Out-More” because it starts outputting text to the screen immediately instead of waiting for the entire file to be read, which is what happens if you do “gc somefile.txt | more”. Out-More can also be used for other objects besides.
http://poshcode.org/613

PowerShell Code Repository - Performance Monitoring
Use SSRS ReportViewer with PowerShell, use parameters and catch navigate event
http://poshcode.org/1978

PowerShell Code Repository - PerformanceHistory 2.52
Another modification to Get-PerformanceHistory to allow it to work in PowerShell 1.0 and still show averages.
http://poshcode.org/424

PowerShell Code Repository - PerformanceTracking.psm1
A module for tracking performance of commands as you work. Exports Get-PerformanceHistory that shows you the time and memory footprint of commands you’ve recently executed. You can query by id, or by count to show the most recent X commands.
http://poshcode.org/1562

PowerShell Code Repository - ping check using dotNet
PowerShell Code Repository - AD-PromiscDetect
http://poshcode.org/1419

PowerShell Code Repository - ping check using dotNet
PowerShell Code Repository - Added/Deleted AD Objects
http://poshcode.org/1420

PowerShell Code Repository - Ping-Host
Simple function that pings a host and returns a boolean.
http://poshcode.org/599

PowerShell Code Repository - Ping-Subnet
Given an IP address and subnet mask return all alive hosts within that subnet. Uses PSJobs as a poor mans threading thus requires V2.
http://poshcode.org/976

PowerShell Code Repository - PinnedApplications.psm1
PowerShell-module with the ability to pin and unpin programs from the taskbar and the Start-menu in Windows 7 and Windows Server 2008 R2.
http://poshcode.org/1667

PowerShell Code Repository - Pipeline and Parameter
sample by dfinke
http://poshcode.org/1427

PowerShell Code Repository - Pipeline and Parameter
sample by r_keith_hill
http://poshcode.org/1428

PowerShell Code Repository - Pivot-Object
Takes a series of objects (like the converted input from csv) where there are a series of objects (rows) that actually define the same object, and there is (at least) one property which is a unique identifier (and appears on each object), and there are two properties which are a name and value pair defining additional properties ... and outputs new objects which merge the objects and add the name-value pairs as new properties.
http://poshcode.org/885

PowerShell Code Repository - play-note(s)
PowerShell Code Repository - play-note(s)
http://poshcode.org/835

PowerShell Code Repository - play-note(s)
PowerShell Code Repository - Write-Sitemap.ps1
http://poshcode.org/834

PowerShell Code Repository - playlist.com music cache
a one liner to download playlist.com music to a cache directory.
http://poshcode.org/1429

PowerShell Code Repository - playlist.com music cache
a script to download playlist.com music to a local cache directory for when your internet connection is spotty.
http://poshcode.org/1437

PowerShell Code Repository - POC $psnull
powershell converts all string types to strings, including nulls which end up as empty strings. use this if you need to pass a true null as a string to a dotnet api
http://poshcode.org/893

PowerShell Code Repository - POC csharp expressions
PowerShell Code Repository - Create random strings
http://poshcode.org/853

PowerShell Code Repository - POC csharp expressions
PowerShell Code Repository - LoadModuleConfig
http://poshcode.org/1609

PowerShell Code Repository - POC csharp expressions
PowerShell Code Repository - POC csharp expressions
http://poshcode.org/857

PowerShell Code Repository - POC csharp expressions
PowerShell Code Repository - VMware Host Network Info
http://poshcode.org/856

PowerShell Code Repository - POC-adding custom PS job
proof of concept, of adding our own class that is a powershell job, and adding it to the official jobrepository so that it shows up in the results of get-job.
http://poshcode.org/823

PowerShell Code Repository - POC-adding custom PS job
proof of concept, of adding our own class that is a powershell job, and adding it to the official jobrepository so that it shows up in the results of get-job.
http://poshcode.org/824

PowerShell Code Repository - Poczta
PowerShell Code Repository - Get-User
http://poshcode.org/3002

PowerShell Code Repository - Pomodoro Module
a pomodoro module in PowerShell allowing you to run Pomodoros in powershell with sounds being played, and live update in the progress bar
http://poshcode.org/3078

PowerShell Code Repository - Portgroup NIC Team
This script will configure the portgroup to use NIC Teaming with the failover depending on the duplexity of the Active NIC.
http://poshcode.org/1314

PowerShell Code Repository - Poshboard Inactive AD Ac
Poshboard AD searcher showing stale computer accounts. Borrowed parts from PowerGUI powerpack
http://poshcode.org/1648

PowerShell Code Repository - PoshCode ISE Addon
PowerShell ISE addon for PoshCode script uploads
http://poshcode.org/2247

PowerShell Code Repository - PoshCode ISE Addon
This is the final version of PoshCode ISE addon for uploading scripts to PoshCode.org from PowerShell ISE. You can upload scripts in two ways. First method is to select all or part of the script and upload it by pressing CTRL+ALT+C. And, the second method is to just press CTRL+ALT+C. This way you can upload all contents without any selection.
http://poshcode.org/2254

PowerShell Code Repository - PoshCode ISE Addon
This is the final version of PoshCode ISE addon for uploading scripts to PoshCode.org from PowerShell ISE. You can upload scripts in two ways. First method is to select all or part of the script and upload it by pressing CTRL+ALT+C. And, the second method is to just press CTRL+ALT+C. This way you can upload all contents without any selection.
http://poshcode.org/2255

PowerShell Code Repository - PowerBoots Gadgets
A simple way to do auto-updating gadgets
http://poshcode.org/1538

PowerShell Code Repository - PowerBoots Gadgets
A simple way to do auto-updating gadgets
http://poshcode.org/1539

PowerShell Code Repository - PowerBot 2.0
PowerBot is my IRC bot written in PowerShell script using SmartIrc4Net There’s a bit more to it than this, but this is the basic script, and all you have to do is add your own commands! Of course, you could also add your own additional message handlers and make a chatter-bot or whatever you like. Please share your mods back here!
http://poshcode.org/1236

PowerShell Code Repository - PowerBot 2.0
PowerBot is my IRC bot written in PowerShell script using SmartIrc4Net There’s a bit more to it than this, but this is the basic script, and all you have to do is add your own commands! Of course, you could also add your own additional message handlers and make a chatter-bot or whatever you like. Please share your mods back here!
http://poshcode.org/2317

PowerShell Code Repository - PowerBot 2.0
PowerBot is my IRC bot written in PowerShell script using SmartIrc4Net There’s a bit more to it than this, but this is the basic script, and all you have to do is add your own commands! Of course, you could also add your own additional message handlers and make a chatter-bot or whatever you like. Please share your mods back here!
http://poshcode.org/2510

PowerShell Code Repository - PowerBot 2.0
PowerBot is my IRC bot written in PowerShell script using SmartIrc4Net There’s a bit more to it than this, but this is the basic script, and all you have to do is add your own commands! Of course, you could also add your own additional message handlers and make a chatter-bot or whatever you like. Please share your mods back here!
http://poshcode.org/727

PowerShell Code Repository - PowerChart 0.5
A first attempt at a generic graphing function using commands from WPFToolkit’s DataVisualization dll
http://poshcode.org/2779

PowerShell Code Repository - PowerChart 0.5
A first attempt at a generic graphing function using commands from WPFToolkit’s DataVisualization dll
http://poshcode.org/2780

PowerShell Code Repository - PowerChart 0.52
A first attempt at a generic graphing function using commands from WPFToolkit’s DataVisualization dll
http://poshcode.org/2781

PowerShell Code Repository - PowerCLI 4.1
Error handling with PowerCLI 4.1
http://poshcode.org/2016

PowerShell Code Repository - PowerCLI error report
Generating error report bundle for VMware PowerCLI / vSphere
http://poshcode.org/2019

PowerShell Code Repository - PowerCLI error report
Generating error report bundle for VMware PowerCLI / vSphere
http://poshcode.org/2020

PowerShell Code Repository - PowerCLI New-Farm
This is a PowerCLI sample script I wrote to demonstrate how you could entirely automate the creation of a relatively complex virtual farm environment.
http://poshcode.org/1547

PowerShell Code Repository - PowerOAuth 1.0
This is the first raw release, supports OAuth via Installed Application Authentication (a modified form of OAuth where the consumer fetches access tokens using a username and password instead of a request token).
http://poshcode.org/1263

PowerShell Code Repository - PowerOAuth 1.1
This is the second release, but still very raw. Supports OAuth via Installed Application Authentication (a modified form of OAuth where the consumer fetches access tokens using a username and password instead of a request token) ... now includes a sample app for fetching stuff off Yammer.
http://poshcode.org/2376

PowerShell Code Repository - PowerOAuth Beta 2
The beginnings of a complete rewrite … I’m actually going to recreate the functionality (but not the API) of my HttpRest module based on Hammock … this is just the first function.
http://poshcode.org/2377

PowerShell Code Repository - PowerOracle
Retrieve data from an Oracle database into a dataset.
http://poshcode.org/1150

PowerShell Code Repository - Powershell $ UIA
PowerShell Code Repository - Start-Elevated
http://poshcode.org/1650

PowerShell Code Repository - PowerShell CMatrix
A pure console screen saver in the vein of the popular CMatrix x-term screensaver. PowerShell 2.0 module, see blog post: http://goo.gl/5QkI5
http://poshcode.org/2412

PowerShell Code Repository - powershell ise config
PowerShell Code Repository - New-ODataServiceProxy
http://poshcode.org/2044

PowerShell Code Repository - powershell ise config
PowerShell Code Repository - powershell ise config
http://poshcode.org/2045

PowerShell Code Repository - powershell ise config
Enable .Net 4 and \\UNC path modules for PowerShell ISE by using this app.config. Save as C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe.config
http://poshcode.org/1971

PowerShell Code Repository - powershell ise config
Enable LegacyV2RuntimeActivation so that BitsTransfer and SQLPS will work in the new .Net 4 PowerShell ISE (this config file is REQUIRED for PowerShell 3 CTP1 to work with those modules and other down-level .Net 2 modules). Save as C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe.config
http://poshcode.org/2969

PowerShell Code Repository - Powershell iTunes
Powershell iTunes is a Powershell script which lets you control iTunes over Powershell.
http://poshcode.org/2384

PowerShell Code Repository - Powershell iTunes
Powershell iTunes is a Powershell script which lets you control iTunes over Powershell.
http://poshcode.org/2385

PowerShell Code Repository - Powershell Only Outlook
My first contribution. I am crazily thinking of doing a “Powershell Only” day. The first task is to figure out how to manipulate Outlook through PowerShell. The submitted script hits my Outlook inbox and goes through the inbox and each subfolder and retrieves the unread emails from it. It then goes through my task list and gets all the incomplete tasks. This was my first time using a status bar and definitely the first for making anything outside the scripting games public. I’d hate to get finished with the Outlook “module” and find out I could have saved myself a lot of time, so I through the script as it is now on the mercy of the court. Proceed with your red pens…
http://poshcode.org/2695

PowerShell Code Repository - PowerShell script config
Stores script configuration on computer. This one is generic and would work with any PowerShell script/tool. A more PowerGUI specific one can be found at: http://dmitrysotnikov.wordpress.com/2010/05/07/storing-powergui-add-on-configuration
http://poshcode.org/1824

PowerShell Code Repository - PowerShell Talk Chickens
The PowerShell Talk – Chicken Counter Example.
http://poshcode.org/1405

PowerShell Code Repository - PowerShell Talk Chickens
The PowerShell Talk – Chicken Counter Example.
http://poshcode.org/1406

PowerShell Code Repository - PowerShell Talk Chickens
The PowerShell Talk – Chicken Counter Example.
http://poshcode.org/1091

PowerShell Code Repository - PowerShell Talk Mass VMs
The PowerShell Talk, Demo 4, mass VM provisioning
http://poshcode.org/1092

PowerShell Code Repository - PowerShell Talk Xen1
The PowerShell Talk, Demo 1 – XenServer
http://poshcode.org/1089

PowerShell Code Repository - PowerShell Template
I created this function to generate a new PowerShell Script template. I’ve modified it to prompt for the file name, eMail, and finally you can add a comment. The tricky part was trimmimg the comment so it would wrap properly. I use this all the time. Enjoy.
http://poshcode.org/2091

PowerShell Code Repository - PowerShell Template
I created this function to generate a new PowerShell Script template. I’ve modified it to prompt for the file name, eMail, and finally you can add a comment. The tricky part was trimmimg the comment so it would wrap properly. I use this all the time. Enjoy.
http://poshcode.org/2092

PowerShell Code Repository - PowerShell Template
I created this function to generate a new PowerShell Script template. I’ve modified it to prompt for the file name, eMail, and finally you can add a comment. The tricky part was trimmimg the comment so it would wrap properly. I use this all the time. Enjoy.
http://poshcode.org/2093

PowerShell Code Repository - PowerShell Template
I created this function to generate a new PowerShell Script template. It will prompt for the name of the script you want to create (don’t need to add the .ps1 extension) and the email (don’t need to add email) then it will create the template in the C:\Scripts directory (Dir should already exist)
http://poshcode.org/2272

PowerShell Code Repository - PowerShell Template
I’ve modified the original function. I like this one better.
http://poshcode.org/778

PowerShell Code Repository - PowerShell Template
I’ve modified the original function. I like this one better. Got rid of the trailing ‘
http://poshcode.org/1563

PowerShell Code Repository - PowerShell_ISE Profile
Here is a Microsoft.PowerShellISE_profile.ps1 that causes PowerShell_ISE to save all files in ASCII encoding instead of Unicode Big Endian. Adapted from Oisin Grehan’s script at http://www.nivot.org/nivot2/post/2010/05/21/PowerShellISEHackingChangeDefaultSaveEncodingToASCII.aspx#comment.
http://poshcode.org/3000

PowerShell Code Repository - PowerShellServer Cmdlet
PowerShell Code Repository - PowerShellServer Cmdlet
http://poshcode.org/996

PowerShell Code Repository - PowerShellServer Cmdlet
PowerShell Code Repository - PowerShellServer Cmdlet
http://poshcode.org/997

PowerShell Code Repository - PowerShellServer Cmdlet
PowerShell Code Repository - WPFTableSpace
http://poshcode.org/995

PowerShell Code Repository - PowerSmug - Sync Smugmug
Syncronize local folders with Smugmug using this powershell script.
http://poshcode.org/796

PowerShell Code Repository - powertab patch
PowerShell Code Repository - powertab patch
http://poshcode.org/1586

PowerShell Code Repository - powertab patch
PowerShell Code Repository - Set vSphere CDP LinkDisc
http://poshcode.org/1585

PowerShell Code Repository - PowerWatin 0.1
Really basic initial scripts to enable Watin automation via powershell
http://poshcode.org/1108

PowerShell Code Repository - PowerWatin 0.5
Make it easier to use Watin automation via PowerShell
http://poshcode.org/2434

PowerShell Code Repository - PresentationFrame.xaml
A required file for my PowerShell Presentation module
http://poshcode.org/2104

PowerShell Code Repository - Prevent-Screensaver
Simulate user activity to prevent desktop lock or screensaver for specified period of time
http://poshcode.org/2901

PowerShell Code Repository - Prevent-Screensaver
Simulate user activity to prevent desktop lock or screensaver for specified period of time
http://poshcode.org/2902

PowerShell Code Repository - Prevent-Screensaver
Simulate user activity to prevent desktop lock or screensaver for specified period of time
http://poshcode.org/1182

PowerShell Code Repository - Print Cluster Comparison
Script to compare the printers on two Windows print clusters. Great for verifying a migration or a backup cluster. It performs basic comparisons on several printer attributes including name, share name, location, driver, and port information and outputs the results to the console.
http://poshcode.org/2823

PowerShell Code Repository - print-file
simple V1 function to print files, either listed, or through the pipeline. No error checking implemented
http://poshcode.org/843

PowerShell Code Repository - PrinterActivity
A script to determine if what printerques that are active
http://poshcode.org/517

PowerShell Code Repository - PrinterQueStatistics
A script for checking how many times a printerque has been used the last X month(s)
http://poshcode.org/516

PowerShell Code Repository - ProcuriosJSON.psm1
PowerShell Code Repository - Import-Delimited 2.4
http://poshcode.org/1529

PowerShell Code Repository - Productivity Calculator
PowerShell Code Repository - Mailbox User_Update
http://poshcode.org/1833

PowerShell Code Repository - Profile Function
I have this function in my powershell profile. It will ask me if i want to start a transcript when I launch Posh. There’s some conditional logic, it’ll ask if you want to start the transcript. If you say yes it’ll check to see if the Transcripts folder exists, if it doesn’t it’ll be created. Pretty cool. Got the main part of the code from Shay Levy’s site and modified it.
http://poshcode.org/1848

PowerShell Code Repository - Prompt [for ISE]
Prompt for the Windows PowerShell Integrated Scripting Environment. Indicating whether admin prompt or elevated on Vista.
http://poshcode.org/770

PowerShell Code Repository - Prompt Replacement
PowerShell Code Repository - callias
http://poshcode.org/2506

PowerShell Code Repository - PROMPT: Battery life
Just a simple little script which looks at the current charge left in your battery and puts it above your prompt. Adjust when it comes on with $GLOBAL:BatteryDisplayAtPercent, by default it’s 101 which shows when it’s charging on down. Why 101? Because when you charge a battery you supply more capacity then it has, so the % will always be >100.
http://poshcode.org/738

PowerShell Code Repository - PromptFor-File
Function to prompt user for file path input. Can create a open file type dialog or a save file type dialog by either specifying either “Open” or “Save” for the -Type parameter. Either a file path string is returned or null if the user canceled the dialog.
http://poshcode.org/1985

PowerShell Code Repository - Protect-Variable
A function to make it easier (in PowerShell 2) to enforce rules about variables (without making them parameters).
http://poshcode.org/2991

PowerShell Code Repository - PS file locking
PowerShell Code Repository - getMyModulePrefix
http://poshcode.org/1566

PowerShell Code Repository - PS FindFirstFileW
Use the wide unicode versions (FindFirstFileW and FindNextFileW) to report a directory listing of all files, including those that exceed the MAX_PATH ANSI limitations
http://poshcode.org/408

PowerShell Code Repository - PS+ImgBurn burn all ISOs
Combine powershell and ImbBurn to burn all the iso’s in a directory. Useful for burning the 7 vista iso files etc.
http://poshcode.org/410

PowerShell Code Repository - PS2WCF
PowerShell Code Repository - Get-FileEncoding
http://poshcode.org/3228

PowerShell Code Repository - PS2WCF
PowerShell Code Repository - Get-FileEncoding
http://poshcode.org/3224

PowerShell Code Repository - PS2WCF
PowerShell Code Repository - PS2WCF
http://poshcode.org/3229

PowerShell Code Repository - PS2WCF
PowerShell Code Repository - PS2WCF
http://poshcode.org/3230

PowerShell Code Repository - PS2WCF
Call WCF Services with PowerShell using any binding. Generates proxy on the fly without needing any tool expect .NET 3.5. You can also discover the service endpoints, bindings and contracts. Read more on my blog: http://www.iLoveSharePoint.com
http://poshcode.org/745

PowerShell Code Repository - PS2WCF
Call WCF Services with PowerShell using any binding. Generates proxy on the fly without needing any tool expect .NET 3.5. You can also discover the service endpoints, bindings and contracts. Read more on my blog: http://www.iLoveSharePoint.com
http://poshcode.org/746

PowerShell Code Repository - PS2WCF
Call WCF Services with PowerShell using any binding. Generates proxy on the fly without needing any tool expect .NET 3.5. You can also discover the service endpoints, bindings and contracts. Read more on my blog: http://www.iLoveSharePoint.com
http://poshcode.org/747

PowerShell Code Repository - PS2WCF
Call WCF Services with PowerShell using any binding. Generates proxy on the fly without needing any tool expect .NET 3.5. You can also discover the service endpoints, bindings and contracts. Read more on my blog: http://www.iLoveSharePoint.com – small correction – extraneous [void] removed.
http://poshcode.org/3215

PowerShell Code Repository - pscp & spaces
PowerShell Code Repository - WhoAmI
http://poshcode.org/2383

PowerShell Code Repository - PShellExec
NOTE: For simpler use, an updated PShellExec.zip available via screencast.com
http://poshcode.org/2124

PowerShell Code Repository - PSISELibrary
I’ve been doing some work lately with PowerShell Add-ons and figured I’d add a couple that I’ve been working on.
http://poshcode.org/2953

PowerShell Code Repository - pslauncher
Requires V2
http://poshcode.org/1042

PowerShell Code Repository - Publish Friendfeed Entry
PowerShell Code Repository - VMWare Quick Migration
http://poshcode.org/1836

PowerShell Code Repository - Publish-File
Use this to upload one or more files to a SharePoint document library. Should also work with any WebDAV service, although that hasn’t been tested. The filename parameter expects fileinfo objects. Easiest way to do so is to pass them on the pipeline from Get-ChildItem. This script is a refinement of a technique that I first saw here: http://blogs.flexnetconsult.co.uk/colinbyrne/PermaLink,guid,a326572f-8f78-4c80-86d5-1fe52cbd6fe5.aspx.
http://poshcode.org/2122

PowerShell Code Repository - Publish-File
Use this to upload one or more files to a SharePoint document library. Should also work with any WebDAV service, although that hasn’t been tested. The filename parameter expects fileinfo objects. Easiest way to do so is to pass them on the pipeline from Get-ChildItem. This script is a refinement of a technique that I first saw here: http://blogs.flexnetconsult.co.uk/colinbyrne/PermaLink,guid,a326572f-8f78-4c80-86d5-1fe52cbd6fe5.aspx.
http://poshcode.org/2356

PowerShell Code Repository - PurgeFile script.
PowerShell Code Repository - Deleted-Objects
http://poshcode.org/1897

PowerShell Code Repository - PurgeFiles script.
Recursively remove files with given extension and maximum age from a given path.
http://poshcode.org/1620

PowerShell Code Repository - push-module function
push-module will import a powershell v2.0 module and ensure that when the module is removed using remove-module, the functions the module clobbered are restored.
http://poshcode.org/1771

PowerShell Code Repository - push-module function v2
push-module will import a powershell v2.0 module and ensure that when the module is removed using remove-module, the functions the module clobbered are restored. UPDATE: previous version restored (promoted to global scope) clobbered functions that were visible from push-module function scope; this is wrong – it should only restore global functions.
http://poshcode.org/1773

PowerShell Code Repository - PWD Expiration Email
Check to see if users passwords will expire in X days and send them an email notification. This script was written using the Active Directory cmdlets bundled with Server 2008 and Powershell 2.0
http://poshcode.org/2088

PowerShell Code Repository - PWD Expiration Email
Check to see if users passwords will expire in X days and send them an email notification. This script was written using the Active Directory cmdlets bundled with Server 2008 and Powershell 2.0
http://poshcode.org/2070

PowerShell Code Repository - QAD.psm1
This is the file you need to load Quest’s Active Directory snap-in as a module. Just put this in a folder with all the dlls …
http://poshcode.org/2692

PowerShell Code Repository - Query-VeeamBackupDB
Powershell script to Query the Veeam Backup Database. The Query will return the total running time of a backup job.
http://poshcode.org/1316

PowerShell Code Repository - Quickstats from VMware
Quickly create a JPG barchart of VMware stats which can be adjusted in the variables, Office components will be needed. For more examples and comments please check http://teckinfo.blogspot.com
http://poshcode.org/490

PowerShell Code Repository - qwinsta.ps1
Makes use of Sysinternal’s psexec to get session data from qwinsta for both local and remote computers.
http://poshcode.org/3062

PowerShell Code Repository - rajabatak@my.opera.com
This is a sample script to read emails from an Inbox using Exchange Web Services. The code is a basic port of the C# found here: http://omegacoder.com/?p=454. The EWS SDK is a dependency: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1
http://poshcode.org/3017

PowerShell Code Repository - RDC RemoteApp PassMan
PowerShell Code Repository - JSON 1.3
http://poshcode.org/1910

PowerShell Code Repository - Re-IP VMs
Re-IP VMware VMs based on the contents of a CSV
http://poshcode.org/1284

PowerShell Code Repository - Read Gmail POP
This script is a proof of concept. Further work needs to be done. It requires the user to enter a valid username and password for a gmail.com account. It then attempts to form an SSL connection with the server, and, retrieve the first email. Unfortunately it returns random results. Perhaps someone can improve upon it with some more sockets knowledge than I have.
http://poshcode.org/3195

PowerShell Code Repository - Read-Choice
A wrapper for $Host.UI.PromptForChoice
http://poshcode.org/1740

PowerShell Code Repository - Read-Choice
A wrapper for $Host.UI.PromptForChoice (fixed a copy-paste error)
http://poshcode.org/1742

PowerShell Code Repository - Read-Choice
Just a little wrapper for PromptForChoice
http://poshcode.org/1871

PowerShell Code Repository - Read-Choice
Just a little wrapper for PromptForChoice
http://poshcode.org/2893

PowerShell Code Repository - Read-HostMasked
Read a string from the host using SecureString input, but output it as a plain string for use in functions that don’t accept SecureStrings
http://poshcode.org/104

PowerShell Code Repository - Read-HostMasked
works like Read-Host -AsSecureString (uses the stars to mask the display), but outputs a plain [string] object. Doesn’t do any encryption, but good for keeping your screen or command history clear.
http://poshcode.org/763

PowerShell Code Repository - Read-HostWithPrompt.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2203

PowerShell Code Repository - Read-HostWithPrompt.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2452

PowerShell Code Repository - Read-InputBox.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2204

PowerShell Code Repository - Receive-Stream
A very simple stream-reader implementation (with no error handling) suitable for simple interactive script task …
http://poshcode.org/1688

PowerShell Code Repository - Receive-Stream
A simple stream-reader implementation suitable for simple interactive script task …
http://poshcode.org/2414

PowerShell Code Repository - reconfigure-ha.ps1
reconfigure-ha.ps1 – take a VMhost object from the pipeline and apply the ‘Reconfigure HA host’ task
http://poshcode.org/1169

PowerShell Code Repository - Reflection
Helpers for working with .Net classes: Get-Constructor, Get-Assembly, Add-Assembly, Get-Type
http://poshcode.org/1711

PowerShell Code Repository - Reflection Module
Helpers for working with .Net classes: Get-Constructor, Get-Assembly, Add-Assembly, Get-Type
http://poshcode.org/2479

PowerShell Code Repository - Reflection Module
Helpers for working with .Net classes: Get-Constructor, Get-Assembly, Add-Assembly, Get-Type
http://poshcode.org/2480

PowerShell Code Repository - Reflection Module
Helpers for working with .Net classes: Get-Constructor, Get-Assembly, Add-Assembly, Get-Type
http://poshcode.org/2313

PowerShell Code Repository - Reflection Module
Helpers for working with .Net classes: Get-Constructor, Get-Assembly, Add-Assembly, Get-Type
http://poshcode.org/2704

PowerShell Code Repository - Reflection Module 4.0
Helpers for working with .Net classes: Get-Constructor, Get-Assembly, Add-Assembly, Get-Type
http://poshcode.org/2972

PowerShell Code Repository - Reflection Module 4.1
Helpers for working with .Net classes: Get-Constructor, Get-Assembly, Add-Assembly, Get-Type
http://poshcode.org/3174

PowerShell Code Repository - RegEx Quick Reference
get-regex.ps1 is a Regular Expression Quick Reference for .NET/C#/Powershell. It provides a quick dump of info in a PSCustomObject for quick access from a prompt. It is more complete than what is available in get-help.
http://poshcode.org/759

PowerShell Code Repository - Register-TemporaryEvent.
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2205

PowerShell Code Repository - RegQuery
Parses output of registry utility REG QUERY for the pattern on the specified computer. Useful for finding installed S/W since the WMI provider for installed software is not always reliable.
http://poshcode.org/732

PowerShell Code Repository - remote helpdesk script
Search users by email, last name or username. Give status of user. Create and reset password, unlock user and enable user.
http://poshcode.org/3199

PowerShell Code Repository - Remote WSUS Settings
Powershell script to examine remote WSUS configuration for multiple servers. This code places the registry strings into a custom object which results in the data from multiple server being very accessible.
http://poshcode.org/1343

PowerShell Code Repository - Remove broken NTFS perm
PowerShell Code Repository -
http://poshcode.org/2081

PowerShell Code Repository - Remove diacritics
PowerShell Code Repository - Get-Parameter function
http://poshcode.org/1054

PowerShell Code Repository - Remove Disabled AD Users
This script is a simple one that is meant to be scheduled on a periodic basis (we do it weekly). It looks inthe OU where we put our disabled AD users and removes users that have not logged in (inactive) for 400 days. This allows us to keep terminated employees disabled users for over a year for auditing purposes, but automatically cleans them out once the annual scope has passed.
http://poshcode.org/3163

PowerShell Code Repository - Remove Special Char
This will recursively remove non-alphanumeric\decimal (via regex) characters from all folder and filenames. The decimals are left in tact for file extensions.
http://poshcode.org/3216

PowerShell Code Repository - remove-ADobject
This script will use a text file with a list of approved users/groups and compare it members of a group. It will remove any users/groups that are not listed in the text file. ***** If anyone has a more efficient way to do this or any suggestions let me know! *****
http://poshcode.org/694

PowerShell Code Repository - Remove-AeroPeek
Exclude a window from Aero Peek so it stays visible when you press Win+Space in Windows 7 (of course, there’s lots of other possibilities here, but I’ll let others explore them).
http://poshcode.org/1288

PowerShell Code Repository - Remove-DeadITunesTracks
This script will go through your ITunes library and check the paths for each of the Tracks. If it doesn’t find a file at the specified location it will remove that track from your ITunes Library.
http://poshcode.org/595

PowerShell Code Repository - Remove-DownloadFlag
Allows setting and removing the Zone.Identifier alternate data stream (on NTFS file systems) which flags scripts as downloaded to heighten security. Part of the PoshCode Module.
http://poshcode.org/1430

PowerShell Code Repository - Remove-FTPFile
PowerShell Code Repository - WCF code coverage
http://poshcode.org/3142

PowerShell Code Repository - Remove-Games
Remove games from Windows XP (also kills any games if they are running).
http://poshcode.org/2968

PowerShell Code Repository - Remove-LocalProfile
This is script will first ask for a computername and then will scan the Win32_UserProfile WMI class and present the user with all of the possible user profiles to remove. After the profile has been deleted, the user has a choice to continue to remove another profile or quit. This script will only work against Vista and above client OS’s and Window 2008 and above server OS’s, but can be ran from any OS that has PowerShell installed.
http://poshcode.org/2477

PowerShell Code Repository - Remove-LocalProfile
This is script will first ask for a computername and then will scan the Win32_UserProfile WMI class and present the user with all of the possible user profiles to remove. After the profile has been deleted, the user has a choice to continue to remove another profile or quit. This script will only work against Vista and above client OS’s and Window 2008 and above server OS’s, but can be ran from any OS that has PowerShell installed.
http://poshcode.org/2478

PowerShell Code Repository - Remove-MyOldComputers
Removes AD objects matching the filter (Name=$Name*) older than $MaxDaysOld
http://poshcode.org/1162

PowerShell Code Repository - Remove-SMVISnapshots
from time to time SMVI will fail to cleanup after it self. This can quickly get out of control, the following will clean up any errant vSphere Snapshots.
http://poshcode.org/1350

PowerShell Code Repository - Remove-Trash
A simple script cmdlet that allows you to empty your recycle bin.
http://poshcode.org/566

PowerShell Code Repository - Remove-XmlNamespace
Removes namespace definitions and prefixes from xml documents
http://poshcode.org/1492

PowerShell Code Repository - Rename NICs
PowerShell Code Repository - VHDFunctions.psm1
http://poshcode.org/1452

PowerShell Code Repository - Replace-InTextFile
A script to do replace strings in text files. Yes, this is just a wrapper around (gc) -replace | sc
http://poshcode.org/1707

PowerShell Code Repository - replace-regexgroup
PowerShell Code Repository - Run-Query (SharePoint)
http://poshcode.org/1295

PowerShell Code Repository - Replicate-ADDS
Forces Replication of all DCs in the current Logon Domain.
http://poshcode.org/2445

PowerShell Code Repository - Report movie lib. stats
This is a script that reports movie library statistics, it’s hard coded to work on my two lan computers so you will have to do some hacking if you want to get it to work.
http://poshcode.org/3171

PowerShell Code Repository - Reset Time Sync Setting
Cycles all VMs on VirtualCenter server and sets the ‘SyncTimeWithHost’ to true or false based on user input
http://poshcode.org/522

PowerShell Code Repository - Reset Time Sync Setting
Cycles all VMs on VirtualCenter server and sets the ‘SyncTimeWithHost’ to true or false based on user input
http://poshcode.org/523

PowerShell Code Repository - Reset-Tray
Scrub the Systray (Notification Area) of icons from terminated/crashed apps.
http://poshcode.org/1785

PowerShell Code Repository - Reset-Tray
Scrub the Systray (Notification Area) of icons from terminated/crashed apps. Fixed for XP compatibility
http://poshcode.org/1787

PowerShell Code Repository - ResetOutlookLivePassword
PowerShell Code Repository - Get-MacAddressOui
http://poshcode.org/2947

PowerShell Code Repository - Resize Console Window
PowerShell Code Repository - WhoAmI
http://poshcode.org/874

PowerShell Code Repository - Resize-Image
A simple image resizer …
http://poshcode.org/2000

PowerShell Code Repository - Resizer of pictures
PowerShell Code Repository - Get-ImageMetaData
http://poshcode.org/618

PowerShell Code Repository - Resizer of pictures
PowerShell Code Repository - Resizer of pictures
http://poshcode.org/620

PowerShell Code Repository - Resizer of pictures
PowerShell Code Repository - Resizer of pictures
http://poshcode.org/621

PowerShell Code Repository - Resolve-Aliases
Resolves aliases and parameter shortcuts in scripts to make them more portable.
http://poshcode.org/452

PowerShell Code Repository - Resolve-Aliases 1.6
Resolves aliases and parameter shortcuts in scripts to make them more portable. Now resolves parameter aliases, and resolves ‘?’ to Where-Object correctly.
http://poshcode.org/463

PowerShell Code Repository - Resolve-Aliases 1.7
Resolves aliases and parameter shortcuts in scripts to make them more portable. Now resolves parameter aliases, and resolves ‘?’ to Where-Object correctly.
http://poshcode.org/920

PowerShell Code Repository - Resolve-Aliases 1.7
Resolves aliases and parameter shortcuts in scripts to make them more portable. Now resolves parameter aliases, and resolves ‘?’ to Where-Object correctly.
http://poshcode.org/914

PowerShell Code Repository - Resolve-Aliases 1.7
Resolves aliases and parameter shortcuts in scripts to make them more portable. Now resolves parameter aliases, and resolves ‘?’ to Where-Object correctly.
http://poshcode.org/915

PowerShell Code Repository - Resolve-Aliases 1.7
Resolves aliases and parameter shortcuts in scripts to make them more portable. Now resolves parameter aliases, and resolves ‘?’ to Where-Object correctly.
http://poshcode.org/916

PowerShell Code Repository - Resolve-Aliases 1.7
Resolves aliases and parameter shortcuts in scripts to make them more portable. Now resolves parameter aliases, and resolves ‘?’ to Where-Object correctly.
http://poshcode.org/917

PowerShell Code Repository - Resolve-Aliases 1.7
Resolves aliases and parameter shortcuts in scripts to make them more portable. Now resolves parameter aliases, and resolves ‘?’ to Where-Object correctly.
http://poshcode.org/919

PowerShell Code Repository - Resolve-Error.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2206

PowerShell Code Repository - Resolve-Url
Figure out the real url’s behind the shortened forms created by snipurl, tinyurl, twurl, is.gd, ...
http://poshcode.org/187

PowerShell Code Repository - Restart-IISAppPool
Restarts local or remote IIS AppPools
http://poshcode.org/2465

PowerShell Code Repository - Restart-IISAppPool
Restarts local or remote IIS AppPools
http://poshcode.org/2466

PowerShell Code Repository - Restore-Database.ps1
Script demonstrates automated SQL database restore using SQLPSX SQLServer module that relocates files to default directory and kills all connections to database.
http://poshcode.org/2531

PowerShell Code Repository - Reverse filename sequenc
This script will rename a sequenced set of files in a directory.
http://poshcode.org/3113

PowerShell Code Repository - Reverse filename sequenc
This script will rename a sequenced set of files in a directory.
http://poshcode.org/3114

PowerShell Code Repository - Reverse filename sequenc
This script will rename a sequenced set of files in a directory.
http://poshcode.org/3115

PowerShell Code Repository - Reverse filename sequenc
This script will rename a sequenced set of files in a directory.
http://poshcode.org/3116

PowerShell Code Repository - Reverse filename sequenc
This script will rename a sequenced set of files in a directory.
http://poshcode.org/3117

PowerShell Code Repository - RichCopyMyProfile.ps1
Sample of calling RichCopy.exe for massively parallel file copy. Great when copying many small files over long distance, to overlap latency delays. Same as Windows 7 ‘robocopy.exe /MT:64’ but works on Windows XP and Server 2003.
http://poshcode.org/2468

PowerShell Code Repository - Ring Monitor
Creates a self-updating graphical monitor which can chart pretty much anything that has a time-interval on it. You can use Add-Monitor and Remove-Monitor to add and remove things to be charted and specify what the data will be. See Examples at the bottom.
http://poshcode.org/1230

PowerShell Code Repository - RoboCopyWrapper
PowerShell RoboCopy Wrapper example code
http://poshcode.org/603

PowerShell Code Repository - RoboGUI
PowerShell Code Repository - FormsLib.ps1
http://poshcode.org/626

PowerShell Code Repository - Roll-Dice.ps1
A really bad roll-dice script to do ‘bad things’ to vmware snapshots taken on the pipeline.
http://poshcode.org/1948

PowerShell Code Repository - Roll-Dice.ps1
A really bad roll-dice script to do ‘bad things’ to vmware snapshots taken on the pipeline.
http://poshcode.org/1952

PowerShell Code Repository - Roll-Dice.ps1
A really bad roll-dice script to do ‘bad things’ to vmware snapshots taken on the pipeline.
http://poshcode.org/1953

PowerShell Code Repository - Rollback Policy Module
This module allows you to Get, Enable and Disable the software rollback settings on your computer or computers. This is useful when working with certain patches and software installations that require the software rollback to be enabled.
http://poshcode.org/2751

PowerShell Code Repository - Roman Numeral Clock
It’s silly, it’s stupid, it’s fun
http://poshcode.org/2828

PowerShell Code Repository - RSS Enclosure Downloader
PowerShell Code Repository - Citrix License Info
http://poshcode.org/632

PowerShell Code Repository - RSS Enclosure Downloader
PowerShell Code Repository - New-WebServiceProxy.ps1
http://poshcode.org/539

PowerShell Code Repository - rss2email
Generate an email from an RSS feed and store the feed item in a cache file to support emailing only new feed items since last execution.
http://poshcode.org/742

PowerShell Code Repository - Run-Defrag
Defragments a target hard drive on a Windows Server 2003 or 2008 system.
http://poshcode.org/648

PowerShell Code Repository - Run-Defrag
Defragments a target hard drive on a Windows Server 2003 or 2008 system.
http://poshcode.org/650

PowerShell Code Repository - Run-Defrag
Defragments a target hard drive on a Windows Server 2003 or 2008 system.
http://poshcode.org/651

PowerShell Code Repository - Run-Defrag
Defragments a target hard drive on a Windows Server 2003 or 2008 system.
http://poshcode.org/652

PowerShell Code Repository - Run-Query (SharePoint)
Runs a FullTextSqlQuery (SharePoint’s Enterprise Search SQL Query) against your local MOSS farm; useful as a quick(!) search query test workbench.
http://poshcode.org/1304

PowerShell Code Repository - Run-Query (SharePoint)
Runs a FullTextSqlQuery (SharePoint’s Enterprise Search SQL Query) against your local MOSS farm; useful as a quick(!) search query test workbench.
http://poshcode.org/1291

PowerShell Code Repository - Run-Query (SharePoint)
Runs a FullTextSqlQuery (SharePoint’s Enterprise Search SQL Query) against your local MOSS farm; useful as a quick(!) search query test workbench.
http://poshcode.org/1292

PowerShell Code Repository - Run-Query (SharePoint)
Runs a FullTextSqlQuery (SharePoint’s Enterprise Search SQL Query) against your local MOSS farm; useful as a quick(!) search query test workbench.
http://poshcode.org/1293

PowerShell Code Repository - Run-Query (SharePoint)
Runs a FullTextSqlQuery (SharePoint’s Enterprise Search SQL Query) against your local MOSS farm; useful as a quick(!) search query test workbench.
http://poshcode.org/1294

PowerShell Code Repository - running regions in ISE
scripting for running regions by hotkeys in powershell v2 CTP3 ISE. http://www.karlprosser.com/coder
http://poshcode.org/776

PowerShell Code Repository - RunSSIS
Executes a SQL Server Integrations Services package for both server and file system storage types. Also includes optional processing of external configuration file.
http://poshcode.org/889

PowerShell Code Repository - RunSSIS
Executes a SQL Server Integrations Services package for both server and file system storage types. Optionally Resets a Package Configuration connection string named “SSISCONFIG” to new server location. Also includes optional processing of external configuration file.
http://poshcode.org/842

PowerShell Code Repository - sample format file
I really am still working on this replacement for the WASP module ;-)
http://poshcode.org/3191

PowerShell Code Repository - Save-CurrentFile (ISE)
PowerShell Code Repository - Networker - Delete ssids
http://poshcode.org/1318

PowerShell Code Repository - Scan Remote Event Logs
This pair of PowerShell functions enables remote scanning/downloading of event logs using with the ability to exclude specific events. – Uses PowerShell Remoting with Invoke-Command along with Get-EventLog and the spattering technique to pass arguements to the remote script block.
http://poshcode.org/2711

PowerShell Code Repository - Scan Remote Event Logs
This pair of PowerShell functions enables remote scanning/downloading of event logs with the ability to exclude specific events. – Uses PowerShell Remoting with Invoke-Command along with Get-EventLog and the spattering technique to pass arguements to the remote script block.
http://poshcode.org/2712

PowerShell Code Repository - Scan VB6 Code
PowerShell Code Repository - Import-Methods
http://poshcode.org/970

PowerShell Code Repository - ScheduledTasks
PowerShell Module to manage Windows Scheduled Tasks
http://poshcode.org/2432

PowerShell Code Repository - ScheduledTasks
PowerShell Module to manage Windows Scheduled Tasks
http://poshcode.org/2429

PowerShell Code Repository - ScheduleGPOBackups.ps1
PowerShell Code Repository - ScheduleGPOBackups.ps1
http://poshcode.org/1508

PowerShell Code Repository - ScheduleGPOBackups.ps1
PowerShell Code Repository - ScheduleGPOBackups.ps1
http://poshcode.org/1509

PowerShell Code Repository - ScheduleGPOBackups.ps1
PowerShell Code Repository - SearchZIP.psm1
http://poshcode.org/3243

PowerShell Code Repository - ScheduleGPOBackups.ps1
PowerShell Code Repository - VMWare VMNET Adapters
http://poshcode.org/1507

PowerShell Code Repository - SCOM-CreatePortMonitor
Creates a port monitor inside of Operations Manager 2007. Usage is SCOM-CreatePortMonitoring.ps1 -serverName:‘TargetServerName.contoso.com’ -portNumber:‘80’ -pollIntervalSeconds:‘120’ -watcherNodes:“watcher1.contoso.com”, “watcher2.contoso.com” -displayName:‘Test URL monitoring’ -targetMP:‘Port Monitoring MP’
http://poshcode.org/616

PowerShell Code Repository - SCOM-RunRemoteExecutable
PowerShell Code Repository - Export-ScreenShot
http://poshcode.org/586

PowerShell Code Repository - script does not continue
PowerShell Code Repository - chkhash.ps1
http://poshcode.org/2832

PowerShell Code Repository - Script Listing
PowerShell Code Repository - Get-DefragAnalysis.ps1
http://poshcode.org/657

PowerShell Code Repository - Script logging
PowerShell Code Repository - Hardware Inventory
http://poshcode.org/3032

PowerShell Code Repository - Script logging
PowerShell Code Repository - Paraimpu
http://poshcode.org/2932

PowerShell Code Repository - Script-Object.ps1
A powershell script that will create the CREATE DDL for any object in a SQL Server database. It requires the open source Atlantis.SchemaEngine.dll available at http://www.atlantis-interactive.co.uk/blog/post/2011/02/24/Free-SQL-Server-Schema-Synchronisation-Engine-announcing-the-release-of-the-AtlantisSchemaEngine-source-code.aspx
http://poshcode.org/2584

PowerShell Code Repository - Script-Object.ps1
A powershell script that will create the CREATE DDL for any object in a SQL Server database. It requires the open source Atlantis.SchemaEngine.dll available at http://www.atlantis-interactive.co.uk/blog/post/2011/02/24/Free-SQL-Server-Schema-Synchronisation-Engine-announcing-the-release-of-the-AtlantisSchemaEngine-source-code.aspx
http://poshcode.org/2585

PowerShell Code Repository - Script-Object.ps1
A powershell script that will create the CREATE DDL for any object in a SQL Server database. It requires the open source Atlantis.SchemaEngine.dll available at http://www.atlantis-interactive.co.uk/blog/post/2011/02/24/Free-SQL-Server-Schema-Synchronisation-Engine-announcing-the-release-of-the-AtlantisSchemaEngine-source-code.aspx
http://poshcode.org/2587

PowerShell Code Repository - Script-Object.ps1
A powershell script that will create the CREATE DML for any object in a SQL Server database. It requires the open source Atlantis.SchemaEngine.dll available at http://www.atlantis-interactive.co.uk/blog/post/2011/02/24/Free-SQL-Server-Schema-Synchronisation-Engine-announcing-the-release-of-the-AtlantisSchemaEngine-source-code.aspx
http://poshcode.org/2583

PowerShell Code Repository - Script-Proc.sql
A script that scripts a stored proc in SQL server.
http://poshcode.org/2580

PowerShell Code Repository - Script-Proc.sql
A script that scripts a stored proc in SQL server.
http://poshcode.org/2581

PowerShell Code Repository - Script-Proc.sql
A script that scripts a stored proc in SQL server.
http://poshcode.org/2582

PowerShell Code Repository - scriptable telnet client
PowerShell Code Repository - Get-Sysinternals
http://poshcode.org/2683

PowerShell Code Repository - ScriptingAgentConfig.xml
Sample ScriptingAgentConfig.xml for working with the Exchange Server 2010 Scripting Agent cmdlet extension agent.
http://poshcode.org/2308

PowerShell Code Repository - ScriptSVN.ps1
Script from SVN Utility
http://poshcode.org/927

PowerShell Code Repository - ScriptTransforms module
PowerShell module that allows scripters to define argument transformation attributes in simple PowerShell syntax. This is an extension developed by beefarino of my ScriptTransform example at http://huddledmasses.org/more-custom-attributes-for-powershell-parameters/ and now supports re-defining transforms without restarting PowerShell.
http://poshcode.org/3029

PowerShell Code Repository - ScriptTransforms module
PowerShell module that allows scripters to define argument transformation attributes in simple PowerShell syntax. This is an extension developed by beefarino of my ScriptTransform example at http://huddledmasses.org/more-custom-attributes-for-powershell-parameters/ and now supports re-defining transforms without restarting PowerShell.
http://poshcode.org/3025

PowerShell Code Repository - ScriptTransforms module
PowerShell module that allows scripters to define argument transformation attributes in simple PowerShell syntax. This is an extension developed by beefarino of my ScriptTransform example at http://huddledmasses.org/more-custom-attributes-for-powershell-parameters/ and now supports re-defining transforms without restarting PowerShell.
http://poshcode.org/3026

PowerShell Code Repository - ScriptTransforms module
PowerShell module that allows scripters to define argument transformation attributes in simple PowerShell syntax. This is an extension developed by beefarino of my ScriptTransform example at http://huddledmasses.org/more-custom-attributes-for-powershell-parameters/ and now supports re-defining transforms without restarting PowerShell.
http://poshcode.org/3027

PowerShell Code Repository - ScriptTransforms module
PowerShell module that allows scripters to define argument transformation attributes in simple PowerShell syntax. This is an extension of Joel’s ScriptTransform example at http://huddledmasses.org/more-custom-attributes-for-powershell-parameters/
http://poshcode.org/3024

PowerShell Code Repository - Seach-LocalGroupMember
search users in the local administrators group on computers domain network
http://poshcode.org/1877

PowerShell Code Repository - Seach-LocalGroupMemberDo
&#1055;&#1086;&#1080;&#1089;&#1082; &#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1077;&#1083;&#1077;&#1081; &#1074; &#1083;&#1086;&#1082;&#1072;&#1083;&#1100;&#1085;&#1086;&#1081; &#1075;&#1088;&#1091;&#1087;&#1087;&#1077; “&#1040;&#1076;&#1084;&#1080;&#1085;&#1080;&#1089;&#1090;&#1088;&#1072;&#1090;&#1086;&#1088;&#1099;” &#1085;&#1072; &#1082;&#1086;&#1084;&#1087;&#1100;&#1102;&#1090;&#1077;&#1088;&#1072;&#1093; &#1076;&#1086;&#1084;&#1077;&#1085;&#1085;&#1086;&#1081; &#1089;&#1077;&#1090;&#1080;
http://poshcode.org/1876

PowerShell Code Repository - Search AD Forest
This is essentially a snap-in for an existing script that leverages Active Directory. Typically, you’ll be working with AD objects in your own domain; however, in some instances you may need to work with AD objects that are in a different domain within your forest. This code snippet allows the flexibility to drop in an existing domain-based script and either run it on all domains in the forest (no command line arguments) or a single domain in the forest that matches a command line argument placed into a Where-Object filter.
http://poshcode.org/2933

PowerShell Code Repository - Search cmdlet help
This is a simple little function to search all available cmdlets for a given keyword. Similar to man -k.
http://poshcode.org/1245

PowerShell Code Repository - Search cmdlet help
This is a simple little function to search all available cmdlets for a given keyword. Similar to man -k.
http://poshcode.org/1254

PowerShell Code Repository - Search-CertificateStore.
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2207

PowerShell Code Repository - Search-Help.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2208

PowerShell Code Repository - Search-Network
PowerShell Code Repository - qwinsta.ps1
http://poshcode.org/3063

PowerShell Code Repository - Search-NetworkService
PowerShell Code Repository - Search-Network
http://poshcode.org/3064

PowerShell Code Repository - Search-NetworkService
PowerShell Code Repository - Search-NetworkService
http://poshcode.org/3065

PowerShell Code Repository - Search-Registry.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2209

PowerShell Code Repository - Search-StartMenu.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2210

PowerShell Code Repository - Search-Twitter.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2211

PowerShell Code Repository - Search-WmiNamespace.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2212

PowerShell Code Repository - Searching Word
PowerShell Code Repository - New Switch and Portgroup
http://poshcode.org/486

PowerShell Code Repository - SearchZIP.psm1
PowerShell Code Repository - ConvertTo-Hex
http://poshcode.org/3240

PowerShell Code Repository - SearchZIP.psm1
PowerShell Code Repository - SearchZIP.psm1
http://poshcode.org/3241

PowerShell Code Repository - SearchZIP.psm1
PowerShell Code Repository - SearchZIP.psm1
http://poshcode.org/3242

PowerShell Code Repository - SearchZIP.psm1
PowerShell Code Repository - Start-RDP
http://poshcode.org/3248

PowerShell Code Repository - SearchZIP.psm1 Module Fi
PowerShell Code Repository - Get-SqlWmi
http://poshcode.org/3236

PowerShell Code Repository - Select w/ subproperties
Allows to use dots to specify object subproperties in Select-Object.
http://poshcode.org/1606

PowerShell Code Repository - Select-Alive
Selects only objects containing a hostname that is pingable.
http://poshcode.org/604

PowerShell Code Repository - Select-CLSCompliant
The beginnings of a function for handling ETS exceptions thrown by types which are not CLS Compliant when you try to output them.
http://poshcode.org/2713

PowerShell Code Repository - Select-CLSCompliant
The beginnings of a function for handling ETS exceptions thrown by types which are not CLS Compliant when you try to output them.
http://poshcode.org/2721

PowerShell Code Repository - Select-CSVString
PowerShell Code Repository - Poshboard Inactive AD Ac
http://poshcode.org/1649

PowerShell Code Repository - Select-CSVString
hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_v
http://poshcode.org/1615

PowerShell Code Repository - Select-CSVString
Search through CSV files using a regular expression and import just the lines you’re looking for as named properties.
http://poshcode.org/1607

PowerShell Code Repository - Select-EnumeratedType
UPDATED 2010/10/28: Visually create an instance of an enum with an easy to use menu system. Supports both single value enumerated types and bitmask (flags) enums. Also supports dynamic inline help for enumerated values (help works with powershell.exe host only – ISE is buggy.) PowerShell 2.0 required. This uses uses the new to v2 IHostUISupportsMultipleChoiceSelection interface.
http://poshcode.org/2327

PowerShell Code Repository - Select-EnumeratedType
Visually create an instance of an enum with an easy to use menu system. Supports both single value enumerated types and bitmask (flags) enums. Also supports dynamic inline help for enumerated values (help works with powershell.exe host only – ISE is buggy.) PowerShell 2.0 required. This uses uses the new to v2 IHostUISupportsMultipleChoiceSelection interface.
http://poshcode.org/2320

PowerShell Code Repository - Select-Expand
Like Select-Object -Expand, but with recursive iteration of a select chain
http://poshcode.org/1718

PowerShell Code Repository - Select-FilteredObject.ps
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2213

PowerShell Code Repository - Select-GraphicalFiltered
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2214

PowerShell Code Repository - Select-Grid
PowerShell Code Repository -
http://poshcode.org/405

PowerShell Code Repository - Select-Random v2.1
Select a user-defined number of random elements from the collection … which can be passed as a parameter or input via the pipeline. An improvement over http://www.powershellcentral.com/scripts/60 which allows you to select more than one item, and doesn’t copy the full collection into RAM. (Also, a bug fix for http://www.powershellcentral.com/scripts/81)
http://poshcode.org/83

PowerShell Code Repository - Select-Random v2.2
Select a user-defined number of random elements from the collection … which can be passed as a parameter or input via the pipeline. An improvement over http://www.powershellcentral.com/scripts/60 which allows you to select more than one item, but offers the option to collect the pipeline into RAM to trade speed for memory use (replaces 81 and 83).
http://poshcode.org/118

PowerShell Code Repository - Select-TextOutput.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2215

PowerShell Code Repository - Select-ToString
A wrapper for Select-Object that converts all the output to strings — for use with ConvertTo-Html, ConvertTo-CSV etc.
http://poshcode.org/1567

PowerShell Code Repository - Select-ToString
A wrapper for Select-Object that converts all the output to strings — for use with ConvertTo-Html, ConvertTo-CSV etc.
http://poshcode.org/1569

PowerShell Code Repository - Select-ToString
A wrapper for Select-Object that converts all the output to strings — for use with ConvertTo-Html, ConvertTo-CSV etc.
http://poshcode.org/1570

PowerShell Code Repository - Select-UserGroup
A script for ShowUI 1.0 — using Quest’s active directory cmdlets to retrieve user information and allow you to select one of the groups they’re a member of. Could be extended to populate a bunch of form fields from active directory and even allow updating them…
http://poshcode.org/2737

PowerShell Code Repository - Select-ViaGUI
PowerShell Code Repository - BinaryClock V2.0
http://poshcode.org/2820

PowerShell Code Repository - Select-ViaGUI
An interactive graphical filter for pipeline objects… (a sample script for Show-UI which works right now on changeset d7ad095858eb)
http://poshcode.org/2646

PowerShell Code Repository - Select-Xml 2.1
Improves over the built-in Select-XML by leveraging Remove-XmlNamespace to provide a -RemoveNamespace parameter — if it’s supplied, all of the namespace declarations and prefixes are removed from all XML nodes (by an XSL transform) before searching. Note that this means that the returned results will not have namespaces in them, even if the input XML did.
http://poshcode.org/1503

PowerShell Code Repository - Select-Xml 2.2
Improves over the built-in Select-XML by leveraging Remove-XmlNamespace to provide a -RemoveNamespace parameter — if it’s supplied, all of the namespace declarations and prefixes are removed from all XML nodes (by an XSL transform) before searching. Note that this means that the returned results will not have namespaces in them, even if the input XML did.
http://poshcode.org/1504

PowerShell Code Repository - Send mail to BCC
This script is a re-developed MSDN Sample using PowerShell. It creates an email message then sends it with a BCC.
http://poshcode.org/811

PowerShell Code Repository - Send mail to BCC using P
This script is a re-developed MSDN Sample using PowerShell. It creates an email message then sends it with a BCC.
http://poshcode.org/810

PowerShell Code Repository - Send SNMP trap
PowerShell Code Repository - Check HBA status
http://poshcode.org/1413

PowerShell Code Repository - Send-File.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2216

PowerShell Code Repository - Send-FTP 1.0
A little Send-FTP script to support uploading files. This version is simple: it can’t create folders nor allow you to specify whether to overwrite files …
http://poshcode.org/1625

PowerShell Code Repository - Send-FTP 1.0
A little Send-FTP script to support uploading files. This version is simple: it can’t create folders nor allow you to specify whether to overwrite files …
http://poshcode.org/1240

PowerShell Code Repository - Send-Growl 1.0
A first release of my module for user-notifications via Growl For Windows … includes only Send-Growl — but has all the wiring up done so you can do custom notices, icons, etc. Initial post here and future posts here
http://poshcode.org/1270

PowerShell Code Repository - Send-Growl 1.0
A fix to make this work on PowerShell 1.0
http://poshcode.org/1274

PowerShell Code Repository - Send-Growl 2.0
This is the PowerShell 2.0 -only continuation of my Growl module
http://poshcode.org/1275

PowerShell Code Repository - Send-Growl 3.0
This is the PowerShell 2.0 -only continuation of my Growl module — redesigned as a proper “module” that can be used by (many) other scripts.
http://poshcode.org/1276

PowerShell Code Repository - Send-Growl 3.0
This is the PowerShell 2.0 -only continuation of my Growl module — redesigned as a proper “module” that can be used by (many) other scripts.
http://poshcode.org/1496

PowerShell Code Repository - Send-Growl 3.0
This is the PowerShell 2.0 -only continuation of my Growl module — redesigned as a proper “module” that can be used by (many) other scripts.
http://poshcode.org/2611

PowerShell Code Repository - Send-Growl 3.1
A PowerShell 2.0 Growl module for Growl For Windows (Updated for PowerShell 2 RTM)
http://poshcode.org/1464

PowerShell Code Repository - Send-HTMLFormattedEmail
Made some improvements
http://poshcode.org/1035

PowerShell Code Repository - Send-HTMLFormattedEmail
Use this function to send an HTML Formatted Email that is based on an XSLT template. This function is based on a blog post by Erik McCarty (http://ewmccarty.spaces.live.com).
http://poshcode.org/3213

PowerShell Code Repository - Send-HTMLFormattedEmail
Use this function to send an HTML Formatted Email that is based on an XSLT template. This function is based on a blog post by Erik McCarty (http://ewmccarty.spaces.live.com).
http://poshcode.org/950

PowerShell Code Repository - Send-HTMLFormattedEmail
Use this function to send an HTML Formatted Email that is based on an XSLT template. This function is based on a blog post by Erik McCarty (http://ewmccarty.spaces.live.com).
http://poshcode.org/951

PowerShell Code Repository - Send-MailMessage.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/3060

PowerShell Code Repository - Send-MailMessage.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2217

PowerShell Code Repository - Send-Mapi
PowerShell Code Repository - Convert-StringSID
http://poshcode.org/1073

PowerShell Code Repository - Send-Paste.ps1
Automated paste from PowerShell console
http://poshcode.org/184

PowerShell Code Repository - Send-RTMTask
Function for adding tasks to your Remember the Milk task list using email
http://poshcode.org/108

PowerShell Code Repository - Send-SMSMessage
Function to send text messages (SMS) from Windows PowerShell using the Microsoft Outlook SMS Add-in.
http://poshcode.org/1999

PowerShell Code Repository - Send-SmtpMessage
Send an email via the GMail SMTP server (or any server, really, but there’s some extra code in here and defaults that will make it work with Gmail so you won’t have to do research). NOTE: there’s a Send-SmtpMail in PSCX, but as far as I can tell, there’s no way to convince it to use SSL so I can’t get it to work with Gmail at all.
http://poshcode.org/180

PowerShell Code Repository - Send-TcpRequest.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2218

PowerShell Code Repository - Send-XmppMessage
Sends an XMPP (Jabber) instant message. These parameters are mandatory: From, To, Body. Password can be supplied on the command line, or if omitted, you will be prompted for it.
http://poshcode.org/103

PowerShell Code Repository - Sendmail for PoSh 2 CTP3
PowerShell Code Repository - Sendmail for PoSh V1.0
http://poshcode.org/937

PowerShell Code Repository - Sendmail for PoSh V1.0
PowerShell Code Repository - New-FileShare
http://poshcode.org/936

PowerShell Code Repository - Server checks
A script to ping servers (gets the servers from a text file) & report whether they are online or offline, to check free disks space on all servers and to report on any services which are set to automatic startup but are in a stopped state. It puts all this on a nicely formatted excel sheet, then saves a copy as H:\dailychecks\checks_todaysdate.xls (so if I’m not in I can review it later). It also launches my web browser (my home page is set to my company’s site) so that I can check the site is up, and it imports the exchange modules as I intend eventually to add another sheet to check Exchange services, when I can figure out how to do it.
http://poshcode.org/3070

PowerShell Code Repository - Server Inventory
This script will create an inventory of your server environment.
http://poshcode.org/930

PowerShell Code Repository - Servers in Computers OU
PowerShell Code Repository - TabExpansion for V2CTP3
http://poshcode.org/848

PowerShell Code Repository - ServicePWChgReset
PowerShell Code Repository - Get-Parameter
http://poshcode.org/550

PowerShell Code Repository - ServicePWChgReset
PowerShell Code Repository - VI Report
http://poshcode.org/552

PowerShell Code Repository - Services Auto NotRunning
Check if all the services with StartMode AUTOMATIC are actually Running
http://poshcode.org/2759

PowerShell Code Repository - Services Auto NotRunning
Check if all the services with StartMode AUTOMATIC are actually Running
http://poshcode.org/2760

PowerShell Code Repository - Set account password
This script will allow you to set the password for an account on a local or remote machine/s. A report is then generated when done along with an error log. Scripts accepts pipeling input for the computer/s. If any errors are encountered, a log will be generated as well.
http://poshcode.org/2109

PowerShell Code Repository - Set account password
This script will allow you to set the password for an account on a local or remote machine/s. A report is then generated when done along with an error log. Scripts accepts pipeling input for the computer/s. If any errors are encountered, a log will be generated as well.
http://poshcode.org/2396

PowerShell Code Repository - Set Logfile length
Set any text file to a fixed number of lines. Useful for maintaining files such as the PS Transcript log. Now option added to remove blank lines.
http://poshcode.org/3122

PowerShell Code Repository - Set Logfile length
Set any text file to a fixed number of lines. Useful for maintaining files such as the PS Transcript log. Now option added to remove blank lines.
http://poshcode.org/3123

PowerShell Code Repository - Set Logfile length
Set any text file to a fixed number of lines. Useful for maintaining files such as the PS Transcript log. Now option added to remove blank lines.
http://poshcode.org/1472

PowerShell Code Repository - Set Logfile length
Set any text file to a fixed number of lines. Useful for maintaining files such as the PS Transcript log. Now option added to remove blank lines.
http://poshcode.org/1440

PowerShell Code Repository - Set Logfile length
Set any text file to a fixed number of lines. Useful for maintaining files such as the PS Transcript log. Now option added to remove blank lines.
http://poshcode.org/1438

PowerShell Code Repository - Set Logfile length
Set any text file to a fixed number of lines. Useful for maintaining files such as the PS Transcript log. Now option added to remove blank lines.
http://poshcode.org/1439

PowerShell Code Repository - Set Logfile lines
Maintain the PS Transcript file, or any text file, at a constant number of lines.
http://poshcode.org/1424

PowerShell Code Repository - Set Single email
Script which creates a new Mail Enabled user with the Email address Policy disabled and a SINGLE custom email address attached to the account. Designed for new Powershell users.
http://poshcode.org/1521

PowerShell Code Repository - Set vSphere CDP LinkDisc
A script to set the CDP settings for vsphere. Note that LLDP is an option in vSphere, but it doesn’t work. Here’s hoping for the future!
http://poshcode.org/1583

PowerShell Code Repository - Set vSphere CDP LinkDisc
A script to set the CDP settings for vsphere. Note that LLDP is an option in vSphere, but it doesn’t work. Here’s hoping for the future! Updated to handle multiple switches passed in and fixed some parameter issues.
http://poshcode.org/2752

PowerShell Code Repository - Set-ADUserRandomPassword
PowerShell Code Repository - Re-IP VMs
http://poshcode.org/1285

PowerShell Code Repository - Set-ADUserRandomPassword
from time to time SMVI will fail to cleanup after it self. This can quickly get out of control, the following will clean up any errant vSphere Snapshots.
http://poshcode.org/1351

PowerShell Code Repository - Set-AppCompatFlag
Sets Application Compatibility flags for an application. (Same as on the Compatibility tab of the properties.)
http://poshcode.org/2494

PowerShell Code Repository - Set-AssemblyBindLogging
Enable or disable assembly bind logging (per-machine)
http://poshcode.org/1976

PowerShell Code Repository - Set-AttachedProperty
A piece that’s missing from PoshCode 0.01
http://poshcode.org/1017

PowerShell Code Repository - Set-Blur
A function to mess with opacity, as demonstrated: !http://HuddledMasses.org/images/PowerShell/SetBlur.png!
http://poshcode.org/1864

PowerShell Code Repository - Set-Clipboard.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2219

PowerShell Code Repository - Set-Computername
PowerShell Code Repository -
http://poshcode.org/1997

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - Check Exchange2010 queue
http://poshcode.org/2675

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - Disable-CopyPasta-1.ps1
http://poshcode.org/1476

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - Edit-Variable
http://poshcode.org/2472

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - Get-MSCSRestartAction
http://poshcode.org/1913

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - Get-RebootTime.ps1
http://poshcode.org/1660

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - Join-Collections 2.1
http://poshcode.org/1655

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - Log ports used by app
http://poshcode.org/2891

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - New-SQLComputerLogin
http://poshcode.org/3013

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - RSS Enclosure Downloader
http://poshcode.org/540

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - Script logging
http://poshcode.org/3033

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - ScriptTransforms module
http://poshcode.org/3028

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - Set-Computername
http://poshcode.org/2473

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - Set-Computername
http://poshcode.org/541

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - Set-WebConfig
http://poshcode.org/533

PowerShell Code Repository - Set-Computername
PowerShell Code Repository - VMWare Quick Migration
http://poshcode.org/1536

PowerShell Code Repository - Set-ConsoleProperties.ps
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2220

PowerShell Code Repository - Set-Domain
PowerShell Code Repository - after
http://poshcode.org/1637

PowerShell Code Repository - Set-Domain
PowerShell Code Repository - Export-CustomProperty
http://poshcode.org/2270

PowerShell Code Repository - Set-Domain
PowerShell Code Repository - GeSHi PowerShell Syntax
http://poshcode.org/1102

PowerShell Code Repository - Set-Domain
PowerShell Code Repository - Get/Set Signature 2.5
http://poshcode.org/1967

PowerShell Code Repository - Set-Domain
PowerShell Code Repository - PowerBoots Gadgets
http://poshcode.org/1540

PowerShell Code Repository - Set-Domain
PowerShell Code Repository - Set-Domain
http://poshcode.org/1968

PowerShell Code Repository - Set-Domain
PowerShell Code Repository - Set-Domain
http://poshcode.org/1969

PowerShell Code Repository - Set-dvSwitch
More info can be found here: http://ict-freak.nl/2009/10/06/powercli-set-dvswitch/
http://poshcode.org/1373

PowerShell Code Repository - Set-Encoding
PowerShell Code Repository -
http://poshcode.org/1822

PowerShell Code Repository - Set-Encoding
PowerShell Code Repository - Get-CryptoBytes
http://poshcode.org/2288

PowerShell Code Repository - Set-EnvironmentVariable
PowerShell Code Repository -
http://poshcode.org/1243

PowerShell Code Repository - Set-ExcludeFromPeek
Exclude a window from Aero Peek so it stays visible when you press Win+Space in Windows 7 (of course, there’s lots of other possibilities here, but I’ll let others explore them).
http://poshcode.org/1287

PowerShell Code Repository - Set-Extension
Change the extension on files
http://poshcode.org/2314

PowerShell Code Repository - Set-FileWriteable
PowerShell Code Repository - PowerShell Template
http://poshcode.org/2274

PowerShell Code Repository - Set-FSMORoleOwner
This advanced function allows you to transfer or seize the FSMO roles to a specified Domain Controller. Has support for -Whatif and -Confirm to avoid making a mistake with transferring the roles. Also can display the current owners after the action has completed using -PassThru.
http://poshcode.org/2728

PowerShell Code Repository - set-FSRMQuotaBasedOnSQL
set-FSRMQuotaBasedOnSQL
http://poshcode.org/3180

PowerShell Code Repository - Set-FT
Script used to turn FT on or off for a specific VM
http://poshcode.org/1336

PowerShell Code Repository - Set-IISLogLocation
This advanced function will allow you to set the IIS log location on a server or servers. You can specify a single site or perform the task on all sites. Also supports -whatif in the function.
http://poshcode.org/2374

PowerShell Code Repository - Set-IPAddress
A function to set a sql connection string in a web.config file
http://poshcode.org/529

PowerShell Code Repository - Set-IPAddress
A function to set a sql connection string in a web.config file
http://poshcode.org/530

PowerShell Code Repository - Set-IPAddress
A function to set a sql connection string in a web.config file
http://poshcode.org/531

PowerShell Code Repository - Set-IPAddress
Creates self-signed signing certificate and installs it to certificate store.
http://poshcode.org/1794

PowerShell Code Repository - Set-IPAddress
Get-Weather parses and displays the current weather and forecast from the Yahoo! RSS. Simply enter your zipcode (or IXX code from Yahoo weather) and -c(elcius) if you don’t want Fahrenheit temperatures.
http://poshcode.org/1806

PowerShell Code Repository - Set-IPAddress
Wraps a pre-existing PowerShell cmdlet in a binary Workflow Activity and outputs a DLL that can be used in Visual Studio.
http://poshcode.org/3165

PowerShell Code Repository - Set-Keydelay.ps1
Script takes a VM object from the pipeline and sets “keyboard.typematicMinDelay” = “2000000” in the vmx file.
http://poshcode.org/1369

PowerShell Code Repository - Set-LocalPassword
PowerShell Code Repository -
http://poshcode.org/1124

PowerShell Code Repository - Set-LocalPassword
PowerShell Code Repository - Get-OUComputerNames
http://poshcode.org/547

PowerShell Code Repository - Set-LocalPassword
PowerShell Code Repository - SVMotion-VM
http://poshcode.org/576

PowerShell Code Repository - Set-LocalPassword
Sets local account passwords on one or more computers.
http://poshcode.org/543

PowerShell Code Repository - set-localpwd
Sets local account passwords on one or more computers.
http://poshcode.org/448

PowerShell Code Repository - set-localpwd
Sets local account passwords on one or more computers.
http://poshcode.org/449

PowerShell Code Repository - Set-LocalUserAccount
PowerShell Code Repository - Set-UserCannotChangePass
http://poshcode.org/3052

PowerShell Code Repository - Set-OCSUser
PowerShell Code Repository - Fast vMotion with GUI
http://poshcode.org/1222

PowerShell Code Repository - Set-OCSUser
PowerShell Code Repository - Set-OCSUser
http://poshcode.org/1223

PowerShell Code Repository - Set-Opacity
Like Set-Blur, except it runs on Windows XP … you know … without the blur
http://poshcode.org/1865

PowerShell Code Repository - Set-OutlookSignature
Script to create an Outlook signature based on user information from Active Directory.
http://poshcode.org/2379

PowerShell Code Repository - Set-OutlookSignature.ps1
Create Outlook signature based on user information from Active Directory. Settings for versioning, template-files, enforcing for New and ReplyForward are stored in the registry.
http://poshcode.org/1994

PowerShell Code Repository - Set-OutlookSignature.ps1
Create Outlook signature based on user information from Active Directory. Settings for versioning, template-files, enforcing for New and ReplyForward are stored in the registry.
http://poshcode.org/1995

PowerShell Code Repository - Set-PowerGUIWelcomePage
PowerShell Code Repository - Get-MX
http://poshcode.org/1129

PowerShell Code Repository - Set-PowerGUIWelcomePage
PowerShell Code Repository - Get-OpenLDAP.ps1
http://poshcode.org/860

PowerShell Code Repository - Set-PowerGUIWelcomePage
PowerShell Code Repository - Import-GmailFilterXml
http://poshcode.org/961

PowerShell Code Repository - Set-PowerGUIWelcomePage
PowerShell Code Repository - vibackup-lx1.ps1
http://poshcode.org/984

PowerShell Code Repository - Set-PrimaryDnsSuffix
Sets the system primary DNS suffix by p-invoking the Win32 API. Returns true for success, false for failure.
http://poshcode.org/2955

PowerShell Code Repository - Set-PrimaryDnsSuffix
Sets the system primary DNS suffix by p-invoking the Win32 API. Returns true for success, false for failure.
http://poshcode.org/2958

PowerShell Code Repository - Set-Prompt
My command Prompt
http://poshcode.org/1834

PowerShell Code Repository - Set-Prompt
My command Prompt — I recently added a “Pastable” option so that I can safely copy-paste a commandline and have it run without having to manually edit out my prompt.
http://poshcode.org/2095

PowerShell Code Repository - Set-Prompt
My command prompt, as always. I leave this in a separate script file and invoke it from my profile. That way I can RE-invoke it to reset my prompt if I have to mess with it for some reason.
http://poshcode.org/3198

PowerShell Code Repository - Set-PsBreakPointLastErro
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2221

PowerShell Code Repository - Set-PSObjectDefaultPrope
Set-PSObjectDefaultProperties sets the default properties for a PSObject. This is for PowerShell V2 to work around a bug with V2.
http://poshcode.org/1523

PowerShell Code Repository - Set-PSODefaultProperties
Set-PSObDefaultProperties sets the default properties for a PSObject. This is for PowerShell V2 to work around a bug with V2.
http://poshcode.org/1542

PowerShell Code Repository - Set-RDPSetting
Function/script to set settings in a RDP file for Terminal Services. Supports pipeline input and smart conversion of bools.
http://poshcode.org/679

PowerShell Code Repository - Set-RemoteRegistryKeyPro
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2222

PowerShell Code Repository - Set-ScreenResolution.ps1
PowerShell Code Repository - Resize-Image
http://poshcode.org/2001

PowerShell Code Repository - Set-SecureAutoLogon
This code does the same thing as Sysinternals AutoLogon.exe. However this allows for automation of the task.
http://poshcode.org/2981

PowerShell Code Repository - Set-SecureAutoLogon
This code does the same thing as Sysinternals AutoLogon.exe. However this allows for automation of the task.
http://poshcode.org/2982

PowerShell Code Repository - Set-SendAs
Set the Send As permissions on an exchange 2007 mailbox.
http://poshcode.org/600

PowerShell Code Repository - Set-SendAs
Set the Send As permissions on an exchange 2007 mailbox.
http://poshcode.org/602

PowerShell Code Repository - Set-SolarizedHostColor
Set the colors for Solarized theme in PowerShell ISE (or in the PowerShell.exe console if started from a shortcut modified by Install-Solarized)
http://poshcode.org/3081

PowerShell Code Repository - Set-TopMost
Set applications/windows on top of other windows
http://poshcode.org/1837

PowerShell Code Repository - Set-ToStringMethod
Using created on-the-fly ps1xml it will change .ToString() method of a given type to scriptblock provided by user. No checking performed so you may end up with completely useless ToString() method. But since default one (if I’m not mistaken inherited from System.Object) is as useless as possible (returns object’s type fullname, see examples for output before after, you will get the picture… ;)
http://poshcode.org/2546

PowerShell Code Repository - Set-UserCannotChangePass
Set the “user Cannot Change Password” property on an active directory user object
http://poshcode.org/3049

PowerShell Code Repository - Set-UserCannotChangePass
Set the “user Cannot Change Password” property on an active directory user object
http://poshcode.org/682

PowerShell Code Repository - Set-VMBuildCSV
PowerShell/PowerCLI GUI interface that lets you build CSV file using values from vSphere server. It negates any possible spelling errors that occurs often when creating CSV file for automated VM build scripts.
http://poshcode.org/3221

PowerShell Code Repository - Set-VMBuildCSVDeploy
Build VMs using CSV file created by Set-VMBUILDCSV.ps1 GUI script.
http://poshcode.org/3222

PowerShell Code Repository - Set-Wallpaper (CTP2)
Set-Wallpaper lets you set your windows desktop wallpaper, requires PInvoke and I wrote it using CTP2’s Add-Type, although it could be done in v1 using the JIT code generation tricks Lee Holmes has mentioned in the past …
http://poshcode.org/488

PowerShell Code Repository - Set-Wallpaper (CTP2)
Set-Wallpaper lets you set your windows desktop wallpaper. It requires PInvoke and I wrote it using CTP2’s Add-Type, although it could be done in v1 using the JIT code generation tricks Lee Holmes has mentioned in the past …
http://poshcode.org/491

PowerShell Code Repository - Set-Wallpaper (CTP3)
Set-Wallpaper lets you set your windows desktop wallpaper. It requires PInvoke and I wrote it using PowerShell 2’s Add-Type, although it could be done in v1 using the JIT code generation tricks Lee Holmes has mentioned in the past …
http://poshcode.org/2553

PowerShell Code Repository - Set-Wallpaper (CTP3)
Set-Wallpaper lets you set your windows desktop wallpaper. It requires PInvoke and I wrote it using PowerShell 2’s Add-Type, although it could be done in v1 using the JIT code generation tricks Lee Holmes has mentioned in the past …
http://poshcode.org/2603

PowerShell Code Repository - Set-Wallpaper (CTP3)
Set-Wallpaper lets you set your windows desktop wallpaper. It requires PInvoke and I wrote it using PowerShell 2’s Add-Type, although it could be done in v1 using the JIT code generation tricks Lee Holmes has mentioned in the past …
http://poshcode.org/815

PowerShell Code Repository - Set-Watcher.ps1
PowerShell Code Repository -
http://poshcode.org/2501

PowerShell Code Repository - Set-WebConfig
PowerShell Code Repository - Set-Computername
http://poshcode.org/536

PowerShell Code Repository - Set-WebConfig
PowerShell Code Repository - Set-IPAddress
http://poshcode.org/532

PowerShell Code Repository - Set-WebConfig
A function to set a sql connection string in a web.config file
http://poshcode.org/528

PowerShell Code Repository - Set-WindowTransparent
Sets a very subtle windows transparency for powershell.
http://poshcode.org/2295

PowerShell Code Repository - Set-WinSchedule
PowerShell Code Repository - Get-FtpList
http://poshcode.org/1693

PowerShell Code Repository - Set-WinSchedule
Set-Computer gives a GUI to select a schedule and schedules a task using schtasks. This is a beta. There are still a lot of features to implement. Please read through the synopsis->Description to see the list of features that I hope to get in a final release.
http://poshcode.org/1694

PowerShell Code Repository - Set-WinSchedule
Set-WinSchedule gives a GUI to select a schedule and schedules a task using schtasks. This is a beta. There are still a lot of features to implement. Please read through the synopsis->Description to see the list of features that I hope to get in a final release.
http://poshcode.org/1695

PowerShell Code Repository - Set-WLWAutoLink
From Shay’s blog entry: http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2009/06/07/auto-link-powershell-cmdlet-names-in-windows-live-writer.aspx
http://poshcode.org/1149

PowerShell Code Repository - Set-Writable
From PSCX, this filter can be used to change a file’s read only status.
http://poshcode.org/1389

PowerShell Code Repository - SetDefaultPrinter.ps1
Set a printer as default for any user who has ever logged onto any given computer in a domain.
http://poshcode.org/2987

PowerShell Code Repository - SetDefaultPrinter.ps1
Set a printer as default for any user who has ever logged onto any given computer in a domain.
http://poshcode.org/2988

PowerShell Code Repository - SetDefaultPrinter.ps1
Set a printer as default for any user who has ever logged onto any given computer in a domain.
http://poshcode.org/2989

PowerShell Code Repository - Shaped WPF Windows
This script will take a Twitter User’s Screen name and get their RSS feed of posts
http://poshcode.org/2686

PowerShell Code Repository - SharePoint build script
Helper functions for my SharePoint build script. Still a work in progress as I expand the helper methods to work with more of my SP projects. Relies on several assumptions: 1) MSBuild function assumes we’re using VS 2008 projects, 2) General assumption that we have exactly 1 Solution package and 1 Feature (or 0 Features), 3) /tools subfolder includes WSPBuilder, 4) /src subfolder includes all project source, 5) /deployment subfolder is our desired output directory, 6) /buildscript is where this script is hosted, 7) Project root namespace = Assembly name = Folder name = Project name.csproj = Solution name.sln = Feature name = Solution name.wsp.
http://poshcode.org/1421

PowerShell Code Repository - SharePoint build script
Helper functions for my SharePoint build script. Still a work in progress as I expand the helper methods to work with more of my SP projects. Relies on several assumptions: 1) MSBuild function assumes we’re using VS 2008 projects, 2) General assumption that we have exactly 1 Solution package and 1 Feature (or 0 Features), 3) /tools subfolder includes WSPBuilder, 4) /src subfolder includes all project source, 5) /deployment subfolder is our desired output directory, 6) /buildscript is where this script is hosted, 7) Project root namespace = Assembly name = Folder name = Project name.csproj = Solution name.sln = Feature name = Solution name.wsp.
http://poshcode.org/1488

PowerShell Code Repository - SharePoint build script
Helper functions for my SharePoint build script. Still a work in progress as I expand the helper methods to work with more of my SP projects. Relies on several assumptions: 1) MSBuild function assumes we’re using VS 2008 projects, 2) General assumption that we have exactly 1 Solution package and 1 Feature (or 0 Features), 3) /tools subfolder includes WSPBuilder, 4) /src subfolder includes all project source, 5) /deployment subfolder is our desired output directory, 6) /buildscript is where this script is hosted, 7) Project root namespace = Assembly name = Folder name = Project name.csproj = Solution name.sln = Feature name = Solution name.wsp.
http://poshcode.org/1489

PowerShell Code Repository - SharePoint Large Lists
Provides details for every large list in the farm. As it is utilitarian, this script does not provide periodic status updates or provide any kind of error handling.
http://poshcode.org/1252

PowerShell Code Repository - SharePoint Large Lists
Provides details for every large list in the farm. As it is utilitarian, this script does not provide periodic status updates, though it could be programmed to do so.
http://poshcode.org/1251

PowerShell Code Repository - SharePoint Large Lists
Provides details for every large list in the farm. As it is utilitarian, this script does not provide periodic status updates, though it could be programmed to do so.
http://poshcode.org/3110

PowerShell Code Repository - SharePoint Site Owners
PowerShell Code Repository - WIMM Emulator Launcher
http://poshcode.org/3044

PowerShell Code Repository - SharePoint UserID grab
PowerShell Code Repository - PROMPT: Battery life
http://poshcode.org/739

PowerShell Code Repository - SharePoint UserID grab
PowerShell Code Repository - SharePoint UserID grab
http://poshcode.org/740

PowerShell Code Repository - SharpSsh 3
I’ve tweaked New-SshSession again, this time it supports multiple parameter sets (including one with the password in plain text, and one which takes a PSCredential).
http://poshcode.org/2099

PowerShell Code Repository - SharpSsh Functions
A few wrapper functions to make working with the SSH portion of SharpSSH easier: New-SshSession, Invoke or Send Ssh commands, Receive output, all with support for “Expect” ... which means we’ll continue reading from the ssh output until we see the expected output, and then stop.
http://poshcode.org/877

PowerShell Code Repository - SharpSsh Functions
I’ve tweaked New-SshSession to read the default prompt, means you can just New-SshSession; Invoke-Ssh ls … and go on with life.
http://poshcode.org/1010

PowerShell Code Repository - SharpSSH Module
I fixed some stuff.
http://poshcode.org/1034

PowerShell Code Repository - SharpSSH Module
As promised, I started to expand on Joel’s functions (http://poshcode.org/877). A lot of stuff is missing, but… I have big plans for this module and a PKI module I want to write.
http://poshcode.org/979

PowerShell Code Repository - Shell.ShellLink
A wrapper class for shell shortcut files from vbAccelerator which makes it easy to read & write shell links.
http://poshcode.org/2407

PowerShell Code Repository - Shift Operators
The missing Shift operators. Note that for v1 you need to change Add-Type to New-Type
http://poshcode.org/887

PowerShell Code Repository - Shift Operators
The missing Shift operators. Note that for v1 you need to change Add-Type to New-Type
http://poshcode.org/888

PowerShell Code Repository - Shift Operators
The missing Shift operators. Note that for v1 you need to change Add-Type to New-Type
http://poshcode.org/891

PowerShell Code Repository - Shift Operators(Correct)
PowerShell Code Repository - Shift Operators
http://poshcode.org/892

PowerShell Code Repository - Show-ADGroupMembership
This script uses the Quest AD cmdlets to retrieve AD Groups from an LDAP search root and maps their membership (shows nested groups using Doug Finke’s Show-NetMap scripts that leverage the Microsoft Research NetMap project. Improvements or suggestions welcomed!
http://poshcode.org/684

PowerShell Code Repository - Show-ADObject
This is a modification of the Get-ADMapObject (http://poshcode.org/706). This script uses the Show-NodeXLMap script (http://poshcode.org/733) to display the hierarchical relationship between Active Directory objects of the selected classes. Running this script with the -ShowADClass switch lists out the different classes or types of AD objects available.
http://poshcode.org/734

PowerShell Code Repository - Show-ColorizedContent.ps
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2223

PowerShell Code Repository - Show-ConsoleMenu
Shows a vertical “menu” in the console and allows you to pick numeric items from it.
http://poshcode.org/2900

PowerShell Code Repository - Show-Fonts
A PowerBoots 1-liner to display all the fonts on your system.
http://poshcode.org/1898

PowerShell Code Repository - Show-HtmlHelp.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2224

PowerShell Code Repository - Show-NodeXLMap
Update version of Doug Finke’s Show-NetMap script (http://www.dougfinke.com/blog/?p=465). The NetMap research project has been renamed to NodeXL and is available on Codeplex (http://www.codeplex.com/nodexl). This script is updated to use the new code and adds support for adding color to the map points.
http://poshcode.org/733

PowerShell Code Repository - Show-Sample1
A demonstration of how to do menus and commands in ShowUI (it works against the Latest Changeset ‘d7ad095858eb’ right now, so you can just hit the download link on the right of that page).
http://poshcode.org/2668

PowerShell Code Repository - Show-Sample1
A demonstration of how to do menus and commands in ShowUI (it works against the Latest Changeset ‘d7ad095858eb’ right now, so you can just hit the download link on the right of that page).
http://poshcode.org/2669

PowerShell Code Repository - ShowUI Binary Clock
Uses ShowUI to display a binary clock. Hotkeys H, T and D toggle Help, Time and Date text and +/- keys resize. Click and drag anywhere to move. Double-Click to close. This was inspired by Boe Prox’s post at: http://learn-powershell.net/2011/07/06/building-a-binary-clock-with-powershell/ and the release of ShowUI 1.1
http://poshcode.org/2778

PowerShell Code Repository - ShowUI Clock 4
This is another analog clock, with “hands” and old school stopped movement (no click sound, but maybe you could add that)...
http://poshcode.org/2806

PowerShell Code Repository - ShowUI Clock 5
This is a lightweight version of the target clock: no animations, instead it has a nice stopped-motion second hand.
http://poshcode.org/2807

PowerShell Code Repository - ShowUI Clock 6
This clock is digital. No fancy sweeping movements and animations here, but you do get to see the date and day of the week, and you can easily play with fonts and colors to suit your desktop …
http://poshcode.org/2808

PowerShell Code Repository - ShowUI Text Converter
PowerShell Code Repository - Copy-GroupMembership.ps1
http://poshcode.org/2965

PowerShell Code Repository - ShowUI Text Converter
PowerShell Code Repository - ShowUI Text Converter
http://poshcode.org/2966

PowerShell Code Repository - ShowUI Weather Widget
This is a simple weather forecast widget that shows the current temperature and forecast. Don’t forget to change the $woEID to the right one for your location.
http://poshcode.org/2809

PowerShell Code Repository - Sith
The VBS script is intended to audit an Active Directory Domain Controller by the events that it generates in the event log. Most usefull events are harvested and piped out into a report that will also generate a summary report of the main report and also e-mail the report to an admin.
http://poshcode.org/2650

PowerShell Code Repository - Sith Remote logon mon
This VBS script will notify the user who is running the script by e-mail when a remote windows7 machine is in the process of being unlocked. The script is an active running script that will run as a continuous process until killed from the process monitor window. The script will not work if the host or target machine is offline.
http://poshcode.org/2651

PowerShell Code Repository - Skip-Object
Skip -every 3rd, or -upto 3 at a time, or the -first 3, or the -last 3 or any combination of the above …
http://poshcode.org/1749

PowerShell Code Repository - Skip-Object
Skip -every 3rd, or -upto 3 at a time, or the -first 3, or the -last 3 or any combination of the above …
http://poshcode.org/1778

PowerShell Code Repository - SMS hierarchy in Visio
The script smsDiagram draws your SMS 2003 hierarchy in Visio 2003. Script itself is commented in my blog at http://powershell-cz.blogspot.com/2009/03/smsdiagram-draw-your-sms-hierarchy-with.html
http://poshcode.org/941

PowerShell Code Repository - SMS.psm1
Module with functions to make it easy to query the SMS provider directly through WMI
http://poshcode.org/597

PowerShell Code Repository - SMS.psm1
Module with functions to make it easy to query the SMS provider directly through WMI. (Updated for PowerShell v2 w/auto-help). Update the $default_wmi_provider_server and $default_site variables to match your environment.
http://poshcode.org/985

PowerShell Code Repository - SMS.psm1
Module with functions to make it easy to query the SMS provider directly through WMI. (Updated for PowerShell v2 w/auto-help). Update the $default_wmi_provider_server and $default_site variables to match your environment.
http://poshcode.org/986

PowerShell Code Repository - SnapReminder
Remind the users of their snapshots – for use in VMware, see this post for more details: http://www.virtu-al.net/2009/06/22/powercli-snapreminder/
http://poshcode.org/1189

PowerShell Code Repository - Snapshot VM in a folder
Snapshot all vm’s in a folder, I use this make nightly snaps of a certain set of servers. Although I would prefer a backup product, this will do for now.
http://poshcode.org/487

PowerShell Code Repository - SNTP
Get and Set functions for SNTP
http://poshcode.org/2604

PowerShell Code Repository - Solarized (Dark) Theme
A Theme for PowerShell ISE 3 CTP2 following the solarized theme with a dark background. See also “the Set-SolarizedHostColor script“http://poshcode.org/3081 and the Install-Solarized script for PowerShell.exe
http://poshcode.org/3082

PowerShell Code Repository - sophos_mrupdate.ps1
A script for updating the message relay server used by a Sophos client.
http://poshcode.org/3160

PowerShell Code Repository - Sort-ISE
This function sorts the open editor pane starting at a specific column using the next length characters. It would be nice to wrap it with a small function showing a dialog to querry this values and to put this into the custom menue.
http://poshcode.org/792

PowerShell Code Repository - Sort-ISE_Boots
Here you find an example, how to expand ISE using PowerBoots to show a Dialog. It can be used to sort the contents of the editor starting with a specified line using the next length caracters. Improvments are wellcome, especially speed.
http://poshcode.org/800

PowerShell Code Repository - Sort-Random
PowerShell Code Repository - VHDFunctions.psm1
http://poshcode.org/145

PowerShell Code Repository - Speech Recognition
This is an update to my “Speech.psm1” script module for doing voice/speech recognition. With this version, speech macros will be executed asynchronously, so it doesn’t tie up the shell for the duration :) Of course, if the shell is actually BUSY, it will delay execution of macros. See usage examples at the bottom of the script.
http://poshcode.org/1173

PowerShell Code Repository - Speech Recognition
This is an update to my “Speech.psm1” script module for doing voice/speech recognition. With this version, speech macros will be executed asynchronously, so it doesn’t tie up the shell for the duration :) Of course, if the shell is actually BUSY, it will delay execution of macros. See usage examples at the bottom of the script.
http://poshcode.org/2671

PowerShell Code Repository - Speech Recognition 2
This version of the script supports using “*” to capture dictation. The result is that you can now write macros to look up words online, or pass parameters to a function (within the constraints of your voice recognition accuracy).
http://poshcode.org/1195

PowerShell Code Repository - Spin-Busy
PowerShell Code Repository - GPPreferencesPrinters
http://poshcode.org/159

PowerShell Code Repository - Spin-Busy
PowerShell Code Repository - Move-VMThin SVMotion
http://poshcode.org/158

PowerShell Code Repository - Spin-Busy
PowerShell Code Repository - Select-ToString
http://poshcode.org/157

PowerShell Code Repository - Split
Split a file into smaller files.
http://poshcode.org/2993

PowerShell Code Repository - Split-Every Function
Found this Groovy code ListUtils mixin with splitEvery function and worked up a PowerShell version. It takes a list of items and a number as parameters and creates a row with that many items in it.
http://poshcode.org/1401

PowerShell Code Repository - Split-Job
The Split-Job function provides easy multithreading at the command line or in a script. It was created from a system administrator’s point of view and is compatible with PS v1. Supports importing functions, variables and snapins. For history and background please visit http://www.jansveld.net/powershell.
http://poshcode.org/2619

PowerShell Code Repository - Split-Job V 1.2
PowerShell Code Repository - Split-Job Version 1.2
http://poshcode.org/2621

PowerShell Code Repository - Split-Job Version 1.2
The Split-Job function provides easy multithreading at the command line or in a script. It was created from a system administrator’s point of view and is compatible with PS v1. Supports importing functions, variables and snapins. For history and background please visit http://www.jansveld.net/powershell.
http://poshcode.org/2620

PowerShell Code Repository - Split-String
Splits a string (by default, on whitespace), and allows you to pick and chose which pieces are returned. Something like “cut” in bash…
http://poshcode.org/2366

PowerShell Code Repository - Split-String
Splits a string (by default, on whitespace), and allows you to pick and chose which pieces are returned. Something like “cut” in bash…
http://poshcode.org/2054

PowerShell Code Repository - Split-String
Splits a string (by default, on whitespace), and allows you to pick and chose which pieces are returned. Something like “cut” in bash…
http://poshcode.org/895

PowerShell Code Repository - Split-TextToLines Demo
Demo of different ways to split a text into lines. Sorry I have not yet another nice way to post code in my blog. http://pauerschell.blogspot.com/. Understanding TextToLines splitting is basic to ISE-Extensions.
http://poshcode.org/886

PowerShell Code Repository - Split-TextToLines Demo
Demo of different ways to split a text into lines. Sorry I have not yet another nice way to post code in my blog. http://pauerschell.blogspot.com/. Understanding TextToLines splitting is basic to ISE-Extensions.
http://poshcode.org/883

PowerShell Code Repository - Split-TextToLines Demo
ESXi virtual machine VLAN check on two NIC configuration ESXi server.
http://poshcode.org/3201

PowerShell Code Repository - Spread-Mailboxes.ps1
PowerShell Code Repository - Invoke-MoveRequest
http://poshcode.org/1839

PowerShell Code Repository - SQL Log Backup
PowerShell Code Repository - Async SQL Backup
http://poshcode.org/2788

PowerShell Code Repository - SQLite Read / Write
PowerShell Code Repository - SQLite Read / Write
http://poshcode.org/2879

PowerShell Code Repository - SQLite Read / Write
PowerShell Code Repository - WriteFileName
http://poshcode.org/2878

PowerShell Code Repository - SQLParser.ps1
Uses Visual Studio Database Edition classes Microsoft.Data.Schema.ScriptDom and Microsoft.Data.Schema.Script.Sql to parse T-SQL
http://poshcode.org/1445

PowerShell Code Repository - SqlProxy.psm1
Based on functions in SQLPSX. SqlProxy.psm1 module is used for administering SQL Server logins, users, and roles. Designed to be used with PS Remoting. All actions audited to a custom Eventlog. See Write-SqlProxyLog for log setup details
http://poshcode.org/2997

PowerShell Code Repository - SqlProxy.psm1
Based on functions in SQLPSX. SqlProxy.psm1 module is used for administering SQL Server logins, users, and roles. Designed to be used with PS Remoting. All actions audited to a custom Eventlog. See Write-SqlProxyLog for log setup details
http://poshcode.org/3077

PowerShell Code Repository - SqlProxy.psm1
Based on functions in SQLPSX. SqlProxy.psm1 module is used for administering SQL Server logins, users, and roles. Designed to be used with PS Remoting. All actions audited to a custom Eventlog. See Write-SqlProxyLog for log setup details
http://poshcode.org/3038

PowerShell Code Repository - SqlProxy.psm1
Based on functions in SQLPSX. SqlProxy.psm1 module is used for administering SQL Server logins, users, and roles. Designed to be used with PS Remoting. All actions audited to a custom Eventlog. See Write-SqlProxyLog for log setup details
http://poshcode.org/3040

PowerShell Code Repository - SqlProxy.psm1
Based on functions in SQLPSX. SqlProxy.psm1 module is used for administering SQL Server logins, users, and roles. Designed to be used with PS Remoting. All actions audited to a custom Eventlog. See Write-SqlProxyLog for log setup details
http://poshcode.org/3021

PowerShell Code Repository - SqlProxy.psm1
Based on functions in SQLPSX. SqlProxy.psm1 module is used for administering SQL Server logins, users, and roles. Designed to be used with PS Remoting. All actions audited to a custom Eventlog. See Write-SqlProxyLog for log setup details
http://poshcode.org/3022

PowerShell Code Repository - SqlProxy.psm1
Based on functions in SQLPSX. SqlProxy.psm1 module is used for administering SQL Server logins, users, and roles. Designed to be used with PS Remoting. All actions audited to a custom Eventlog. See Write-SqlProxyLog for log setup details
http://poshcode.org/3023

PowerShell Code Repository - SqlProxy.psm1
Based on functions in SQLPSX. SqlProxy.psm1 module is used for administering SQL Server logins, users, and roles. Designed to be used with PS Remoting. All actions audited to a custom Eventlog. See Write-SqlProxyLog for log setup details
http://poshcode.org/3030

PowerShell Code Repository - SqlProxy.psm1
Based on functions in SQLPSX. SqlProxy.psm1 module is used for administering SQL Server logins, users, and roles. Designed to be used with PS Remoting. All actions audited to a custom Eventlog. See Write-SqlProxyLog for log setup details
http://poshcode.org/3036

PowerShell Code Repository - sqlps2
A C# source file created by running make-shell to create a SQL Server minishell
http://poshcode.org/1885

PowerShell Code Repository - SQLPSX SSIS Demo
A PowerShell script that demonstrates working with SSIS using the SQL Server PowerShell Extensions module SSIS.
http://poshcode.org/1769

PowerShell Code Repository - SSL Oblivious Web Client
This function creates a web client that will ignore all SSL certificate errors. Useful for uploading (HTTP PUT, maybe POST as well) to an https web server using a self-signed cert.
http://poshcode.org/624

PowerShell Code Repository - SSL Oblivious Web Client
This function creates a web client that will ignore all SSL certificate errors. Useful for uploading (HTTP PUT, maybe POST as well) to an https web server using a self-signed cert.
http://poshcode.org/634

PowerShell Code Repository - Start-AppVTestMode
This Script allows testing of newly sequenced App-V apps without having to specify the file:// URL in the OSD, or distributing via the App-V infrastructure or SCCM. It scans a directory and loads all XML manifests for app-v packages in that directory, overriding the default distribution URLs.
http://poshcode.org/2089

PowerShell Code Repository - Start-AtomToJabber
PowerShell Code Repository - Invoke-SqlCmd2
http://poshcode.org/179

PowerShell Code Repository - Start-BootsTimer
A stay-on-top (borderless window) countdown timer, with a percentage-based color progress bar as well as sizeable font … as well as audio file and voice alarms.
http://poshcode.org/1045

PowerShell Code Repository - Start-BootsTimer
A stay-on-top (borderless window) countdown timer, with a percentage-based color progress bar as well as sizeable font … as well as audio file and voice alarms.
http://poshcode.org/1046

PowerShell Code Repository - Start-BootsTimer
Updated for PowerBoots 0.2: A stay-on-top (borderless window) countdown timer, with a percentage-based color progress bar as well as sizable font … as well as audio file and voice alarms.
http://poshcode.org/1218

PowerShell Code Repository - Start-BootsTimer
Updated for PowerBoots 0.2: http://screencast.com/t/drKhZbMv0S A stay-on-top (borderless window) countdown timer, with a percentage-based color progress bar as well as sizable font … as well as audio file and voice alarms.
http://poshcode.org/1239

PowerShell Code Repository - Start-Cassini
Start up the .Net 4.0 Cassini Webserver. Useful for those of us who like to avoid opening visual studio
http://poshcode.org/3034

PowerShell Code Repository - Start-Cassini
Start up the .Net 4.0 Cassini Webserver. Useful for those of us who like to avoid opening visual studio
http://poshcode.org/2789

PowerShell Code Repository - Start-ComputerJobs
The Start-ComputerJobs cmdlet runs a specified scriptblock within a maximum number of simultaneously spawned Powershell jobs.
http://poshcode.org/1940

PowerShell Code Repository - Start-ComputerJobs
The Start-ComputerJobs cmdlet runs a specified scriptblock within a maximum number of simultaneously spawned Powershell jobs.
http://poshcode.org/1941

PowerShell Code Repository - Start-ComputerJobs
The Start-ComputerJobs cmdlet runs a specified scriptblock within a maximum number of simultaneously spawned Powershell jobs.
http://poshcode.org/1939

PowerShell Code Repository - Start-Demo 3.3
This is an overhaul of Jeffrey Snover’s original Start-Demo script … I’ve switched it to use ReadKey, which saves you some typing and makes the whole thing seem more natural when you’re demoing, (at least to me). I’ve also added a bunch of command-line options and a couple of features in the process (see the Revision History in the script).
http://poshcode.org/176

PowerShell Code Repository - Start-Demo 3.3.1
This is an overhaul of Jeffrey Snover’s original Start-Demo script … I’ve switched it to use ReadKey, which saves you some typing and makes the whole thing seem more natural when you’re demoing, (at least to me). I’ve also added a bunch of command-line options and a couple of features in the process (see the Revision History in the script).
http://poshcode.org/302

PowerShell Code Repository - Start-Demo 3.3.2
This is an overhaul of Jeffrey Snover’s original Start-Demo script … I’ve switched it to use ReadKey, which saves you some typing and makes the whole thing seem more natural when you’re demoing, (at least to me). I’ve also added a bunch of command-line options and a couple of features in the process (see the Revision History in the script).
http://poshcode.org/690

PowerShell Code Repository - Start-Demo 3.3.3
This is an overhaul of Jeffrey Snover’s original Start-Demo script … I’ve switched it to use ReadKey, which saves you some typing and makes the whole thing seem more natural when you’re demoing, (at least to me). I’ve also added a bunch of command-line options and a couple of features in the process (see the Revision History in the script).
http://poshcode.org/705

PowerShell Code Repository - Start-Elevated
A simple function based on http://www.peterprovost.org/archive/2007/02/25/22315.aspx to launch a process elevated — basically, this is the UAC equivalent of sudo (and therefore, will almost always require you to at least click OK).
http://poshcode.org/165

PowerShell Code Repository - Start-Encryption
Download and install Google Chromium if there is a newer version available.
http://poshcode.org/2960

PowerShell Code Repository - Start-Encryption
Functions to encrypt and decrypt strings using the Rijndael symmetric key algorithm
http://poshcode.org/2593

PowerShell Code Repository - Start-Encryption
Functions to encrypt and decrypt strings using the Rijndael symmetric key algorithm
http://poshcode.org/2594

PowerShell Code Repository - Start-Encryption
Functions to encrypt and decrypt strings using the Rijndael symmetric key algorithm
http://poshcode.org/1432

PowerShell Code Repository - Start-Encryption
Functions to encrypt and decrypt strings using the Rijndael symmetric key algorithm
http://poshcode.org/116

PowerShell Code Repository - Start-IRCJabberBridge
Creates a bridge between (any) MUC chatroom and a Jabber user — by default it joins the #PowerShell channel at IRC.FreeNode.net and echos everything said there to you, and everything you say to it … to the chat room. Really quite useless, except as a demonstration.
http://poshcode.org/106

PowerShell Code Repository - Start-IRCJabberBridge
Creates a bridge between (any) MUC chatroom and a Jabber user — by default it joins the #PowerShell channel at IRC.FreeNode.net and echos everything said there to you, and everything you say to it … to the chat room. Really quite useless, except as a demonstration.
http://poshcode.org/178

PowerShell Code Repository - Start-ISE
PowerShell Code Repository -
http://poshcode.org/758

PowerShell Code Repository - Start-Job proxy function
Example on how to use Proxy Cmdlets in combination with object events.
http://poshcode.org/2491

PowerShell Code Repository - Start-Job proxy function
Example on how to use Proxy Cmdlets in combination with object events.
http://poshcode.org/2492

PowerShell Code Repository - Start-MyTranscript
This script, given a root path, will start a transcript with a unique and standardized file name. You can throw a call to this at the end of your profile, and you’ll always have a transcript of every session (if the host you’re using supports starting a transcript).
http://poshcode.org/2986

PowerShell Code Repository - Start-Presentation
My current (WPF 4 compatible) PowerBoots-based Presentation Module. REQUIRES PresentationFrame.xaml and, of course, PowerBoots
http://poshcode.org/2105

PowerShell Code Repository - Start-Presentation
My current (WPF 4 compatible) PowerBoots-based Presentation Module. REQUIRES PresentationFrame.xaml and, of course, PowerBoots
http://poshcode.org/2106

PowerShell Code Repository - Start-Presentation
The beginnings of a framework for driving (WPF) presentations from PowerShell
http://poshcode.org/1020

PowerShell Code Repository - Start-Process
This is a simple function that can “Start” apps and return the PROCESS object. In particular, it can start URIs, documents, and apps defined in the “App Paths” registry, and basically anything that you could start from the run dialog.
http://poshcode.org/741

PowerShell Code Repository - Start-ProcessAsAdministr
Original author: James Brundage @ Microsoft
http://poshcode.org/1057

PowerShell Code Repository - Start-ProcessAsUser.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2225

PowerShell Code Repository - Start-RDP
PowerShell Code Repository - NTFS ACLs Folder Tree
http://poshcode.org/3247

PowerShell Code Repository - Start-RDP
Function/script to launch Remote Desktop sessions from command line, RDP file or pipeline using Terminal Services Client.
http://poshcode.org/3095

PowerShell Code Repository - Start-RDP
Function/script to launch Remote Desktop sessions from command line, RDP file or pipeline using Terminal Services Client.
http://poshcode.org/676

PowerShell Code Repository - Start-Selected
Usuallay I use this to start my browser with a URL in some PowerShell Script or retrieved by some Powershell Script. This is an ISE-Extension.
http://poshcode.org/1297

PowerShell Code Repository - Start-SQL 1.0
A series of functions to handle getting data from SQL Servers. Think of these more as tutorials for using SQL Server from powershell than as a finished set of scripts.
http://poshcode.org/115

PowerShell Code Repository - Start-TimeoutDialog
Displays a custom dialog box for a timeout period. The dialog box contains a message, two buttons and a countdown timer. The button text and other options are set through the parameters. The WSHShell.Popup has a bug so replace it with this script.
http://poshcode.org/2610

PowerShell Code Repository - Start-Timer
The kitchen timer with a kitchen sink -full of features
http://poshcode.org/161

PowerShell Code Repository - Start-Verify
PowerShell Code Repository - Get-BracketContent
http://poshcode.org/715

PowerShell Code Repository - Start-Verify
This script logs all commands entered at the prompt (similar to Start-Transcript, but without the output logging). I got the idea from @testfirst on Twitter.
http://poshcode.org/716

PowerShell Code Repository - Start-Verify
This script logs all commands entered at the prompt (similar to Start-Transcript, but without the output logging). I got the idea from @testfirst on Twitter.
http://poshcode.org/717

PowerShell Code Repository - Start-Verify
This script logs all commands entered at the prompt (similar to Start-Transcript, but without the output logging). I got the idea from @testfirst on Twitter.
http://poshcode.org/712

PowerShell Code Repository - Stop-Pipeline
Use this to stop scripts running in PowerShell.exe in mid-stride.
http://poshcode.org/1582

PowerShell Code Repository - Stop-ProcessRemote
In an interesting design choice, Get-Process lets you work with processes on remote machines, but Stop-Process does not. This cmdlet uses WMI to stop a process on a remote machine.
http://poshcode.org/1944

PowerShell Code Repository - style acording video res
This code is a script that sets the width of a div according to client’s monitor resolution. Very useful when we have a varied audience
http://poshcode.org/2450

PowerShell Code Repository - style acording video res
This code is a script that sets the width of a div according to client’s monitor resolution. Very useful when we have a varied audience
http://poshcode.org/2451

PowerShell Code Repository - sudo
My sudo script runs commands or apps elevated without prompting. But it’s awfully hacky :(
http://poshcode.org/1804

PowerShell Code Repository - sudo for Powershell
PowerShell Code Repository - sudo for Powershell
http://poshcode.org/3057

PowerShell Code Repository - sudo for Powershell
PowerShell Code Repository - Test-TCPPort
http://poshcode.org/3056

PowerShell Code Repository - sudo for Powershell
Updated from other people’s attempts. Useful for calling programs (notepad.exe, etc) or for running powershell scripts in an elevated prompt (use the -ps flag)
http://poshcode.org/1872

PowerShell Code Repository - sudo for Powershell
Updated from other people’s attempts. Useful for calling programs (notepad.exe, etc) or for running powershell scripts in an elevated prompt (use the -ps flag)
http://poshcode.org/1873

PowerShell Code Repository - sudo for Powershell
Updated from other people’s attempts. Useful for calling programs (notepad.exe, etc) or for running powershell scripts in an elevated prompt (use the -ps flag)
http://poshcode.org/1874

PowerShell Code Repository - Suspend-Process
A couple of functions to suspend and resume applications (like what you do with Resource Monitor).
http://poshcode.org/2995

PowerShell Code Repository - SVMotion-VM
PowerShell Code Repository -
http://poshcode.org/584

PowerShell Code Repository - SVMotion-VM
PowerShell Code Repository - SVMotion-VM
http://poshcode.org/575

PowerShell Code Repository - SVMotion-VM
Does “real” SVMotion of a VM. FWIW, Carter did it first here: http://communities.vmware.com/docs/DOC-6051, but it was made for PS V2 CTP2 which this function does not require. Plus, I like mine better.
http://poshcode.org/574

PowerShell Code Repository - Sybase Error Log Check
PowerShell Code Repository - New-PemFile
http://poshcode.org/3076

PowerShell Code Repository - Sync-Time
Syncs the system time with that of a remote time server. Uses NetCmdlets.
http://poshcode.org/1121

PowerShell Code Repository - SyntaxHighlighter Brush
A PowerShell 2.0 Brush for the javascript SyntaxHighlighter
http://poshcode.org/1097

PowerShell Code Repository - SyntaxHighlighter Brush
A PowerShell 2.0 Brush for the javascript SyntaxHighlighter
http://poshcode.org/1014

PowerShell Code Repository - SyntaxHighlighter Brush
A PowerShell 2.0 Brush for the javascript SyntaxHighlighter
http://poshcode.org/1004

PowerShell Code Repository - TabExpansion
PowerShell Code Repository -
http://poshcode.org/806

PowerShell Code Repository - TabExpansion
PowerShell Code Repository -
http://poshcode.org/813

PowerShell Code Repository - TabExpansion
PowerShell Code Repository - Compile-Help
http://poshcode.org/1137

PowerShell Code Repository - TabExpansion
PowerShell Code Repository - Find-AmazonBook
http://poshcode.org/726

PowerShell Code Repository - TabExpansion
PowerShell Code Repository - Get-DesktopResolution.ps
http://poshcode.org/798

PowerShell Code Repository - TabExpansion
PowerShell Code Repository - Get-NaShares
http://poshcode.org/912

PowerShell Code Repository - TabExpansion
PowerShell Code Repository - Get-SRVPriority
http://poshcode.org/1126

PowerShell Code Repository - TabExpansion
PowerShell Code Repository - HuddledTricks
http://poshcode.org/846

PowerShell Code Repository - TabExpansion
PowerShell Code Repository - Invoke-ResetPassword
http://poshcode.org/880

PowerShell Code Repository - TabExpansion
PowerShell Code Repository - ISE-CopyOutPutToEditor
http://poshcode.org/781

PowerShell Code Repository - TabExpansion
PowerShell Code Repository - Ping-Subnet
http://poshcode.org/977

PowerShell Code Repository - TabExpansion
PowerShell Code Repository - PowerBot 2.0
http://poshcode.org/729

PowerShell Code Repository - TabExpansion
PowerShell Code Repository - Select-Random v2.2
http://poshcode.org/1180

PowerShell Code Repository - TabExpansion
PowerShell Code Repository - Show-ADObject
http://poshcode.org/736

PowerShell Code Repository - TabExpansion
PowerShell Code Repository - TabExpansion
http://poshcode.org/799

PowerShell Code Repository - TabExpansion
Ported TabExpansion from V2CTP2 to v1.0 and extended.
http://poshcode.org/722

PowerShell Code Repository - TabExpansion for V2CTP3
PowerShell Code Repository - TabExpansion
http://poshcode.org/807

PowerShell Code Repository - TabExpansion for V2CTP3
PowerShell Code Repository - TabExpansion
http://poshcode.org/847

PowerShell Code Repository - TabExpansion for V2CTP3
PowerShell Code Repository - TabExpansion
http://poshcode.org/1181

PowerShell Code Repository - TabExpansion for V2CTP3
Ported TabExpansion from V2CTP2 to V2CTP3 and extended. Please dot souce this script file to use.
http://poshcode.org/1127

PowerShell Code Repository - TabExpansion for V2CTP3
Ported TabExpansion from V2CTP2 to V2CTP3 and extended. Please dot souce this script file to use.
http://poshcode.org/1138

PowerShell Code Repository - TabExpansion for V2CTP3
Ported TabExpansion from V2CTP2 to V2CTP3 and extended. Please dot souce this script file to use.
http://poshcode.org/1106

PowerShell Code Repository - TabExpansion for V2CTP3
Ported TabExpansion from V2CTP2 to V2CTP3 and extended. Please dot souce this script file to use.
http://poshcode.org/881

PowerShell Code Repository - TabExpansion for V2CTP3
Ported TabExpansion from V2CTP2 to V2CTP3 and extended. Please dot souce this script file to use.
http://poshcode.org/978

PowerShell Code Repository - TabExpansion for V2CTP3
Ported TabExpansion from V2CTP2 to V2CTP3 and extended. Please dot souce this script file to use.
http://poshcode.org/913

PowerShell Code Repository - TabExpansion for V2CTP3
Ported TabExpansion from V2CTP2 to V2CTP3 and extended. Please dot souce this script file.
http://poshcode.org/814

PowerShell Code Repository - Tac (reverse cat)
PowerShell Code Repository - Get-XamlControlTemplate
http://poshcode.org/431

PowerShell Code Repository - Tac (reverse cat)
Originally posted by Keith Hill on microsoft.public.windows.powershell.
http://poshcode.org/433

PowerShell Code Repository - Tag-Alert (SCOM)
PowerShell Code Repository -
http://poshcode.org/582

PowerShell Code Repository - Take-Screenshot
This script has a function that allows you to take a screenshot of the entire desktop or of an active window. Also includes option to save the screenshot to a file.
http://poshcode.org/2021

PowerShell Code Repository - target.local
Add new smtp address from csv and set new address primary
http://poshcode.org/2634

PowerShell Code Repository - Test 2
Testing from PowerShell 2
http://poshcode.org/2244

PowerShell Code Repository - test connectivity
having problems with my dsl connection, a simple pinging log script
http://poshcode.org/1112

PowerShell Code Repository - Test if file is writable
PowerShell Code Repository -
http://poshcode.org/2235

PowerShell Code Repository - Test if file is writable
PowerShell Code Repository - Test if file is writable
http://poshcode.org/2236

PowerShell Code Repository - Test Ora Proc Wrapper 1
Powershell wrapper to an Oracle stored procedure returning one Ref cursor. Here it determines the version of the Oracle Server. You can substitute similar procedures.
http://poshcode.org/1062

PowerShell Code Repository - Test-64BitOS
This function will determine whether the local operating system architecture is 64-bit. This has been converted to PowerShell from the original C# code produced by Stefan Schultze
http://poshcode.org/2018

PowerShell Code Repository - Test-ADCredentials
Validates a username and password against Active Directory. Requires .NET 3.5 and PowerShell V2.
http://poshcode.org/1393

PowerShell Code Repository - Test-BufferBox 2.0
A tech demo: a scrolling buffer where you can type while it’s scrolling…
http://poshcode.org/730

PowerShell Code Repository - Test-Certificate
Tests specified certificate for certificate chain and revocation
http://poshcode.org/1633

PowerShell Code Repository - Test-Certificate
Tests specified certificate for certificate chain and revocation
http://poshcode.org/1644

PowerShell Code Repository - Test-Certificate
Tests specified certificate for certificate chain and revocation
http://poshcode.org/1646

PowerShell Code Repository - Test-EmptyFolder
PowerShell Code Repository - Set-SecureAutoLogon
http://poshcode.org/2983

PowerShell Code Repository - Test-FileLock
simle function to determine is file locked by external program or not.
http://poshcode.org/1363

PowerShell Code Repository - Test-FileLock
simle function to determine is file locked by external program or not.
http://poshcode.org/1364

PowerShell Code Repository - Test-GroupMembership
PowerShell Code Repository - Get-CertificationAuthori
http://poshcode.org/1397

PowerShell Code Repository - Test-Help
This script was written to test comment based help. In current version supports only v2 comments. Only minimal tests, so there may be some bugs…
http://poshcode.org/1983

PowerShell Code Repository - Test-Help
This script was written to test comment based help. In current version supports only v2 comments. Only minimal tests, so there may be some bugs…
http://poshcode.org/2006

PowerShell Code Repository - Test-Host
Test connectivity to the host using a ping or TCP port
http://poshcode.org/1130

PowerShell Code Repository - Test-Host V1
Test-Host for V1
http://poshcode.org/1315

PowerShell Code Repository - Test-IPMask
The .NET framework has the System.Net.IPAddress class which can be used to validate a string as an IP address. I wanted to do the same with IP masks as well and came up with this script.
http://poshcode.org/2438

PowerShell Code Repository - Test-IPMask
The .NET framework has the System.Net.IPAddress class which can be used to validate a string as an IP address. I wanted to do the same with IP masks as well and came up with this script.
http://poshcode.org/2439

PowerShell Code Repository - 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. The function will either return a credential object of the alternate credential or a string type stating that the current user context will be used.
http://poshcode.org/2667

PowerShell Code Repository - Test-Port
Advanced function used to test UDP or TCP port/s on one or more systems to determine if it is open or not.
http://poshcode.org/2538

PowerShell Code Repository - Test-Port
Advanced function used to test UDP or TCP port/s on one or more systems to determine if it is open or not.
http://poshcode.org/2539

PowerShell Code Repository - Test-Port
Advanced function used to test UDP or TCP port/s on one or more systems to determine if it is open or not.
http://poshcode.org/2514

PowerShell Code Repository - Test-Port
Advanced function used to test UDP or TCP port/s on one or more systems to determine if it is open or not.
http://poshcode.org/3020

PowerShell Code Repository - Test-Port.ps1
Test-Port creates a TCP connection to specified port.
http://poshcode.org/2392

PowerShell Code Repository - Test-Port.ps1
Test-Port creates a TCP connection to specified port. By default it connects to port 135 with a timeout of 3secs.
http://poshcode.org/2791

PowerShell Code Repository - Test-Port.ps1
Test-Port creates a TCP connection to specified port. By default it connects to port 135 with a timeout of 3secs.
http://poshcode.org/85

PowerShell Code Repository - Test-Prompt
Test the Prompt features
http://poshcode.org/605

PowerShell Code Repository - Test-Prompt
Test the Prompt features
http://poshcode.org/608

PowerShell Code Repository - Test-Prompt
Test the Prompt features
http://poshcode.org/1870

PowerShell Code Repository - Test-Prompt
Test the Prompt features
http://poshcode.org/1886

PowerShell Code Repository - Test-QADObject
PowerShell Code Repository - Get-MIX10Video
http://poshcode.org/1717

PowerShell Code Repository - Test-Server
A test that checks for hostname, ip, domain, ping, wsman (with credssp if you wish) remote reg RPC and RDP
http://poshcode.org/3182

PowerShell Code Repository - Test-Server
A test that checks for hostname, ip, domain, ping, wsman (with credssp if you wish) remote reg RPC and RDP
http://poshcode.org/3183

PowerShell Code Repository - Test-Server
A test that checks for hostname, ip, domain, ping, wsman (with credssp if you wish) remote reg RPC and RDP
http://poshcode.org/3179

PowerShell Code Repository - Test-SqlConnection
A series functions to verify Agent, SQL, SSIS, SMB, WMI services or connections. Useful when troubleshooting data center firewall configuration.
http://poshcode.org/2722

PowerShell Code Repository - Test-SqlConnection
A series of functions to verify Agent, SQL, SSIS, SMB, WMI services or connections. Useful when troubleshooting data center firewall configuration.
http://poshcode.org/2732

PowerShell Code Repository - Test-TCPPort
PowerShell Code Repository - Async Sockets
http://poshcode.org/2455

PowerShell Code Repository - Test-TCPPort
PowerShell Code Repository - Get-Path
http://poshcode.org/3055

PowerShell Code Repository - Test-TCPPort
PowerShell Code Repository - sudo for Powershell
http://poshcode.org/3058

PowerShell Code Repository - Test-Transcribing
Start-Transcript and Stop-Transcript will start and stop a file-based transcription log. However, there is no way to tell (afaik) if the current host is actually transcribing. Test-Transcribing will return $true if we are transcribing, $false if not.
http://poshcode.org/1499

PowerShell Code Repository - Test-Transcribing
Start-Transcript and Stop-Transcript will start and stop a file-based transcription log. However, there is no way to tell (afaik) if the current host is actually transcribing. Test-Transcribing will return $true if we are transcribing, $false if not.
http://poshcode.org/1500

PowerShell Code Repository - Test-UserCredential
A function to test a user’s credentials. Return true/false. Works for local or domain user accounts.
http://poshcode.org/2922

PowerShell Code Repository - Test-UserCredential
A function to test a user’s credentials. Return true/false. Works for local or domain user accounts.
http://poshcode.org/2923

PowerShell Code Repository - Test-UserCredential
A function to test a user’s credentials. Return true/false. Works for local or domain user accounts.
http://poshcode.org/2924

PowerShell Code Repository - Test-UserCredential
A function to test a user’s credentials. Return true/false. Works for local or domain user accounts.
http://poshcode.org/2925

PowerShell Code Repository - Test-UserCredential
A function to test a user’s credentials. Return true/false. Works for local or domain user accounts.
http://poshcode.org/2926

PowerShell Code Repository - Test-UserCredential
A function to test a user’s credentials. Return true/false. Works for local or domain user accounts.
http://poshcode.org/2927

PowerShell Code Repository - Test-VmMigration
Purpose: Test that a VMware Virtual Machine can be migrated (vMotion) to another host system (ESX Server), without performing the migration.
http://poshcode.org/3005

PowerShell Code Repository - Test-WebDAV
Quickly tests if a given web server (specified by Url parameter) is running a WebDAV service. Should work against any server platform that supports the WebDAV RFCs.
http://poshcode.org/2691

PowerShell Code Repository - Test-WebDAV
Quickly tests if a given web server (specified by Url parameter) is running a WebDAV service. Should work against any server platform that supports the WebDAV RFCs.
http://poshcode.org/1120

PowerShell Code Repository - test.ps1
This file was uploaded by a PowerGUI Script Editor Add-on.
http://poshcode.org/1917

PowerShell Code Repository - test.ps1
This file was uploaded by PowerGUI.
http://poshcode.org/1843

PowerShell Code Repository - test.ps1
This is another test. Sorry for the noise, almost done.
http://poshcode.org/1918

PowerShell Code Repository - test.ps1
This is another test. Sorry for the noise, almost done.
http://poshcode.org/1919

PowerShell Code Repository - The Letter Diamond
@CAMurphy A PowerShell version for his challenge
http://poshcode.org/1028

PowerShell Code Repository - The Letter Diamond
@CAMurphy A slightly more elegant PowerShell version for his challenge
http://poshcode.org/1029

PowerShell Code Repository - The Letter Diamond Oneli
PowerShell Code Repository - Measure-Total
http://poshcode.org/1032

PowerShell Code Repository - The Old Dogs ExcelCookBo
This file was uploaded by a PowerGUI Script Editor Add-on.
http://poshcode.org/1973

PowerShell Code Repository - The Old Dogs ExcelCookBo
This file was uploaded by a PowerGUI Script Editor Add-on.
http://poshcode.org/1974

PowerShell Code Repository - The other Post
http://halr9000.com/article/642
http://poshcode.org/964

PowerShell Code Repository - The PowerShell Talk 2
The PowerShell Talk Demo 2 VMware – VM Easy Bake Oven
http://poshcode.org/1088

PowerShell Code Repository - The PowerShell Talk Demo
The PowerShell Talk Demo1 ESX
http://poshcode.org/1087

PowerShell Code Repository - The PowerShell Talk Xen2
The PowerShell Talk – Demo 2, VM Easy Bake, XenServer
http://poshcode.org/1090

PowerShell Code Repository - The PowerShell Talk Xen2
The PowerShell Talk – Demo 2, VM Easy Bake, XenServer
http://poshcode.org/3168

PowerShell Code Repository - TheMathFunction
You need to download and unpack LoreSoft.MathExpressions.dll into your Documents\WindowsPowerShell\Libraries or tweak this module.
http://poshcode.org/2094

PowerShell Code Repository - Thin provisioning with P
Thin provisioning with PowerCIL 4.0 version
http://poshcode.org/1987

PowerShell Code Repository - Time-Stamp
This is a very simple function that returns a DateTime time stamp. I use it in scripts for noting times when actions occur like this Write-Host “$(Time-Stamp): Attempting to create directory.”; It’s a lot shorter than writing out the whole thing. You can also alias it to simplify the process: New-Alias -Name ts -Value Time-Stamp;. This way I use Write-Host “$(ts): Attempting to create directory.”; It outputs: 2011.07.17 05:01:10: Attempting to create directory. You can alter the value in the ToString to change the way the time stamp is formatted.
http://poshcode.org/2795

PowerShell Code Repository - Timespan SMTP Headers
This reads in a set of SMTP headers, and displays the MTA’s the message passed through, in chronological order, and calculates and displays the message latency (time it spent there) between each one. The latency for the first received header as well as the total message time is calculated from the Date: header timestamp on the email. MTAs with out-of-sync clocks should show up as negative latencies, or a mismatch between the accumulated lantencies and the calculated total time.
http://poshcode.org/879

PowerShell Code Repository - Trace-Route
PowerShell Code Repository - Set-Computername
http://poshcode.org/3015

PowerShell Code Repository - Transcript sessions
Placed in my profile, this snippet of code starts a dated transcript file each time I open a PowerShell console. My prompts are also date/time so I have a good record of what I did and when.
http://poshcode.org/1266

PowerShell Code Repository - Translate Service DACLS
Script to translate Service DACL’s into HRL (Human Readable Language) :)
http://poshcode.org/2355

PowerShell Code Repository - Transparent Glass Posh
An AutoIT script to make Powershell’s (and cmd.exe’s) Window use the transparent glass effect. Compile with Autoit. Program does not have a task bar button or tray icon, so only run once (from like the startup folder) and close via task manager or powershell’s ‘kill’ command. Set background color to black and foreground text color to white in cmd and powershell or it won’t look right. Also seems to work best with dark blue aero scheme, the default light blue scheme doesn’t look as good.
http://poshcode.org/1308

PowerShell Code Repository - TreeView Sample
TreeView
http://poshcode.org/2252

PowerShell Code Repository - TruncatePath
A $profile addition that replaces long provider paths in the prompt with ellipses.
http://poshcode.org/658

PowerShell Code Repository - TruncatePath
A $profile addition that replaces long provider paths in the prompt with ellipses.
http://poshcode.org/659

PowerShell Code Repository - TruncatePath
A $profile addition that replaces long provider paths in the prompt with ellipses.
http://poshcode.org/660

PowerShell Code Repository - TruncatePath
A $profile addition that replaces long provider paths in the prompt with ellipses.
http://poshcode.org/666

PowerShell Code Repository - TSRemoteApp
PowerShell Code Repository - WhoAmI
http://poshcode.org/2382

PowerShell Code Repository - Twitbrain cheat
PowerShell Code Repository - Change-ServicePassword
http://poshcode.org/910

PowerShell Code Repository - UIAutomation
This is just a preview of what you can do with System.Windows.UIAutomation — Really you’re going to want to use the WASP module for stuff like this.
http://poshcode.org/922

PowerShell Code Repository - UIAutomation 1.2
This is a further preview of what you can do with System.Windows.UIAutomation — The new WASP module is coming…
http://poshcode.org/987

PowerShell Code Repository - UIAutomation 1.3
This is a further preview of what you can do with System.Windows.UIAutomation — The new WASP module is coming…
http://poshcode.org/990

PowerShell Code Repository - UIAutomation 1.6
The new WASP module is getting closer, but this still isn’t quite it ;)
http://poshcode.org/2483

PowerShell Code Repository - UIAutomation 1.6
The new WASP module is getting closer, but this still isn’t quite it ;)
http://poshcode.org/3099

PowerShell Code Repository - UIAutomation 1.7
The new WASP module is getting closer, but this still isn’t quite it ;)
http://poshcode.org/3100

PowerShell Code Repository - UIAutomation 1.8
I really am still working on this replacement for the WASP module ;-)
http://poshcode.org/3175

PowerShell Code Repository - UIAutomation Simple
A cleanup for @kryten68 without all that code-generation cruft.
http://poshcode.org/1227

PowerShell Code Repository - UIAutomation Simple 2
More fun with S.W.A. @kryten68 – Added Transforms and examples
http://poshcode.org/1231

PowerShell Code Repository - UIAutomation V1
Just some examples of stuff you can do with the System.Windows.Automation namespace … for more, you’re going to want to check out http://WASP.CodePlex.com
http://poshcode.org/826

PowerShell Code Repository - Update AD Security Group
Update AD Security Group with users that have attribut X set. This script does all updates on the PDC emulator.
http://poshcode.org/2071

PowerShell Code Repository - Update phone # in AD
PowerShell Code Repository - Protect-Variable
http://poshcode.org/2992

PowerShell Code Repository - Update Subnet Masks
Script to update subnet mask for all devices connected to a specific network. Specify network and new subnet mask and run on each device.
http://poshcode.org/3149

PowerShell Code Repository - Update VM Tools
A VI toolkit script to update all VM Guests on the selected hosts
http://poshcode.org/518

PowerShell Code Repository - Update VM Tools
A VI toolkit script to update all VM Guests on the selected hosts
http://poshcode.org/519

PowerShell Code Repository - Update VM Tools
A VI toolkit script to update all VM Guests on the selected hosts
http://poshcode.org/520

PowerShell Code Repository - Update VM Tools
A VI toolkit script to update all VM Guests on the selected hosts
http://poshcode.org/521

PowerShell Code Repository - Update-AdminPassword
This script changes the local administrator password.
http://poshcode.org/2867

PowerShell Code Repository - Update-DeptGPOs
This script will backup all existing GPO’s in the domain prior to making any changes. After the backup has been made Departmental GPOs will be updated based on their Dept Code.
http://poshcode.org/2868

PowerShell Code Repository - Update-DeptGPOs
Update permissions on Departmental GPO’s
http://poshcode.org/2714

PowerShell Code Repository - Update-GAC
Latest version from http://blogs.msdn.com/powershell/archive/2008/09/02/speeding-up-powershell-startup-updating-update-gac-ps1.aspx
http://poshcode.org/577

PowerShell Code Repository - Update-Ipod
Quick function to start a sync operation using the iTunes COM object.
http://poshcode.org/537

PowerShell Code Repository - Update-ISETabs
Reloads all the file tabs in ISE (PS3CTP2)
http://poshcode.org/3135

PowerShell Code Repository - update-powerpackcolumns
This script is designed to work around a PowerPack export issue in PowerGUI 1.5.1 (fixed in subsequent releases): http://dmitrysotnikov.wordpress.com/2008/08/06/script-to-export-column-selection/
http://poshcode.org/504

PowerShell Code Repository - Update-VmFromTemplate.ps
This script will modify a VM on Hyper-V R2 that has been imported from an exported VM. The current release of the HyperV module does not support the proper Import method, so I don’t implement that bit in this script.
http://poshcode.org/2892

PowerShell Code Repository - Update-vSwitchSecurity
Change the security setting of a vSwitch. Requires V2, and the VI toolkit for windows
http://poshcode.org/743

PowerShell Code Repository - Updated CloneVM from CSV
Takes a fixed format CSV and pumps out clones from a template. Easily modified to do clones of a VM or create new VMs. Some of the restrictions mentioned in the notes appear to be fixed with VMware ESX v4.1.
http://poshcode.org/2051

PowerShell Code Repository - Upgrade Templates to v7
More info about this script can be found here: http://ict-freak.nl/2009/06/27/powercli-upgrading-vhardware-to-vsphere-part-1-templates/
http://poshcode.org/1214

PowerShell Code Repository - Upgrade VM's to v7
More info can be found at www.ict-freak.nl
http://poshcode.org/1217

PowerShell Code Repository - USB Script backup
Backup any recently changed PowerShell scripts to a USB drive.
http://poshcode.org/1431

PowerShell Code Repository - USB Script backup
Backup any recently changed PowerShell scripts to a USB drive.
http://poshcode.org/3150

PowerShell Code Repository - USB Script backup
Backup any recently changed PowerShell scripts to a USB drive.
http://poshcode.org/3155

PowerShell Code Repository - USB Script backup
Backup any recently changed PowerShell scripts to a USB drive.
http://poshcode.org/3156

PowerShell Code Repository - USB Script backup
Backup any recently changed PowerShell scripts to a USB drive.
http://poshcode.org/3176

PowerShell Code Repository - Use-Culture.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2226

PowerShell Code Repository - User Entitlement Auditor
Script used to perform user entitlement audits based on an XML report containing local groups, members of the local groups and systems that house the local groups. The script joins that data to data containing users and global groups grabbed directly from AD using the Quest AD Cmdlets and outputs the final report in CSV. Sorry that not everything is documented as I’d like it to be.
http://poshcode.org/3068

PowerShell Code Repository - User Logon details
Script to print to a HTML formatted table user details for a workstation. User details include AccountLockoutTime,Enabled,LastLogon,BadLogonCount,LastPasswordSet,LastBadPasswordAttempt,PasswordNotRequired,PasswordNeverExpires,UserCannotChangePassword,AllowReversiblePasswordEncryption.
http://poshcode.org/3107

PowerShell Code Repository - User Obj ProxyAddresses
A code sample to gather all assigned proxy addresses of an Active Directory User Object.
http://poshcode.org/1026

PowerShell Code Repository - Users/Contacts from CSV
PowerShell Code Repository - Netapp SDK
http://poshcode.org/1325

PowerShell Code Repository - Users/Contacts from CSV
PowerShell Code Repository - Users/Contacts from CSV
http://poshcode.org/1326

PowerShell Code Repository - Users/Contacts from CSV
PowerShell Code Repository - Users/Contacts from CSV
http://poshcode.org/1328

PowerShell Code Repository - validate an IP address
REALLY validates given IP address and returns True/False. The original script didn’t allow ZEROS in the Ip address (eg: 127.0.0.1 returned $false)
http://poshcode.org/1171

PowerShell Code Repository - validate an IP address
PowerShell Code Repository - validate an IP address
http://poshcode.org/1172

PowerShell Code Repository - validate an IP address
validates given IP address and returns True/False
http://poshcode.org/1165

PowerShell Code Repository - validate an IP address
validates given IP address and returns True/False
http://poshcode.org/1166

PowerShell Code Repository - validate an IP address
validates given IP address and returns True/False.
http://poshcode.org/1170

PowerShell Code Repository - Validate SPN Mappings
PowerShell Code Repository - Out-Html
http://poshcode.org/1613

PowerShell Code Repository - vCenterRetentionPolicy
Returns vCenter’s event retention policy.
http://poshcode.org/1372

PowerShell Code Repository - VerifyCategoryRule.ps1
PowerShell Code Repository - QAD.psm1
http://poshcode.org/2693

PowerShell Code Repository - VerifyCategoryRule.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2698

PowerShell Code Repository - VerifyCategoryRule.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2672

PowerShell Code Repository - VerifyCategoryRule.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2227

PowerShell Code Repository - VHDFunctions.psm1
Here’s several functions for working with VHD’s in Windows 7 and Windows Server 2008 R2. I’ve been working with PowerShell for about a year and this is my first go at a module. I’m a sysadmin and not a developer so some of my solutions are in that mode of thinking. There’s probably .NET ways to accomplish what I did and I’m certainly open to learning if there’s a better way. I’ve found these functions useful and hopefully someone else out there will too. Enjoy.
http://poshcode.org/1451

PowerShell Code Repository - VHDFunctions.psm1
Here’s several functions for working with VHD’s in Windows 7. I’ve been working with PowerShell for about a year and this is my first go at a module. I’m a sysadmin and not a developer so some of my solutions are in that mode of thinking. There’s probably .NET ways to accomplish what I did and I’m certainly open to learning if there’s a better way. I’ve found these functions useful and hopefully someone else out there will too. Enjoy.
http://poshcode.org/1449

PowerShell Code Repository - VI Report
export various information into Microsoft Word using PowerShell and the VI Toolkit, this is completely risk free and does not alter anything, just feed it your VI server name and sit back, it can also be used as a scheduled task and even set to email you a word attachment.
http://poshcode.org/551

PowerShell Code Repository - vibackup linux script
PowerShell Code Repository - Sendmail for PoSh 2 CTP3
http://poshcode.org/938

PowerShell Code Repository - vibackup-lx
PowerShell Code Repository - Send-HTMLFormattedEmail
http://poshcode.org/957

PowerShell Code Repository - vibackup-lx1.ps1
Generates a Linux VMDK Backup Script
http://poshcode.org/983

PowerShell Code Repository - vibackup-lx1.ps1
Generates a Linux VMDK Backup Script
http://poshcode.org/1047

PowerShell Code Repository - vibackup-lx1.ps1
Generates a Linux VMDK Backup Script 0.7.1
http://poshcode.org/1048

PowerShell Code Repository - View-Process
The script is intended for reception of the list of the started processes on any computer in a local area network. Class WMI is used. The rights of the manager to the local area network computer are necessary.
http://poshcode.org/1356

PowerShell Code Repository - View-Process_v2
The script is intended for reception of the list of the started processes on any computer in a local area network. Class WMI is used. The rights of the manager to the local area network computer are necessary.
http://poshcode.org/1374

PowerShell Code Repository - Vim25 Crazy Magic
Interface with vimService on ESXi.
http://poshcode.org/1524

PowerShell Code Repository - Vim25 Crazy Magic
Interface with vimService on ESXi.
http://poshcode.org/1522

PowerShell Code Repository - Vim25-less Crazy Magic
Execute methods on vimService ESXi w/o using VMware assemblies.
http://poshcode.org/1525

PowerShell Code Repository - Vim25-less Crazy Magic
Execute methods on vimService ESXi w/o using VMware assemblies.
http://poshcode.org/1526

PowerShell Code Repository - VM Disk Report
Gets all Virtual Machines, and exports a CSV that shows their virtual disk capacities and type. Used in this case for sizing a VCB temp disk.
http://poshcode.org/1925

PowerShell Code Repository - VM Disk Report
Gets all Virtual Machines, and exports a CSV that shows their virtual disk capacities and type. Used in this case for sizing a VCB temp disk.
http://poshcode.org/1933

PowerShell Code Repository - VM Last Poweron Time
Return a list of objects containing per-VM last powered on time.
http://poshcode.org/1371

PowerShell Code Repository - vmrc remote connector
Connects with VMRC to an ESX Farm. Now with option to allow multiple connections to one vm
http://poshcode.org/1527

PowerShell Code Repository - VMtoolsUpgrade
Check and upgrade Tools during power cycling
http://poshcode.org/3205

PowerShell Code Repository - VMtoolsUpgrade
Check and upgrade Tools during power cycling
http://poshcode.org/3208

PowerShell Code Repository - VMtoolsUpgrade
Check and upgrade Tools during power cycling – Disable
http://poshcode.org/3206

PowerShell Code Repository - VMtoolsUpgrade-disable
Check and upgrade Tools during power cycling – Disable
http://poshcode.org/3207

PowerShell Code Repository - VMtoolsUpgrade-disable
Check and upgrade Tools during power cycling – Disable
http://poshcode.org/3209

PowerShell Code Repository - VMtoolsUpgrade-disable
Check and upgrade Tools during power cycling – Disable
http://poshcode.org/3210

PowerShell Code Repository - VMware and NetApp file f
This file was uploaded by a PowerGUI Script Editor Add-on.
http://poshcode.org/2462

PowerShell Code Repository - VMware Daily Report
For more information and sample out put please visit http://www.virtu-al.net/2009/07/14/powercli-daily-report/
http://poshcode.org/1211

PowerShell Code Repository - VMware Daily Report
For more information and sample out put please visit http://www.virtu-al.net/2009/07/14/powercli-daily-report/
http://poshcode.org/1212

PowerShell Code Repository - VMware Daily Report
For more information and sample out put please visit http://www.virtu-al.net/2009/07/14/powercli-daily-report/
http://poshcode.org/1213

PowerShell Code Repository - VMware datastore graph
Creates a graph using office web components showing the usage of all datastores
http://poshcode.org/588

PowerShell Code Repository - VMware guest information
I needed to write a script to generate a VMware guest inventory so I needed to know what was available within the PowerCLI interface and where to find it. So I wrote this script to dump everything it could find about a single VMware guest. It has proved very useful to me. I hope others will also find it useful.
http://poshcode.org/3129

PowerShell Code Repository - VMware Host Network Info
The following script will add some nice host network information into an object which is exported to a csv file for passing to the network guys or can be used to find your server in that mess of cables that are always meaning to be tidied in the data center.
http://poshcode.org/855

PowerShell Code Repository - VMware Host Network Info
The following script will add some nice host network information into an object which is exported to a csv file for passing to the network guys or can be used to find your server in that mess of cables that are always meaning to be tidied in the data center. – Added VSwitch
http://poshcode.org/870

PowerShell Code Repository - VMware Host Network Info
The following script will add some nice host network information into an object which is exported to a csv file for passing to the network guys or can be used to find your server in that mess of cables that are always meaning to be tidied in the data center. – Added VSwitch, Num of VSwitch Ports and Num of VSwitch ports in use
http://poshcode.org/872

PowerShell Code Repository - VMware Lab Manager 4.x
Based on poshcode.org/753 – minor mods to support new mandatory authentication parameters in Lab Manager 4.x.
http://poshcode.org/2263

PowerShell Code Repository - VMware Lab Manager 4.x
Based on poshcode.org/753 – minor mods to support new mandatory authentication parameters in Lab Manager 4.x.
http://poshcode.org/2318

PowerShell Code Repository - VMWare Quick Migration
PowerShell Code Repository - ESXi Config BackupScript
http://poshcode.org/1535

PowerShell Code Repository - VMWare Quick Migration
Performs the functional equivalent of a Hyper-V Quick Migration by suspending a VM, moving it to a new host, and resuming it. This does not require vMotion licensing. It works by providing required VM objects via the pipeline or the second argument, and specifying the Destination host in the first argument, so you can use whatever query you want to build a list of VM’s to send to the command.
http://poshcode.org/1835

PowerShell Code Repository - VMWare Quick Migration
Performs the functional equivalent of a Hyper-V Quick Migration by suspending a VM, moving it to a new host, and resuming it. This does not require vMotion licensing. It works by providing required VM objects via the pipeline or the second argument, and specifying the Destination host in the first argument, so you can use whatever query you want to build a list of VM’s to send to the command.
http://poshcode.org/1246

PowerShell Code Repository - VMWare Quick Migration
Performs the functional equivalent of a Hyper-V Quick Migration by suspending a VM, moving it to a new host, and resuming it. This does not require vMotion licensing. It works by providing required VM objects via the pipeline or the second argument, and specifying the Destination host in the first argument, so you can use whatever query you want to build a list of VM’s to send to the command.
http://poshcode.org/1247

PowerShell Code Repository - VMWare Quick Migration
Performs the functional equivalent of a Hyper-V Quick Migration by suspending a VM, moving it to a new host, and resuming it. This does not require vMotion licensing. It works by providing required VM objects via the pipeline or the second argument, and specifying the Destination host in the first argument, so you can use whatever query you want to build a list of VM’s to send to the command.
http://poshcode.org/1248

PowerShell Code Repository - VMWare Quick Migration
Performs the functional equivalent of a Hyper-V Quick Migration by suspending a VM, moving it to a new host, and resuming it. This does not require vMotion licensing. It works by providing required VM objects via the pipeline or the second argument, and specifying the Destination host in the first argument, so you can use whatever query you want to build a list of VM’s to send to the command.
http://poshcode.org/1249

PowerShell Code Repository - VMWare VMNET Adapters
Are you sick and tired of switching the VMWare virtual network adapters from the “public” network profile to a “private” network profile each time you reboot or do something else that causes Vista/Win2008 to forget what you told it to do ten minutes ago?
http://poshcode.org/1505

PowerShell Code Repository - vProfile
The script will export recursively all objects and properties of a VI/vSphere entity to a XML file.
http://poshcode.org/1312

PowerShell Code Repository - vProfile-ClusterAudit
This script will compare all VI/vSphere cluster nodes against a reference node
http://poshcode.org/1313

PowerShell Code Repository - vProfiles
vProfiles V1 By Alan Renouf http://virtu-al.net, copies vSwitches and PortGroups from one host to another.
http://poshcode.org/1183

PowerShell Code Repository - vProfiles
vProfiles V1.1 By Alan Renouf http://virtu-al.net, copies vSwitches and PortGroups from one host to another.
http://poshcode.org/1184

PowerShell Code Repository - vSphere Resultant Privs
Given a user and a vSphere object, this code determins the specific privileges that user has on that object (a.k.a. the resultant privilege set).
http://poshcode.org/1519

PowerShell Code Repository - vSphere Resultant Privs
Given a user and a vSphere object, this code determins the specific privileges that user has on that object (a.k.a. the resultant privilege set).
http://poshcode.org/1520

PowerShell Code Repository - vSphere Resultant Privs
Given a user and a vSphere object, this code determins the specific privileges that user has on that object (a.k.a. the resultant privilege set).
http://poshcode.org/1516

PowerShell Code Repository - Wacth TechED Sessions
WPF GUI to watch TechED 2011, NA sessions
http://poshcode.org/2690

PowerShell Code Repository - Wake-OrphanedVMHost
Wake any orphaned VMHost’s in VC. This problem stems from rebooting VC while a VMHost is suspended.
http://poshcode.org/804

PowerShell Code Repository - WakeOnLan
A small script that uses a csv file for input (workstations.csv with 2 columns : computername,mac) and performs 3 actions : wol (wake on lan), reboot and shutdown. It’s one of my first posh scripts so please feel free to improve it.
http://poshcode.org/673

PowerShell Code Repository - Watch-Expression.ps1
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
http://poshcode.org/2127

PowerShell Code Repository - Watch-Process
Creates an event handler for monitoring either process creation or deletion. This requires to be run as administrator.
http://poshcode.org/2559

PowerShell Code Repository - Watch-Process
Creates an event handler for monitoring either process creation or deletion. This requires to be run as administrator.
http://poshcode.org/2560

PowerShell Code Repository - Watch-Process
sorta like top in linux (sorry, this is an old script, and I haven’t updated it with v2 help)
http://poshcode.org/2481

PowerShell Code Repository - Watch-SG2011LeaderBoard
My variation for SG 2011 Leader Board watcher. :) Using regex + xml. Lets you specify -Top and -Name, so that you see person even if she/he is not (yet ;) ) in top. :D
http://poshcode.org/2626

PowerShell Code Repository - WCF code coverage
Script for running unit tests over WCF services to get code coverage for the whole service stack
http://poshcode.org/3141

PowerShell Code Repository - wget 1.0
The simplest form of WGet … will become Get-FromWeb or something …
http://poshcode.org/120

PowerShell Code Repository - where-in
where-in and where-propertyin are filters that allow to pass through pipeline object that are in a specified array/collection, or that have a property that is in an array or collection. They also can take a scriptblock that can be used to implement a comparision when the relationship isn’t exact. in that scriptblock the variable $__ is created to represent the item in the collection being compared with the pipeline $_ object. see examples embedded.
http://poshcode.org/2512

PowerShell Code Repository - where-property
different examples of how you can access properties with a custom where function
http://poshcode.org/2570

PowerShell Code Repository - where-property
different examples of how you can access properties with a custom where function
http://poshcode.org/2571

PowerShell Code Repository - WhileTimeout
PowerShell Code Repository - Test-Prompt
http://poshcode.org/609

PowerShell Code Repository - WhoAmI
PowerShell Code Repository - Get-Excuse
http://poshcode.org/2381

PowerShell Code Repository - WhoAmI
PowerShell Code Repository - VMware Host Network Info
http://poshcode.org/873

PowerShell Code Repository - WhoIs
Whois Lookup information returning an OBJECT!!! save as Whois.ps1 and run at your leisure
http://poshcode.org/1515

PowerShell Code Repository - WIMM Emulator Launcher
Starts the WIMM emulator, if you are developing for http://dev.wimm.com/
http://poshcode.org/3043

PowerShell Code Repository - WindowsInstallPoint
PowerShell Code Repository - Invoke-NamedParameter
http://poshcode.org/2609

PowerShell Code Repository - WinFirewall-Disabled
Remotely disable the windows firewall on your clients
http://poshcode.org/1878

PowerShell Code Repository - WinFirewall-Stoped
Remote stop of the windows firewall on your clients
http://poshcode.org/1879

PowerShell Code Repository - Wireless Signal Strength
There are a couple scripts that parse netsh commands. I didn’t see this one already done, so I couldn’t steal it. I suppose I could use some regex or something simple to cut the whitespace, so feel free to “fix her up”, but this got the job done (of putting the netsh output into an object). This is a snip from a larger script I wrote as a looping, recording monitor. I used this guy’s script for inspiration: http://poshcode.org/1731
http://poshcode.org/2757

PowerShell Code Repository - Wizard template
PowerShell Code Repository - VerifyCategoryRule.ps1
http://poshcode.org/2699

PowerShell Code Repository - wlanscan
Simple script that uses netsh to show wireless networks.
http://poshcode.org/1731

PowerShell Code Repository - Work-in-progressSPdeploy
Work-in-progress. This script is meant to be run from a “scripts/” subdirectory as part of a larger build structure. It won’t run by itself, but maybe you’ll find the SharePoint deployment bits useful.
http://poshcode.org/1050

PowerShell Code Repository - Workstation_users Matrix
Script will list all selected workstations and currently logged on user. List of workstations is gathered from a defined LDAP path from active directory. Output is to a file.
http://poshcode.org/3108

PowerShell Code Repository - wpf datagrid xaml
Datagrid Xaml layout needed for Boots DataGrid binding example http://poshcode.org/2259
http://poshcode.org/2260

PowerShell Code Repository - WPF PingMonitor for 1.0
PowerShell Code Repository - SharpSSH Module
http://poshcode.org/980

PowerShell Code Repository - WPF PingMonitor for 2.0
PowerShell Code Repository - WPF PingMonitor for 1.0
http://poshcode.org/981

PowerShell Code Repository - WpfBindingHelper
I can’t get this to work from PowerShell, but it works fine from C#?
http://poshcode.org/1710

PowerShell Code Repository - WPFDbSpace
Uses Powerboots, Visifire and SQLPSX to Display a WPF graph of SQL Server database data and log file space
http://poshcode.org/993

PowerShell Code Repository - WPFDiskSpace
Uses Powerboots and Visifire to display a WPF graph of disk space including percent used and free
http://poshcode.org/992

PowerShell Code Repository - WPFDiskSpace
Uses ShowUI and Visifire to display a WPF graph of disk space including percent used and free
http://poshcode.org/2773

PowerShell Code Repository - WPFTableSpace
Uses Powerboots, Visifire and SQLPSX to display a WPF graph of SQL Server table data and index space usage
http://poshcode.org/994

PowerShell Code Repository - WPK_TunnelGradient
I noticed that WPF has LinearGradient and RadialGradient. Wanted something more… square in size. First tried to use something that allowed me to build brush easy, but it was hard to change it into something portable. So I just used New-Object and now you can use it in WPK, PowerBoots or Show-UI, whichever you prefer. ;) This script is building actual function and shows some demo usage + load required assemblies and makes sure we are in STA (some controls barfed at me when I tried to leave it -MTA). I only hope it’s not done already… ;) Corners are rounded, so that it looks more soft.
http://poshcode.org/2664

PowerShell Code Repository - Wrapper 1 Select-String
Select-String has the funny behavior that it -Encoding parameter could be default, but Select-String uses unicode as default value. That means we do not find strings containing some western european letters like ‘äöüß’ in ansi coded files. Finally I want the choice default_or_oem, to search even my OEM850 coded files. Here I fix only the default to ‘default’
http://poshcode.org/1261

PowerShell Code Repository - Write-DataTable
Writes data only to SQL Server tables. However, the data source is not limited to SQL Server; any data source can be used, as long as the data can be loaded to a DataTable instance or read with a IDataReader instance.
http://poshcode.org/2647

PowerShell Code Repository - Write-DataTable
Writes data only to SQL Server tables. However, the data source is not limited to SQL Server; any data source can be used, as long as the data can be loaded to a DataTable instance or read with a IDataReader instance.
http://poshcode.org/2653

PowerShell Code Repository - Write-DataTable
Writes data only to SQL Server tables. However, the data source is not limited to SQL Server; any data source can be used, as long as the data can be loaded to a DataTable instance or read with a IDataReader instance.
http://poshcode.org/2118

PowerShell Code Repository - Write-DataTable
Writes data only to SQL Server tables. However, the data source is not limited to SQL Server; any data source can be used, as long as the data can be loaded to a DataTable instance or read with a IDataReader instance.
http://poshcode.org/2276

PowerShell Code Repository - Write-DataTable
Writes data only to SQL Server tables. However, the data source is not limited to SQL Server; any data source can be used, as long as the data can be loaded to a DataTable instance or read with a IDataReader instance.
http://poshcode.org/2943

PowerShell Code Repository - Write-FileInfoToSQL.ps1
Demonstration script for getting file names and last update times into a SQL Server table.
http://poshcode.org/3006

PowerShell Code Repository - Write-IseFile
PowerShell Code Repository - New-IseFile
http://poshcode.org/1619

PowerShell Code Repository - Write-Log
Logging function for Powershell v2. Needed to address current Powershell logging limitations. See a discussion about said limitations here: http://jdhitsolutions.com/blog/2011/03/powershell-automatic-logging/#comment-2899 .
http://poshcode.org/2813

PowerShell Code Repository - Write-Log
Logging function for Powershell v2. Needed to address current Powershell logging limitations. See a discussion about said limitations here: http://jdhitsolutions.com/blog/2011/03/powershell-automatic-logging/#comment-2899 .
http://poshcode.org/2814

PowerShell Code Repository - Write-Log
Logging function for Powershell v2. Needed to address current Powershell logging limitations. See a discussion about said limitations here: http://jdhitsolutions.com/blog/2011/03/powershell-automatic-logging/#comment-2899 .
http://poshcode.org/2569

PowerShell Code Repository - Write-Log
Logging function for Powershell v2. Needed to address current Powershell logging limitations. See a discussion about said limitations here: http://jdhitsolutions.com/blog/2011/03/powershell-automatic-logging/#comment-2899 .
http://poshcode.org/2575

PowerShell Code Repository - Write-Log
Logging function for Powershell v2. Needed to address current Powershell logging limitations. See a discussion about said limitations here: http://jdhitsolutions.com/blog/2011/03/powershell-automatic-logging/#comment-2899 .
http://poshcode.org/2566

PowerShell Code Repository - Write-Output
A Write-Output replacement with the option to output collections that don’t unwrap.
http://poshcode.org/2299

PowerShell Code Repository - Write-Output
A Write-Output replacement with the option to output collections that don’t unwrap.
http://poshcode.org/2300

PowerShell Code Repository - Write-Sitemap.ps1
If you have a medium to large size website, you can provide a Sitemap so that search engines intelligently index your site’s content.
http://poshcode.org/833

PowerShell Code Repository - WriteFileName
Write multiline overwriting messages, typically for iterating through long file names.
http://poshcode.org/2855

PowerShell Code Repository - WriteFileName
Write multiline overwriting messages, typically for iterating through long file names.
http://poshcode.org/2856

PowerShell Code Repository - WriteFileName
Write multiline overwriting messages, typically for iterating through long file names.
http://poshcode.org/2859

PowerShell Code Repository - WriteFileName
Write multiline overwriting messages, typically for iterating through long file names.
http://poshcode.org/2875

PowerShell Code Repository - WriteFileName
Write multiline overwriting messages, typically for iterating through long file names.
http://poshcode.org/2877

PowerShell Code Repository - WSS/MOSS export
How to export Sharepoint with help of PowerShell
http://poshcode.org/137

PowerShell Code Repository - WSUS Admin Module
This module allows you to manage WSUS from PowerShell. Save code as a .psm1 file and use the Import-Module command for this module. You can approve/decline updates, perform synchronizations, add/remove clients from a target group, create/delete Target groups and much more with currently 40 advanced functions. For more information about this module, please see my blog http://boeprox.wordpress.com/
http://poshcode.org/2360

PowerShell Code Repository - WSUS Admin Module
This module allows you to manage WSUS from PowerShell. Save code as a .psm1 file and use the Import-Module command for this module. You can approve/decline updates, perform synchronizations, add/remove clients from a target group, create/delete Target groups and much more with currently 40 advanced functions. For more information about this module, please see my blog http://boeprox.wordpress.com/
http://poshcode.org/2363

PowerShell Code Repository - WSUS-Purge.ps1
This PowerShell script is a conversion of a VB script I use to clear out leftover files from Windows Update on XP. It works on XP, Vista, Win7 and Win2k8 with a few caveates. Any OS above the Vista level has changes to the way installs and updates are stored. Please see this excellent article for more info: http://www.winvistaclub.com/f16.html and also the one linked to the bottom of that article.
http://poshcode.org/2551

PowerShell Code Repository - WSUS-Settings.ps1
As written will manually apply all settings associated with a local WSUS server. Ideal for use when you need to force a non-domain system to point to a domain based WSUS server.
http://poshcode.org/2567

PowerShell Code Repository - Xml Module 3
Improves over the built-in Select-XML by leveraging Remove-XmlNamespace to provide a -RemoveNamespace parameter — if it’s supplied, all of the namespace declarations and prefixes are removed from all XML nodes (by an XSL transform) before searching. Note that this means that the returned results will not have namespaces in them, even if the input XML did.
http://poshcode.org/1675

PowerShell Code Repository - Xml Module 3.1
Improves over the built-in Select-XML by leveraging Remove-XmlNamespace to provide a -RemoveNamespace parameter — if it’s supplied, all of the namespace declarations and prefixes are removed from all XML nodes (by an XSL transform) before searching. Note that this means that the returned results will not have namespaces in them, even if the input XML did.
http://poshcode.org/1676

PowerShell Code Repository - Xml Module 4
Never content to leave well-enough alone, I’ve rewritten my XML DSL with 100% less cruft. New-XDocument no longer requires the “xe” command as long as the name of your XML Element doesn’t coincide with that of a PowerShell command (if it does, you need the “xe” on the front), and namespaces can be referred to by short name like dc:creator to keep things simple. Please review the examples on New-XDocument as this is a breaking change.
http://poshcode.org/1677

PowerShell Code Repository - Xml Module 4.1
Never content to leave well-enough alone, I’ve rewritten my XML DSL with 100% less cruft. New-XDocument no longer requires the “xe” command as long as the name of your XML Element doesn’t coincide with that of a PowerShell command (if it does, you need the “xe” on the front), and namespaces can be referred to by short name like dc:creator to keep things simple. Please review the examples on New-XDocument as this is a breaking change.
http://poshcode.org/1678

PowerShell Code Repository - Xml Module 4.2
My rewritten XML DSL now has better element name handling. See Blog Comments
http://poshcode.org/1681

PowerShell Code Repository - Xml Module 4.3
My rewritten XML DSL now has better element name handling. See Blog Comments
http://poshcode.org/1682

PowerShell Code Repository - Xml Module 4.5
My rewritten XML DSL now has better element name handling than last time, and handles null attribute values a little more gracefully. NOTE: if you think that the statement you’re using to pass an attribute value could be null, you should really be very explicit and pass it using the colon syntax like this: -attribute:$value. Also, I fixed a bug when you only have one element.
http://poshcode.org/1888

PowerShell Code Repository - Xml Module 4.6
Added Parameter handling to the XSL Transform via Convert-XML
http://poshcode.org/2290

PowerShell Code Repository - Xml Module 4.6
Added Parameter handling to the XSL Transform via Convert-XML
http://poshcode.org/2903

PowerShell Code Repository - Xml Module 4.8
Added Parameter handling to the XSL Transform via Convert-XML
http://poshcode.org/2904

PowerShell Code Repository - Xml Module 5.0
Added Parameter handling to the XSL Transform via Convert-XML
http://poshcode.org/2905

PowerShell Code Repository - Xml Module 6.0
A complete set of XML functionality (especially if you don’t have PSCX), including reading and writing xml files (import-xml, export-xml), selecting (via xpath), updating, transforming and creating new xml documents.
http://poshcode.org/2912

Protect-ByteArray.ps1: This script encrpyts then decrypts a byte string
This script uses System.Security to encrpyt a byte string, then decrypts it.
http://www.pshscripts.blogspot.com

Provision-LyncDnsRecords.ps1: This script creates the DNS entries needed for a Lync 2010 SE deployment.
This script creates a couple of wrapper functions to create DNS A and SRV records, then calls those functions to create the needed A and SRV records for a simple
http://www.pshscripts.blogspot.com

Register-Event1.ps1: This script registers for a WMI event
This script used PowerShell to register for then display an event. This script is a re-write on an MSDN Sample.
http://www.pshscripts.blogspot.com

Remove-FtpFile.ps1: This script deletes a file from an FTP Server

http://www.pshscripts.blogspot.com

Remove-WmiRegistryKey.ps1: This script creates removes registry key using WMI.
This script uses WMI to get remove registry key. This script deletes the key and everything below
http://www.pshscripts.blogspot.com

Remove-XMLAttribute.ps1: This script removes an an attribute from an XML element.
This script creates an XML document, then removes an Attribute using the RemoveAttribute method.
http://www.pshscripts.blogspot.com

Remove-XMLAttributeAt.ps1: This script removes an an attribute from an XML element.
This script creates an XML document, then removes an Attribute using the RemoveAttributeAt method.
http://www.pshscripts.blogspot.com

Replace-String.ps1: This script demonstrates how to do .REPLACE() in a string.
This script is a MSDN sample, recoded in PowerShell
http://pshscripts.blogspot.com/2010/05/replace-stringps1.html

Replace-String2.ps1: This script implements an MSDN sample in PowerShell
This script uses the String Replace method to replace all occurences of one char in a string to another.
http://www.pshscripts.blogspot.com

Restart-DNS.ps1: This script restarts the DNS Service on a Remote System
This script uses WMI to reach out and restart the DNS DNS service on a remote machine. in my home environment,
http://www.pshscripts.blogspot.com

Say-HelloWorld.ps1: This script uses the Speech API to say "Hello World"
This script first loads the Speech API, then creates a SpeechSynthesiser object. It uses this object's Speak method
http://www.pshscripts.blogspot.com

Say-HelloWorldAsync.ps1: This script uses the Speech API to say "Hello World"
This script first loads the Speech API, then creates a SpeechSynthesiser object. It uses this object's SpeakAsync. method
http://www.pshscripts.blogspot.com

send-bccmail.PS1: Send mail to BCC using PowerShell
This script is a re-developed MSDN Sample using PowerShell. It creates an email message then sends it with a BCC.
http://pshscripts.blogspot.com/2009/01/send-bccmailps1.html

Send-EmailMessage.ps1: This script crealtes and sends an SMTP email message.
This script first creates a system.net.mail.mailmessage, and populates it. Next, it creates an system.Net.Mail.SmtpClient, which then sends
http://www.pshscripts.blogspot.com

Send-SMTPMessage.ps1: Creates and sends an SMTP message
This script uses the system.net.mail class to create and send an email message using SMTP.
http://www.pshscripts.blogspot.com

Send-SMTPMessage2.ps1: This script creates and sends an SMTP Mail Mesage
This script creates a mail message, then sends it. This is a re-write of an MSDN sample.
http://www.pshscripts.blogspot.com

Send-UDPDatagram.PS1: Sends a UDP datagram to a port
This script used system.net.socckets to send a UDP datagram to a particular port. Being UDP, there's
http://www.pshscripts.blogspot.com

Set-ComputerName.ps1: This script renames a computer using WMI.
This script uses the Rename method from Win32_OperatingSystem WMI class.
http://www.pshscripts.blogspot.com

Set-Extension.PS1: Changes file extension
This script uses the ChangeExtension method to change a file extension
http://www.pshscripts.blogspot.com

Set-ISEThemeDefault.ps1: This script resets the ISE to default colours/actions.
This script sets the key values in $PsIse.Options to their default options in $Psise.Options.DefaultOPtions. This script is useful if you
http://www.pshscripts.blogspot.com

Set-ISEThemeTFL.ps1: This script sets an ISE Theme for use with Live Writer
This script sets the key values in $PsIse.Options to Ones I like!
http://www.pshscripts.blogspot.com

Set-ISEThemeVIM.ps1: This script sets an ISE Theme to similar to the old VIM editor.
This script sets the key values in $PsIse.Options to values consistent with the VIM editor, beloved by many, particularly on the Powershell
http://www.pshscripts.blogspot.com

Set-ProgrammerAlias.ps1: This script creates a function to set aliases for all Cmdlets which omit the '-'
This script defines a function which uses Get-Command to find all cmdlets. For each of them, it then creates an alias which omits
http://www.pshscripts.blogspot.com

Set-Shortcut.ps1: This script creates a shortcut to Notepad on the Desktop

HTTP://Pshscripts.blogspot.com

Set-SQLServerOption.ps1: This script sets options on a SQL Server using SMO
This script first loads the SQL cmdlet and provider snapin and displays information about the SQL Server. The script then sets
http://www.pshscripts.blogspot.com

Set-TablePartition.ps1: This script
This script
http://www.pshscripts.blogspot.com

Set-WmiMultiStringValue.ps1: This script sets a registry binary value
This script uses WMI to set a binary registry Value.
http://www.pshscripts.blogspot.com

Set-WmiRegistryBinaryValue.ps1: This script sets a registry binary value
This script uses WMI to set a binary registry Value.
http://www.pshscripts.blogspot.com

Set-XMLAttribute.ps1: This script adds an attribute to an XML node
This script creates a simple XML document and sets an attribute on a node. The script displays the before and after results, and
http://www.pshscripts.blogspot.com

Show-CurrencyGroupSize.ps1: This script reimplements a code sample from MSDN in PowerShell.
This script displays a currency using standard, then two custom currencyGroupSizes.
http://www.pshscripts.blogspot.com

show-hashtableproperties.ps1: Shows details of a hash table
This script creates, populates then displays a hash table. It then displays table properties, keys, values and does a synchroot.
http://www.pshscripts.blogspot.com

show-hashtablevalues.ps1: Shows use of Hash tables with PowerSHell
This script creates and populates a Hash Table then displays the values, keys, etc.
http://www.pshscripts.blogspot.com

Show-HtmlCoding.ps1: This script encodes and decodes an HTML String
This script used
http://www.pshscripts.blogspot.com

Show-Queue.ps1: Demonstrates a .NET Queue object
This script creates a queue, adds some items to it, and displays the queue. Finally, the clear method is called and results
http://www.pshscripts.blogspot.com

Show-QueueProperties.ps1: Demonstrates using a queue object
This script creates a queue, then adds some items to it, print out the contents then synchs it.
http://www.pshscripts.blogspot.com

Show-StandardNFS.ps1: This script shows the first two samples on this MSDN Page,
This script displays two lines of text using PowerShell and .NET formatting information
http://www.pshscripts.blogspot.com

show-trycatchfinally.PS1: Demonstrates try/catch/finally in V2
Shows a simple example of the try/catch/finally syntax introduced into PowerShell CTP3.
http://www.pshscripts.blogspot.com

show-trycatchfinally2.PS1: MSDN Sample of Try/Catch/Finally in PowerShell
This script opens a file gets 1st 10 characters. The idea is to show more detail on try/catch/finallyi
http://www.pshscripts.blogspot.com

Shutdown-System.ps1: This scrips shuts down a system, using the WMI Class
The script gets the system details from Win32_OpertingSystem then calls shutdown to shut system down.
http://pshscripts.blogspot.com/2008/07/shutdownsystemps1.html

Start-Process.ps1: This script creates and starts a Process using .NET
This script Creates a process object and sets the executable to notepad. The script then starts
http://pshscripts.blogspot.com/2010/05/start-processps1.html

Start-Process2.ps1: This script starts up a process using System.Diagnostics.Process
This script creates 7 occurences of IExplore.exe, using diffrent start up options, based on a sample script in MSDN.
http://www.pshscripts.blogspot.com

Strings1.PS1:

http://www.pshscripts.blogspot.com

synch-hashtable.PS1: Demonstrates Hashtable IsSynchronized
This script creates and populates a hash table, then checks on and displays sync status.
http://www.pshscripts.blogspot.com

Test-String.PS1: Tests a string to see if it's null
This script uses the IsNullOrEmpty method
http://www.pshscripts.blogspot.com

throw-exception.ps1: Shows throwing an exception in a function, caught in caller.
This is a re-written MSDN Sample
http://pshscripts.blogspot.com/2009/01/Throw-exceptionps1.html

Untitled.ps1: This script demonstrates how to do .REPLACE() in a string.
This script is a MSDN sample, recoded in PowerShell
http://pshscripts.blogspot.com/2010/05/replace-stringps1.html

Unzip-File.ps1: This script unzips a particular file from an archive (zip file) into a folder.
for this script, c:\foo\zip1.zip must exist and contain test.txt The script unzips test.txt into c:\foo and tests it's creation.
http://pshscripts.blogspot.com/2008/07/unzip-fileps1.html

Use-Queue.ps1: Demonstrates the use of the .NET Queue object
This script
http://www.pshscripts.blogspot.com

Using-Culture.ps1: This script creates a function to run culture sensitive operations in some other culture.
The Using-Culture function gets the current culture, saves it, then runs the script block in the requested culture. The function then restores the culture.
http://www.pshscripts.blogspot.com

Validate-Emailaddress.PS1: Validates an email address
This script uses the New-WebServiceProxy cmdlet to create a web service proxy. Then it calls that proxy
http://www.pshscripts.blogspot.com

Write-XML.ps1: This script uses XMLWriter to write XML
This script creates and XML writer and writes some basic XML.
http://www.pshscripts.blogspot.com

Write-XMLElementString.ps1: This script uses XMLWriter to write an XML Element
This script creates and uses and XML writer to write an XML Element
http://www.pshscripts.blogspot.com

Zip-File.ps1: This script zips a particular file into an existing archive (zip file).
for this script, c:\foo\zip2.zip must exist The script zips c:\footest2.txt into c:\foo\zip2.zip
http://www.pshscripts.blogspot.com

Zip-PshScripts.PS1: Creates a zip file from a folder structure and uploads

http://pshscripts.blogspot.com