PoshCode Archive  Timeline

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

113 check-ins using file Select-ViaGUI.ps1 version cb1ed33744

2018-06-10
13:16
My updated version of my original binary clock. check-in: c93c24b5db user: Boe Prox tags: trunk
13:16
My updated version of my original binary clock. check-in: d83b71b4e9 user: Boe Prox tags: trunk
13:16
Add entries to the Windows hosts file. The function checks first to see if the entry exists in the file. If the entry does not exist, the function adds the entry and verifies it was added. Please feel free to add improvements. The function Utility.Time-Stamp is another helper function I use to denote the current Time. It can be found here: http://poshcode.org/2795. check-in: b0f93363a1 user: Will Steele tags: trunk
13:16
Add entries to the Windows hosts file. The function checks first to see if the entry exists in the file. If the entry does not exist, the function adds the entry and verifies it was added. Please feel free to add improvements. check-in: c60bab14af user: Will Steele tags: trunk
13:16
This is another Must Have upgrade, because I screwed up the last one ;-) check-in: e3282ec24e user: JasonMArcher tags: trunk
13:16
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: 6b7c417fb4 user: Will Steele tags: trunk
13:16
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: a65191a482 user: Andy Arismendi tags: trunk
13:16
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: 7c35927875 user: Jeff Patton tags: trunk
13:15
This is a simple weather forecast widget that shows the current temperature and forecast. Don’t forget to change the $woEID to the right one for your location. check-in: 1c3e295873 user: Joel Bennett tags: trunk
13:15
cls check-in: 306fd13498 user: Joel Bennett tags: trunk
13:15
This is a little tweak of Ravikanth’s Script to generate a dialog for adding menu items in PowerShell ISE. All I did was just clean it up a little bit following a few guidelines: check-in: 5997764e47 user: Joel Bennett tags: trunk
13:15
This is a little tweak of Ravikanth’s Script to generate a dialog for adding menu items in PowerShell ISE. All I did was just clean it up a little bit following a few guidelines: check-in: 910f49a8e5 user: Joel Bennett tags: trunk
13:15
This is a very simple function that returns a DateTime time stamp. I use it in scripts for noting times when actions occur like this Write-Host “$(Time-Stamp): Attempting to create directory.”; It’s a lot shorter than writing out the whole thing. You can also alias it to simplify the process: New-Alias -Name ts -Value Time-Stamp;. This way I use Write-Host “$(ts): Attempting to create directory.”; It outputs: 2011.07.17 05:01:10: Attempting to create directory. You can alter the value in the ToString to change the way the time stamp is formatted. check-in: 32c218cf20 user: Will Steele tags: trunk
13:15
Update to original password generator form (http://gallery.technet.microsoft.com/scriptcenter/54c3832a-4d20-4d6e-81ac-2d6f7bc10bfe). Uses WPF as opposed to Windows Forms to create the front end UI. Able to generate passwords and allows printing of the form or just display the password. Password is copied to clipboard so you can paste it into a password reset dialog. Password is also cleared from clipboard when form is closed. check-in: c904d8fe52 user: Boe Prox 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 timely manner. This version fixes pipeline input support and improves type handling. check-in: 8ef406fc64 user: Jon Webster tags: trunk
13:15
Test-Port creates a TCP connection to specified port. By default it connects to port 135 with a timeout of 3secs. check-in: a443f7427f user: BSonPosh tags: trunk
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