These days I’m in to fast and furious coding. It seems I no longer have time to develop full, robust scripts with beautiful output and error handling. I just need information. Fortunately PowerShell is great at giving you lots of information. As long as you know how to ask for it. One daily task I have is checking my event log for the latest events. Here is a fast and furious single line expression that will display the last 10 entries in all the event logs on my system
Category: Windows PowerShell
PowerShell: Whatcha wanna learn?
As you may know, I write a monthly Windows PowerShell column for Microsoft TechNet Magazine. I’d like your help: While I’ve got plenty of columns “in the queue” (you wouldn’t believe the deadlines the print world has to operate under – months in advance), I’m always on the lookout for new column ideas. So I […]
Set Read-Only in PowerShell
Here’s a fast PowerShell tip. Need to mark a file as Read-Only? Use Get-ChildItem to get the file and then invoke the Set_IsReadOnly method. This method needs a Boolean value (True or False) to indicate whether a file is ReadOnly. (Get-ChildItem e:\files\protected.txt).Set_IsReadOnly($True) That’s all there is to it. If you want to check if the […]
What do you consider “advanced?”
When Jeff Hicks and I wrote our Advanced VBScript for Windows Administrators book, we didn’t have a hard time coming up with good topics. After all, VBScript had been around long enough that it was pretty obvious what sort of advanced topics people were looking for. That’s not the case with Windows PowerShell, though, and […]
Process Peeking
I’ve been kicking around PowerGadgets a bit more. The latest version has some new features I hope to write about in the near future. In the meantime, I want to demonstrate again how handy their gadgets are.
Make-A-Cmdlet: Part 7, The Files
Per popular request, attached is a ZIP file containing the original VB.NET files I used to build my sample cmdlet (only the cmdlet and snap-in files are included; you’ll ned to build your own project in PrimalScript or Visual Studio). But wait… there’s more. This is actually part of a larger PrimalToys snap-in I’ve made, which will be available on …
Windows PowerShell: TFM reviewed
One reader reviews our book at http://weblog.infoworld.com/dbunderground/archives/2007/01/rtfm.html. And I’ll add credit to an unsung hero – Jeffery Hicks – who did write 50% of the book :).
New Class Locations!
Our “Script Across North America” tour has been enhanced with new locations in Chicago and Toronto. Full details are available at www.ScriptingTraining.com – registration for all locations is now open, so don’t delay – sign up today!
ADSI Scripting: TFM – off to the presses!
Our newest SAPIEN Press title, ADSI Scripting: TFM (by Cade Fassett), is off to the presses! That also means the book’s sample scripts are available for download, and a completed sample chapter (well, a chapter and a half, really) is available for download in PDF format, all at www.sapienpress.com/adsi.asp. The book is also available for […]
Do YOU want to teach PowerShell?
Did you know that, if you’re a certified trainer, or a training center, then our Windows PowerShell courseware is available to you? Did you also know that certified trainers can attend our public PowerShell classes free of charge as a “train the trainer” opportunity?