Monthly Archives: July 2007

Posting Order

Just realised I posted the articles about using WMI to get disk information in the wrong order.  Apart from the comment at the start of the last post (first one read?) they stand alone so shouldn’t be too confusing 

Posted in Powershell | Leave a comment

Logical Drives

This one shouldn’t be a surprise Get-WmiObject -Class Win32_LogicalDisk | Select DeviceId, Name, Description, VolumeName, DriveType, MediaType, FileSystem, Size, FreeSpace | Format-List Note this command will also show mapped drives Again if you want to see the list of properties available (Get-WmiObject -Class … Continue reading

Posted in PowerShell and WMI | Leave a comment

Physical Drives

Following on from mapped drives we want to look at physical drives next.  The PowerShell is very similar Get-WmiObject -Class Win32_DiskDrive | Select Caption, DeviceId, Manufacturer, VolumeName, MediaType, Model, Name, Partitions, Size, Status | Format-List Other properties available can be obtained via $d … Continue reading

Posted in PowerShell and WMI | Leave a comment

Mapped Drives

WMI is a wonderful tool for administrators.  It is sometimes the only way to find out information from your system.  It is also a constantly evolving system – which can be frustrating sometimes when you find a wonderful new class … Continue reading

Posted in PowerShell and WMI | Leave a comment

Time Skew

I was reading a study guide for my next exam and something in that triggered some thoughts about Time skew between computers in an Active Directory domain.  AD uses Kerberos for authentication and Kerberos requires that the times on the … Continue reading

Posted in Active Directory administration with PowerShell | Leave a comment

Searching AD by Script vs cmdlet

In a previous post  http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!601.entry I showed searching for a particular user and having a filter on for membership of a particular group   $user = Get-QADGroupMember -Identity ‘SomeGroupName’ | where {$_.Name -like "*UserName"}    If you wanted to do that … Continue reading

Posted in Active Directory administration with PowerShell | 3 Comments

Searching AD by user and group

How do you search for a user account by the user name and the user needs to be in a specific group.  Writing an LDAP filter to do this isn’t straight forward so better to use the quest cmdlets   … Continue reading

Posted in Uncategorized | Leave a comment