-
Recent Posts
Archives
- May 2013 (20)
- April 2013 (22)
- March 2013 (7)
- February 2013 (12)
- January 2013 (24)
- December 2012 (19)
- November 2012 (15)
- October 2012 (8)
- September 2012 (19)
- August 2012 (7)
- July 2012 (5)
- June 2012 (19)
- May 2012 (30)
- April 2012 (21)
- March 2012 (65)
- February 2012 (94)
- January 2012 (54)
- December 2011 (17)
- November 2011 (11)
- October 2011 (15)
- September 2011 (39)
- August 2011 (57)
- July 2011 (58)
- June 2011 (65)
- May 2011 (53)
- April 2011 (25)
- March 2011 (12)
- February 2011 (18)
- January 2011 (27)
- December 2010 (2)
- November 2010 (14)
- October 2010 (13)
- September 2010 (1)
- June 2010 (11)
- May 2010 (31)
- April 2010 (29)
- March 2010 (19)
- February 2010 (31)
- January 2010 (28)
- December 2009 (11)
- November 2009 (40)
- October 2009 (2)
- September 2009 (8)
- August 2009 (21)
- July 2009 (21)
- June 2009 (27)
- May 2009 (32)
- April 2009 (24)
- March 2009 (41)
- February 2009 (42)
- January 2009 (34)
- December 2008 (30)
- November 2008 (40)
- October 2008 (42)
- September 2008 (52)
- August 2008 (40)
- July 2008 (35)
- June 2008 (38)
- May 2008 (29)
- April 2008 (32)
- March 2008 (59)
- February 2008 (43)
- January 2008 (47)
- December 2007 (30)
- November 2007 (62)
- October 2007 (54)
- September 2007 (43)
- August 2007 (44)
- July 2007 (55)
- June 2007 (57)
- May 2007 (55)
- April 2007 (43)
- March 2007 (61)
- February 2007 (50)
- January 2007 (21)
- December 2006 (7)
- November 2006 (16)
Categories
- .NET
- Active Directory
- Active Directory administration with PowerShell
- Architecture
- BITS
- Books
- COM
- Deep Dive
- DHCP
- DNS
- Events
- Exchange
- File system
- files
- Firewall
- General
- General IT matters
- Hyper-V
- IT Community
- IT Security
- Learning Powershell
- Math
- Microsoft
- Networking
- Office 2010
- Office 2013
- Opinion
- Outlook
- Philosophy
- Powershell
- PowerShell and Active Directory
- PowerShell and Exchange 2007
- PowerShell and IIS
- PowerShell and SQL Server
- PowerShell and WMI
- Powershell Basics
- PowerShell User Group
- PowerShell V2
- PowerShell V3
- PSAM
- Rant
- Registry
- Science Fiction
- Script of the Week
- Scripting
- Scripting Games
- SQL Server
- Strings
- Summit
- Technology
- Uncategorized
- Virtualisation
- Walking
- Windows 7
- Windows 8
- Windows 8 Server
- Windows Server 2008
- Windows Server 2008 R2
- Windows Server 2012
- WPF
- WSH
- WSUS
Meta
Twitter
- #PowerShell books at half price - manning.com 1 month ago
- Windows 2008 R2 to Windows 2012 - anyone seen difficulty switching between start and desktop? 8 months ago
- #PowerShell summit open for registration. Early bird savings PowerShell.org/summit & follow registration link 8 months ago
- UK #PowerShell group - PowerShell in Windows 2012 bit.ly/LCDSmVL 12 months ago
- Preparing for the next UG meeting - PowerShell in Server 2012 - too much to choose from 1 year ago
Author Archives: richardsiddaway
PowerShell Deep Dive–MEAP now complete
The final chapters of PowerShell Deep Dive have been added to the MEAP http://www.manning.com/hicks/ Enjoy
Posted in Books, PowerShell V3
Leave a comment
AD Month of Lunches–Chapter 11 in MEAP
The MEAP for AD Management in a Month of Lunches has been extended with the inclusion of chapter 11 – Creating Domain Controllers. http://www.manning.com/siddaway3 Enjoy
Scripting Games – Filter early again
Grading the scripts in Event 4 and the one thing that jumps out is the amount of unnecessary data being carried through the scripts You were asked for 7 properties off 20 random users Get-ADUser has a –properties parameter. USE … Continue reading
Scripting Games – Win32_LogicalDisk or Win32_Volume
I have heard some discussions recently regarding whether Win32_LogicalDisk or Win32_Volume should be used in the answer to event 3 in the Scripting Games. The problem requires you pull the drive letter, drive size and freespace for local disks on … Continue reading
Posted in Powershell, PowerShell and WMI, Scripting Games
Leave a comment
Scripting Games-Subfunctions
One of the principles of writing scripts (or any code) is the KISS principle – Keep It Simple Scripter. That principle is being abused al lot in event 3 I am seeing numerous entries that define an advanced function as … Continue reading
Posted in Powershell, Scripting Games
Leave a comment
Scripting Games–filtering on remote server
In event 3 you have to get information on hard disk capacity. I’ve only looked at the first couple of dozen scripts but seen this too many times Get-WmiObject -Class Win32_LogicalDisk | where DriveType -eq 3 or if you prefer … Continue reading
Posted in Powershell, PowerShell and WMI, Scripting Games
Leave a comment
Scripting games–ErrorActionPreference
I’ve seen a lot of this type of thing in events 1 and 2 $ErrorPref = $ErrorActionPreference$ErrorActionPreference = “Stop” Don’t The default for $ErrorActionPreference is Continue. This means that the error message is shown and the cmdlet attempts to … Continue reading
Posted in Powershell, Scripting Games
Leave a comment
Scripting Games–making work
I saw this in one of the submissions: $Properties = @{} $Properties['Computer'] = $SystemInfo.__SERVER $Properties['OperatingSystem'] = “$($OSInfo.Caption) – $($OSInfo.CSDVersion)” $Properties['PhysicalMemory'] = $SystemInfo.TotalPhysicalMemory My immediate thought was the entrant likes making work for themselves. The hash table can be created in … Continue reading
Posted in Powershell, Scripting Games
Leave a comment
AD MoL Chapter 10 MEAP
Chapter 10 of AD Management in a Month of Lunches is now available. http://www.manning.com/siddaway3/ The chapter covers Fine Grained Password Policies
Posted in Active Directory, Books, PowerShell V3
Leave a comment
Scripting Games–new Get-ChildItem parameters
One improvement that came with PowerShell v3 is the –File and –Directory parameters on Get-ChildItem If I run this Get-ChildItem -Path c:\mydata I will get a mixture of directories and files Mode LastWriteTime Length Name—- ————- —— —-d—- 19/11/2012 20:19 … Continue reading
Posted in PowerShell V3, Scripting Games
3 Comments