Sunday, October 5, 2014

Enabling WMI on Windows Azure



To enable WMI on Windows Azure machines:
  • Open the firewall port 135
  • Set WMI to use a static port
Step one:  Set the DCOM config to use a static port....
Basically, run "dcomcnfg" from command prompt. Navigate the tree to My Computer > DCOM Config > Windows Management and Instrumentation, select properties of that folder.
Go to the Endpoints tab
Select Properties button for Connection-oriented TCP/IP
Use static endpoint, set the port.
Step 2:  Configure WMI to use a fixed port
  1. At the command prompt, type winmgmt -standalonehost
  2. Stop the WMI service by typing the command net stop "Windows Management Instrumentation"
  3. Restart the WMI service again in a new service host by typing net start "Windows Management Instrumentation"
  4. Establish a new port number for the WMI service by typing netsh firewall add portopening TCP 24158 WMIFixedPort
Still testing this myself, so not 100% certain it works.


49154 - TCP Port for DCOM when using wmic.


winexe -U Administrator%password //157.56.167.120 "C:\\AutoHotKeyScripts\\debug.exe"

To get winexe working make sure to open port 445 on Azure.

When I got the error
[winexe/winexe.c:120:on_ctrl_pipe_error()] ERROR: Failed to install service winexesvc - NT code 0x00000424
I did the following:

sc create winexesvc binPath= C:\WINDOWS\WINEXESVC.EXE start= auto DisplayName= winexesvc 
sc description winexesvc "Remote command provider for Zenoss monitoring"


2 comments:

coralgrace738♡ said...

I blog frequently and I truly thank you for your information. This article has really peaked my interest.
I will take a note of your site and keep checking for new details about once a week.
I subscribed to your Feed too.
토토
경마

coralgrace738♡ said...

When someone writes an post he/she retains the plan of a user in his/her brain that how a user can understand it.
So that’s why this post is perfect. Thanks!
majortotosite
racesite
oncasinosite
totopick