PoshCode Archive  Timeline

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

169 check-ins using file Test-Port.ps1 version 2db469ee92

2018-06-10
13:15
Open the sln file in the given directory hierarchy. Present a list if there is more than one. check-in: 31539d790f user: George Mauer tags: trunk
13:15
Start up the .Net 4.0 Cassini Webserver. Useful for those of us who like to avoid opening visual studio check-in: 4ee1afeef3 user: George Mauer tags: trunk
13:15
This is the log backup script to be used with the Async Backup Script http://poshcode.org/2787 check-in: eee5c67dba user: Justin tags: trunk
13:15
This will run multiple backup jobs at the same time. This script IS cluster aware. check-in: cca56f3119 user: Justin tags: trunk
13:15
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: d78e12b9f0 user: Jonathan Walz tags: trunk
13:15
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: 5ec6fdb39c user: Jonathan Walz tags: trunk
13:15
Add-SharePointLibraryFile – Uploads a file to a SharePoint library via HTTP PUT. check-in: 5f2d98b3ba user: Andy Arismendi tags: trunk
13:15
This Exchange 2010 MailboxImportRequest cmdlet is to help identify imports that may never complete successfully or are taking a long time to complete so they can be suspended and other imports in the queued can complete in a timly manner. check-in: 6e825b697f user: Jon Webster tags: trunk
13:15
A first attempt at a generic graphing function using commands from WPFToolkit’s DataVisualization dll check-in: 03259b354e user: Joel Bennett tags: trunk
13:15
Uses ShowUI to display a binary clock. Hotkeys H, T and D toggle Help, Time and Date text and +/- keys resize. Click and drag anywhere to move. Double-Click to close. This was inspired by Boe Prox’s post at: http://learn-powershell.net/2011/07/06/building-a-binary-clock-with-powershell/ and the release of ShowUI 1.1 check-in: c7943818d8 user: Ryan Grant tags: trunk
13:15
Extended version of Hal’s original “dirtoday” script via twitter https://twitter.com/#!/halr9000/status/88211937720156160 check-in: 8c7379cc33 user: bmorriso tags: trunk
13:15
Extended version of Hal’s original “dirtoday” script via twitter https://twitter.com/#!/halr9000/status/88211937720156160 check-in: ba1fb990ba user: bmorriso tags: trunk
13:15
Fix for redirect loops check-in: 3d68b781c3 user: Joel Bennett tags: trunk
13:15
Install and run BGInfo at startup using registry method check-in: 1bca9bc6fa user: Chad Miller tags: trunk
13:15
Converts Image Files to icon files check-in: 3292638469 user: Chad Miller tags: trunk
13:15
Add-PrinterDriver is a PowerShell function to install all printer drivers from a specified print server. The function is primarily targeted at Remote Desktop Services (formerly Terminal Services) Session Host servers. check-in: 083fc9d936 user: Jan Egil Ring tags: trunk
13:15
Get the MAC Address of an existing IP using SendARP request. check-in: c13ddbc9f3 user: bar971it tags: trunk
13:15
Force $duds to be an array so for small documents exceptions aren’t thrown. check-in: fa197b7bfc user: unknown tags: trunk
13:15
3014c106d0704f92677d34a02c29cc96 check-in: 1014582848 user: Joel Bennett tags: trunk
13:15
Check if all the services with StartMode AUTOMATIC are actually Running check-in: 7ac3c57558 user: LazyWinAdmincom tags: trunk
13:15
Check if all the services with StartMode AUTOMATIC are actually Running check-in: 2084a1394a user: Xavier C tags: trunk
13:15
There are a couple scripts that parse netsh commands. I didn’t see this one already done, so I couldn’t steal it. I suppose I could use some regex or something simple to cut the whitespace, so feel free to “fix her up”, but this got the job done (of putting the netsh output into an object). This is a snip from a larger script I wrote as a looping, recording monitor. I used this guy’s script for inspiration: http://poshcode.org/1731 check-in: 4138e035f3 user: Josh Popp tags: trunk
13:15
List active directory attributes from schema check-in: 297f1f9e58 user: BSonPosh tags: trunk
13:15
List active directory attributes from schema check-in: 6536c752e7 user: BSonPosh tags: trunk
13:15
List active directory attributes from schema check-in: 5c3835c78a user: BSonPosh tags: trunk
13:15
This module allows you to Get, Enable and Disable the software rollback settings on your computer or computers. This is useful when working with certain patches and software installations that require the software rollback to be enabled. check-in: d86fe4a7b6 user: Boe Prox tags: trunk
13:15
A function for creating tied variables using Robert Robelo’s idea to create breakpoints that update the variable values. check-in: e8b1c89c4e user: Joel Bennett tags: trunk
13:15
Download and install Google Chromium if there is a newer version available. check-in: 15a03b0338 user: MJWJ1 tags: trunk
13:15
Version: 0.1 check-in: 3658976898 user: Stefan Stranger tags: trunk
13:15
Version: 0.1 check-in: 7b5c748a05 user: Stefan Stranger tags: trunk
13:15
Version: 0.1 check-in: a8e8b13dd0 user: Stefan Stranger tags: trunk
13:15
This script will take a Twitter User’s Screen name and get their RSS feed of posts check-in: 0d9897862e user: CrazyDave tags: trunk
13:15
A script for ShowUI 1.0 — using Quest’s active directory cmdlets to retrieve user information and allow you to select one of the groups they’re a member of. Could be extended to populate a bunch of form fields from active directory and even allow updating them… check-in: e7bd27003a user: Joel Bennett tags: trunk
13:15
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: 54dbd0b3fe user: Jonathan Walz tags: trunk
13:15
Mounts a NFS datastore to several vSphere 4.X hosts with PowerCLI. The script assumes you are already connected to a VI server. check-in: 1d2ebcd501 user: eprich tags: trunk
13:15
Get-Path converts relative paths to drive or PSProvider -qualified paths. check-in: ad529fefa0 user: Joel Bennett tags: trunk
13:15
kyletboat3 check-in: 4c0a2d1cfc user: kyletboat3 tags: trunk
13:14
A series of functions to verify Agent, SQL, SSIS, SMB, WMI services or connections. Useful when troubleshooting data center firewall configuration. check-in: 6b5ecc9aee user: Chad Miller tags: trunk
13:14
A script that makes an encrypted Powershell script. check-in: 97f847be8a user: RYBAT tags: trunk
13:14
This function backs up eventlogs on a remote computer, where the recordcount for a given log is greater than zero. check-in: 3712439e28 user: Jeff Patton tags: trunk
13:14
This advanced function allows you to transfer or seize the FSMO roles to a specified Domain Controller. Has support for -Whatif and -Confirm to avoid making a mistake with transferring the roles. Also can display the current owners after the action has completed using -PassThru. check-in: 6e212063db user: Boe Prox tags: trunk
13:14
This advanced function will get all FSMO role owners for each domain in a forest. Returns an object that contains the collection of FSMO role owners. check-in: b30db51c4b user: Boe Prox tags: trunk
13:14
This advanced function will get all FSMO role owners for each domain in a forest. Returns an object that contains the collection of FSMO role owners. check-in: b9b4f77ed8 user: Boe Prox tags: trunk
13:14
This function backs up eventlogs on a remote computer, where the recordcount for a given log is greater than zero. check-in: 32ca21866e user: Jeff Patton tags: trunk
13:14
This advanced function will get all FSMO role owners for each domain in a forest. Returns an object that contains the collection of FSMO role owners. check-in: d6da8a2b5f user: Boe Prox tags: trunk
13:14
A series functions to verify Agent, SQL, SSIS, SMB, WMI services or connections. Useful when troubleshooting data center firewall configuration. check-in: 7baf5499c5 user: Chad Miller tags: trunk
13:14
The beginnings of a function for handling ETS exceptions thrown by types which are not CLS Compliant when you try to output them. check-in: 23aeee80ad user: Joel Bennett tags: trunk
13:14
Build a SQL Connection String using specified parameters check-in: 7569a72090 user: Joel Bennett tags: trunk
13:14
After connecting to your VI server, we get a list of virtual switches on the datacenter and from that we pull out the VHostID that matches the server we passed in at the command-line. Using the VHostID we return a list of networks objects on that server. check-in: e00f37f44b user: Jeff Patton tags: trunk
13:14
quick hard coded script for uploading a file to an ftp server. check-in: d0c02d2874 user: Stephen Price tags: trunk
13:14
This script pingscan a subnet for running machines (full parallel) and executes (full parallel) any command on these machines check-in: ef28ec561a user: Carsten Krueger tags: trunk
13:14
Helpers for working with .Net classes: Get-Constructor, Get-Assembly, Add-Assembly, Get-Type check-in: 8f614e9064 user: Joel Bennett tags: trunk
13:14
This script will take a Twitter User’s Screen name and get their RSS feed of posts check-in: 735ae7975d user: CrazyDave tags: trunk
13:14
Displays active TCP connections and includes the process ID (PID) and Name for each connection. check-in: 68a7e19306 user: Shay Levy tags: trunk
13:14
Creates new self-signed code signing certificate and installs it to current user’s personal store. Supports Windows XP and higher. check-in: 84a95785d5 user: vpodans tags: trunk
13:14
This is a template intended for creating a wizard with PowerShell code from scratch. The sample consists of two sections, the template itself and the wxample of its use. check-in: 7ac65ae6e0 user: Alexander Petrovskiy tags: trunk
13:14
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: 27f914d640 user: SddrCErrR tags: trunk
13:14
hashtable to object function. check-in: 9ef0d2dd60 user: nQPuDDji tags: trunk
13:14
My first contribution. I am crazily thinking of doing a “Powershell Only” day. The first task is to figure out how to manipulate Outlook through PowerShell. The submitted script hits my Outlook inbox and goes through the inbox and each subfolder and retrieves the unread emails from it. It then goes through my task list and gets all the incomplete tasks. This was my first time using a status bar and definitely the first for making anything outside the scripting games public. I’d hate to get finished with the Outlook “module” and find out I could have saved myself a lot of time, so I through the script as it is now on the mercy of the court. Proceed with your red pens… check-in: 403ad4ed4d user: chris seiter tags: trunk
13:14
This will perform a basic netstat.exe command and “objectize” its output. check-in: 2ca0df4224 user: Ivan F tags: trunk
13:14
This is the file you need to load Quest’s Active Directory snap-in as a module. Just put this in a folder with all the dlls … check-in: cbb03c0a43 user: Joel Bennett tags: trunk
13:14
Quickly tests if a given web server (specified by Url parameter) is running a WebDAV service. Should work against any server platform that supports the WebDAV RFCs. check-in: 5bfd8d46f1 user: halr9000 tags: trunk
13:14
WPF GUI to watch TechED 2011, NA sessions check-in: 06a50eb3ff user: Ravikanth tags: trunk
13:14
This module uses PSexec,vbscript and PowerShell to install patches on local or remote systems. This does require PSexec to be in the same directory as where you are running the function within this module. Save as a .psm1 file. check-in: b5fbe3dade user: Boe Prox tags: trunk
13:14
This is the sister script to a bigger project. I will have the full script and uses on my blog vnoob.com soon check-in: e8125ee623 user: unknown tags: trunk
13:14
This script will take a Twitter User’s Screen name and get their RSS feed of posts check-in: b2a812053e user: CrazyDave tags: trunk
13:14
How to add a SSL Certificate to IIS with Powershell as well as set the SSL Binding for the site that’s using the certificate. check-in: bffd24dc9f user: Brian H Madsen tags: trunk
13:14
I wrote this a while back to be able to automate stuff on a hp san and ilo. It’s pretty much mritten ad-hoc so please feel free to improve on it. Anyway, might be useful for someone out there. The function send-command logs on to a telnet server and executes the piped in commands. check-in: 2a66cac1ac user: David Sjstrand tags: trunk
13:14
Downloads the current sysinternals from \\live.sysinternals.com\tools and then updates your path environment variable to include the location saved to. Along with that it sorts, and removes duplicate entries in the path variable. If you call get-sysinternals without any args the local directory will be systemroot\Sysinternals\ Otherwise, the files will be put in the specified path. check-in: 0f38c009f5 user: vbjay tags: trunk
13:14
Downloads the current sysinternals from \\live.sysinternsals.com\tools and then updates your path environment variable to include the location saved to. Along with that it sorts, and removes duplicate entries in the path variable. If you call get-sysinternals without any args the local directory will be systemroot\Sysinternals\ Otherwise, the files will be put in the specified path. check-in: 6eb9bb8e2d user: vbjay tags: trunk
13:14
Downloads the current sysinternals from \\live.sysinternsals.com\tools and then updates your path environment variable to include the location saved to. Along with that it sorts, and removes duplicate entries in the path variable. If you call get-sysinternals without any args the local directory will be systemroot\Sysinternals\ Otherwise, the files will be put in the specified path. check-in: 9a34cb677e user: vbjay tags: trunk
13:14
This script is pretty simple, it connects to a remote computer and grabs the BIOS class. It then connects to the Dell support page for the remote computer’s ServiceTag. If the computer is a Dell, it grabs the BIOS revision listed on the page. The inspiration came from reading the Scripting Guy blog about comments. (http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/16/add-excellent-comments-to-your-powershell-script.aspx) check-in: ff534b88b7 user: Jeff Patton tags: trunk
13:14
This script is pretty simple, it connects to a remote computer and grabs the BIOS class. It then connects to the Dell support page for the remote computer’s ServiceTag. If the computer is a Dell, it grabs the BIOS revision listed on the page. The inspiration came from reading the Scripting Guy blog about comments. (http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/16/add-excellent-comments-to-your-powershell-script.aspx) check-in: 554a091fa1 user: Jeff Patton tags: trunk
13:14
This script is pretty simple, it connects to a remote computer and grabs the BIOS class. It then connects to the Dell support page for the remote computer’s ServiceTag. If the computer is a Dell, it grabs the BIOS revision listed on the page. The inspiration came from reading the Scripting Guy blog about comments. (http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/16/add-excellent-comments-to-your-powershell-script.aspx) check-in: 0bdf7befed user: Jeff Patton tags: trunk
13:14
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: 9335fb6eef user: Bernd Kriszio tags: trunk
13:14
A function to rename a computer check-in: 9d909157bc user: Gerald Klassen tags: trunk
13:14
Purpose: This script can be set as a scheduled task to run every 30minutes and will monitor all exchange 2010 queue’s. If a threshold of 10 is met an output file with the queue details will be e-mailed to all intended admins listed in the e-mail settings check-in: 6f721e8bfd user: Paperclips tags: trunk
13:14
Very simple script that will create file list from -Path in simple UI generated using Show-UI. ToolTip show size and last write time of a file, and once clicked – it will pass fullname down the pipe. It was created mainly as a attempt to use some animated effects in Show-UI. check-in: bf31e8c790 user: BartekB tags: trunk
13:14
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: a59144cb6e user: Lee Holmes tags: trunk
13:14
This is an update to my “Speech.psm1” script module for doing voice/speech recognition. With this version, speech macros will be executed asynchronously, so it doesn’t tie up the shell for the duration :) Of course, if the shell is actually BUSY, it will delay execution of macros. See usage examples at the bottom of the script. check-in: 8fcd3dba57 user: Joel Bennett tags: trunk
13:14
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: 449248f40a user: Matt Wilson tags: trunk
13:14
A demonstration of how to do menus and commands in ShowUI (it works against the Latest Changeset d7ad095858eb right now, so you can just hit the download link on the right of that page). check-in: 66a2a8fea6 user: Joel Bennett tags: trunk
13:14
This Advanced Function will look to see if the current user context running a command/script is an Administrator or not. If not, a menu is presented to the user to either continue or enter alternate credentials. The function will either return a credential object of the alternate credential or a string type stating that the current user context will be used. check-in: f5f4d53a6a user: Boe Prox tags: trunk
13:13
This is a flexible multiple-input prompt for Show-UI (it works against the Latest Changeset ‘d7ad095858eb’ right now, so you can just hit the download link on the right) check-in: 3901cff930 user: Joel Bennett tags: trunk
13:13
Modeled after SQL Server 2008 Invoke-Sqlcmd, but fixes bug in QueryTimeout. Put closing connection in finally block. check-in: 15a0dc019e user: Chad Miller tags: trunk
13:13
I noticed that WPF has LinearGradient and RadialGradient. Wanted something more… square in size. First tried to use something that allowed me to build brush easy, but it was hard to change it into something portable. So I just used New-Object and now you can use it in WPK, PowerBoots or Show-UI, whichever you prefer. ;) This script is building actual function and shows some demo usage + load required assemblies and makes sure we are in STA (some controls barfed at me when I tried to leave it -MTA). I only hope it’s not done already… ;) Corners are rounded, so that it looks more soft. check-in: df93d0dd33 user: BartekB tags: trunk
13:13
Invoke generic method definitions (including static methods) from PowerShell. check-in: c10daadadf user: Oisin tags: trunk
13:13
The Get-MyPublicIPAddress script uses DNS-O-Matic, an OpenDNS resource, to retreive the public IP address that represents your computer on the internet. check-in: 45b50c1d72 user: Rich Kusak tags: trunk
13:13
New-Choice Update check-in: 8e36ee1f15 user: Andy Schneider tags: trunk
13:13
Creates a Choice Dialog for end users. It will return the string that the user chose. check-in: 9176ad4232 user: Andy Schneider tags: trunk
13:13
This function returns an object that contains all the properties of a user object. This function works for small groups as well as groups in excess of 1000. check-in: 8b366a7556 user: Jeff Patton tags: trunk
13:13
Heres a function to quickly look up the latest version of the bogon list maintained by Team Cymru from within PowerShell. check-in: bb382272a1 user: Rich Kusak tags: trunk
13:13
This function returns an object that contains all the properties of a user object. This function works for small groups as well as groups in excess of 1000. check-in: 97a4e1d94f user: Jeff Patton tags: trunk
13:13
Invoke generic method definitions (including static methods) from PowerShell. check-in: 691d2635ba user: Joel Bennett tags: trunk
13:13
Convert a Windows PowerShell shortcut to the Solarized color scheme(s). check-in: 7983109e5a user: Joel Bennett tags: trunk
13:13
Writes data only to SQL Server tables. However, the data source is not limited to SQL Server; any data source can be used, as long as the data can be loaded to a DataTable instance or read with a IDataReader instance. check-in: b2144145dd user: Chad Miller tags: trunk
13:13
An interactive graphical filter for pipeline objects… (a sample script for Show-UI which works right now on changeset d7ad095858eb) check-in: 2a91e3e42d user: Joel Bennett tags: trunk
13:13
Imports certificate in specified certificate store. check-in: ea49577b56 user: anti121 tags: trunk
13:13
Get PowerShell numbered scope in anytime!!! check-in: 213c07c6df user: ingted tags: trunk
13:13
Enumerate through the default folder within Outlook and calculate size of each sub-folder and produce a final total size. check-in: ada53f5dfe user: marcadamcarter tags: trunk
13:13
Converts objects to custom PSObjects with robust type support. Allows converting data from Import-CSV etc into type-safe pseudo structs … check-in: ea03176103 user: Joel Bennett tags: trunk
13:13
Converts objects to custom PSObjects with robust type support. Allows converting data from Import-CSV etc into type-safe pseudo structs … check-in: a4061d8f92 user: Joel Bennett tags: trunk
13:13
Converts objects to custom PSObjects with robust type support. Allows converting data from Import-CSV etc into type-safe pseduo structs … check-in: f9ce36867d user: Joel Bennett tags: trunk
13:13
Get PowerShell numbered scope in anytime!!! check-in: ccfa44e0cd user: ingted tags: trunk
13:13
Attempt to resolve the path to an Application using Get-Command or the “App Paths” registry key or the start menu search. check-in: d18f1d4109 user: Joel Bennett tags: trunk
13:13
Add new smtp address from csv and set new address primary check-in: d95871d728 user: Ermias tags: trunk
13:13
Hack your ESXi welcome screen. check-in: 246a851cfa user: Carter Shanklin tags: trunk
13:13
Script to retrieve the leader boards from the 2011 Scripting Games as objects. New version fixes an error with regex that caused usernames with periods or other non-english characters to be excluded (Thanks to Scott Alvarino for noticing this). Also added rankings, which unfortunately causes PowerShell to default the display to a list format, but I assume that any PowerSheller looking at the leaderboards is capable of piping the output to “Format-Table -AutoSize” :) check-in: 6f13bec683 user: Scott Alvarino tags: trunk
13:13
Script to retrieve the leader boards from the 2011 Scripting Games as objects. New version fixes an error with regex that caused usernames with periods or other non-english characters to be excluded (Thanks to Scott Alvarino for noticing this). Also added rankings, which unfortunately causes PowerShell to default the display to a list format, but I assume that any PowerSheller looking at the leaderboards is capable of piping the output to “Format-Table -AutoSize” :) check-in: c575b20582 user: Alex McFarland tags: trunk
13:13
ACE.psm1 is a module for getting data from Microsoft Office Access (*.mdb and .accdb) files and Microsoft Office Excel (.xls, *.xlsx, and *.xlsb) files. check-in: a153fadb9b user: Chad Miller tags: trunk
13:13
From a great function in Powertab (on Codeplex). check-in: 2986e97d10 user: bar971it tags: trunk
13:13
My variation for SG 2011 Leader Board watcher. :) Using regex + xml. Lets you specify -Top and -Name, so that you see person even if she/he is not (yet ;) ) in top. :D check-in: 267698e099 user: BartekB tags: trunk
13:13
Function to retrieve score information for the 2011 Microsoft Scripting Games. check-in: 5bc0876fa2 user: Mike Hammond tags: trunk
13:13
The Split-Job function provides easy multithreading at the command line or in a script. It was created from a system administrator’s point of view and is compatible with PS v1. Supports importing functions, variables and snapins. For history and background please visit http://www.jansveld.net/powershell. check-in: e66aef07e1 user: Arnoud Jansveld tags: trunk
13:13
The Split-Job function provides easy multithreading at the command line or in a script. It was created from a system administrator’s point of view and is compatible with PS v1. Supports importing functions, variables and snapins. For history and background please visit http://www.jansveld.net/powershell. check-in: 6aaafd7339 user: Arnoud Jansveld tags: trunk
13:13
The Split-Job function provides easy multithreading at the command line or in a script. It was created from a system administrator’s point of view and is compatible with PS v1. Supports importing functions, variables and snapins. For history and background please visit http://www.jansveld.net/powershell. check-in: b0ef0d4d15 user: Arnoud Jansveld tags: trunk
13:13
Tails a File, but does not work. No output to screen, not even an error when not setting number of lines variables. check-in: 5a36207184 user: William Stacey tags: trunk
13:13
Find duplicates in <directories/files> comparing size then SHA-512 hash of files. Usage: finddupe.ps1 <directory/file #1> <directory/file #2> ... <directory/file #N> [-delete] [-noprompt] [-recurse] ; -delete will prompt to delete duplicates. -delete and -noprompt together will delete duplicates without prompting. -recurse looks in all subdirectories of all listed directories. The first file in a duplicate pair will not be deleted ever. check-in: e4e92dbecf user: James Gentile tags: trunk
13:13
Get-ImageMetadata lets you access the EXIF, XMP and other metadata about image files … this should only be taken as an example and a reference, not for solid production work — in other words, I won’t take the blame if you zero out all your jpgs trying to modify this to ReadWrite instead of just Read :) check-in: 85f75bc467 user: Joel Bennett tags: trunk
13:13
Here is a quick script I created to convert files to ASCII character set. This came about because I found Out-File was creating files as Unicode and Add-Content was writing ASCII (Even though the help says it defaults to Unicode). So writing to the files with Add-Content would use the wrong encoding and add garbage to the log files. I changed all my code to include the -Encoding ASCII parameter, but had thousands of files encoded as Unicode. (Note: To see what format it is, open in Notepad and select Save As… it will be listed at the bottom). It replaces the file with a new ASCII encoded file so I also added some logic to capture and set the original file timestamps. This is my first draft so I’m sure there is room for improvements. Such as error handling and adjustments so the input parameters don’t have to be so exact, but it works and thought I would share. -=Levon check-in: 06089a5f9b user: Levon Becker tags: trunk
13:13
Here is a quick script I created to convert files to ASCII character set. This came about because I found Out-File was creating files as Unicode and Add-Content was writing ASCII (Even though the help says it defaults to Unicode). So writing to the files with Add-Content would use the wrong encoding and add garbage to the log files. I changed all my code to include the -Encoding ASCII parameter, but had thousands of files encoded as Unicode. (Note: To see what format it is, open in Notepad and select Save As… it will be listed at the bottom). It replaces the file with a new ASCII encoded file so I also added some logic to capture and set the original file timestamps. This is my first draft so I’m sure there is room for improvements. Such as error handling and adjustments so the input parameters don’t have to be so exact, but it works and thought I would share. -=Levon check-in: 90d053ecc9 user: Levon Becker tags: trunk
13:13
Here is a quick script I created to convert files to ASCII character set. This came about because I found Out-File was creating files as Unicode and Add-Content was writing ASCII (Even though the help says it defaults to Unicode). So writing to the files with Add-Content would use the wrong encoding and add garbage to the log files. I changed all my code to include the -Encoding ASCII parameter, but had thousands of files encoded as Unicode. (Note: To see what format it is, open in Notepad and select Save As… it will be listed at the bottom). It replaces the file with a new ASCII encoded file so I also added some logic to capture and set the original file timestamps. This is my first draft so I’m sure there is room for improvements. Such as error handling and adjustments so the input parameters don’t have to be so exact, but it works and thought I would share. -=Levon check-in: 2c8464a4e7 user: Levon Becker tags: trunk
13:13
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: 173b63586d user: Joel Bennett tags: trunk
13:13
Displays a custom dialog box for a timeout period. The dialog box contains a message, two buttons and a countdown timer. The button text and other options are set through the parameters. The WSHShell.Popup has a bug so replace it with this script. check-in: b2078a8a4e user: Grant Carthew tags: trunk
13:13
Initialize-WindowsInstallPoint check-in: 5232da3026 user: Rich Kusak tags: trunk
13:13
A function that simplifies calling methods with named parameters to make it easier to deal with long signatures and optional parameters. This is particularly helpful for COM objects. check-in: a7b4ec09b5 user: Jason Archer tags: trunk
13:13
A function to rename a computer check-in: 6e9c8a1585 user: Gerald Klassen tags: trunk
13:13
Get and Set functions for SNTP check-in: eb1b591b74 user: a Monkey tags: trunk
13:12
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: 5d0bc2dea3 user: Winfred tags: trunk
13:12
posh entry check-in: 3c011d8fa3 user: Marc Carter tags: trunk
13:12
Emails a report of Exchange 2010 mailboxes over their size limit. check-in: 9555bcc87b user: Chris Brown tags: trunk
13:12
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: 8762b7de49 user: Jason Fossen tags: trunk
13:12
Functions to encrypt and decrypt strings using the Rijndael symmetric key algorithm check-in: d18da12495 user: Joel Bennett tags: trunk
13:12
Functions to encrypt and decrypt strings using the Rijndael symmetric key algorithm check-in: 9028e3e087 user: Joel Bennett tags: trunk
13:12
Uses the Haversine equation (you know you LOVE spherical geometry) to calculate distance between two points on the earth. check-in: 0ba3a887f0 user: callias tags: trunk
13:12
Search and browse to url in an instapaper csv. check-in: 043b58d825 user: Adminian tags: trunk
13:12
A powershell script that will create the CREATE DDL for any object in a SQL Server database. It requires the open source Atlantis.SchemaEngine.dll available at http://www.atlantis-interactive.co.uk/blog/post/2011/02/24/Free-SQL-Server-Schema-Synchronisation-Engine-announcing-the-release-of-the-AtlantisSchemaEngine-source-code.aspx check-in: 760bf9d067 user: Justin Dearing tags: trunk
13:12
Some functions for drawing mini-buffers. Please try the two Test functions included: Test-DisplayBox and Test-BufferBox check-in: 216a8245ed user: Joel Bennett tags: trunk
13:12
A powershell script that will create the CREATE DDL for any object in a SQL Server database. It requires the open source Atlantis.SchemaEngine.dll available at http://www.atlantis-interactive.co.uk/blog/post/2011/02/24/Free-SQL-Server-Schema-Synchronisation-Engine-announcing-the-release-of-the-AtlantisSchemaEngine-source-code.aspx check-in: 16fb3f4479 user: Justin Dearing tags: trunk
13:12
A powershell script that will create the CREATE DDL for any object in a SQL Server database. It requires the open source Atlantis.SchemaEngine.dll available at http://www.atlantis-interactive.co.uk/blog/post/2011/02/24/Free-SQL-Server-Schema-Synchronisation-Engine-announcing-the-release-of-the-AtlantisSchemaEngine-source-code.aspx check-in: 3d7d444d92 user: Justin Dearing tags: trunk
13:12
A powershell script that will create the CREATE DML for any object in a SQL Server database. It requires the open source Atlantis.SchemaEngine.dll available at http://www.atlantis-interactive.co.uk/blog/post/2011/02/24/Free-SQL-Server-Schema-Synchronisation-Engine-announcing-the-release-of-the-AtlantisSchemaEngine-source-code.aspx check-in: c51ed6d496 user: Justin Dearing tags: trunk
13:12
A script that scripts a stored proc in SQL server. check-in: 9074d8ead2 user: Justin Dearing tags: trunk
13:12
A script that scripts a stored proc in SQL server. check-in: abf71a8c92 user: Justin Dearing tags: trunk
13:12
A script that scripts a stored proc in SQL server. check-in: 4440f10fe0 user: Justin Dearing tags: trunk
13:12
Simple function that executes a command (stored procedure) against an SQL database. check-in: a89c20d3cf user: dragonmc77 tags: trunk
13:12
Get an attachment from an exchange e-mail. check-in: d22b83702a user: George Mauer tags: trunk
13:12
AnalyzeScript opens a dialog box for user selection; checks that input is a powershell script; parses and agrigates the script components. check-in: e568420376 user: Paul A tags: trunk
13:12
AnalizeScript opens a dialog box for user selection; checks that input is a powershell script; parses and agrigates the script components. check-in: dc9d1166ca user: Paul A tags: trunk
13:12
Logging function for Powershell v2. Needed to address current Powershell logging limitations. See a discussion about said limitations here: http://jdhitsolutions.com/blog/2011/03/powershell-automatic-logging/#comment-2899 . check-in: 4e58443b98 user: Andy Arismendi tags: trunk
13:12
Read in an IIS *log file saved in format W3C. check-in: 56c3d7a509 user: Mark Shevchenko tags: trunk
13:12
Read in an IIS *log file saved in format W3C. check-in: a802a5d486 user: unknown tags: trunk
13:12
different examples of how you can access properties with a custom where function check-in: 38929b1aef user: karl prosser tags: trunk
13:12
different examples of how you can access properties with a custom where function check-in: 8f29baa863 user: karl prosser tags: trunk
13:12
Logging function for Powershell v2. Needed to address current Powershell logging limitations. See a discussion about said limitations here: http://jdhitsolutions.com/blog/2011/03/powershell-automatic-logging/#comment-2899 . check-in: cc8c9d38b8 user: Andy Arismendi tags: trunk
13:12
This function will allow you to retreive the contents of a hosts file on a local or remote system. This can be used with one or more systems. check-in: a70951df0d user: Boe Prox tags: trunk
13:12
As written will manually apply all settings associated with a local WSUS server. Ideal for use when you need to force a non-domain system to point to a domain based WSUS server. check-in: 4b683b8d04 user: Kenneth C Mazie tags: trunk
13:12
This function will allow you to retreive the contents of a hosts file on a local or remote system. This can be used with one or more systems. check-in: ea054b98d4 user: Boe Prox tags: trunk
13:12
Originally written to regenerate the init.txt file for server based Halo 1 PC multiplayer games. It may however be easily edited and used to randomize any array or group of arrays. check-in: cc20bc00d6 user: Kenneth C Mazie tags: trunk
13:12
AutoArchive Script check-in: a5c6cc2fff user: ChristopheCREMON tags: trunk
13:12
This function will allow you to retreive the contents of a hosts file on a local or remote system. This can be used with one or more systems. check-in: f9d93afacb user: Boe Prox tags: trunk
13:12
Create a Sharepoint 2010 farm check-in: ec8ffc043a user: Jos Verlinde tags: trunk
13:12
Creates an event handler for monitoring either process creation or deletion. This requires to be run as administrator. check-in: e0f79a02a9 user: Ravikanth tags: trunk
13:12
Creates an event handler for monitoring either process creation or deletion. This requires to be run as administrator. check-in: 5877966bb6 user: Ravikanth tags: trunk
13:12
Queries DNS to return the host name and associated IP addresses, given either an IP address or a host name via the pipeline or parameter (accepts arrays). check-in: 9ee2692d1b user: Nathan Hartley tags: trunk
13:12
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: bf94c883c7 user: Joel Bennett tags: trunk
13:12
As written it will poll Cisco routers and switches and if the snmp OID’s match it will pull out model, serial, and IOS version. The resulting spreadsheet contains IP, host name, serial, model, IOS version, and rack location. The script is heavily documented internally. See the script for more info. check-in: 29115fd95a user: Kenneth C Mazie tags: trunk
13:12
Give as input a cmdlet name. Output is a set of properties about each parameter, including: name, parameter set, aliases, ismandatory, and CommonParameter. Thanks to LucD for the technique. check-in: 3e10580577 user: halr9000 tags: trunk
13:12
This function will allow you to query local or remote computer/s and determine if there are pending WSUS updates that need to be installed. A report is returned that can be exported to a CSV file if desired. check-in: 8db30724ff user: Boe Prox tags: trunk
13:12
Advanced function used to test UDP or TCP port/s on one or more systems to determine if it is open or not. check-in: 3b86ce9bf4 user: Boe Prox tags: trunk