How to: Query MachineOU information from ConfigMgr using PowerShell

With the Application Model in ConfigMgr 2012, you can create requirement rules based on Machine OU. Here’s a quick script to see what the ConfigMgr 2012 client has stored as the Machine OU:

( gwmi global_machineOU -namespace root\ccm\cimodels).MachineOU

Happy Scripting!

Greg

ramseyg@hotmail.com

About Greg Ramsey
Greg Ramsey is a systems engineer specializing in global systems management for Dell IT. He has a B.S. in Computer Sciences and Engineering from the Ohio State University and is a Microsoft Most Valuable Professional (MVP) for Microsoft System Center Configuration Manager. Greg coauthored SMS 2003 Recipes: A Problem-Solution Approach (Apress, 2006), Microsoft System Center Configuration Manager Unleashed (Sams, 2009), Microsoft System Center 2012 Configuration Manager Unleashed (Sams, 2012), and Microsoft System Center 2012 Configuration Manager: Administration Cookbook (Packt Publishing, 2012). Greg is cofounder of the Ohio SMS Users Group, and the Central Texas Systems Management User Group.

2 Responses to How to: Query MachineOU information from ConfigMgr using PowerShell

  1. Hi , I found that this site “http://developingtrends.net/how-to-query-machineou-information-from-configmgr-using-powershell/” has copied your article

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,044 other followers

%d bloggers like this: