Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Enable remote WMI programmatically?

Reply
 
Old 10-05-2009   #1 (permalink)
Karl Mitschke


 
 

Enable remote WMI programmatically?

I have 600 Windows servers (99% Server 2003, 1% Server 2008)

I need to allow a domain user account to access WMI information remotly.

So, I need a way to:
1) Enable the firewall to allow remote wmi calls.
2) Enable remote DCOM.
3) Modify the WMI security to allow access to the Root\CIMV2 namespace for
my account.

I can do all this manually, but I don't want to touch all 600 servers.

Does anyone have a script or any c# code snippets to allow this?

Thanks


Karl



My System SpecsSystem Spec
Old 10-09-2009   #2 (permalink)
msnews.microsoft.com


 
 

Re: Enable remote WMI programmatically?

Please see the following article:

http://www.activexperts.com/support/...sp?kb=Q7250015

Best regards,

Frits de Boer

ActiveXperts Software B.V.
Web: http://www.activexperts.com



"Karl Mitschke" <karlmitschke@newsgroup> wrote in message
news:d66cd4c214de88cc13c21751cc8b@newsgroup
Quote:

>I have 600 Windows servers (99% Server 2003, 1% Server 2008)
>
> I need to allow a domain user account to access WMI information remotly.
>
> So, I need a way to:
> 1) Enable the firewall to allow remote wmi calls.
> 2) Enable remote DCOM.
> 3) Modify the WMI security to allow access to the Root\CIMV2 namespace for
> my account.
>
> I can do all this manually, but I don't want to touch all 600 servers.
>
> Does anyone have a script or any c# code snippets to allow this?
>
> Thanks
>
>
> Karl
>
>

My System SpecsSystem Spec
Old 10-09-2009   #3 (permalink)
Karl Mitschke


 
 

Re: Enable remote WMI programmatically?

Hello msnews.microsoft.com,
Quote:

> Please see the following article:
>
> http://www.activexperts.com/support/...sp?kb=Q7250015
>
> Best regards,
>
> Frits de Boer
>
> ActiveXperts Software B.V.
> Web: http://www.activexperts.com
> "Karl Mitschke" <karlmitschke@newsgroup> wrote in message
> news:d66cd4c214de88cc13c21751cc8b@newsgroup
>
Quote:

>> I have 600 Windows servers (99% Server 2003, 1% Server 2008)
>>
>> I need to allow a domain user account to access WMI information
>> remotly.
>>
>> So, I need a way to:
>> 1) Enable the firewall to allow remote wmi calls.
>> 2) Enable remote DCOM.
>> 3) Modify the WMI security to allow access to the Root\CIMV2
>> namespace for
>> my account.
>> I can do all this manually, but I don't want to touch all 600
>> servers.
>>
>> Does anyone have a script or any c# code snippets to allow this?
>>
>> Thanks
>>
>> Karl
Thanks for the suggestion

From the responses I am getting, it's clear I am not very clear in my requirements.

I need to run this from computer 1 against computers 2 - 601

On computer 1 I can gather wmi data on the 600 servers if I provide domain
admin privileges.

If I login to any of the 700 servers, I can configure the remote WMI and
the firewall, and the permissions for CIMV2 to allow a Domain User account
- that's not a problem. I just don't want to have to login to all 600 servers.

Karl


Karl


My System SpecsSystem Spec
Old 4 Weeks Ago   #4 (permalink)
Dave


 
 

Re: Enable remote WMI programmatically?

On Oct 5, 4:59*pm, Karl Mitschke <karlmitsc...@newsgroup> wrote:
Quote:

> I have 600 Windows servers (99% Server 2003, 1% Server 2008)
>
> I need to allow a domain user account to access WMI information remotly.
>
> So, I need a way to:
> 1) Enable the firewall to allow remote wmi calls.
> 2) Enable remote DCOM.
> 3) Modify the WMI security to allow access to the Root\CIMV2 namespace for
> my account.
>
> I can do all this manually, but I don't want to touch all 600 servers.
>
> Does anyone have a script or any c# code snippets to allow this?
>
> Thanks
>
> Karl
You can do this fairly easily if all the servers are under active
directory by configuring a GPO.

If they are, you can do this....

1. Using the Group Policy Editor, click Computer Configuration, click
Windows Settings, click Security Settings, click Local Policies, and
then click Security Options. In Network access: Sharing and security
model for local accounts, click Classic – local users authenticate as
themselves.
2. Using the Group Policy Editor, click Computer Configuration, click
Administrative Templates, click Network, click Network Connections,
click Windows Firewall, and then click Domain Profile.
3. In Windows Firewall: Allow remote administration exception, click
Enabled. In Allow unsolicited incoming messages from, type the IP
address or subnet of the computer performing the inventory.
4. In Windows Firewall: Allow file and print sharing exception, click
Enabled. In Allow unsolicited incoming messages from, type the IP
address or subnet of the computer performing the inventory.

After saving the policy changes, don't forget you need to wait for the
policy settings to be applied to the client computers, which can take
up to two hours.

Kind Regards

- Dave
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Enable remote WMI programmatically? PowerShell
Remote Administration will not enable Vista General
how to enable the remote assistence in vista Vista General
Remote Assistance - Enable or Disable Tutorials
Enable Remote Assistance Vista Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46