Showing archive results for March 2007

Mar 16, 2007
Post comments count0
Post likes count0

PowerShell Webcasts available

PowerShell Team
PowerShell Team

Don Jones is doing a series of PowerShell WebCasts over at Microsoft.com. There are the one coming up: You can get more information about this series including links to previously recorded webcasts HERE. Enjoy! Jeffrey Snover [MSFT]Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the W...

Podcasts
Mar 8, 2007
Post comments count0
Post likes count0

Installing PowerShell on Vista/"Longhorn" Server

PowerShell Team
PowerShell Team

1.       I am new to PowerShell and would like to install it on my Vista machine. The following page  http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx gives you links to various PowerShell downloads. Choose the one that best matches your operating system, platform and lan...

FAQ
Mar 8, 2007
Post comments count0
Post likes count0

Detecting Conflicts between Aliases, Functions, and Cmdlets

PowerShell Team
PowerShell Team

Version 1.1 of the PowerShell Community Extensions has just been release so I decided to kick the tires. After I installed it, I noticed that some conflicts and then realized that there might be conflicts between my customizations and the Aliases, Functions and Cmdlets that they delivered. Here is how I detected what needed to be resolved: PS>...

Mar 7, 2007
Post comments count0
Post likes count0

Scripting Pro VIP Interview

PowerShell Team
PowerShell Team

Scott Ottaway and I recently did an interview with Karen Bemowski. You can read it here. Jeffrey Snover [MSFT]Windows PowerShell/MMC ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx  

Mar 7, 2007
Post comments count0
Post likes count0

Why Can’t I Pipe Format-Table to Export-Csv (and get something useful)?

PowerShell Team
PowerShell Team

Ken's PowerShell blog has an entry Remote Services and PowerShell where he wrote a function to get services from a remote machine using WMI. He formatted the data using FT (format-table) and then went on to export the data to CSV. He pointed out that the following would NOT work rget-service remotemachinename netlogon | ft -autosize name,startmod...

FAQ
Mar 6, 2007
Post comments count0
Post likes count0

Invoke-Expression

PowerShell Team
PowerShell Team

I fixed a bug in Start-Demo (Script attached) that is worth exploring. The heart of Start-Demo is to get a line from file, display it and then run it showing the output. To do this I used Invoke-Expression (For simplicity sakes, I'm going to show you the code assuming that the line to execute is $LINE – the actual code is a bit more complicated) ...

Mar 6, 2007
Post comments count0
Post likes count0

How does the RemoteSigned execution policy work?

PowerShell Team
PowerShell Team

You might have wondered how the "RemoteSigned" execution policy protects us from running unsigned PowerShell scripts downloaded from the internet.  We use the URL Security Zones API related to "Attachment Execution Service" (AES) introduced in Windows XP SP2 and Windows Server 2003 SP1.  Internet Explorer and Outlook Express are among&nbs...

Mar 6, 2007
Post comments count0
Post likes count0

Managing SQL with PowerShell – PowerSMO

PowerShell Team
PowerShell Team

Dan Sullivan has been doing some great things using PowerShell to manage SQL. Dan wrote that Addison-Wesley book "A Developer's Guide to SQL Server 2005" along with Bob Beauchemin. He has now started a series of articles on this topic at simple-talk.com. Here are the first two but Dan told me that he'll be writing more so you might want to bookm...

Mar 6, 2007
Post comments count0
Post likes count0

Renaming Files

PowerShell Team
PowerShell Team

Let's have a little fun with Rename-Item: [3112:0]PS> dir    Directory: Microsoft.PowerShell.Core\FileSystem::C:\temp\jpsMode                LastWriteTime     Length Name----                -------------     ------ -----a---          3/5/2007   4:21 PM        948 a-a---          3/5/2007   4:21 PM       1214 b-a---          3/5/2007   4:21 PM  ...

Mar 5, 2007
Post comments count0
Post likes count0

Improved Start-Demo Script

PowerShell Team
PowerShell Team

I showed my Start-Demo script to my wife and she wasn't impressed J. She gave me some good ideas about how to make it better so I've updated the script and attached it to this entry. The changes are: Jeffrey Snover [MSFT]Windows PowerShell/MMC ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows...