Monthly Archives: October 2013

A thought for Halloween

Just a quick thought 31 OCT = 25 DEC Enjoy

Posted in Philosophy | Leave a comment

Book offers from Manning

those really nice people at http://www.manning.com have some real bargains this weekend: Thursday October 31–Half off all MEAPs    Friday November 1–Half off all pBooks    Saturday November 2–Half off all eBooks    Sunday November 3–Half off any purchase   … Continue reading

Posted in Books | Leave a comment

Using WQL

WMI Query Language – WQL – is used to either form a query directly or indirectly in the –Filter parameter of Get-WmiObject and Get-CimInstance. $query = “SELECT * FROM Win32_LogicalDisk WHERE DriveType = 3”Get-CimInstance -Query $query OR using the –Filter … Continue reading

Posted in PowerShell and WMI, PowerShell V3, PowerShell v4 | Leave a comment

SCCM 2012 lunches deal of the day

Manning’s deal of the day is Learn SCCM 2012 in a Month of Lunches – get 50% off – today only at http://www.manning.com

Posted in Books | Leave a comment

where syntax

This type of construction has been part of PowerShell since the very beginning: Get-Process | where {$_.Handles -gt 500}   Get some data and use where-object to filter the data based on the value of some property. $_ represents the … Continue reading

Posted in Powershell Basics, PowerShell V3, PowerShell v4 | Leave a comment

A new lunches book

Manning have started the early access program (MEAP) for Learn SCCM 2012 in a Month of Lunches – http://www.manning.com/bannan SCCM is a major component for managing your environment. Looking forward to reading it – especially as it has a chapter … Continue reading

Posted in Books | Leave a comment

Powershell help file updates

The updated PowerShell help files are available for all but a handful of modules – the outstanding ones should be available this week. Time to run update-help

Posted in PowerShell V3, PowerShell v4 | Leave a comment

Outputting collections from AD

Have you ever tried anything like this:   Get-ADUser -Filter * -Properties * |Select Name, LastLogondate, PasswordNeverExpires, Enabled, @{N=’OU’; E={($($_.distinguishedName) -split “,”,2)[1] }},Memberof | Export-csv -Path users.csv -NoTypeInformation   You want some basic information about the users plus their group … Continue reading

Posted in PowerShell and Active Directory | 2 Comments

Setting AD attributes from a CSV file

Back in this post https://richardspowershellblog.wordpress.com/2012/02/29/setting-a-users-home-directory/ I looked at setting the users home directory. I recently got a question about using a CSV file for input. CSV files have been around for years and are likely to be with us for … Continue reading

Posted in PowerShell and Active Directory | 2 Comments

WMF 4.0 now available

You’ve probably seen this already but just in case – Windows Management Framework 4.0 is now available to download. It includes PowerShell 4.0 and Desired State Configuration plus updates to PowerShell Web Access.  WinRm is also part of the package. … Continue reading

Posted in PowerShell v4 | Leave a comment