PowerShell Quick Event Log

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

Read More

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 […]

Read More

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 […]

Read More

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 […]

Read More

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.

Read More

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 …

Read More

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!

Read More

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 […]

Read More

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?

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