Monthly Archives: March 2012

PowerShell in Practice offer today only

Manning have PowerShell in Practice on a half price offer today. Go to http://www.manning.com and use code dotd0330cc when ordering

Posted in Books, Powershell, PowerShell and Active Directory, PowerShell and Exchange 2007, PowerShell and IIS, PowerShell and SQL Server, PowerShell and WMI | Leave a comment

UK PowerShell Group March 2012 meeting recording

  The recording, slides and demo script from the session on CIM cmdlets – Tuesday 27 March is available https://skydrive.live.com/?cid=43cfa46a74cf3e96#cid=43CFA46A74CF3E96&id=43CFA46A74CF3E96%212955 Enjoy

Posted in PowerShell and WMI, PowerShell User Group, PowerShell V3 | Leave a comment

PowerShell Deep Dive 2012 Agenda

The agenda for the PowerShell Deep Dive next month has just been published on the PowerShell team blog http://blogs.msdn.com/b/powershell/archive/2012/03/26/schedule-for-the-upcoming-powershell-deep-dive-and-a-few-videos-from-frankfurt.aspx If you are already booked to go – looking forward to meeting you.  If you’re thinking of going last years event … Continue reading

Posted in Deep Dive, PowerShell V2, PowerShell V3 | Leave a comment

Attributes returned by the cmdlets

A question on the forum about the default properties returned by Get-ADUser started me thinking about the differences between the Microsoft cmdlets and the Quest cmdlets. So for starters the default display: Get-ADUser richardGet-QADUser richard Get-AdUser Get-QADUser DistinguishedName DN Enabled … Continue reading

Posted in PowerShell and Active Directory | Leave a comment

UG meeting reminder – March 2012

Quick reminder that the UK user group meeting is on Tuesday 27 March @ 7.30 BST.  Details from http://msmvps.com/blogs/richardsiddaway/archive/2012/03/06/uk-powershell-group-march-2012.aspx   The meeting is on the new CIM functionality in PowerShell v3.  This is a need to know technology as much … Continue reading

Posted in PowerShell and WMI, PowerShell User Group, PowerShell V3 | Leave a comment

Updating AD users in bulk

A question was raised on the forums about bulk updated of user information.  This is an example of how to handle it A CSV file was created Import-Csv -Path “C:\Scripts\AD Examples\Users\bulkchangetest.csv” | Format-Table –AutoSize   userid JobTitle  Cost Center HireDate       … Continue reading

Posted in PowerShell and Active Directory | 4 Comments

PowerShell Deep Dive

I heard at the beginning of the week that I’ve been granted a speaker slot at the PowerShell Deep Dive next month – http://www.theexpertsconference.com/us/2012/ I’ll be speaking on creating cmdlets from WMI objects using a new feature in PowerShell v3 that … Continue reading

Posted in Deep Dive, PowerShell V3 | Leave a comment

Folder sizes

Question on the forums related to folder sizes and last write time Get-ChildItem -Path “C:\PersonalData\MyBooks\PowerShell and WMI” -Recurse | where { $_.PSIsContainer} | foreach { $size = Get-ChildItem -Path $_.FullName | measure -Sum Length | select -ExpandProperty Sum Add-Member -InputObject … Continue reading

Posted in File system | Leave a comment

Deleted user accounts–correction

In the last post which looked at finding user accounts that had been deleted I had this syntax for the Microsoft cmdlets Get-ADObject -Filter {isDeleted -eq $true -and name -ne “Deleted Objects” } -IncludeDeletedObjects | Format-List Name, Distinguishedname   This … Continue reading

Posted in PowerShell and Active Directory | Leave a comment

Deleted user accounts

User accounts get deleted – sometimes on purpose and sometimes its more of a…  oops You can find accounts that have been deleted like this “`nMicrosoft” Get-ADObject -Filter {isDeleted -eq $true -and name -ne “Deleted Objects” } -IncludeDeletedObjects | Format-List … Continue reading

Posted in PowerShell and Active Directory | Leave a comment