PoshCode Archive  Timeline

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

96 check-ins using file Test-Port.ps1 version 6ed19f6493

2018-06-10
14:18
Enumerates mailbox folder permissions for all folders in all mailboxes check-in: b33dacc5d8 user: themoblin tags: trunk
14:18
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: f2639ddf2a user: amber tags: trunk
14:18
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: 2cc042b0a9 user: KSimon tags: trunk
14:18
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: 5dddac02bf user: KSimon tags: trunk
14:18
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: 0072427f21 user: KSimon tags: trunk
14:18
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: cf9479cd6c user: KSimon tags: trunk
14:18
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: 4a00577c3a user: KSimon tags: trunk
14:18
#STORED CREDENTIAL CODE check-in: d6fcce8f4b user: ccorin tags: trunk
14:18
This code allows for the secure storing of an active directory password and then using it for connecting to exchange or active directory. This snippet will prompt the administrator for a username only, collect the password from the securely stored file, and then assemble a powershell credential object for use. check-in: 46bd0142a8 user: Lubinski tags: trunk
14:18
Get-FileEncoding function determines encoding by looking at Byte Order Mark (BOM). check-in: dab06a7bce user: Enter your zip code here tags: trunk
14:18
Get-WifiNetwork – return the parsed output of netsh wlan show network mode=bssid in psobject form. Does exactly what it says on the tin. Requires Vista/2008 or higher, or XP SP3 with a hotfix (I can’t recall which one, sorry.) check-in: a9cadc5d5d user: Oisin Grehan tags: trunk
14:18
Performs a join of all properties from two objects. Supports scriptblock evaluation, pipeline joining, etc. check-in: 1b2782ece6 user: aaron sun tags: trunk
14:18
Performs a join of all properties from two objects. Supports scriptblock evaluation, pipeline joining, etc. check-in: b41be2489d user: Jaykul tags: trunk
14:18
REALLY validates given IP address and returns True/False. The original script didn’t allow ZEROS in the Ip address (eg: 127.0.0.1 returned $false) check-in: 749380c024 user: mow01 tags: trunk
14:18
This cmdlet retrieves weather forcasts from SMHI (Swedish Meteorological and Hydrological Institute) through their API. (See: http://www.smhi.se/klimatdata/Oppna-data for information in swedish). check-in: 0524c007af user: DollarUnderscore tags: trunk
14:18
Compare updates between WSUS target groups (e.g Test and Production) and approve updates to the latter and email report on changes made. check-in: 6a3e936ac6 user: rov3_ tags: trunk
14:18
Script to create a backup report from Netbackup jobs check-in: 060106b14a user: Martijn Jonker tags: trunk
14:18
RU_DAX_ERP_Read check-in: 106a70396d user: Carter Shanklin tags: trunk
14:18
NOTE: For simpler use, an updated PShellExec.zip available via screencast.com check-in: 4bd2410e28 user: 384633383224503 tags: trunk
14:18
NOTE: For simpler use, an updated PShellExec.zip available via screencast.com check-in: d61abdd277 user: Les Papier tags: trunk
14:18
Connect to an exchange mailbox and get your latest emails. check-in: 4c8a1ba3fd user: George Mauer tags: trunk
14:17
All descriptions on the web which show how to do this so far have left the email attachment open which means if the script is continuing after the email and you wish to use the file you have attached you will not be able to as it will show as locked, use this example to close the attached file correctly using .Dispose() check-in: 0593e92d1d user: Richard van Erk tags: trunk
14:17
Add new smtp address from csv and set new address primary check-in: f9ee510966 user: unknown tags: trunk
14:17
I WILL CONTROL YOUR LIFE GIVE ME TIME AND ILL RULE YOU ALL check-in: 39fb587fc7 user: unknown tags: trunk
14:17
windows server health check for 2008 2012 2012r2 check-in: 780b1f08ba user: Prashant Pandey tags: trunk
14:17
Buying groceries with PowerShell, because why not? ;-) check-in: bfeb761eed user: DollarUnderscore tags: trunk
14:17
This script uses current Show-UI and SQLite to query a copy of your Firefox Bookmark Database for Bookmarks tagged with combinations of 1 to 3 keywords. It uses the WPF 4.0 Datagrid. (Improvements in Eventhandling of Hyperlinks are welcome) check-in: 919a192316 user: Bernd Kriszio tags: trunk
14:17
This script uses current Show-UI and SQLite to query a copy of your Firefox Bookmark Database for Bookmarks tagged with combinations of 1 to 3 keywords. It uses the WPF 4.0 Datagrid. (Improvements in Eventhandling of Hyperlinks are welcome) check-in: 2cd60cae21 user: Bernd Kriszio tags: trunk
14:17
This script uses current Show-UI and SQLite to query a copy of your Firefox Bookmark Database for Bookmarks tagged with combinations of 1 to 3 keywords. It uses the WPF 4.0 Datagrid. (Improvements in Eventhandling of Hyperlinks are welcome) check-in: 7341c99274 user: Bernd Kriszio tags: trunk
14:17
This script uses current Show-UI and SQLite to query a copy of your Firefox Bookmark Database for Bookmarks tagged with combinations of 1 to 3 keywords. It uses the WPF 4.0 Datagrid. (Improvements in Eventhandling of Hyperlinks are welcome) check-in: 75d64abbb9 user: Bernd Kriszio tags: trunk
14:17
These functions retrieve information about tv show airdates. They are used as a part of my “home automation with powershell”-project. check-in: 91d821909d user: DollarUnderscore tags: trunk
14:17
This will return the specified website’s X.509 certificate either as an object or a file (if the -OutputFile parameter is specified). See included comment based help for documentation. check-in: dbc2fcc85d user: Andy Arismendi tags: trunk
14:17
Two simple functions to get and set the SSH tunnels that putty will establish check-in: f6d6073a05 user: CrazyDave tags: trunk
14:17
Two simple functions to get and set the SSH tunnels that putty will establish check-in: 6fe3accd60 user: CrazyDave tags: trunk
14:17
In this JSON module, I have a full set of tools for exporting, importing, and converting Json objects (including arbitrary objects). See comments in script header for usage examples, but basically, you can do things like: check-in: f0fa2336c5 user: VPNZIP tags: trunk
14:17
In this JSON module, I have a full set of tools for exporting, importing, and converting Json objects (including arbitrary objects). See comments in script header for usage examples, but basically, you can do things like: check-in: 445be8ee93 user: Joel Bennett tags: trunk
14:17
IMCEAEX-_O=BAYMAIL_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SP DLT+29_CN=RECIPIENTS_CN=IMMTZ@bayer.cnb check-in: 64ee5c4bbf user: IMMTZ tags: trunk
14:17
Script to delete ransomware files check-in: 5d17b75f17 user: roflrolle tags: trunk
14:17
Script to restore files beeing lost during ransomware attack check-in: 5499bcd67a user: roflrolle tags: trunk
14:17
Convert a raw security descriptor from SDDL form to a parsed security descriptor. check-in: ec2809acbd user: Matthew Graeber tags: trunk
14:17
Imports an Excel spreadsheet to a SQL Server table using OLEDB check-in: 085d47185c user: Chad MIller tags: trunk
14:17
Description: Script attempts to remove SCCM Client cache items and C:\Windows\SoftwareDistribution. check-in: d612119c8a user: RottedQuickly tags: trunk
14:17
Added Try block and missing brackets for sample GUI from post made by Vinith Menon. check-in: 255018b8b2 user: BrianK tags: trunk
14:17
Add new smtp address from csv and set new address primary check-in: 5513110c1d user: Ermias tags: trunk
14:17
Here is a function to create an Active Directory user. This function doesn’t do nearly everything that the Quest AD cmdlet can do, however it does provide user password configuration options such as setting the ‘User cannot change password’ and ‘Password never expires’ flags. The new AD account is enabled by default when created. check-in: f5bd3234ac user: Andy Arismendi tags: trunk
14:17
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: f65c2dd39a user: Lee Holmes tags: trunk
14:17
I wrote this to install IE11 through Altiris. Though the install method works fine without using Altiris. The script installs all of the KB prerequisite and recommended updates for IE 11, which are specified in $updateMSUs for the x86 and x64 blocks of code. It then installs IE 11 without forcing a reboot. check-in: f4a2a52cda user: BattleChicken tags: trunk
14:17
This code can be added to an AWS instance to set the default password of an EC2 instance. It stops the need for using keys to set the windows password. It needs to be set in the “User Data” section when building the Instance. check-in: 570b81898a user: AdrianWoodrup tags: trunk
14:17
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: abb7d602d9 user: Paul Brice tags: trunk
14:17
Powershell script to verify if Windows Backup has finished sucessfully or not. On error or warning it sends an email with the server name and the error/warning. On success it does nothing (means the backup finished successfully) check-in: ff08a64909 user: Paulo Seabra tags: trunk
14:17
get utilization from all network interfaces check-in: 09964e93f7 user: Joel Bennett tags: trunk
14:17
goo.gl/4sX8N3 check-in: 00d89520b3 user: sarkisyan tags: trunk
14:17
IMCEAEX-_O=EARTH_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=email@contoso.com check-in: cba96ed1a5 user: o0MattE0o tags: trunk
14:17
This bit of code adds a Week ScriptProperty to datetime objects. The property returns the week of the year based on the current cultural settings. check-in: 0f3537d08c user: Dale Thompson tags: trunk
14:17
Invokes JQuery (or plain Javascript) commands via InternetExplorer.Application COM object,after initial injection of JQuery reference in header section. check-in: 8a5cfb030d user: Dirk Bremen tags: trunk
14:16
Powershell function that returns one of three possible DateTime objects check-in: 16d58727a0 user: Martijn Jonker tags: trunk
14:16
Some of commands get outdated and needs to get updated with latest powershell upgrade check-in: 50efe59948 user: Ashwin Rayaprolu tags: trunk
14:16
quick hard coded script for uploading a file to an ftp server. check-in: 3c8d8a8d24 user: Stephen Price tags: trunk
14:16
This will recursively remove non-alphanumeric\decimal (via regex) characters from all folder and filenames. The decimals are left in tact for file extensions. check-in: 071bbd6f32 user: mjohnson tags: trunk
14:16
Adds imitations of some operators such as ternary operator, -all, -any and etc. check-in: 8e3470f4bf user: poshman tags: trunk
14:16
This is an updated version of the home automation module. The main difference is that some output is removed (no news is good news…) if “-Verbose” is not used and that it has a separate cmdlet for connecting to Telldus Live! (Connect-TelldusLive) which uses a PSCredential. check-in: c500f91962 user: DollarUnderscore tags: trunk
14:16
A suggestion how to read Word document without MS Office check-in: a218d9c27b user: qwerty tags: trunk
14:16
My prompt function for PS 6.0.0.9 — There’s a bug causing an echo if you use write-host in your prompt on unix with PS 6 currently, so I rewrote my prompt to just output a string with escape sequences… check-in: 333e85fd79 user: Joel Bennett tags: trunk
14:16
Temporarily (until restart) makes a font available without needing to install it (and thus, without need for admin rights). check-in: 799b3bfa75 user: Joel Bennett tags: trunk
14:16
Sets properties for a given user local username. check-in: c659554ccf user: Andy Arismendi tags: trunk
14:16
My prompt function for PS 6.0.0.9 — There’s a bug causing an echo if you use write-host in your prompt on unix with PS 6 currently, so I rewrote my prompt to just output a string with escape sequences… check-in: 7eff776e86 user: Joel Bennett tags: trunk
14:16
This script can be run with PowerShell to launch a metro application against a file. It is really intended to be used from a batch file, which is embedded as a comment within the script. check-in: 571f1e4a83 user: Bob P tags: trunk
14:16
Depends from PSCpu.ps1 library You can find it at https://github.com/gregzakh/PSCpu/blob/master/Lib/PSCpu.ps1 check-in: a38afd0fb2 user: Marta Leigh tags: trunk
14:16
Identifying knowledge base article by its id number taken from string or filename. check-in: 162787e7ff user: Kris Cieslak tags: trunk
14:16
Nice solution to detect current Windows version (instead buggy [Environment]::OSVersion). Fount at https://github.com/gregzakh/alt-ps/blob/master/Get-NtVersionNumbers.ps1 check-in: 0b2afa09f2 user: roger tags: trunk
14:16
PowerGrowl Sample Goes Here check-in: 3eb649e7a4 user: Thom Lamb tags: trunk
14:16
PowerGrowl Sample Goes Here check-in: 4f3708bf1c user: Thom Lamb tags: trunk
14:16
Returns the priority mail server (SMTP) to send email directly to the SMTP server of a particular domain/email address. Uses NetCmdlets (get-dns). check-in: 7477bcba4c user: Lance Robinson tags: trunk
14:16
http://en.wikipedia.org/wiki/List_of_SMS_gateways check-in: 277b19502e user: dvsbobloblaw tags: trunk
14:16
Re\sets password for specified user. Original https://github.com/gregzakh/alt-ps/blob/master/New-Password.ps1 check-in: 59c121aacf user: Hacker tags: trunk
14:16
Get-DotNetFrameworkVersion: Script to get installed .Net versions check-in: 34d0c98711 user: unknown tags: trunk
14:16
Cool script which allows you to do some things more easily. For example, it became possible use bitwise shift in PowerShell v2 or c-style ternary operation. check-in: 101f009a17 user: roger tags: trunk
14:16
Nice solution to detect current Windows version (instead buggy [Environment]::OSVersion). Fount at https://github.com/gregzakh/alt-ps/blob/master/Get-NtVersionNumbers.ps1 check-in: 08c6720576 user: roger tags: trunk
14:16
My script uses WMI to gather various useful pieces of useful systems information that can be used for either support calls, downloading drives or troubleshooting your system. check-in: ae90e0db04 user: PatrickG tags: trunk
14:16
This function is a wrapper for the Invoke-SSH cmdlet which is included in the Netcmdlets package (http://www.nsoftware.com/PowerShell/). I don’t care for its output or syntax complexity, so I made this to suit my needs. check-in: f29882008e user: unknown tags: trunk
14:16
Found at https://github.com/gregzakh/alt-ps/blob/master/Get-MacAddress.ps1 check-in: 0d5e172abf user: terran tags: trunk
14:16
A trace/logging system that wraps Write-Verbose, Write-Debug or Write-Warning to add timestamps and invocation source to the output, as well as allowing complicated messages to be calculated only when the output will actually be displayed. check-in: 432fd13941 user: Joel Bennett tags: trunk
14:16
Get observed IP address ranges and VLAN IDs from an ESX host’s physical adapter. Sample use at the bottom. check-in: fa411db461 user: Carter Shanklin tags: trunk
14:16
This is an updated version of the home automation module. The main difference is that some output is removed (no news is good news…) if “-Verbose” is not used and that it has a separate cmdlet for connecting to Telldus Live! (Connect-TelldusLive) which uses a PSCredential. check-in: 8f1321795c user: DollarUnderscore tags: trunk
14:16
This advanced function will return information about the estimated token size and group memberships of the specified user. check-in: 25ccace0aa user: DollarUnderscore tags: trunk
14:16
test check-in: 4b9cf936e7 user: teste tags: trunk
14:16
quick hard coded script for uploading a file to an ftp server. check-in: 53b33c72c4 user: Stephen Price tags: trunk
14:16
Output text ato a new PowerPoint slide check-in: c963db8b79 user: Joel Bennett tags: trunk
14:16
Find matching members in a local group check-in: ddee39bd90 user: Hal Rottenberg tags: trunk
14:16
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: 2fdf841aae user: Lee Holmes tags: trunk
14:16
3 way file compare check-in: c06a09b625 user: unknown tags: trunk
14:15
Send HL7 message to a remote host via TCP (MLLP framing) check-in: 5e9b1ff91d user: Rob Holme tags: trunk
14:15
A couple functions I use to convert DN to Canonical, and canonical to DN. I find them handy for adhoc AD tasks… I saw someone ask about it on #powershell and figured I would share :) check-in: 559ded4318 user: Glenn Sizemore glnsize tags: trunk
14:15
Posting my profile.ps1 in case anyone is interested: check-in: b0488aabe3 user: Tim Dunn tags: trunk
14:15
S-1-5-11 check-in: 01f6b59511 user: S-1-5-21-2398571 tags: trunk
14:15
Test-Port creates a TCP connection to specified port. check-in: 9509fdfcef user: Chad Miller tags: trunk