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 That a Drive is Ready Listing 4.4 uses the Filesystem object to test if drives […]
Archive for August, 2008
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 Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Concepts and Technologies for System […]
PowerShell in Practice: Chapters 3&4 in MEAP
Posted by: richardsiddaway | August 29, 2008 | No Comment |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 CTP2 are briefly covered Chapter 4 covers development for administrators, especially the ad hoc type […]
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 Technologies for System Administration > Script Runtime Primer > FileSystemObject > Managing Disk Drives Returning […]
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 > VBScript Primer > VBScript Reference > Working with Dates and Times Date Arithmetic Listing 2.17 […]
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
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 > Working with Dates and Times Date Arithmetic Listing 2.16 $test = [datetime]"10/10/2008"$span = $test […]
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 how the date and time are displayed in get-date and when setting it to a […]
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 dates Script Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Concepts and Technologies […]
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 > VBScript Overview Arrays ## listing 2.12cls $convert = 1MB$computers = "pcrs2", "pcrs3", "pcrs4"$threshold = […]
Categories
- .NET
- Active Directory
- Architecture
- Azure
- Bash
- BITS
- Books
- CDXML
- CIM
- Cloud
- COM
- Containers
- Deep Dive
- Desired State Configuration
- DevOps
- DHCP
- DNS
- DSC
- European Summit
- Events
- Exchange
- File System
- Firewall
- General
- General IT Matters
- Hyper-V
- IIS
- Infrastructure
- IT Community
- IT Security
- Learning PowerShell
- Linux
- Math
- Microsoft
- Modules
- Nano Server
- Networking
- Office 2010
- Office 2013
- Open Source
- Opinion
- Outlook
- Philosophy
- PowerShell
- PowerShell 7
- PowerShell and .NET
- PowerShell and Active Directory
- PowerShell and CIM
- PowerShell and Exchange 2007
- PowerShell and IIS
- PowerShell and SQL Server
- PowerShell and WMI
- PowerShell Basics
- PowerShell original
- PowerShell Summit
- PowerShell User Group
- PowerShell User Group 2
- PowerShell v2
- PowerShell V3
- PowerShell v4
- PowerShell v5
- PowerShell v6
- PowerShell.org
- PowerShellGet
- PowerShellV2
- PSAM
- Rant
- Registry
- Scripting
- Scripting Games
- Scripting Games 2104
- Security
- SQL Server
- Storage
- Strings
- Summit
- Technology
- Uncategorized
- Virtualization
- Windows 10
- Windows 2012 R2
- Windows 7
- Windows 8
- Windows 8 Server
- Windows 8.1
- Windows Server
- Windows server 1709
- Windows Server 2008
- Windows Server 2008 R2
- Windows Server 2012
- Windows Server 2012 R2
- Windows Server 2016
- Windows Server 2019
- WMFv5
- WPF
- WSUS