Search This Blog

Loading...

Wednesday, September 17, 2014

Configure Windows 2012 R2 SMTP server to forward mails with a Gmail Account

In some test situations I need a fast way to have a SMTP host relay mail using a Gmail account. this is for example the case if I don’t have access to an internal SMTP host.

First install the Feature SMTP Server:

image

Start the Internet information Services (IIS) 6.0 Manager:

image

Right click at the SMTP Virtual Server and select Properties:

image

Go to the Access tab and select Relay:

image

Check Only the list below and click Add:

image

Enter the IP address of the computer sending mails through this server:

image

Click OK:

image

Go to the Delivery tab and select Outbound Security:

image

Select Basic Authentication and specify your Gmail account and password. Check TLS encryption

image

Click OK on outbound Security and select Outbound connections

image

Set TCP port to 587 and click OK:

image

Select Advanced

image

Enter smtp.gmail.com in Smart host:

image

If your having problems sending check your account settings on Google, you might have to enable Access for less secure apps, and IMAP or POP3 must be enabled.

image

Tuesday, September 9, 2014

Windows Server Update Services (WSUS) installation fails

When you try to install Windows Server Update Services (WSUS) on Windows server 2012 R2 you might get the error

The request to add or remove features on the specified server failed. The operation cannot be completed, because the server that you specified requires a restart.

image

Restarting the server does not change anything.

Looking at the event log will give us a good idea about the cause of the problem:

The MSSQL$MICROSOFT##WID service was unable to log on as NT SERVICE\MSSQL$MICROSOFT##WID with the currently configured password due to the following error:

Logon failure: the user has not been granted the requested logon type at this computer.

Service: MSSQL$MICROSOFT##WID

Domain and account: NT SERVICE\MSSQL$MICROSOFT##WID

This service account does not have the required user right "Log on as a service."

User Action

Assign "Log on as a service" to the service account on this computer. You can use Local Security Settings (Secpol.msc) to do this. If this computer is a node in a cluster, check that this user right is assigned to the Cluster service account on all nodes in the cluster.

If you have already assigned this user right to the service account, and the user right appears to be removed, check with your domain administrator to find out if a Group Policy object associated with this node might be removing the right.

image

One typical reason could be a Group policy in Active Directory restricting the Log on as a Service right to something other than expected by Windows, as shown below:

Removing this policy or configuring it with the rights expected by Windows would be a good place to start.

image

image

Default Local security Setting on Windows Server 2012 R2 would normally be:

image

When you successfully install WSUS on a Windows 2012 R2 server with no GPO’s, the local Security Setting would change to:

image

Monday, September 1, 2014

Citrix Receiver for Windows 4.1 Cumulative Update 1

Citrix has released Cumulative Update 1 for Windows Receiver, new version reported is 4.1.100.12

clip_image001

To see changes and download installation file :

http://support.citrix.com/article/CTX140265

Apply Network Settings in a task sequence - Part 4

Links: Part 1Part 2Part 3Part 4

OSDAdapter0EnableWINS

Set this to True to use WINS for name resolution.

Task Sequence example:

OSDAdapter0EnableWINS=True

image

OSDAdapter0WINSServerList

Comma-delimited list of WINS server IP addresses. This property is ignored unless EnableWINS is set to True.
Result in Windows:

image

Task Sequence example:

OSDAdapter0WINSServerList=10.10.10.1,10.10.10.2

image

OSDAdapter0TcpipNetbiosOptions

Options for NetBIOS over TCP/IP. Possible values are:

  • 0 Use NetBIOS settings from DHCP server (Default).
  • 1 Enable NetBIOS over TCP/IP.
  • 2 Disable NetBIOS over TCP/IP.

Result in Windows:

image

Task Sequence example:

OSDAdapter0TcpipNetbiosOptions=2

image

OSDAdapter0Name

Name of the network connection as it appears in the network connections control panel program. The name is between 0 and 255 characters in length.

Result in Windows:

image

Task Sequence example:

OSDAdapter0Name=Test

image

OSDDNSDomain

Specifies the primary DNS suffix used by the destination computer

Result in Windows:

image

Task Sequence example:

OSDDNSDomain=gt.local

image

OSDAdapter0MacAddress

Media access controller (MAC) address used to match settings to physical network adapter. If used you must specify MAC address on all interfaces.

With this setting you make sure that your setting for example for OSDAdapter0 is applied to a specific adapter.

Task Sequence example:

OSDAdapter0MacAddress=00:50:56:34:FB:23

image