PoshCode Archive  Timeline

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

97 check-ins using file get-windows-product-key.ps1 version a95e3c6c2a

2018-06-10
14:25
Compare the tables (and columns with the -Column parameter) in two databases, checking for differences. check-in: f078ff029b user: Steven Murawski tags: trunk
14:25
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 check-in: 8861eb2d12 user: karl prosser tags: trunk
14:25
This script customizes the welcome screen which PowerGUI admin console displays on start-up or when a folder is selected in the left-hand tree. check-in: 9b4edfc4a0 user: Dmitry Sotnikov tags: trunk
14:25
This script performs OpenLdap query against specified Server. check-in: c1516694a0 user: BSonPosh tags: trunk
14:25
Requires PS 2.0 CTP3 check-in: b2fec69446 user: Oisin Grehan tags: trunk
14:25
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... check-in: 4fd765a751 user: Joel Bennett tags: trunk
14:25
proof of concept of running csharp expressions in powershell v2. very basic, no error checking. check-in: 112f040939 user: oisin tags: trunk
14:25
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. check-in: 4cffe14ca1 user: unknown tags: trunk
14:25
Help Differ 10000 check-in: 346aea5cc1 user: Carter Shanklin tags: trunk
14:25
proof of concept of running csharp expressions in powershell v2. very basic, no error checking. check-in: 2fb850be3d user: unknown tags: trunk
14:25
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. check-in: 68cae6afcd user: Marcus L tags: trunk
14:25
This script will create a new System Center Configuration Manager (SCCM) 2007 Collection. check-in: d739feb1d9 user: Andy S tags: trunk
14:25
Test-Port creates a TCP connection to specified port. By default it connects to port 135 with a timeout of 3secs. check-in: c31e7f5216 user: BSonPosh tags: trunk
14:25
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. check-in: 77947463ab user: unknown tags: trunk
14:25
Many organizations have a separate OUs for their servers and workstations, this is an example on how to list servers in the wrong OU. check-in: ef8665ab81 user: unknown tags: trunk
14:25
Ported TabExpansion from V2CTP2 to V2CTP3 and extended. Please dot souce this script file. check-in: 68baeceeb4 user: foobar tags: trunk
14:25
Ported TabExpansion from V2CTP2 to v1.0 and extended. check-in: d8f4934f20 user: foobar tags: trunk
14:24
A simple trick to show and hide windows — and an extra bonus trick ;) check-in: b818615f78 user: Joel Bennett tags: trunk
14:24
simple V1 function to print files, either listed, or through the pipeline. No error checking implemented check-in: 55a48a4b8a user: karl prosser tags: trunk
14:24
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. check-in: 6126a40cb6 user: Chad Miller tags: trunk
14:24
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. check-in: ad62e8ef3a user: unknown tags: trunk
14:24
Check latest Chromium build at http://build.chromium.org check-in: ba41d127bd user: David tags: trunk
14:24
This script performs OpenLdap query against specified Server. check-in: fbc9a8f1be user: unknown tags: trunk
14:24
Help Differ 10000 check-in: 92b1149627 user: unknown tags: trunk
14:24
An alternate method of querying the registry to return the firewall status (returns $true or $false). This one does not use WMI. check-in: df02fe5692 user: unknown tags: trunk
14:24
Converts CBZ files to CBR check-in: e26648fa2e user: unknown tags: trunk
14:24
Returns $true if the Windows Firewall is enabled, $false if it is disabled. check-in: 95e5d81cae user: rfoust tags: trunk
14:24
code to play distinct “musical” notes using Console.Beep allowing you to specify the note/octave/duration as well as speaking check-in: 9820f55067 user: karl prosser tags: trunk
14:24
If you have a medium to large size website, you can provide a Sitemap so that search engines intelligently index your site’s content. check-in: 05a9ca5ebe user: uknzguy tags: trunk
14:24
If you have a medium to large size website, you can provide a Sitemap so that search engines intelligently index your site’s content. check-in: fa1e1c725d user: unknown tags: trunk
14:24
Enable Server Side Junk E-mail filtering for Exchange 2007 mailboxes check-in: bc1a198abf user: Jon Webster tags: trunk
14:24
Allows for the creation of tasks in Microsoft Outlook from Windows PowerShell. The majority of task options available can be configured with the function. check-in: 5cec33524d user: Mark E tags: trunk
14:24
New-CustomColumn for PowerShell V1.0 check-in: f195c6950f user: unknown tags: trunk
14:24
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) check-in: 72aed948dd user: David Mohundro tags: trunk
14:24
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 check-in: 2c098ef84d user: unknown tags: trunk
14:24
Converts PowerGUI’s .PowerPack files into ps1 script files – each script node, link and action get represented as a function with the element’s name and its code inside. You can then dot-source the file and use the functions in your scripts or command line. Works both in PowerShell v1 and v2. check-in: fa9fa976ac user: Dmitry Sotnikov tags: trunk
14:24
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. check-in: 4eb5966cd3 user: Joel Bennett tags: trunk
14:24
Converts PowerGUI’s .PowerPack files into ps1 script files – each script node, link and action get represented as a function with the element’s name and its code inside. You can then dot-source the file and use the functions in your scripts or command line. Works both in PowerShell v1 and v2. check-in: dd0a9e8bdd user: Dmitry Sotnikov tags: trunk
14:24
Converts PowerGUI’s .PowerPack files into ps1 script files – each script node, link and action get represented as a function with the element’s name and its code inside. You can then dot-source the file and use the functions in your scripts or command line. Works both in PowerShell v1 and v2. check-in: 00844f10a3 user: Dmitry Sotnikov tags: trunk
14:24
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 … check-in: 0c44bd3f67 user: Joel Bennett tags: trunk
14:24
This script is a re-developed MSDN Sample using PowerShell. It creates an email message then sends it with a BCC. check-in: 5e7daac03d user: Thomas Lee tags: trunk
14:24
This script is a re-developed MSDN Sample using PowerShell. It creates an email message then sends it with a BCC. check-in: 7a3cf9eee9 user: Thomas Lee tags: trunk
14:24
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. check-in: 0c5644fe85 user: Joel Bennett tags: trunk
14:24
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: e23b901933 user: Joel Bennett tags: trunk
14:24
This bad boy is from an email by Bruce Payette—the master. Here are some notes from the email: check-in: ac353c1e73 user: halr9i000 tags: trunk
14:24
Syncronize local folders with Smugmug using this powershell script. check-in: ceec7f4308 user: Karl Prosser tags: trunk
14:24
507 Change $colShares to $colApps check-in: f4bd2d4140 user: cassibr13 tags: trunk
14:24
Added Get-WebPageContent to the initial implementation of the Http REST script functions (usable as a v1 script or as a module). check-in: 3dc24c5357 user: Joel Bennett tags: trunk
14:24
ISE-Snippets module v 1.0 check-in: 6fa04f1885 user: poetter tags: trunk
14:23
This is an advanced function that uses a proxy command to add two new switches to get-childitem check-in: 7333dde4a8 user: Andy Schneider tags: trunk
14:23
ISE-Lines module v 1.1 ( Conflate-Line improved ) check-in: 2316fe8c4b user: poetter tags: trunk
14:23
I’ve modified the original function. I like this one better. check-in: db5bdc6141 user: Gene Magerr tags: trunk
14:23
scripting for running regions by hotkeys in powershell v2 CTP3 ISE. http://www.karlprosser.com/coder check-in: 4c2f3e965a user: karl prosser tags: trunk
14:23
ISE-Comments module v 1.0 check-in: a21cfedc5e user: poetter tags: trunk
14:23
This is an updated version of Get-Packet, an IP packet sniffer for Powershell. check-in: 996a191acb user: Robbie Foust tags: trunk
14:23
A script module for CTP3 which allows the user to create their own custom type accelerators. Thanks to Oisin Grehan for the discovery. check-in: cda1b760de user: Joel Bennett tags: trunk
14:23
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. check-in: 4c29d14cbd user: Robbie Foust tags: trunk
14:23
If you have VMware Lab Manager, this script makes it easier than ever to connect to and automate Lab Manager actions. check-in: a2efa0a88b user: Carter Shanklin tags: trunk
14:23
Get-StockQuotes gives a very easy way to get stock quotes using PowerShell CTP3’s new Web Services capabilities. check-in: d24cb50c8d user: Carter Shanklin tags: trunk
14:23
This is a set of Powershell functions to interface with the Atlassian Jira bug/issue tracking software using a WSDL interface. check-in: 2905bae8ef user: Robbie Foust tags: trunk
14:23
This function connects via HTTP to a Cisco Unity server and returns license information as a PSCustomObject. check-in: 1656d0a71f user: Robbie Foust tags: trunk
14:23
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 check-in: 2b6ffcd7f5 user: cglessner tags: trunk
14:23
Change the security setting of a vSwitch. Requires V2, and the VI toolkit for windows check-in: ed5f1005fc user: Glenn Sizemore 12 tags: trunk
14:23
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. check-in: cde07c21c4 user: unknown tags: trunk
14:23
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. check-in: 6b2b78d2ae user: unknown tags: trunk
14:23
Use the MOSS (Microsoft Office SharePoint Server) .NET Libraries to find SharePoint ID of known user. check-in: aae15d9eda user: Craig Pilkenton tags: trunk
14:23
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. check-in: 7d4887d73f user: unknown tags: trunk
14:23
For TabExpansion.ps1 check-in: a5990cfbe9 user: unknown tags: trunk
14:23
Ported TabExpansion from V2CTP2 to v1.0 and extended. check-in: c5e0eca22f user: foobar tags: trunk
14:23
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. check-in: 1e6d342fb3 user: Jonathan Walz tags: trunk
14:23
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. check-in: 2ac169d16c user: Steven Murawski http tags: trunk
14:23
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. check-in: a51672df57 user: Doug Finke http tags: trunk
14:23
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. check-in: 4df9018676 user: unknown tags: trunk
14:23
Get-MyDomain retrieves the current IP of the user (Or, the first if there are multiple active cards) then performs a DNS lookup to retrieve the domain. If it is unable to reverse it, it displays Unknown:<IP> check-in: 0fb24c4e82 user: unknown tags: trunk
14:23
A tech demo: a scrolling buffer where you can type while it’s scrolling… check-in: 1bd167cc51 user: Joel Bennett tags: trunk
14:23
Added enum expansion in method call expression check-in: bbee4e8e30 user: foobar tags: trunk
14:23
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). check-in: cc0724318e user: unknown tags: trunk
14:23
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 check-in: de9aeb66cd user: Chad MIller tags: trunk
14:23
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. check-in: d482e5a3a6 user: unknown tags: trunk
14:23
The Linux/Unix ‘du -sh’ command, ala PowerShell (faster than other versions of this script, but still ever so much slower than compiled code) check-in: 640f543635 user: Joel Bennett tags: trunk
14:23
Analogous to ONE of PowerShell 2’s Add-Type cmdlet’s overrides, this script/function will take C# code and compile it in memory. check-in: 4e0123956e user: Joel Bennett tags: trunk
14:22
A simple cached RSS reader. Fetches RSS feeds, displays mutliple feeds merged in date order, opens items in browser. check-in: 8b14ec57aa user: unknown tags: trunk
14:22
Map Active Directory objects using the Show-NetMap script from Doug Finke. Running the script creates three functions Get-ADMapObject (which takes a string or array of strings of the AD object classes), Get-ADObjectClassName (recurses through your Active Directory and returns the names of the object classes), and New-SourceTarget (to get the ADMapObjects into the format that Show-Netmap wants). check-in: 02ef62278d user: Steven Murawski http tags: trunk
14:22
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). check-in: 52eda5b383 user: Joel Bennett tags: trunk
14:22
Calculates percentage growth rate given a starting value, ending value, and number of periods in the range. stahler thx! check-in: a12004e7bd user: halr9000 tags: trunk
14:22
The Get-Command cmdlet reveals all that you need to know about PowerShell. check-in: 44e2258c14 user: Jeff Hillman tags: trunk
14:22
Calculates percentage growth rate given a starting value, ending value, and number of periods in the range. @stahler thx! check-in: 72cf014192 user: Stahler tags: trunk
14:22
Use as a filter to select computers from a stream on which to act upon later in the pipeline. Example: check-in: 2725f4c2a6 user: unknown tags: trunk
14:22
Script to retreive all users with an active sync device partnership check-in: 8bfe186d38 user: unknown tags: trunk
14:22
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. check-in: 9bfa8fdf8d user: unknown tags: trunk
14:22
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! check-in: 76dd597b6a user: Peter Provost tags: trunk
14:22
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! check-in: ea9a53f357 user: Peter Provost tags: trunk
14:22
The first of many script cmdlets for working with DekiWiki check-in: 62d0abaaf3 user: unknown tags: trunk
14:22
An initial implementation of some Http REST cmdlets, as a series of script functions (usable as a script module, just save as a .psm1) check-in: 85b6c5cf11 user: Joel Bennett tags: trunk
14:22
Export 2007/2010 usermailbox to PST located on File Share check-in: 16e46b83dc user: St3v3o tags: trunk
14:22
This script allows an administrator to install software from either a local folder on their administration PC or from a network share. Target computers to receive the installation are defined ahead of time in a text file. check-in: 40e23cef74 user: AlphaSun tags: trunk
14:22
retrieve the windows product key of a specified machine using WMI check-in: 0fae6ab837 user: karl prosser tags: trunk