Make-A-Cmdlet: Part 3, The Code

Okay, without further ado, here’s the next evolution of my code. I want to point out that I’m blogging as I’m going – if you follow along with this step and things don’t work… well, maybe they didn’t work for me, either. Learning process! Stay tuned, if that’s the case :), and we’ll explore my mistakes together.

I’m going to …

Read More

Happy New Year

As this is our last business day of 2006, I wanted to wish you all a happy 2007 on behalf of everyone at SAPIEN Technologies.Don’t forget that our one-day sale on the PowerShell Essentials pack starts Sunday morning (Dec 31st) and lasts only for that day… www.ScriptingOutpost.com.Also, be advised that this blog may be inaccessible […]

Read More

Windows PowerShell: TFM? – Finished!!!

I’m very pleased and excited to announce that SAPIEN Press’ first print book, Windows PowerShell: TFM?, is off the presses! We’re expecting the books to begin shipping to our Napa, CA headquarters this week. Hopefully they’ll arrive sometime just after the New Year, and we’ll begin fulfilling orders. If you’ve ordered via www.ScriptingOutpost.com, your book will go out …

Read More

More fun with scheduled PowerShell

Earlier, I gave you a VBScript wrapper that you could use to run PowerShell scripts as scheduled tasks and be completely hidden from the user. If you want to run a PowerShell cmdlet expression instead of a .ps1 script, you need to take a slightly different approach.

Read More

Execute!

Jeff Hicks and I have been having some fun with the VBScript Execute() method, as Jeff’s been writing about it for VBScript and WSH Core: TFM? this week. Here’s some sample code:

Const pi = 3.1416
Const r = 2.5
WScript.Echo Main()
Function Main()
 Dim result
 Dim str
 str = “result=pi*(r*r)”
 Execute str
 Main = result
End Function

Do you …

Read More

Make-A-Cmdlet: Part 2, Getting Underway

One trick: If you’re using Visual Studio 2005 (or an Express edition), you can get a jump-start by downloading some templates for PowerShell development from http://channel9.msdn.com/ShowPost.aspx?PostID=256835 (click the [Save] link near the bottom of the post; the ZIP file contains templates for VB.NET and C# – unzip the one you want and double-click it to […]

Read More

PowerShell Makes Beautiful Music

Ok, maybe not beautiful. It’s not Handel’s Messiah but sure is fun. Some of the guys on the Microsoft PowerShell must have too much time on their hands 🙂 They have put together a PowerShell script that you just have to try.

Read More

Blog Followups and Comments

We truly appreciate all the comments and feedback you’ve been giving us on our blog entries. We’ve tried to respond to comments in a timely manner. You are still welcome to leave comments. However, if you have a question that requires an answer or a problem trying something we’ve blogged about, we’re hoping you’ll post something in the forums at ScriptingAnswers.com.

Read More

[UPDATE] Nail your eyes to this blog…

For the past few years, SAPIEN has done some kind of “New Year’s Blowout” special product promotion. I think one year we sold PrimalScript Standard for 99 bucks or something, for example, which is almost half off (and it was eligible for the cross-edition upgrade price to Pro, to boot). Usually, the sale runs all day on January 1st only. …

Read More

Search

Enter any query and press enter
Advanced search operators:
+ ⟶ Term must appear
- ⟶ Term must not appear
"" ⟶ Exact string must appear
How do I use these?

Join our mailing list

Enter your email address to subscribe to our mailing lists for Monthly Blog Digests, Product Announcements and more (you can choose which you receive once you sign-up!)

Tags

Categories

Archives

Dashboard