PoshCode Archive  Timeline

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

107 check-ins using file Send-Growl.ps1 version 522b79b38f

2018-06-10
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