Archive for July 2007

What you must know about ‘Out-File’

I ran into this question today regarding why the PowerShell Out-File format was not giving an expected result.

"Hey all, I'm new to Powershell (but who isn't, eh?), but I've been writing all sorts of management scripts in VBScript for years now, and I need help with a script.  I have a VBScript that crawls a directory tree and, checks for files that haven't been accessed in over a year, and then outputs the name and path of all of these files to a text file.  The main reason that I'm converting it to Powershell is that PS doesn't appear to be having trouble with foreign characters, specifically Japanese, whereas I can't get VBScript to do anything but crash when it gets to Japanese characters.

Continue reading ‘What you must know about ‘Out-File’’ »

The Script Center Script Repository: Sample Windows PowerShell Scripts

windows.jpg

Microsoft's Scripting Center is an excellent resource for PowerShell scripts. Many times I've utilized the scripts as a baseline for ambitious tasks that had to be completed. Using the PowerShell Script Repository you will find Scripts related to: Active Directory, Applications, Desktop Management, Hardware, Logs, Networking, Operating Systems, Other Directory Services, Printing, Scripting Techniques, Service Packs, Hot Fixes, Storage, and Terminal Server. Each with it own subset of categories. As of this writing the PowerShell script library is not as extensive as the library for VBScript, but give it time. I will not be posting any of the PowerShell scripts from the Microsoft Library as I have provided a link for the information at the end of this post. What I will be doing in the future is posting more customized scripts, scripts that build on the samples provided by Microsoft.

link:The Script Center Script Repository: Sample Windows PowerShell Scripts

Email This Post Email This Post 

Learn PowerShell in Under 30 Pages - Microsoft Switzerland to the Rescue

Flag of Switzerland

Microsoft Switzerland just translated into English, a PowerShell pdf designed to assist in the quest of PowerShell knowledge, I think? I may have been taken back a little by the loose translation. Here's the example: "An Introduction to scripting technologies for people with no real background knowledge." O.k. I know what they mean (no real background in PowerShell) but for a split-second I was unsure. So I read on…

Continue reading ‘Learn PowerShell in Under 30 Pages - Microsoft Switzerland to the Rescue’ »

Cool, the PowerShell scripting guide is Free…

A big mistake I made when learning VBScript was the purchase of the Windows 2000 Scripting Guide ($49.95). It's a great resource, it sits on my desk, and yes I still use is frequently. So why was buying it a mistake? Because, the online version is available on Microsoft's site, for $.00. Before purchasing PowerShell books I checked Microsoft's site, guess what? Microsoft has made available the "Windows PowerShell 1.0 Documentation Pack."

Continue reading ‘Cool, the PowerShell scripting guide is Free…’ »

Download PowerShell 1.0

First step: Download and Install PowerShell 1.0.

System Requirements:

  • Windows 2003 Server Family w/Service Pack 1 or greater
  • Windows XP w/Service Pack 2
  • Microsoft .NET Framework Version 2.0 (Version 2.0.50727) - Click here to download and install .NET 2.0. For the 64-bit edition click here.

Continue reading ‘Download PowerShell 1.0’ »