Configure Wmi Windows Server 2008
My SMTP mail server requires that email be sent with TLS encryption and on port 587. This makes it problematic for Team Foundation Server (TFS) to send emails directly. To work around the problem, I installed the Windows 2008 SMTP Server service and configured it for relaying to my real SMTP mail server.
- Hi, This is not the correct forum for this query.Please check the below link: New visitors please read before posting here! Hope this helps.
- Windows 2008 WMI - IIS Server Opspack. Windows Server is a brand name for a group of server operating systems released by Microsoft. Windows Server also includes the popular series of server software hosting a range of software and services such as Microsoft IIS, Exchange and Hyper-V.
Allow Remote WMI connection in Windows Servers 2008 R2 I wanna a C# program to get disk space of a remote server whose OS is Windows Server 2008 R2. The program and the server are under different domains. I use server's domain account to authenticate the connection. Enable 'remote enable' in WMI Control Properties.
Install SMTP Server
Configure Wmi Windows Server 2008 End Of Life
To begin, launch Server Manager and add the SMTP Server feature.
This includes a dialog to add some additional items.
Click Add Required Features and, after the dialog closes, click Next > followed by Install.
The same can be done from the command line using:
Configuring the SMTP Service to Auto-Start
Unfortunately, the service is not configured to auto-start by default so you need to go into the services to change this:
To perform the same action from the command line use the following PowerShell commands:
<table border='1'><tbody><tr><td><pre>Get-Service SMTPSvcSet-Service–StartupType Automatic |
From DOS you could use sc.exe.
Configuring the SMTP Service for Routing to Alternate SMTP Server
Finally, you need to configure the SMTP Server to redirect to an alternate SMTP server (assuming it is not sending email directly). This involves settings in both IIS 7.0 and IIS 6. Open Internet Information Server (IIS 7.0) and select the server node
Internet Information Services (IIS) Manager (IIS 7.0)
- From inside Internet Information Services (IIS) Manager, browse to the server’s SMTP E-mail feature and open it.
- Inside the SMTP E-mail windows, enter in the “send from” email address, the remote SMTP server DNS name (or IP address) and the remote server port. In addition, select Specify credentials and enter the credentials required to connect to the remote SMTP server.
To perform the same action from the command line use the following commands (Powershell is optional):
<table border='1'><tbody><tr><td><pre>appcmd.exe setconfig/commit:WEBROOT/section:smtp/from:Inigo.S.Montoya@IntelliTechture.com<br/>/deliveryMethod:Network/network.port:587/network.defaultCredentials:False<br/>/network.host:smtp.intelliTechture.com/network.userName:Inigo.S.Montoya@intelliTechture.com<br/>/network.password:*** |
<font face='Calibri'>Where</font><font face='Consolas'>appcmd.exe</font>islocated in%windir%System32inetsrvappcmd.exe. |
Internet Information Services (IIS) 6.0 Manager
- Launch Internet Information Services (IIS) 6.0 Manager locate the [SMTP Virtual Server #] node and open up the Properties dialog.
As shows, I just added 127.0.0.1 so that I was only enabling the current box to send via this SMTP Server but you can also add a group of computers by subnet or an entire domain. - Next, navigate to the Delivery tab and modify the settings for all three buttons, Outbound Security…, Outbound connections…, and Advanced….
- For Outbound Security, switch to Basic Authentication and enter the remote SMTP Server credentials in addition to checking TLS encryption.
- On the Outbound Connections tab, switch the TCP port to 587 (or whatever port you need).
- Finally, on the Advanced Delivery tab, identify the Smart host as the DNS (or IP address) of the remote SMTP server.
For the Fully-qualified domain name refers to the server you are configuring, the one the SMTP-Service is being configure on.
Enable Wmi Powershell
Unfortunately, I didn’t come up with the command line for this particular action. I did find two leads as to where there may be a command line solution, however:
- The first is the smtpsetup.exe program (located in %windir%system32inetsrv). This program takes an INF file with the configuration information.
- Secondly, the configuration information itself is stored in %windir%System32InetsvrMetabase.xml.
Even though figuring out the final command line seemed within reach, I had no information as to how the password was encrypted and stored into the file and without much to go on, I decided to move on.
Command Line
Combining all the command lines together (except for the IIS 6.0 configuration) yields the following:
If the Windows user account running the ArcGIS Monitor Service <Name> service is not a member of the Administrator group on the remote machine, the account must be added to the Performance Monitor Users group and the Distributed COM Users group to collect metrics. Perform the following steps to add the account to the groups and configure Windows Management Instrumentation (WMI):
|