Monthly Archives: August 2008

W2KSG: Drive is Ready

One last look at drives and then we are on to folders. Script Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Concepts and Technologies for System Administration > Script Runtime Primer > FileSystemObject > Managing Disk Drives Ensuring … Continue reading

Posted in Powershell | Leave a comment

W2KSG: Drive Properties

One of the most used objects in VBScript is the FileSystemObject.  While much of its functionality is available through other means in PowerShell as we will see in future posts there is still much we can do with it. Script … Continue reading

Posted in Powershell | Leave a comment

PowerShell in Practice: Chapters 3&4 in MEAP

Chapters 3 and 4 are now available through the Manning Early Access Program – http://www.manning.com/siddaway/ Chapter 3 is concerned with using some of the essential technologies with PowerShell – ADSI, .NET, COM and WMI. The new features in PowerShell V2 … Continue reading

Posted in Powershell | Leave a comment

W2KSG: Enumerate Disk Drives

I’m skipping Chapter 3 of the guide for now as its all about the Windows Script Host.  Jumping to chapter 4 Listing 4.1 enumerates the disk drives Script Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Concepts and … Continue reading

Posted in Powershell | Leave a comment

Date Additions

In http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!1658.entry we saw how to get the difference between two dates. Let’s look at working out a day in the future. Script Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Concepts and Technologies for System Administration > … Continue reading

Posted in Powershell | Leave a comment

Powershell event: Sweden

If you are going to be in Stockholm on 16 September don’t forget the PowerShell event and the new PowerShell UG meeting http://www.microsoft.com/sverige/technet/events/powershell/   Share this post :   Technorati Tags: Powershell,Sweden

Posted in Powershell | Leave a comment

W2KSG: Date differences

The number of days between two dates has been covered before so we’ll keep this one quick. Script Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Concepts and Technologies for System Administration > VBScript Primer > VBScript Reference … Continue reading

Posted in Powershell | Leave a comment

Date Display

While playing round with the dates for the previous post I made an odd discovery. PS> Get-Date 27 August 2008 22:09:50 PS> $now = Get-DatePS> $now 27 August 2008 22:09:59 PS> "Now: $($now)"Now: 08/27/2008 22:09:59PS>PS> "Now: $(get-date)"Now: 08/27/2008 22:10:37 Notice … Continue reading

Posted in Powershell | Leave a comment

W2KSG: Date Parts

I am going to skip a bit of the guide as the input and error handling are quite different between VBScript and PowerShell.  We will see both of those concepts later.  For now we will jump forward to looking at … Continue reading

Posted in Powershell | Leave a comment

W2KSG: Using Array

If we want to extend our disk checking to multiple machines we can input the computer names via an array. Script Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Concepts and Technologies for System Administration > VBScript Primer … Continue reading

Posted in Powershell | Leave a comment