Various PowerShell scripts
This page just gives me a place to keep a most-recent-copy of my various PowerShell scripts, mostly related to TFS. This makes it easier for people that want to use them than having to copy-paste from lots of different blog posts. Note that since some of the scripts call other scripts in this collection, you'll want whatever dir you put them in to be in your path so those calls will resolve correctly.
History:
- 2007-02-14: initial posting
- 2007-02-20: remove backup files, add JManningSnapIn dir with 2 cmdlets
- 2007-02-27: add AUTH property to get-tfs for easier access to IAuthorizationService
- 2007-04-04:
- remove cmdlets since they'll likely become power tools
- update check-wss to use OM
- add various scripts posted on the blog
- change-websiteid
- connect-webservice (slightly modifed version of Lee's)
- convertto-readabledisplayname
- get-db
- get-hash
- get-hashes
- get-iprestrictions
- get-memberships
- get-sqlrsinfo
- get-teamprojectacls
- get-tfsserverstatus (actually a rename and edit of get-tfsstatus)
- wmiexplorer (MoW's version)
- update translate-changeset to use connect-webservice
- beef up run-query to handle both scalar and sets of data
- fix trap construction when normalize-tfserverurl calls get-workspace
- change normalize-tfserverurl param to optional by figuring out server based on if the current dir is mapped
- refactor out new-sqlconnectionfromconnectionstring so places with a connection string can get a connection from that
Comments
Anonymous
February 13, 2007
[note: all my scripts are now zip'd up together on this page ] This particular script probably isn'tAnonymous
February 14, 2007
<imho> I cringe when I come across web sites or blog posts that start out with something like "shoveAnonymous
February 20, 2007
I was spamming asking around earlier this week about how to monitor process creation in windows. I wasAnonymous
February 21, 2007
After compiling, how it can be used? -newbeeAnonymous
February 22, 2007
Good quesiton! installutil the dll, add-pssnapin in new instance of powershell. more details at https://blogs.msdn.com/jmanning/archive/2007/02/07/simplest-tfs-cmdlet-history-of-a-local-file.aspxAnonymous
March 09, 2007
Forum thread was asking for this (admittedly, in C#). Since it's less typing in PowerShell, that's whatAnonymous
March 09, 2007
The comment has been removedAnonymous
March 09, 2007
Ya know it appears that the Get-TfsStatus.ps1 script is meant to run on a TF server. Is that correct? I really need it to run on the client side.Anonymous
March 10, 2007
It's currently in the collection as get-tfsstatus.ps1 which has caused confusion since it doesn't actAnonymous
March 29, 2007
<Copying this post almost directly from James , but the scripts are my own. See his blog for more