03. May 2014 · Comments Off on No remote Desktop Licence Server availible on RD Session Host server 2012 · Categories: Microsoft · Tags: , , , , , , ,

A fully functional and activated 2012 Remote Desktop Session Host server displayed the following message:

error no licence

This was a simple setup on one server with the: connection broker, Session Host and Licensing server with 2012 CAL’s installed.

More »

04. August 2013 · Comments Off on Run a program as a Service · Categories: Microsoft, Windows · Tags: , , ,

I wanted to setup some programs to run as Windows Services but found information on the subject to be scattered around everywhere. So this post is basically for consolidation and clarification but is not focused on unattended installations.

What is a Service?
A Windows Service is automatically started when your system boots. There is no need to logon to the system. Services also are not affected by people logging off. Services automatically recover from program crashes and Standby and Hibernation modes. Windows 9x/ME do not have a Service facility. Installing software as a Service requires Administrator permissions.

What are the options for running a program as a Service?

  • sc.exe
    This is Microsoft software and is installed by default on XP and 2003. It is probably the best and easiest method but it won’t work if the target executable was not programmed to run as a Service. This rules it out for what many people are trying to do since most programs that are designed ro run as a Service have that option included somewhere in the application. sc.exe is useful for the Unattended crowd, though.
    More »
19. January 2013 · Comments Off on Setup Windows Server 2008 SMTP Relay for Office 365 · Categories: Office365 · Tags: , ,

Many small businesses have printers that scan to e-mail, phone systems that send e-mail status updates, and a number of other e-mail enabled applications and devices.  When converting to a cloud based e-mail system, like Office 365, sometimes these devices cannot be configured to send e-mail over encrypted links to the cloud.  Office 365 required an SMTP connection that supports TLS encryption and many legacy devices or applications don’t support this.

The solution is to install an onsite SMTP relay that supports an encrypted connection.  Fortuneately, Windows Server supports an SMTP relay for Office 365.

This how-to guide assumes you have an operational Windows Server 2008 server within your company / organization.  It will work through adding the correct roles and features to Windows Server 2008, and then configuring them for communicating with Online Exchange within Office 365.

Determine Office 365 SMTP Server Settings

Before you can configure the relay, you must know the exact mail server addresses to use in Office 365.  To determine those, follow these steps:
More »

09. January 2013 · Comments Off on Resolving “The User Profile Service failed the logon. User profile cannot be loaded.” · Categories: Microsoft · Tags: , , , ,

1212555

Exact cause is unknown, but this issue may occur if the user profile was manually deleted by using the command prompt or Windows Explorer by a user or by some program. A profile that is manually deleted does not remove the security identifier (SID) from the user profile list in the registry. Since the SID is still present, Windows will still try to load the profile by using the ProfileImagePath that points to a nonexistent path. Therefore, the profile cannot be loaded.

This can also be a issue with the user profile entering into a backup state, or if the C:Users(User Name) user profile folder is manually renamed.

1.

Log on to the Computer

Log on to the computer using the Administrator (or an Administrator-level) account.

More »

31. July 2012 · Comments Off on The only way to clean up your WSUSContent folder in the fewest amount of steps · Categories: Microsoft · Tags: , ,

If you decide to set old updates or non-required updates to Not Approved

… the updates in the WSUSContent folder will not automatically be cleaned up for you.

The only way to clean up your WSUSContent folder in the fewest amount of steps is to RESET the WSUS server and re-download the content for all approved updates.

How to Do a Reset:

Note: You may want to execute the procedure below during off hours as your WSUS server will be downloading quite a bit of data.

1) Correct any settings above or disapprove any unneeded updates.

2) Close any open WSUS consoles.

3) Go to Administrative Tools – Services and STOP the Update Services service.

4) In Windows Explorer browse to the WSUSContent folder (typically D:WSUSWSUSContent or C:WSUSWSUSContent)

5) Delete ALL the files and folders in the WSUSContent folder.

6) Go to Administrative Tools – Services and START the Update Services service.

7) Open a command prompt and navigate to the folder: C:Program FilesUpdate ServicesTools.

8) Run the command WSUSUtil.exe RESET

-This command tells WSUS to check each update in the database, and verify that the content is present in the WSUSContent folder. As it finds that the content is not present in the folder, it executes a BITS job to download the content from Microsoft. This process takes quite a bit of time and runs in the background.

How do you tell when the process is complete?

Other than noticing that the WSUSContent folder is no longer growing you can also check the SoftwareDistribution.log:

C:Program FilesUpdate ServicesLogFilesSoftwareDistribution.log

When you start the reset process, you should see a line towards the bottom of the log which looks like this:

WsusService.13  ExecutionContext.runTryCode     State Machine Reset Agent Starting

After waiting for some time, check the log again and search for the text “State Machine Reset Agent Finished”

WsusService.13  ExecutionContext.runTryCode     State Machine Reset Agent Finished

WSUS