Category Archives: Learning Powershell

Working with strings: Introduction

It does seem to matter what we are doing or what language we are using we end up manipulating strings. PowerShell string objects have number of methods for dealing with strings Clone            MethodCompareTo        MethodContains         MethodCopyTo           MethodEndsWith         MethodEquals           MethodGetEnumerator    MethodGetHashCode      MethodGetType          … Continue reading

Posted in Learning Powershell, Powershell Basics | Leave a comment

PowerShell basics: Invoking commands

We have three ways to invoke a command in PowerShell (apart from typing it at the command line and putting it in a script) These are Invoke-Command, Invoke-Expression and the call operator “&” Invoke-Command is normally used when remoting but … Continue reading

Posted in Learning Powershell, PowerShell V2 | Leave a comment

PowerShell V2 CTP book

Don Jones and Jeffrey Hicks have an updated version of PowerShell TFM available.  It can de downloaded from the Sapien site see  http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?&guid=&sloc=en-us&dg=microsoft.public.windows.powershell&p=1&tid=e9d1b0a1-0497-4528-85a9-bfa7e4b14593&mid=e9d1b0a1-0497-4528-85a9-bfa7e4b14593 for details of a special offer on the ebook.  The book will be updated as further CTPs … Continue reading

Posted in Learning Powershell | Leave a comment

Anti-Aliasing?

Last night I made a statement that I thought the ability to have and create aliases was the worst feature in PowerShell. That may seem like a harsh statement and one of the odder things to pick on but my reasoning … Continue reading

Posted in Learning Powershell | Leave a comment

What shall I read???

I do quite a lot of traveling with my job and as I am a keen reader I always want to have at least one good book with me.  In order to cut down on the number of items and … Continue reading

Posted in Learning Powershell | Leave a comment

Invoking external commands

Interest in PowerShell is obviously growing as I am seeming questions about PowerShell appear in forums other than those dedicated to PowerShell.  One recent question was about invoking external commands in PowerShell. There are a number of ways to achieve … Continue reading

Posted in Learning Powershell | Leave a comment

All Clear

A couple of interesting cmdlets: Clear-Content – deletes the contents of an item but does not delete the item itself.  It works on files. Clear-Item - deletes the contents of an item but does not delete the item itself.  It works … Continue reading

Posted in Learning Powershell | Leave a comment

Help Files

I tend to look at most of the new PowerShell cmdlets and providers as they come along.  One thing that I have noticed in a number of products is the lack of examples. I think a few, well chosen examples make … Continue reading

Posted in Learning Powershell | Leave a comment

What can I do with PowerShell

For a really good answer to the question have a look at the "Task Based Guide to Windows PowerShell cmdlets" at http://www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/index.mspx There is information regarding Dates and Times System Administration Tasks Files and Folders Security and security Descriptors among … Continue reading

Posted in Learning Powershell | Leave a comment

Get-Command

For an interesting use of Get-Command (its all documented in the help files) see this post from the PowerShell Team http://blogs.msdn.com/powershell/archive/2007/09/15/documentation-one-liner.aspx Technorati Tags: PowerShell

Posted in Learning Powershell | Leave a comment