-
Recent Posts
Archives
- May 2013 (18)
- 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 11 months ago
- Preparing for the next UG meeting - PowerShell in Server 2012 - too much to choose from 1 year ago
Monthly Archives: January 2010
Appending to a CSV file
One of the frustrations of working with files in PowerShell is that you can’t append to a pre-existing CSV file. Dmitry has fixed that for version 2 by creating a proxy function that adds that capability. http://dmitrysotnikov.wordpress.com/2010/01/19/export-csv-append/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+DmitrysPowerblog+%28Dmitry%27s+PowerBlog%29 Excellent Technorati Tags: … Continue reading
Posted in PowerShell V2
Leave a comment
AD cmdlets qiuck reference
If you use the AD cmdlets that shipped with Windows 2008 R2 you will want to grab a copy of the quick reference guide that Jonathan has produced. http://www.jonathanmedd.net/2009/10/active-directory-powershell-quick-reference-guide.html Technorati Tags: PowerShell,Active Directory
Advanced Warning – WMI & WQL
The UK PowerShell group will present a Live Meeting on PowerShell, WMI and WQL. Date: Tuesday 9th February 2009 Time: 7.30pm GMT Live Meeting details to follow Technorati Tags: PowerShell,User group
Posted in PowerShell User Group
Leave a comment
Regular Expressions
I have a bit of a love-hate relationship with regular expressions. If like me they are not your absolute favourite things you will want to see the series of recent posts from James on the subject http://blogs.technet.com/jamesone/archive/2010/01/14/the-joy-of-reg-ex-part-1.aspx http://blogs.technet.com/jamesone/archive/2010/01/14/the-joy-of-reg-ex-part-2-ways-i-use-it.aspx http://blogs.technet.com/jamesone/archive/2010/01/16/the-joy-of-reg-ex-part-3-select-string.aspx Technorati … Continue reading
Posted in Powershell
Leave a comment
Getting Access table definitions
So far we have only created a single table but in a database with a number of tables we need to be able to view the table definitions. 001002003004005006007008009010011012013014015016 #### connect to database##$conn = New-Object -ComObject ADODB.Connection$mydb = "c:testtest03.mdb"$conn.Open("Provider = Microsoft.JET.OLEDB.4.0; Data Source = $mydb")$cat = New-Object -ComObject ADOX.Catalog$cat.ActiveConnection = $conn ## … Continue reading
Posted in PowerShell V2
Leave a comment
Add-Computer
I was building some test machines yesterday and needed to add them to the domain. As they were Windows 2008 R2 with PowerShell v2 I decided to try Add-Computer. Add-Computer -DomainName mydomain -Credential mydomainmyaccount; restart-computer You will be prompted for … Continue reading
Posted in PowerShell V2
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
Delete an index
We have seen how to add indexes. We also need to be able to remove them 001002003004005006007008009010011012013014015 function Remove-AccessIndex {# .ExternalHelp Maml-AccessFunctions.XML[CmdletBinding()]param ( [string]$table, [string]$index, [System.Data.OleDb.OleDbConnection]$connection) $sql = "DROP INDEX $index ON $table" Write-Debug $sql $cmd = New-Object System.Data.OleDb.OleDbCommand($sql, $connection) $cmd.ExecuteNonQuery()} The function accepts connection plus table … Continue reading
Posted in PowerShell V2
Leave a comment
UK User Group meeting
First meeting of 2010 and we will be looking at Windows 2008 R2 cmdlets and provider.Physical meetings will resume later in the year When: Tuesday, Jan 26, 2010 7:30 PM (GMT)Where: *~*~*~*~*~*~*~*~*~* Notes Richard Siddaway has invited you to attend an … Continue reading
Posted in PowerShell User Group
Leave a comment
Trouble with csv files
There are many situations where we want to read a csv file as part of our admin script – usually as a way to input data to the script for some kind of bulk processing. This makes the following a … Continue reading
Posted in Powershell
Leave a comment