PoshCode Archive  Timeline

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

104 check-ins using file Test-Port.ps1 version 65405a186a

2018-06-10
13:11
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. check-in: e7d2555c6f user: Andy Arismendi tags: trunk
13:11
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. check-in: b1737686f6 user: karl prosser tags: trunk
13:11
a demo of using some build in dotnet attributes to store some powershell METADATA (hashtables) and extract that. check-in: 1ab9caf26c user: karl prosser tags: trunk
13:11
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! check-in: b661aae4d5 user: james tags: trunk
13:11
This advanced function will allow you to retrieve the current weather information for a given country/city. check-in: 73bd74e62f user: Boe Prox tags: trunk
13:11
This advanced function will allow you to retrieve the current weather information for a given country/city. check-in: b19c1152a9 user: Boe Prox tags: trunk
13:11
A function to rename a computer check-in: 12379df108 user: Gerald Klassen tags: trunk
13:11
Prompt replacement based on a script by iainsimpson (http://blogs.technet.com/iainsimpson/archive/2008/02/20/custom-powershell-prompt.aspx). check-in: 0bcf6441ab user: callias tags: trunk
13:11
This script will allow you to query a web site and retrieve information about the web site and whether it is available or not. check-in: d6a4d6086a user: Boe Prox tags: trunk
13:11
This script will allow you to query a web site and retrieve information about the web site and whether it is available or not. check-in: 9781d477c4 user: Boe Prox tags: trunk
13:11
This script will allow you to query a web site and retrieve information about the web site and whether it is available or not. check-in: 495fd6611f user: Boe Prox tags: trunk
13:11
This script will trap events such as USB insertion, file changes, registry key check-in: 3f63214c04 user: Archdeacon tags: trunk
13:11
This script will trap events such as USB insertion, file changes, registry key check-in: 05bedb1316 user: unknown tags: trunk
13:11
This script will allow you to query a web site and retrieve information about the web site and whether it is available or not. check-in: 9edc145181 user: Boe Prox tags: trunk
13:11
This function allows you to download the contents of a webpage to display on a PowerShell console. Also included is a switch to show the size of the web page. check-in: 1cc40ab5fe user: Boe Prox tags: trunk
13:11
This function allows you to download the contents of a webpage to display on a PowerShell console. Also included is a switch to show the size of the web page. check-in: 1e2fc1e1ca user: Boe Prox tags: trunk
13:11
This script will allow you to query a web site and retrieve information about the web site and whether it is available or not. check-in: 0902fff4f8 user: Boe Prox tags: trunk
13:11
Autoload function like the Korn shell — can inject functions to modules. check-in: cef7e3bfdc user: Joel Bennett tags: trunk
13:11
Sets Application Compatibility flags for an application. (Same as on the Compatibility tab of the properties.) check-in: 21c171935b user: Steven Murawski tags: trunk
13:11
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. check-in: a99d842149 user: unknown tags: trunk
13:11
Example on how to use Proxy Cmdlets in combination with object events. check-in: 3b2bb10413 user: Jan Egil Ring tags: trunk
13:11
Example on how to use Proxy Cmdlets in combination with object events. check-in: d22c3dec6d user: Jan Egil Ring tags: trunk
13:11
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! ;) check-in: c4c838e6da user: Bartek Bielawski tags: trunk
13:11
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. check-in: a1e2614bae user: Bartek Bielawski tags: trunk
13:11
A simple implemenation of the Experimental.IO LongPath library from the Microsoft Base Class Library project as a module. check-in: c292ea5524 user: Joel Bennett tags: trunk
13:11
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: 8a723a26e4 user: Jonathan Walz tags: trunk
13:11
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. check-in: 71ef087140 user: Jason Fossen tags: trunk
13:11
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. check-in: 2fcd0124e9 user: Richard Yaw tags: trunk
13:11
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. check-in: b9399825b6 user: Chad Miller tags: trunk
13:11
The new WASP module is getting closer, but this still isn’t quite it ;) check-in: f4028addcf user: Joel Bennett tags: trunk
13:11
Queries the Dell Website for a list of service tags and returns the warranty information as a custom object. check-in: 1e6a513458 user: jgrote tags: trunk
13:11
Helpers for working with .Net classes: Get-Constructor, Get-Assembly, Add-Assembly, Get-Type check-in: d9d3aa22bb user: Joel Bennett tags: trunk
13:11
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. check-in: f3398d0857 user: Boe Prox tags: trunk
13:11
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. check-in: 2cfb8b382d user: Boe Prox tags: trunk
13:10
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) ... check-in: c845c6c8aa user: Joel Bennett tags: trunk
13:10
Get one or more performance counter objects. check-in: 3f7fb18061 user: tojo2000 tags: trunk
13:10
PowerShell functions to export and import WLAN profiles in Windows Vista/Windows 7 check-in: 32cf196e03 user: unknown tags: trunk
13:10
A function to rename a computer check-in: 034011d604 user: DEEPSEADC01 tags: trunk
13:10
A way to easily edit textual variables and environment variables: Edit-Variable env:path check-in: c8935f0fb3 user: unknown tags: trunk
13:10
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. check-in: db369ae37e user: Joel Bennett tags: trunk
13:10
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. check-in: e05dcb20e4 user: unknown tags: trunk
13:10
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. check-in: 65dc3bda91 user: Jason Ochoa tags: trunk
13:10
Restarts local or remote IIS AppPools check-in: 749e4cece8 user: Joel Bennett tags: trunk
13:10
Restarts local or remote IIS AppPools check-in: 0579fd5f88 user: Joel Bennett tags: trunk
13:10
This file was uploaded by a PowerGUI Script Editor Add-on. check-in: 76ac0f0af5 user: unknown tags: trunk
13:10
This file was uploaded by a PowerGUI Script Editor Add-on. check-in: 64022f7fdc user: arodd tags: trunk
13:10
This file was uploaded by a PowerGUI Script Editor Add-on. check-in: 5e3f5f4552 user: unknown tags: trunk
13:10
This script will download a file showing the download progression as it completes check-in: 9219b35b45 user: CrazyDave tags: trunk
13:10
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). check-in: a10d9a407d user: Joel Bennett tags: trunk
13:10
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: 722f21cbe2 user: Lee Holmes tags: trunk
13:10
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! ;) check-in: 9453e05f57 user: Bartek Bielawski tags: trunk
13:10
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) check-in: dbd4440bf0 user: unknown tags: trunk
13:10
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. check-in: b5cf47c91e user: Richard Yaw tags: trunk
13:10
- NOTES check-in: be5a230b92 user: ChristopheCREMON tags: trunk
13:10
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. check-in: 8cbe0ede8b user: Oisin Grehan tags: trunk
13:10
Deploying a VM with Static IP in 3 steps check-in: 6a815811f3 user: Nedko Nedev tags: trunk
13:10
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: bdbd8c257c user: Lee Holmes tags: trunk
13:10
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 check-in: e96e7a3b6b user: youikar tags: trunk
13:10
Requires mGet-DatastoreList.ps1 check-in: 017847744f user: monahancj tags: trunk
13:10
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. check-in: 389ccbb881 user: monahancj tags: trunk
13:10
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? check-in: 8fddfecb03 user: unknown tags: trunk
13:10
Function, which creates vDS in vSphere PowerCLI check-in: be42bec8ac user: Pavel Dimitrov tags: trunk
13:10
Forces Replication of all DCs in the current Logon Domain. check-in: 2acefd710c user: Chris tags: trunk
13:10
Converting datareader to dataset check-in: 66f8b48c56 user: unknown tags: trunk
13:10
ASP.NET – Using httpContext check-in: 064f65d83f user: ti4funcom tags: trunk
13:10
PowerZip – PowerShell Module that allows you to zip files check-in: d0844c40fa user: ChristopheCREMON tags: trunk
13:10
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. check-in: a207a21dc9 user: Rich Kusak tags: trunk
13:10
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. check-in: a19ff21d7c user: Rich Kusak tags: trunk
13:10
PowerZip – PowerShell Module that allows you to zip files check-in: 55e9a4bdae user: ChristopheCREMON tags: trunk
13:10
PowerZip – PowerShell Module that allows you to zip files check-in: 93bb718f82 user: ChristopheCREMON tags: trunk
13:10
PowerZip – PowerShell Module that allows you to zip files check-in: 6794ee471e user: ChristopheCREMON tags: trunk
13:10
Make it easier to use Watin automation via PowerShell check-in: ab0a953841 user: Joel Bennett tags: trunk
13:10
PowerZip – PowerShell Module that allows you to zip files check-in: dc37563026 user: ChristopheCREMON tags: trunk
13:10
PowerShell Module to manage Windows Scheduled Tasks check-in: eb5e1dbdc6 user: ChristopheCREMON tags: trunk
13:10
PowerShell Module to manage Windows Scheduled Tasks check-in: dcc883a574 user: ChristopheCREMON tags: trunk
13:10
Findup – Find Duplicates, and optionally delete them. C# version of the powershell script FindDupe.ps1, C# version is probably 100 times faster though. check-in: 8690e49588 user: James Gentile tags: trunk
13:10
A Windows PowerShell-script for generating an HTML-report for DFS-R SYSVOL and sending it via e-mail. check-in: bf12bf6f2f user: Jan Egil Ring tags: trunk
13:10
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. check-in: 4851d4f35c user: Chad Miller tags: trunk
13:10
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. check-in: b3236d39aa user: unknown tags: trunk
13:10
Create a Sharepoint 2010 farm check-in: 41cd1c3aec user: Jos Verlinde tags: trunk
13:10
Get the name of the current (or last) transcription file used in the current session. Requires powershell v2.0. Some things to note: check-in: f6e15ba5d6 user: Oisin Grehan tags: trunk
13:09
Download and install Google Chromium if there is a newer version available. check-in: 5e3860c614 user: MJWJ1 tags: trunk
13:09
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: 5a36adfc16 user: Jonathan Walz tags: trunk
13:09
journal mailboxes check-in: 9d613fd8b7 user: unknown tags: trunk
13:09
evac mailboxes check-in: 9b15575665 user: unknown tags: trunk
13:09
It just needs presents under it… check-in: 3bddad9f46 user: Joel Bennett tags: trunk
13:09
Script to create a backup report from Netbackup jobs check-in: b8e965a486 user: Martijn Jonker tags: trunk
13:09
A simple stream-reader implementation suitable for simple interactive script task … check-in: 10d0a308e9 user: Joel Bennett tags: trunk
13:09
Pipe filter which empties working set for any received System.Diagnostics.Process object check-in: 24839b7655 user: amirul tags: trunk
13:09
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 check-in: 2adadaaa5d user: Oisin Grehan tags: trunk
13:09
Simple Windows form to connect to Live@Edu for the purpose of searching for accounts and resetting their passwords. check-in: 62b52cc8a5 user: unknown tags: trunk
13:09
A man is not old as long as he is seeking something. A man is not old until regrets take the place of dreams. check-in: 49b916ba8e user: Matt Wilson tags: trunk
13:09
Add voice to your Powershell script check-in: 8dc57650fa user: Mike Hays tags: trunk
13:09
A wrapper class for shell shortcut files from vbAccelerator which makes it easy to read & write shell links. check-in: 5682f37451 user: Joel Bennett tags: trunk
13:09
This is another Must Have upgrade, because I screwed up the last one ;-) check-in: db24ad1bce user: Joel Bennett tags: trunk
13:09
Sow nothing, reap nothing. check-in: df82ac9a5a user: Matt Wilson tags: trunk
13:09
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. check-in: 7544b409a1 user: Richard Yaw tags: trunk
13:09
All Group Policy Objects modified in the specified timespan are backup up to the specified backup path. check-in: df76589f25 user: Jan Egil Ring tags: trunk
13:09
This will perform a basic netstat.exe command and “objectize” its output. check-in: 2ac864da20 user: glnsize tags: trunk
13:09
A function to retrieve available Control Panel Applets along with a description. check-in: 245e324c66 user: unknown tags: trunk
13:09
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. check-in: c5a9a67edc user: geraldo tags: trunk
13:09
Findup – Find Duplicates, and optionally delete them. C# version of the powershell script FindDupe.ps1, C# version is probably 100 times faster though. check-in: 9a5493bb34 user: James Gentile tags: trunk
13:09
Bulk change account passwords without requiring elevated permissions. check-in: 802279d299 user: unknown tags: trunk
13:09
Test-Port creates a TCP connection to specified port. check-in: 7bc7b3b706 user: BSonPosh tags: trunk