PoshCode Archive  Timeline

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

233 check-ins using file Send-FTP.ps1 version a43c0a27f5

2018-06-10
12:59
Get Local Security Groups and their Members from Remote Computers. check-in: 8ea9f12595 user: unknown tags: trunk
12:59
PowerShells wrapping behaviour may be adequate for the console host. Using ISE it’s far from the optimal. But you don’t need to use the output pane. Send your output to a new ISE Editor. To see the difference just try: check-in: 65bac29566 user: unknown tags: trunk
12:59
Heres a script to quickly look up the latest version of the bogon list maintained by Team Cymru from within PowerShell. check-in: e794848dfd user: Rich Kusak tags: trunk
12:59
Recursively remove files with given extension and maximum age from a given path. check-in: 0612d775bf user: unknown tags: trunk
12:59
If you are using ISE put this file anywhere into your PATH and functions depending on it can use it. check-in: 02bb3fea84 user: unknown tags: trunk
12:59
If you are using ISE put this file anywhere into your PATH and functions depending on it can use it. check-in: 77ce5299bf user: unknown tags: trunk
12:59
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 check-in: 418ce9f4cf user: unknown tags: trunk
12:59
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 check-in: 517f30466e user: hacked by SnL_ayaz_ tags: trunk
12:59
This is a script module with two functions: check-in: 8d0ec9fd94 user: unknown tags: trunk
12:59
Out-HTML – converts cmdlets help to HTML format check-in: 38a282e7b8 user: Vegard Hamar tags: trunk
12:59
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" check-in: b72e2cbff6 user: Joel Bennett tags: trunk
12:59
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" check-in: d6e4b2f604 user: Joel Bennett tags: trunk
12:59
The kitchen timer with a kitchen sink -full of features check-in: bc08d76b9d user: Joel Bennett tags: trunk
12:59
proof of concept of running csharp expressions in powershell v2. very basic, no error checking. check-in: f3838b7f46 user: oisin tags: trunk
12:59
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. check-in: aab7853316 user: Thell Fowler tags: trunk
12:59
Allows to use dots to specify object subproperties in Select-Object. check-in: 40ee1c93a8 user: Dmitry Sotnikov tags: trunk
12:59
Generates lottery numbers based on user input. check-in: 2d970492f0 user: unknown tags: trunk
12:59
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. check-in: 839a46de43 user: Thell Fowler tags: trunk
12:59
Since there is no Oracle command line tool to create the tnsnames.ora file, this script has been created to fill that void. check-in: 029f3b7664 user: anti121 tags: trunk
12:59
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. check-in: 3e543597a6 user: glnsize tags: trunk
12:58
A bunch of functions for working with .ini files… check-in: 0840654194 user: Joel Bennett tags: trunk
12:58
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. check-in: efc74e78df user: Chad Miller tags: trunk
12:58
A PowerShell client for NaturalInputs.com to parse natural language dates… check-in: 3b7a1790a3 user: unknown tags: trunk
12:58
Performs a simple join of all properties from two objects. Now supports scriptblock evaluation: check-in: 18cb311896 user: Joel Bennett tags: trunk
12:58
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. check-in: 37e9faaa2b user: unknown tags: trunk
12:58
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. check-in: 32e7ad9190 user: Paul Brice tags: trunk
12:58
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. check-in: 0e87c8a795 user: Paul Brice tags: trunk
12:58
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 :) check-in: 73d665582d user: Joel Bennett tags: trunk
12:58
Generic function to execute query and return DataTable from any OLEDB data source. Tested against Excel, Informix, Oracle and SQL Server sources. check-in: fd79266b21 user: Chad Miller tags: trunk
12:58
Add this function to your profile to make Export-CSV cmdlet handle -Append parameter check-in: a72bcbf1ff user: Dmitry Sotnikov tags: trunk
12:58
Contains a function for adding a shared printer connection, and a function for retrieving shared printer connections from a specified Group Policy Object. check-in: 04bee8afac user: unknown tags: trunk
12:58
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. check-in: 3d7fdc77a6 user: Mark E tags: trunk
12:58
Enumerate the Parameters of a command by ParameterSet. Includes a -Full output mode and support for specifying the module. check-in: 1a8a2273a9 user: unknown tags: trunk
12:58
Patch To TabExpansion.ps1 check-in: 63a31b1722 user: idvorkin tags: trunk
12:58
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! check-in: 3a3ee8ff34 user: unknown tags: trunk
12:58
Use this to stop scripts running in PowerShell.exe in mid-stride. check-in: af1afeb202 user: Joel Bennett tags: trunk
12:58
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. check-in: 83aa48b3aa user: Joel Bennett tags: trunk
12:58
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. check-in: 814f89f55f user: jgrote tags: trunk
12:58
Spin-Busy displays a “spinning” character with each step reflecting an individual pipeline object being passed through. check-in: 854756d7b0 user: Joe Otto tags: trunk
12:58
The code uses a file locking mechanism to ensure that the check-in: 0761cfb816 user: Michael R tags: trunk
12:58
I’ve modified the original function. I like this one better. Got rid of the trailing ‘ check-in: 834b96807c user: Gene Magerr tags: trunk
12:58
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. check-in: 21b245a130 user: unknown tags: trunk
12:58
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. check-in: dfa57c4b9c user: CrazyDave tags: trunk
12:58
And dropping mirror balls too. A silly little PowerBoots script! check-in: ea18d14bd7 user: unknown tags: trunk
12:58
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 check-in: 9bd2f18249 user: Joel Bennett tags: trunk
12:58
Back up all your ESXi hosts to a local directory. check-in: 3b31460a4e user: Carter Shanklin tags: trunk
12:58
Back up all your ESXi hosts to a local directory. check-in: 7ca477692b user: Carter Shanklin tags: trunk
12:58
Back up all your ESXi hosts to a local directory. check-in: 3aef64d905 user: Carter Shanklin tags: trunk
12:58
Hack your ESXi welcome screen. check-in: 11940acf02 user: Carter Shanklin tags: trunk
12:58
Blow up your ESXi host. For entertainment purposes only. check-in: 20d651cbf9 user: unknown tags: trunk
12:58
just a script in progress file 2 check-in: 0ea6feb1fa user: Thell Fowler tags: trunk
12:58
Copy from source to destination and rename existing destination files to .old, if .old exists replace it. check-in: aeb6d407d0 user: unknown tags: trunk
12:58
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 check-in: f30f6d0931 user: Joel Bennett tags: trunk
12:58
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. check-in: f14809afba user: halr9000 tags: trunk
12:58
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. check-in: 19241066de user: halr9000 tags: trunk
12:58
This is a PowerCLI sample script I wrote to demonstrate how you could entirely automate the creation of a relatively complex virtual farm environment. check-in: 457c704bff user: unknown tags: trunk
12:58
A wrapper for creating gadget windows with PowerBoots like these check-in: 560867d2ba user: unknown tags: trunk
12:58
Retrieve the windows product key of a specified machine using WMI — Updated for v2 and to take an array of computers (without rewriting anything) check-in: 260e444ca6 user: karl prosser tags: trunk
12:58
This function will create a custom PSObject using a hashtable as input. check-in: 14d814d71d user: russellds tags: trunk
12:58
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. check-in: 1fd6d1c380 user: Joel Bennett tags: trunk
12:58
A function to rename a computer check-in: bfa4efc6c1 user: Gerald Klassen tags: trunk
12:58
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. check-in: 60e2abf045 user: Justin Grote tags: trunk
12:58
###ESXi Configuration Backup Script check-in: df12ee4ebc user: jgrote tags: trunk
12:58
Convert and import from delimited text files. Includes two functions: Convert-Delimiter and Import-Delimited. check-in: c349628477 user: Joel Bennett tags: trunk
12:58
Connects with VMRC to an ESX Farm. Now with option to allow multiple connections to one vm check-in: fbe9c4b6dc user: Patrick tags: trunk
12:58
Execute methods on vimService ESXi w/o using VMware assemblies. check-in: e20cc35e97 user: waldo tags: trunk
12:58
Execute methods on vimService ESXi w/o using VMware assemblies. check-in: ae7f443bfd user: unknown tags: trunk
12:58
Interface with vimService on ESXi. check-in: 77d3a9493c user: waldo tags: trunk
12:58
Set-PSObjectDefaultProperties sets the default properties for a PSObject. This is for PowerShell V2 to work around a bug with V2. check-in: 4064869c88 user: unknown tags: trunk
12:58
Interface with vimService on ESXi. check-in: 9793b28be2 user: unknown tags: trunk
12:58
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. check-in: 81efb22da0 user: Sean Kearney tags: trunk
12:58
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). check-in: ad5c68e565 user: Carter Shanklin tags: trunk
12:58
Description: State Changes for specified OpsMgr Monitor check-in: d1fb72768c user: Stefan Stranger tags: trunk
12:58
Create a VIAccount object suitable for use with New-VIPermission, Get-VIPermission, etc. from PowerCLI. check-in: 6b5760f6c3 user: unknown tags: trunk
12:58
Whois Lookup information returning an OBJECT!!! save as Whois.ps1 and run at your leisure check-in: d5a74f6fa9 user: CrazyDave tags: trunk
12:57
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: check-in: 4442b13859 user: Joel Bennett tags: trunk
12:57
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). check-in: bff9f881af user: Joel Bennett tags: trunk
12:57
Multiple string parameters check-in: dff0576eb7 user: unknown tags: trunk
12:57
Requires Powershell 2.0 & the grouppolicy module. check-in: ac47575b41 user: Clint tags: trunk
12:57
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? check-in: 37c9fcd97f user: Oisin Grehan tags: trunk
12:57
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. check-in: 9e5cba0353 user: Joel Bennett tags: trunk
12:57
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. check-in: 92a2b55fc2 user: Joel Bennett tags: trunk
12:57
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. check-in: 48216cfe1d user: JGrote tags: trunk
12:57
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. check-in: c666376488 user: Oisin Grehan tags: trunk
12:57
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. check-in: 10f28130cc user: Joel Bennett tags: trunk
12:57
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. check-in: 2d8a1c1ea9 user: unknown tags: trunk
12:57
Windows PowerShell script to map a network printer based on Active Directory group membership. check-in: 1f149bbe35 user: Jan Egil Ring tags: trunk
12:57
Removes namespace definitions and prefixes from xml documents check-in: a4896b4e56 user: Joel Bennett tags: trunk
12:57
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 check-in: fbebc90452 user: Sean Kearney tags: trunk
12:57
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. check-in: c064e6c645 user: Joel Bennett tags: trunk
12:57
Create a Sharepoint 2010 farm check-in: 0a395a57e0 user: Jos Verlinde tags: trunk
12:57
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 ;) check-in: 3aa21446ed user: Joel Bennett tags: trunk
12:57
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. check-in: 2097d45839 user: christian bellee tags: trunk
12:57
A function to rename a computer check-in: b4320efb30 user: Gerald Klassen tags: trunk
12:57
Updated check-in: c6ce8c5dde user: Cody Bunch tags: trunk
12:57
Authenticode 2.1 for PowerShell 2.0: Added Start-AutoSign function :) see my blog post check-in: 3bf748118a user: Joel Bennett tags: trunk
12:57
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. check-in: b394aa85bd user: Archdeacon tags: trunk
12:57
Find the tables used in a Crystal Report. check-in: 74ac85d6b1 user: unknown tags: trunk
12:57
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. check-in: 51797b0ed5 user: Joel Bennett tags: trunk
12:57
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). check-in: 055a3eeb9a user: Archdeacon tags: trunk
12:57
Simple script to bulk-create printers on a print-server. Printers are imported from a csv-file. check-in: a8892881cd user: navadavuluri tags: trunk
12:57
Simple script to bulk-create printers on a print-server. Printers are imported from a csv-file. check-in: aed4e65d88 user: navadavuluri tags: trunk
12:57
A PowerShell 2.0 Growl module for Growl For Windows (Updated for PowerShell 2 RTM) check-in: 35959a0ada user: Joel Bennett tags: trunk
12:57
Converts a pair of DateTime’s or a TimeSpan into a very approximate relative time like “about 4 days ago.” check-in: 56a7e1cc5a user: unknown tags: trunk
12:57
Simple script to bulk-create printers on a print-server. Printers are imported from a csv-file. check-in: a9c4d36642 user: Jan Egil Ring tags: trunk
12:57
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). check-in: 654516123f user: Joel Bennett tags: trunk
12:57
Performs an inner join on two collections of objects which share a common key value. check-in: cd189aa0bf user: Joel Bennett tags: trunk
12:57
Provides access to NTFS Alternate Data Streams, including functions for blocking and unblocking downloaded files. Tweet @Jaykul if you find problems. check-in: 276348f7ea user: unknown tags: trunk
12:57
Rename Network Adapters to their MAC Addresses check-in: 28741266c5 user: powershelluser tags: trunk
12:57
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. check-in: dfa4d8e72e user: Rich Kusak tags: trunk
12:57
Detect 32 or 64 bits Windows regardless of WoW64 with the PowerShell OSArchitecture function check-in: e317c0c47e user: unknown tags: trunk
12:57
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. check-in: 712edafc53 user: Rich Kusak tags: trunk
12:57
Parses Management Information Format (MIF) files. See http://chadwickmiller.spaces.live.com/blog/cns!EA42395138308430!522.entry check-in: 69ccca5c11 user: Chad Miller tags: trunk
12:57
Uses SQLParser.ps1 script http://poshcode.org/1445 to return a Stored Procedure Call Tree check-in: 84d5f188d7 user: unknown tags: trunk
12:57
Uses Visual Studio Database Edition classes Microsoft.Data.Schema.ScriptDom and Microsoft.Data.Schema.Script.Sql to parse T-SQL check-in: f3ad1ee784 user: unknown tags: trunk
12:57
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. check-in: 3af57310e5 user: Jeff Hillman tags: trunk
12:57
a script to download playlist.com music to a local cache directory for when your internet connection is spotty. check-in: e81105192a user: karl prosser tags: trunk
12:57
Functions to encrypt and decrypt strings using the Rijndael symmetric key algorithm check-in: 83b4706111 user: Joel Bennett tags: trunk
12:57
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. check-in: 5aaf8af341 user: Joel Bennett tags: trunk
12:57
A code-generating and emitting magic function for creating type-safe struct classes for use in PowerShell! check-in: 1b520b03a0 user: Joel Bennett tags: trunk
12:57
a one liner to download playlist.com music to a cache directory. check-in: 5dfd9a7814 user: unknown tags: trunk
12:57
sample by r_keith_hill check-in: 932b6b1a8d user: halr9000 tags: trunk
12:57
Given an ESX host, produce a report of read and write latencies for all attached LUNs. check-in: 4d08fe9d98 user: Carter Shanklin tags: trunk
12:57
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. check-in: fd939a5828 user: Joel Bennett tags: trunk
12:57
ping check using dotNet ping. pieced together from existing examples on the web. Had to use $erroractionpreference = “SilentlyContinue” to make it work on non-existing systems. Added to DNS check to prevent a few more errors. This is part of a script that queries an internal db and for every record does a ping to verify its online state check-in: 4bb819e820 user: jkavanagh58 tags: trunk
12:57
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. check-in: 89d227c80e user: Joel De La Torre tags: trunk
12:57
ping check using dotNet ping. pieced together from existing examples on the web. Had to use $erroractionpreference = “SilentlyContinue” to make it work on non-existing systems. check-in: 7a27ea1124 user: unknown tags: trunk
12:57
Promiscuous Mode Check check-in: 1ea69a69fa user: unknown tags: trunk
12:57
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). check-in: 4ebe8015a8 user: Archdeacon tags: trunk
12:57
This will send an SNMP trap to the specified manager (hostname). The script isn’t very flexible, but it’s a good example of how to build traps using SharpSNMPLib. External requirementss: check-in: 50a04999b7 user: halr9000 tags: trunk
12:57
VMWARE In a Fibre Channel enviroment i generate an HTML report of LUN visibility. FeedBack welcome check-in: ef29bf7056 user: Alberto Damiano tags: trunk
12:57
Copy a function from your current session to another session. Allows you to easily copy function definitions into remote PSSessions. check-in: a34f9d9769 user: unknown tags: trunk
12:57
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. check-in: e8fe488543 user: Joel De La Torre tags: trunk
12:57
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. check-in: f4703baddc user: Joel Bennett tags: trunk
12:57
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. check-in: b5c07fcaea user: Joel Bennett tags: trunk
12:57
Uses the Bit.ly api to create a short url. Requires a login and api key from http://bit.ly check-in: f61488c21b user: unknown tags: trunk
12:57
The PowerShell Talk – Chicken Counter Example. check-in: e13c96c4e3 user: Rlewis tags: trunk
12:57
This script iterates through each Datacenter,Cluster, and Host in a vCenter environment and then lists the Fibre Channel HBAs that are present. check-in: 61e0589399 user: Mark E tags: trunk
12:57
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. check-in: 9cbfdd2e96 user: Joel De La Torre tags: trunk
12:57
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. check-in: 341c96c82f user: Joel Bennett tags: trunk
12:56
Retrieves all Enterprise Certification Authorities (CA) in cuurent AD forest check-in: 410b67f2df user: Vadims Podans tags: trunk
12:56
Validates a username and password against Active Directory. Requires .NET 3.5 and PowerShell V2. check-in: 95f856b518 user: Mike Pfeiffer tags: trunk
12:56
This function calculates the calendar week to a given date. It either takes a given date or retrieves the current date. check-in: ff031772c9 user: Holger Adam tags: trunk
12:56
This function calculates the calendar week to a given date. It either takes a given date or retrieves the current date. check-in: e06f4173ce user: Holger Adam tags: trunk
12:56
From PSCX, this filter can be used to change a file’s read only status. check-in: 008fbce03d user: Keith Hill tags: trunk
12:56
Lists Active Directory user accounts which are members of too many groups, and can thus cause token bloat issues check-in: bae50a7c73 user: unknown tags: trunk
12:56
Print the hostname of the system. Complete with v2 comment-based help, but works fine on v1. check-in: 77907e3ac5 user: halr9000 tags: trunk
12:56
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. check-in: 9ef3ead7a5 user: Oisin Grehan tags: trunk
12:56
Web-Health-Check.ps1 is a PowerShell script to monitor a website and automatically take remedial action if the site is not functioning properly. It works by retrieving a web page from a specified URL and checking the page for the presence of a specific piece of text. check-in: be53cfe95e user: unknown tags: trunk
12:56
Facilitates exception handling as used to under C# or Java. check-in: 1c4efef165 user: Patrick Dreyer tags: trunk
12:56
More info can be found here: http://ict-freak.nl/2009/10/06/powercli-set-dvswitch/ check-in: ff0565a1e3 user: unknown tags: trunk
12:56
How to export Sharepoint with help of PowerShell check-in: 6b766179f5 user: unknown tags: trunk
12:56
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. check-in: 08b790e878 user: Joel Bennett tags: trunk
12:56
Small snippet of my build script, I think this is a good template to use when calling the command-line WSPBuilder. check-in: 632a6396b1 user: Peter tags: trunk
12:56
Small snippet of my build script, I think this is a good template to use when calling the command-line WSPBuilder. check-in: 95309ad210 user: Peter tags: trunk
12:56
simle function to determine is file locked by external program or not. check-in: 2b8162295b user: Vadims Podans tags: trunk
12:56
simle function to determine is file locked by external program or not. check-in: 555519ee9d user: Vadims Podans tags: trunk
12:56
these two functions provide basic local certificate store management features. check-in: 0641ad1109 user: Vadims Podans tags: trunk
12:56
these two functions provide basic local certificate store management features. check-in: b4caffbadd user: Vadims Podans tags: trunk
12:56
these two functions provide basic local certificate store management features. check-in: 374d8ca8e4 user: Vadims Podans tags: trunk
12:56
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. check-in: bc70d8e0a6 user: xcud tags: trunk
12:56
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. check-in: a278992563 user: Angel-Keeper tags: trunk
12:56
get utilization from all network interfaces check-in: 5fa94d4f77 user: halr9000 tags: trunk
12:56
replace $inst with your NIC name. You can find that out by running (new-object System.Diagnostics.PerformanceCounterCategory(“network interface”)).GetInstanceNames() check-in: fdbcf99ada user: halr9000 tags: trunk
12:56
Getting a list of installed programs on computers in the network except the following vendors: check-in: 8fb6325c4d user: Angel-Keeper tags: trunk
12:56
Reads perfmon counters from all network interfaces check-in: 5a5ca26a5a user: halr9000 tags: trunk
12:56
Reads perfmon counters from all network interfaces check-in: bb23d154c6 user: unknown tags: trunk
12:56
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. check-in: dfd4b7c503 user: halr9000 tags: trunk
12:56
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. check-in: 762c9b9c6d user: Paul Brice tags: trunk
12:56
Get ESX server serial numbers. check-in: 99b779437b user: Carter Shanklin tags: trunk
12:56
compatibility: PowerShell 1.0, PowerShell v2.0 check-in: dbc5ba92c3 user: Oisin Grehan tags: trunk
12:56
compatibility: PowerShell 1.0, PowerShell v2.0 check-in: eb7b641b35 user: Oisin Grehan tags: trunk
12:56
Generates External MAML Powershell help file for any loaded cmdlet or function check-in: 888b68b367 user: Chad Miller tags: trunk
12:56
Get ESX server serial numbers. check-in: 82050e0c5d user: Carter Shanklin tags: trunk
12:56
Script used to turn FT on or off for a specific VM check-in: 474aaf9521 user: unknown tags: trunk
12:56
Pipe numeric output into a horizontal ansi barchart in Psh. Poshcode doesn’t handle ANSI characters. Replace █ with an ANSI block character. Copy/Paste from http://xcud.com/post/193522355/out-ansigraph check-in: 51b3a213fa user: xcud tags: trunk
12:56
Script that will use the Converter to import a VCB created disk image into a datacenter check-in: 83cf61e636 user: LucD tags: trunk
12:56
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. check-in: 6e67bb6a46 user: Chad Miller tags: trunk
12:56
Creates or updates mail-enabled users or contact objects. Developed to work within an Exchange 2003 / Windows Server 2003 environment. Depends on Quest Active Directory extensions. check-in: 0985a0f4e8 user: Ken Knicker tags: trunk
12:56
Creates or updates mail-enabled users or contact objects. Developed to work within an Exchange 2003 / Windows Server 2003 environment. Depends on Quest Active Directory extensions. check-in: 07725c8d9f user: unknown tags: trunk
12:56
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. check-in: 08a68dab36 user: Glenn Sizemore tags: trunk
12:56
Why to use a FileselectionBox to save your fresh files from ISE, don’t you know your file system? OK perhaps an encoding parameter would be fine, but please don’t default it to ASCII. check-in: cad7e0aebc user: unknown tags: trunk
12:56
Delete NW ssids by clientname , for use in adv_file environments. check-in: e97af4bbf8 user: James Pratt tags: trunk
12:56
Powershell script to Query the Veeam Backup Database. The Query will return the total running time of a backup job. check-in: 015ba48bbc user: afokkema tags: trunk
12:56
Test-Host for V1 check-in: 8438e6799b user: unknown tags: trunk
12:56
This script will configure the portgroup to use NIC Teaming with the failover depending on the duplexity of the Active NIC. check-in: 8aa13a4990 user: LucD tags: trunk
12:56
This script will compare all VI/vSphere cluster nodes against a reference node check-in: e6248a76f4 user: LucD tags: trunk
12:56
The script will export recursively all objects and properties of a VI/vSphere entity to a XML file. check-in: 840116ae74 user: LucD tags: trunk
12:56
A function to join a domain check-in: 280c122d0c user: unknown tags: trunk
12:56
A function to join a domain check-in: 260a4d454c user: Andy Schneider tags: trunk
12:56
Quick functions to get either check-in: 4b101b2957 user: Peter tags: trunk
12:56
Quick functions to get either check-in: 90e4cb87f9 user: Peter tags: trunk
12:56
Runs a FullTextSqlQuery (SharePoint’s Enterprise Search SQL Query) against your local MOSS farm; useful as a quick(!) search query test workbench. check-in: 839b529eee user: Peter tags: trunk
12:56
A script to create shortcuts … with support for short “special folder” names. (fixed) the [parameter named as [param bug check-in: 228578add8 user: Joel Bennett tags: trunk
12:56
Get-TwitterReply modification get all replies check-in: de166d6658 user: unknown tags: trunk
12:56
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. check-in: 317f761a82 user: Bernd Kriszio tags: trunk
12:56
Takes two servers and provides the delta of installed hotfixes between them check-in: ea5f0f061a user: Andy Schneider tags: trunk
12:56
Function to do a regex replace of all matches with an expression per match that has local variables check-in: 9fe08bf532 user: karl prosser tags: trunk
12:56
Runs a FullTextSqlQuery (SharePoint’s Enterprise Search SQL Query) against your local MOSS farm; useful as a quick(!) search query test workbench. check-in: 12d6f5be5a user: Peter tags: trunk
12:56
Runs a FullTextSqlQuery (SharePoint’s Enterprise Search SQL Query) against your local MOSS farm; useful as a quick(!) search query test workbench. check-in: cf5e6496cf user: Peter tags: trunk
12:56
Compress a bitmap to a certain filesize, using the PSCX Import-Bitmap, Resize-Bitmap, and Export-Bitmap … and a little trial and error. check-in: 3e9183d4f0 user: Joel Bennett tags: trunk
12:56
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). check-in: 759652f198 user: Joel Bennett tags: trunk
12:56
Enumerate users of a given local group. Uses WMI. Outputs strings, sorry about that. check-in: 7f7ed7622a user: Carter Shanklin tags: trunk
12:56
This script are used to set a random password for Active Directory users in a specified Organizational Unit. It stores the results in a csv-file. check-in: 2ad48ab0fd user: Jan Egil Ring tags: trunk
12:56
Re-IP VMware VMs based on the contents of a CSV check-in: 1dcf731dc4 user: unknown tags: trunk
12:56
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!! ;) ). check-in: db545f127f user: caveman_dick tags: trunk
12:56
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. check-in: 9fa30cd0df user: Ecmaster76 tags: trunk
12:56
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! check-in: abc42b9919 user: unknown tags: trunk
12:56
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. check-in: a20419d2bc user: Matt Wilson tags: trunk
12:56
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. check-in: 2166f2012a user: Joel Bennett tags: trunk
12:56
This is the PowerShell 2.0 -only continuation of my Growl module check-in: 5bf41438ac user: Joel Bennett tags: trunk
12:56
A fix to make this work on PowerShell 1.0 check-in: 61f408f22e user: Joel Bennett tags: trunk
12:56
This script generate a HTML report show all ACLs asociated with a Folder tree structure starting in root specified by the user check-in: 71419634b7 user: Santi Fernandez tags: trunk
12:56
This function finds storage within VMware that can be shared between ESX hosts. check-in: 3d0d907148 user: unknown tags: trunk
12:56
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. check-in: a16eafc77e user: tojo2000 tags: trunk
12:56
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. check-in: bb8a4e4499 user: tojo2000 tags: trunk
12:56
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. check-in: 9d33c12dd5 user: Peter tags: trunk
12:56
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). check-in: dbac3410f7 user: Joel Bennett tags: trunk
12:56
Some enhancements to HttpRest to support posting content, and a couple other things I needed for OAuth support… check-in: 15e3096992 user: Joel Bennett tags: trunk
12:56
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’ check-in: eac410c318 user: unknown tags: trunk
12:56
Help Differ 10000 check-in: d3577fe15e user: Carter Shanklin tags: trunk
12:56
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. check-in: f24c9cd930 user: Peter tags: trunk
12:56
This is a simple little function to search all available cmdlets for a given keyword. Similar to man -k. check-in: ab168e2463 user: Carter Shanklin tags: trunk
12:56
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. check-in: b8509e1e3b user: unknown tags: trunk
12:56
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. check-in: 9d3785581e user: Peter tags: trunk
12:56
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. check-in: eca74f25c4 user: Peter tags: trunk
12:56
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. check-in: d914f60127 user: Justin Grote tags: trunk
12:56
This is a simple little function to search all available cmdlets for a given keyword. Similar to man -k. check-in: b949b34257 user: unknown tags: trunk
12:56
An update to my mini-DSL for generating XML documents. check-in: b6763cd667 user: Joel Bennett tags: trunk
12:56
Allows you to easily create machine-level environment variables that will persist after reboots. Note that the variables created this way may not be visible in the variable: or even env: providers until you restart your Powershell session. Allowable values to Target param are “process”, “user”, and “machine”. check-in: 0ef0c12c6c user: halr9000 tags: trunk
12:56
PowerShell script for gathering remote PC information check-in: 4f438578f5 user: unknown tags: trunk
12:56
List active directory attributes from schema check-in: 1d4a83a386 user: unknown tags: trunk
12:56
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 … check-in: 6117704ba2 user: Joel Bennett tags: trunk