Browse by Tags

All Tags » WMI (RSS)

Use Powershell, WMI to retrieve DNS search order, Use Active Directory for list of computers. by steve schofield

# ********************* Global variables ********************* $sb = new-object System.Text.StringBuilder $sbErrors = new-object System.Text.StringBuilder # ********************* Defining functions ********************* function GetListOfComputer { $strCategory...
Filed under: ,

Powershell Script, WMI to get DNS settings. by steve schofield

A while ago I wrote my disappointment about Powershell and trying to pick up the syntax. I've scripted for years with WSH / VBS, ASP, ASP.NET, VB.NET and some C#. I was used to Visual Studio and the rich debugging support. Coming from a web developer...
Filed under: ,

IIS7 - post #10 - Connecting to remote Longhorn server using WMI & root\WebAdministration namespace. by steve schofield

I'm using a machine running Vista RC1 to query my remote Longhorn RC1 server. The code samples listed below return information Worker Processes and helps recycle an application pool. To recycle the app pool, I use Win32_Process class to start an AppCmd...
Filed under: ,

IIS7 - post #8 by steve schofield

Here is sample code to return a collection of Application Pools using WMI and IIS7. This is dynamic because this could be used to retrieve from a local machine or altering the code to connect to a remote server running IIS7. Here is an article that explains...
Filed under: ,

WMI - start a process on remote machine and passing custom credentials. by steve schofield

I use System.Management in .NET 2.0 to connect, pass custom credentials to a remote machine and query with WMI frequently. This is straight forward and there are many examples showing the syntax how to do this. However, while working with remote IIS7...
Filed under: ,
More Posts