Archive for the 'WMI' Category

Video: Richard Siddaway – WMI: Gems and Gotchas

Another great recording from US TEC 2011 PowerShell Deep Dive - Richard’s session on WMI in PowerShell. Richard has written an entire book on that topic so he is probably one of the best experts in the area.

Abstract: “WMI has been part of the Windows environment for a long time, and has a reputation for being very powerful but very difficult. PowerShell has made WMI easier to use, but the interaction between the two is still relatively undocumented. PowerShell has also opened WMI up in a number of ways but introduces a number of “gotchas” in the process. This US Experts Conference 2011 PowerShell Deep Dive session demonstrates that that any “gotchas” can be overvcome and WMI offers a treasure trove of functionality to the administrator. The video also answers a number of key questions about WMI and PowerShell, including:

• Is Invoke-WmiMethod always the answer?
• How can I change WMI information?
• How does WMI authentication and authorisation work?
• Should I use explicit remoting, implicit remoting or WMI?
• WMI overlaps with some cmdlets e.g. Get-Process and Win32_Process — which should I use when?
• How do I get the best of WQL? Do I use queries or filters?

Slides: Slides-TEC-2011-Richard-Siddaway-WMI-Gems-and-Gotchas

Scripts: Scripts-TEC-2011-Richard-Siddaway-WMI-Gems-and-Gotchas

Video:

This is a live recording from US TEC 2011 PowerShell Deep Dive conference. TEC Europe is just around the corner – October 17-19th, 2011 in FrankfurtRegister today to get a discount.

See also:

PowerGUI 1.0.13 ships

PowerGUI has just got updated and there are a lot of great new features.

The PowerGUI main IT Pro UI has multiple improvements ranging from improved code generation and preserving window sizes, to the brand new WMI Browser pack right within the console!

The script editing got a lot of improvements: F1 help, ability to supply command-line parameters, background syntax check, intellisense for WMI classes, and much more.

Richard has already blogged about some of the features he liked the best.

So whether you are using PowerShell to manage your AD, Exchange or another platform, or you are a hardcore scripter – go get the latest version of PowerGUI. The price is still the same – $0.00. ;)

Tags: , ,

WMI PowerShell for Exchange 2003

As a quick follow-up for the Exchange 2000/2003 PowerShell post here are a few additional references.

TechNet Script Center has a good article on WMI classes available:

To use a class in PowerShell use Get-WMIObject. For example, to get queue information run:

Get-WmiObject -ComputerName YourExchangeServer -Class Exchange_Queue

Or if you are running the script locally on Exchange server just:

Get-WmiObject -Class Exchange_Queue

To add a node with Exchange 2003 queues to PowerGUI:

  1. In PowerGUI, right-click the folder where you want to add it, and click New / Node on the shortcut menu.
  2. Type in the name you want the node to have (e.g. Exchange Queues)
  3. Pick Get-WmiObject from the Command drop-down list.
  4. Type the actual class as the Class parameter (e.g. Exchange_Queue)
  5. If running remotely, specify the Exchange server name as the Computer Name:

Adding WMI Exchange 2003 Node to PowerGUI

As result you will get a UI like the one Nicolas created for his Exchange 2003 environment.

Here’s a list of WMI classes available (linked to their respective MSDN pages):

ExchangeClusterResource Class
ExchangeConnectorState Class
ExchangeLink Class
ExchangeQueue Class
ExchangeServerState Class
Exchange_DSAccessDC Class
Exchange_FolderTree Class
Exchange_Link Class
Exchange_Logon Class
Exchange_Mailbox Class
Exchange_MessageTrackingEntry Class
Exchange_PublicFolder Class
Exchange_Queue Class
Exchange_QueueCacheReloadEvent Class
Exchange_QueuedMessage Class
Exchange_QueuedSMTPMessage Class
Exchange_QueuedX400Message Class
Exchange_QueueSMTPVirtualServer Class
Exchange_QueueVirtualServer Class
Exchange_QueueX400VirtualServer Class
Exchange_ScheduleInterval Class
Exchange_Server Class
Exchange_SMTPLink Class
Exchange_SMTPQueue Class
Exchange_X400Link Class
Exchange_X400Queue Class

Note that they will not work for Exchange 2007. WMI is no longer supported there but the good news that PowerShell provides you much more.

Tags: , , ,


My Recent Tweets

RSS My company’s blog

  • Fun at HostingCon 2013
    The smell of the hosting industry’s finest is in the air, and of course we sent some of the Jelastic team to attend and proudly exhibit at HostingCon 2013 this week in Austin, Texas.  From what I have been reading, there are more than 50 scheduled sessions from Sales and Marketing, Technology, Issues and Trends and [...]The post Fun at HostingCon 2013 appear […]
  • Secure Access to Your Jetty Web Application
    Today’s post focuses on the web application security related features of Jetty app server. After reading this article you should be able to configure security realms to provide authentication and access control for your Jetty web application, as well as to grant access to your app for dedicated IP-addresses only. Before we start let’s examine what Jetty real […]
  • Software Stacks Market Share: May 2013
    We are back to update you with the latest trends in software stacks popularity for May 2013. This time we decided to collect the numbers in a different way to get more accurate statistics. As you remember previously we counted the number of the environments, where each software stack was used. We’ve changed the reporting [...]The post Software Stacks Market […]
  • Setting Up a Cronjob in Jelastic Cloud
    Cronjob allows you to configure regularly scheduled tasks so that the jobs can be run automatically at a pre-set point of time. It repeats itself and does not need any regular manual instructions. Cron automates your system and can be used for quite different purposes. This wonderful tool is a standard part of all sysadmins toolkit. Also cronjob has a [...]T […]
  • How to Deploy Joget Cluster into the Cloud
    Joget Workflow is an open source platform that allows you to build enterprise web applications easily, due to its rich set of tools. It is also a rapid application development platform that provides complete agile development capabilities, including consisting of processes, forms, lists, CRUD and UI; not just back-end EAI/orchestration/integration or the tas […]
  • Liferay Cluster in the Cloud
    Liferay Portal is one of the most popular Java CMSs in the world due to its impressive ease-of-use. Since we published the tutorial on Liferay deployment to the cloud we have seen an extremely positive reaction from its community. Also we have received multiple requests from Liferay fans asking about clustering, replication and fail-over capabilities in the […]
  • Mark Zbikowski Veteran Microsoft Architect Joins Jelastic
    Jelastic already has an impressive team of advisers including Serguei Beloussov, the founder of Parallels. We also have technical geniuses who endorse and use Jelastic including the father of Java James Gosling, David Blevins who founded the TomEE project, and Michael “Monty” Widenius, the author of the original version of the open-source MySQL database and […]

Legal

The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my former employer - Quest Software, or my current employer - Jelastic or anyone else for that matter. All trademarks acknowledged.

© 2007-2013 Dmitry Sotnikov

Pages

June 2013
M T W T F S S
« May    
 12
3456789
10111213141516
17181920212223
24252627282930

Follow

Get every new post delivered to your Inbox.

Join 67 other followers

%d bloggers like this: