ShinyPower!
secretGeek .:dot Nuts about dot Net:.
home .: about .: sign up .: sitemap .: secretGeek RSS

ShinyPower!

ShinyPower!

ShinyPower is a little C# app i wrote to automate browsing PowerShell's help files.

The source code and a new version are now available at CodePlex.

New Version out now! Works with Powershell Release Candidate 2 -- Available from CodePlex

If you still want to download the old version... well...

Requires PowerShell RC1 and the .Net Framework version 2.0

It's very rough, and is just a proof of concept really.

download ShinyPower!  Download ShinyPower (for RC1) (and then unzip) from here.

Q: Why 'Shiny?' A: Firefly.

Q: Any other C# tools/samples that automate Powershell?

A:This Turtle Logo application [called 'MSH Logo'] is wikid. Also, scott hanselman posted up a snippet recently.

The first step in automating powershell is to add a reference to System.Management.Automation.dll, which (for me) was located in:

C:\Program Files\Windows PowerShell\v1.0\

How to use 'ShinyPower'

how to use Shiny Power
  1. Select the type of help topic you want to read, from the drop down list, top left..
  2. Click on the particular help topic, from the listbox at left.
  3. Read the help (or syntax details) in the panes on the right.




'Derek Noonan' on Mon, 10 Jul 2006 07:26:17 GMT, sez:

Wow! Thanks a million ;)

DISCLAIMER: These opinions are my own personal opinions and do not necessarily reflect the opinions of Dell or any affiliated companies.



'http://' on Mon, 10 Jul 2006 10:57:26 GMT, sez:

I've been waiting for someone to do this.
10,000 thanks!


Jeffrey Snover [MSFT]
Windows PowerShell Architect
Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

PSMDTAG:DOCUMENTATION: GUI HELP
PSMDTAG:FAQ: Is there an XMAN for Windows PowerShell?



'Omer van Kloeten' on Mon, 10 Jul 2006 13:41:39 GMT, sez:

Firefly ftw! :)



'Keith Hill' on Mon, 10 Jul 2006 18:44:22 GMT, sez:

Very nice indeed!



'Martin' on Tue, 11 Jul 2006 04:22:03 GMT, sez:

Cool. Would you mind sharing the source? Would be a nice example on how to host Powerhell.



'lb' on Tue, 11 Jul 2006 04:45:43 GMT, sez:

>how to host Powerhell.

freudian typo ??

really my code is too dodgy to share!

here's an example of the heart of how shinyPower (help edition) works:

//First: add a reference to the powershell
//dll as described above ^^
using System.Management.Automation.Runspaces;

...
//in a function...

Runspace myRunSpace;
myRunSpace = RunspaceFactory.CreateRunspace();
myRunSpace.Open();
//This command will retrieve the syntax
// of the 'Out-File' cmdLet

Pipeline pipe = myRunSpace.CreatePipeline("get-Command Out-File | Format-List | out-string");
resultObject = pipe.Invoke();
string clearText = resultObject[0].ToString().Trim;
MessageBox.Show(clearText);



'Martin' on Wed, 12 Jul 2006 04:17:42 GMT, sez:

Thanks. And I doubt it was a freudian typo :-), because Powershell is the best shell I've ever seen. I got used to the limited DOS command prompt, the slightly better Windows cmd, and never felt at home in the various unix based shells, because their capabilities are difficult to discover and I never had the time to learn using them properly.

Powershell's discoverability is great, I can use the COM objects I know from Windows Scripting, the DOS commands I'm familiar with, have access to the complete .NET Framework Class library and can use WMI.

BTW, it would be nice if ShinyPower could include the various about_* help topics



'lb' on Wed, 12 Jul 2006 04:21:25 GMT, sez:

cheers martin --

to get to the about_* help topics, you use the combo box (top left) [point 1 on the picture above] -- it should selected them all... then you can view, for example:

"about_continue

SHORT DESCRIPTION
Immediately return to top of a program loop

LONG DESCRIPTION

In a scri..."



'lb' on Wed, 12 Jul 2006 04:24:19 GMT, sez:

but martin if that doesn't work for you, please tell me and send a screenshot to me: leonbambrick@gmail.com



'Martin' on Thu, 13 Jul 2006 16:24:23 GMT, sez:

Works. I didn't recognized the combo-box :-)



'Thomas Lee' on Wed, 23 Aug 2006 16:09:12 GMT, sez:

Nice app.

But it does not work here - you may need to change the code once RC2 hits.



'alex' on Thu, 28 Sep 2006 10:05:48 GMT, sez:

PowerShell RC2 has been released. Do you plan to recompile ShinyPower? That would be swell.



'Greg' on Sun, 01 Oct 2006 16:58:57 GMT, sez:

RC2 broke it. Please update it. It's really handy.



'Greg' on Sun, 01 Oct 2006 17:04:22 GMT, sez:

Better yet, release the source code. :)



'lb' on Sun, 01 Oct 2006 18:54:11 GMT, sez:

>Better yet, release the source code. :)

i'm thinkin about it... i'd love to put it up at codeplex. maybe in the meantime i can just release it via this blog.



'ShinyPower for RC2' on Tue, 03 Oct 2006 04:18:31 GMT, sez:

ShinyPower is now available for release candidate 2 -- see:
http://www.codeplex.com/Wiki/View.aspx?ProjectName=ShinyPower

(or click the link above)

source code coming soon.



'Greg' on Tue, 03 Oct 2006 18:40:51 GMT, sez:

Thanks a lot. Like I said, it's really handy.



'JustAGuy' on Mon, 09 Oct 2006 14:30:25 GMT, sez:

Mr. SecretGeek,
You should add a warning to this page for people who are using RC2 that they should download shinypower from this link http://www.codeplex.com/Wiki/View.aspx?ProjectName=ShinyPower



'johnvms' on Sun, 01 Jul 2007 08:05:56 GMT, sez:

Great utility. Very useful. Thanks!!!!!



'scripteaze' on Sat, 03 Sep 2011 22:50:49 GMT, sez:

Why not just let shinypower pull and load the local help systems?




name


website (optional)


enter the word:
 

comment (HTML not allowed)


All viewpoints welcome. But the right to delete any post for any reason is reserved. Don't make me do it. Aim for constructiveness. Comments may be republished, emailed to your loved ones or printed and used as toilet paper. Also, I get particularly nasty on comment spam. It's not worth even trying to post comment spam here -- your html is escaped, and your links are given a rel='nofollow'. By attempting to post a comment, you understand that if the comment is considered spam, at my absolute discretion, your IP address may be used as the target of a prolonged distributed denial of service attack. Your electricity might suddenly stop working. Your car tyres will go mysteriously flat. You will suffer permanent hairloss. Your dreams will be filled with terrifying monsters. And in any case I reserve the right to record and publish your IP address.

 

TimeSnapper is a life analysis system that stores and plays-back your computer use. It makes timesheet recording a breeze, helps you recover lost work and shows you how to sharpen your act.

 

NimbleText - FREE text manipulation and data extraction

NimbleText is a Powerful FREE Tool

Use it for:

  • extracting data from text
  • manipulating text
  • generating code

It makes you look awesome. Use it right now! Go on! Hurry! Don't walk, run!

 

Articles

