[MSH] print-image
Your boss comes at your desk with a pile of CDs filled with high quality tiff images(roughly 20000 x 20000 pixels)He tells you to print all the image files fit into a "letter" sized paper in 2...
View Article[MSH] print-image *Snapin* version
During my spare time, i spent sometime converting "print-image" cmdlet into a Snapin version.I have extended its functionality just by a tiny bit by adding "Landscape" mode printing. Well, I still...
View ArticleBlogger and Technoroti problem
Well, it seems like a lot of people's updated Blogger posts are not being updated in Technorati because of some problem on Blogger.comI have seemed to fixed it by going to my Technorati account ->...
View Article[MSH] How to a[void] returning multiple values from a function
I have succesfully made one of C# application I was working on at work to call MSH script on the fly during runtime. Everything seemed to have been working fine until I have encounted this problem that...
View Article[MSH] MSH Analyzer
Well, Karl Prosser has create his own GUI Msh hosting environment.I think it's still in pre-alpha status(well Karl calls it a "Proof of Concept" stage)It supports both one-line and multi-line command...
View Article[MSH] Displaying Zip File contents
Let's have some fun with zip files.I have searched through MSDN document on whether .NET library but could not findddany C#/VB.net library that deals with Zip file content.I have been googling around...
View Article[MSH] display and extract zip contents
In the previous post, I have talked about how to display zip contents of a file.I have realized that ,while writing extraction script(out-ZipContent), it'd be better to convert the script into a snapin...
View Article[MSH] How to change a Process's Priority
There are a lot of posts about how to get processes' name and priorities but I haven't been able to find ways to change a process's priority easily.Suppose that you are (un)zipping a large file and...
View Article[MSH] Extending System.Security.SecureString
I was reading Monad Technology Blog about Base64 Encode/Decode a string, which deals with extending a .NET object System.String to include script properties (which you can also add in an interactive...
View ArticleOption Explicit, I mean "Strict" switch...
I have been waiting for this feature for quite a while.Setting Visual Basic's "Option Explict" statement like switch in PowerShell.The Magic Word is..Set-PSDebug -StrictUpon executing the command,...
View ArticlePowerShell RC1 Updates
Because of some issues discovered, PowerShell team has released an updated version of PowerShell RC1.The links to download sites can be found on the Windows PowerShell blog home pageTags :...
View ArticlePowerShell Del.icio.us bookmarks
I was fed up with all the favoriates I have about PowerShell links and decided to put'em all on my Windows Live Favoriates site but I had some difficulties managing/adding contents to the site.I just...
View ArticleExtending TabExpansion function
EDIT:* Changed "new" to "New-Object"(Thanks Martin and Mow) in the source on PasteBin.com and jEdit IDE comments, "#{{{", "#}}}" are gone.Moreover, there is a little bit of change on Mow's tab...
View ArticleExtending TabExpansion function Part 2
EDIT2*:Pastebin.com site's been down for a while so pasted the colorized source on the bottom...EDIT*: Modified the source a bit but no functional changes madeSimply changed name of Script...
View Article"Prompt" function
EDIT2*:Well, That weird out-of-order registration of commands in history is not so funky any more after reading Bruce Payette's post on Microsoft.Public.Windows.PowerShell NG..."Command that's creating...
View ArticleGetting Services associated with a Process via PowerShell (.NET Type Extension)
On a recent Microsoft.Public.Windows.PowerShell NG (Newsgroup) posts, Andrew Watt has asked for an "Equivalent [cmdlet] for tasklist /svc".Luckily, Abhishek has posted a blog entry concerning that very...
View ArticleDomain Names
EDIT*: great, both domains are working properly~Uhm, Just bought two domain names.Here is how I will forward my new domains.PsObject.com: to this current blog...
View ArticleExtending TabExpansion function Part 3
EDIT*: According to /\/\o\/\/'s advice(refer to comment's section), i have modified the previous source to use Get-Help instead of Get-ChildItem to retrieve available about_ help file names. (BTW, i...
View ArticleWindows Desktop Search Powershell Cmdlet by Sean McLeod
Great stuff!A cmdlet, Get-WDS (in SnapIn) that searches WDS(Windows Desktop Search) indexes is born...Mr. Sean McLeod(the author) Newsgroup post on microsoft.public.windows.PowerShell can be found...
View ArticleRe-inventing the wheel for fun.
I was going through Community-Submitted Scripts Center on Microsoft TechNet and came across a script named, "BackupFiles.ps1" by Greg Lyon.The script is functional and works.But I didn't like the fact...
View ArticleBack up SQL Server database with SQL Server Objects(SMO) using PowerShell
It is easy to set up SQL Server Agent jobs to backup database in timely fashion.But why not in PowerShell while SMO is exposed in .NET assembly?Usage:Backup-Database -dbName [string] -deviceNames...
View ArticleAdd-Member: Extended Example
Add-Member cmdlet provides a way to "Add(s) a user-defined custom member to an object"There are 3 examples on get-help add-member help file but they do not seem to quite reflect the real power of this...
View ArticleWhile Creating a Simple EventLog PsProvider (in C#)
When PowerShell was still called Monad, there was a PDC05 Hands-On Lab document available with Monad distribution. The document was about "Creating Monad Providers" for Access database.I have started...
View ArticleWhile Creating a Simple EventLog PsProvider -Part 2
I was finally able to add EntryType dynamic parameter to Get-ChildItemBeen slacking off lately and finally made some time to extend Get-ChildItem cmdlet in EventLog provider.Now, in the following...
View ArticleInstalling PowerShell with Unattended Windows CD
Here are some steps to include Windows PowerShell(for English Version of Windows XP w/ SP2) in an unattended Windows CD.First,I have copied Windows CD content to "C:\xpcd"Windows PowerShell...
View Article