-
Recent Posts
Archives
- May 2012 (26)
- 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
- IT Community
- IT Security
- Learning Powershell
- Math
- Microsoft
- Networking
- Office 2010
- 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
- Science Fiction
- Script of the Week
- Scripting
- SQL Server
- Strings
- Technology
- Uncategorized
- Virtualisation
- Walking
- Windows 7
- Windows 8
- Windows 8 Server
- Windows Server 2008
- Windows Server 2008 R2
- WPF
- WSH
Meta
Twitter
- Preparing for the next UG meeting - PowerShell in Server 2012 - too much to choose from 1 week ago
- Reading about regular expressions in #PowerShell . My head is exploding 1 week ago
- Sat in San Diego airport waiting to fly home after an awesome deep dive 3 weeks ago
- #PowerShell Deep Dive is over. Another awesome event. It's the only place I learn something from every session 3 weeks ago
- #PowerShell v3 jobs give many more options - results available across sessions in many cases 3 weeks ago
Category Archives: Windows Server 2008
Using AccountManagement classes to set local accounts expiry
This is a little more verbose than the WinNT example function set-expirydate { [CmdletBinding(SupportsShouldProcess=$true)] param ( [parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [string]$computer, [parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [string]$id ) BEGIN {Add-Type -AssemblyName System.DirectoryServices.AccountManagement} PROCESS { switch ($computer){ “.” {$computer = $env:computername} “localhost” {$computer = $env:computername} } … Continue reading
Setting local account expiry dates
Setting expiry dates on AD accounts is a common occurrence and is well documented. Setting expiry dates on local accounts is also possible $user = [adsi]“WinNT://./Test1, user” $expirydate = (Get-Date).AddDays(2) $user.Put(“AccountExpirationDate”, $expirydate) $user.SetInfo() $user.RefreshCache() $user | Format-List * This uses … Continue reading
Windows SysInternals Administrators Reference
Windows SysInternals Administrators Reference Title: Windows SysInternals Administrators Reference Publisher: Microsoft Press ISBN: 978-0-7356-5672-7 The SysInternals tool set – http://technet.microsoft.com/en-us/sysinternals/default.aspx – should be one of a Windows administrator’s best friends. You may not need them every day but when you do … Continue reading
Surprise
Life is full of surprises and one that has happened to me revolves around the post that seems to get the most attention. Since moving to one of my mirrors from Microsoft Live to WordPress one of the extra features … Continue reading
Posted in Windows Server 2008
Leave a comment
Book Review: Windows Server 2008 Administrator’s Pocket Consultant
Author: William R. Stanek Publisher: Microsoft Press ISBN: 978-0-7356-2711-6 This is the second edition that has been updated for Windows Server 2008 R2. As usual I am applying my three main criteria for judging a book: · Is it technically … Continue reading
Posted in Windows Server 2008
Leave a comment
Hyper-V and Virtual PC
Just a quick warning – be careful if you have virtual machines in virtual PC and switch to using Hyper-V. Not sure what I did wrong (it was late last night) but managed to trash my virtual SQL Server There … Continue reading
Posted in Windows Server 2008
Leave a comment
HP G60
I am currently using a HP G60 laptop. Runs Windows 7 very well. I created a dual boot environment so I could install Windows 2008 R2 and to my pleasant surprise found Hyper-V runs on it. Need to enable virtualisation … Continue reading
Posted in Windows Server 2008
Leave a comment
Password Policy
As I mentioned in an earlier post I am reading the Study Guide for the Exchange 2007 Design Exam (70-237). There is quite a good section on security that goes beyond the normal Exchange stuff. In fact the book overall … Continue reading
Posted in Windows Server 2008
Leave a comment
Windows 2008 R2
Windows 2008 R2 (also sometimes referred to as Windows Server 7) was another topic I looked at today. Most important point it will have PowerShell v2 installed by default (apart from server core where it is an optional extra – … Continue reading
Posted in Windows Server 2008
Leave a comment
Windows 2008 R2 AD
Dmitry has blogged about the new features in Windows 2008 R2 AD – http://dmitrysotnikov.wordpress.com/2008/11/04/server-2008-r2-active-directory/ – especially the PowerShell support. I will be attending the repeat session later in the week and will post my comments on the session at that … Continue reading
Posted in Windows Server 2008
Leave a comment