Mind-boggling Demo of New Gaming Genre, aka Folder-Based Hangman, aka Fun with Recursion Mind-boggling Demo of New Gaming Genre, aka Folder-Based Hangman, aka Fun with Recursion
Got CSV in your javascript? Use agnes. Got CSV in your javascript? Use agnes.
I went to write down a book name and founded an internet empire instead. I went to write down a book name and founded an internet empire instead.
NimbleText: Origins NimbleText: Origins
The Windows 8 Mullet The Windows 8 Mullet
Cosby: spontaneous striped background generator Cosby: spontaneous striped background generator
Slides from WDCNZ: Live Coding Asp.net MVC3 Slides from WDCNZ: Live Coding Asp.net MVC3
MVC 3, MVC 3, "Third Times a Charm" references
Custom Errors in ASP.Net MVC: It couldn't be simpler, right? Custom Errors in ASP.Net MVC: It couldn't be simpler, right?
Anatomy of a Domain Hijacking, part 2: The Website Who Came In From The Cold Anatomy of a Domain Hijacking, part 2: The Website Who Came In From The Cold
Anatomy of a Domain Hijacking, part 1 Anatomy of a Domain Hijacking, part 1
secretGeek.net domain has been stolen. The site may go down. secretGeek.net domain has been stolen. The site may go down.
Boring article: 'untrusted domain' issue with SQL Server. Boring article: 'untrusted domain' issue with SQL Server.
Coding While You Commute Coding While You Commute
Test Driven Dentistry Is A Good Thing Test Driven Dentistry Is A Good Thing
The 'less crashy' release of NimbleText The 'less crashy' release of NimbleText
Rethinking Toolbars in Visual Studio (or any IDE) Rethinking Toolbars in Visual Studio (or any IDE)
Where shall we have lunch? Where shall we have lunch?
Setting up email for your microIsv Setting up email for your microIsv
The NO Visual Studio movement: Compiling .net projects in Notepad++ The NO Visual Studio movement: Compiling .net projects in Notepad++
ZeroOne: the editor for programmers who think in binary ZeroOne: the editor for programmers who think in binary
Mercurial workflow for personal projects (with a .net bias) Mercurial workflow for personal projects (with a .net bias)
I see you're using vim. Let me fix that for you. I see you're using vim. Let me fix that for you.
The worst recruitment spam I've ever read The worst recruitment spam I've ever read
A thank you I forgot to say A thank you I forgot to say
My new product, NimbleText, is live My new product, NimbleText, is live
Grabbing the free songs of Jonathan Coulton (with Powershell) Grabbing the free songs of Jonathan Coulton (with Powershell)
Using NimbleSet to compare lists Using NimbleSet to compare lists
Wanted: Wiki Lists (dot org) Wanted: Wiki Lists (dot org)
DOS on Dope: The last MVC web framework you'll ever need DOS on Dope: The last MVC web framework you'll ever need
JSON Query Languages: 5 special purpose editors JSON Query Languages: 5 special purpose editors
What then, is b? What then, is b?
SQLike: A simple editor SQLike: A simple editor
Yet Another BizPlan Generator. Yet Another BizPlan Generator.
HOT GUIDS: A hot or not site for guids HOT GUIDS: A hot or not site for guids
How does life get better? One tiny hack at a time. How does life get better? One tiny hack at a time.
24 things to do, and 100 things *not* to do (yet) for building a MicroISV 24 things to do, and 100 things *not* to do (yet) for building a MicroISV
Venture capital won't kill Jeff Atwood, it will only make him Jeffer. Venture capital won't kill Jeff Atwood, it will only make him Jeffer.
A handy workflow image for newbie mercurial users A handy workflow image for newbie mercurial users
Fractal Feedback, a diversion into recreational programming Fractal Feedback, a diversion into recreational programming
Hump-Jumping: How the Education of Computer Science can be Saved, err, maybe. Hump-Jumping: How the Education of Computer Science can be Saved, err, maybe.
Suggested User Experience Improvements for DiffMerge Suggested User Experience Improvements for DiffMerge
SQL Style Extensions for C# SQL Style Extensions for C#
The Movie Hollywood (And My Wife) Doesn't Want You To See: Weekend at Jacko's The Movie Hollywood (And My Wife) Doesn't Want You To See: Weekend at Jacko's
Sysi: the ultimate administrators toolkit Sysi: the ultimate administrators toolkit

Archives .: secretGeek :: Complete Archives
TimeSnapper -- Automated Screenshot Journal TimeSnapper.com    
Version 3.3: true productivity boost

Next Action NextAction
Managing the top of your mind

NimbleText -- World's Simplest Code GeneratorNimbleText -- World's Simplest Code Generator, Text Manipulator, Data Extractor

25 steps for building a Micro-ISV 25 steps for building a Micro-ISV
3 minute guides -- babysteps in new technologies: powershell, JSON, watir, F# 3 Minute Guide Series
Universal Troubleshooting checklist Universal Troubleshooting Checklist
Top 10 SecretGeek articles Top 10 SecretGeek articles
ShinyPower (help with Powershell) ShinyPower
Now at CodePlex

Realtime CSS Editor, in a browser RealTime Online CSS Editor
Gradient Maker -- a tool for making background images that blend from one colour to another. Forget photoshop, this is the bomb. Gradient Maker


[powered by Google] 


How to be depressed How to be depressed
You are not inadequate.



Recommended Reading


the little schemer


The Best Software Writing I
The Business Of Software (Eric Sink)

Recommended blogs

Jeff Atwood
Joseph Cooney
Phil Haack
Scott Hanselman
Julia Lerman
Rhys Parry
Joel Pobar
Thomas White
OJ Reeves
Eric Sink

Aggregated Links

proggit
dzone
hacker news
dot net kicks

Human Link Machines

interesting finds
a continuous learner's weblog
arjan's world
weekly link post

LinkedIn profile
LogEnvy - event logs made sexy
Computer, Unlocked. A rapid computer customization resource
PC Smart Buys - Computer Hardware in Australia
 
home .: about .: sign up .: sitemap .: secretGeek RSS .: © Leon Bambrick 2006 .: privacy

home .: about .: sign up .: sitemap .: RSS .: © Leon Bambrick 2006 .: privacy