Friday, 5 October 2012

Remote Desktop Services, Windows Server 2012

I've been trying to set up a virtual desktop infrastructure using Server 2012 but kept running into an issue where remote desktop services failed to install, without giving any relevant information.

I noticed that this process was creating several new services, one of which, "Windows Internal Database" was listed as a dependency to the Remote Desktop Connection Broker.

On further investigation, this service would not start due to a log on error.  It seems an automatically generated account was used to log on.

To resolve, once the installation process started I opened up this service and changed log on to local system account.  Installation of the remote desktop services then continued successfully.


Friday, 3 June 2011

Outlook 2010 sent items from shared mailbox

When adding a shared mailbox in Outlook 2010, the sent items by default go into the sent items folder of the main user, not the shared mailbox.

In order to maintain correct functionality, use multiple exchange accounts - go in to control panel - mail.

Add the shared mailbox as an additional mailbox.

For more info: http://blogs.office.com/b/microsoft-outlook/archive/2009/08/25/multiple-exchange-accounts-in-outlook-2010.aspx

For Outlook 2007, this can be handled with a hotfix and registry entry: (http://support.microsoft.com/kb/972148), and adding the shared mailbox under Account options, advanced tab and open additional mailboxes.

Tuesday, 9 November 2010

Monitoring Windows 7 boot times

Windows 7

A slow starting machine is always frustrating, thankfully Windows 7 includes fairly comprehensive troubleshooting logs in the event viewer to enable us to identify and eliminate anything which may be causing undesirable boot times.

The easiest way to use these tools is to set up custom views with event viewer on the computer in question.  Open event viewer and then select "Create custom view" from the Action menu.  The log that we are looking for is located under Applications and Services Logs - Microsoft - Windows - Diagnostics - Performance - Operational, and the important event IDs for start up are 100 and 101-110.


The first custom view is to monitor the boot time, and looks exclusively at event 100.  This event is created every time the system boots up, and tells us how long the boot process took.  Save this custom view as "boot up time" or similar, and then create another custom view which is exactly the same but looks at events 101-110. These are the more specific start up times of applications, services, drivers, etc.  Save this as boot time degradation or something similar.

Once we have these logs, it is easy to identify when the boot up problem started using the "boot up time" log.  This contains 3 important fields to look at -



  • The BootTime field represents the total time (ms) for the system to boot up.  This will of course vary based on newly installed software, and updates. This is the sum of the following 2 valuies
  • The MainPathBootTime is the time (ms) from when the Windows logo appears on screen until the log on prompt is presented.  This will normally be the time which increases if there are Windows updates, or new drivers installed.
  • The BootPostBootTime is the time (ms) from log on until the system is usable (I believe this is defined as above 80% CPU in the system idle process). This will show if there are problem applications which take up time on entering Windows.
By working with this log, it is possible to determine fairly accurately when the slow boot first began to occur.

Once a time frame has been identified, we can then look at the boot time degradation log in order to break down the cause of the problems.  These are the event IDs which may be causing the problem.

Event 101, is for application degradation.  This event shows the total time and the degradation time for applications which run at boot up. The total time is the time that application took to start on the specific boot in question.  The degradation time is how much longer this is than the usual time for this application. In the example, we can see that explorer took about 13.5 seconds to start, and that this is about 6 seconds longer than usual.  It should be fairly obvious in extreme cases, which application is taking a long time to start up.  Once identifying a problem application, it may be worth updating or reinstalling the application, or even removing the application if it is not essential.



Events 102 and 103 are for drivers and services respectively.  Again, if a driver is taking a while to start, it could be worth updating.  If a service is causing the problem, then the service in question can be set to either a delayed or a manual start.

Events 107 and 108 are related to group policy (computer, and user policy respectively).  These should not cause any problems.

Event 109 is related to devices.  If a device is taking longer than usual to initialize, it might be worth replacing the device, particularly in the case of hard drives where data could be lost in the event of a device failure.

Hopefully this guide will be helpful to identify potential solutions to poor performance in Windows 7 systems.

Friday, 22 October 2010

Resource Mailbox Management in Exchange 2007

Exchange 2007, PowerShell

Theses are the PowerShell commands which I have found useful when managing resource mailboxes.

Add-mailboxPermission
-user: choose the user
-access rights : assign the rights (typically FullAccess)

Add-AdPermission
-ExtendedRights Send-As: to add send as permissions.

Set-Mailbox
-GrantSendOnBehalfTo : to add send on behalf of permission. This takes Display Name.

Set-MailboxCalendarSettings
-ResourceDelegates: set up delegates to receive copies. Uses Display Name not account name. Need to specify all delegates, as this overwrites current settings.
 

Monday, 18 October 2010

Condeco Missing User

Could not book in a user to a meeting room in Condeco.
It was discovered that the user did not exist in the Condeco system, so asked her to log in with her active directory credentials.
She logged on, and was then created as a user in Condeco.
However it was still not possible to make a booking under her name.
In active directory, the user did not have a firstname and lastname set. After setting the firstname and lastname (and waiting for replication) it became possible to book a meeting room for the user.

Condeco is searching active directory on the firstname and lastname fields, even although the user exists with this data in Condeco, it still searches active directory when trying to set a user to host a meeting.

Tuesday, 12 October 2010

Powerpoint crashes with "sdt1c.dll" and "Kernel32.dll" errors

Windows XP 32Bit
Powerpoint 2007

Powerpoint crashing either on start up or when trying to print. The guilty file being either kernel32.dll or sdt1c.dll. Repair and reinstall not useful.

Further investigation reveals that sdt1c.dll is a Dell printer driver file. Tried removing this Dell printer and now Powerpoint works without trouble.

Reinstall the printer with the latest drivers downloaded from Dell website.

Monday, 11 October 2010

Group policy fail

Windows XP machine on the domain receiving the message "Cannot connect to admin.root.com" (Server Down) group policy processing aborted.

These machines can not ping the admin.root.com domain for some reason

nslookup will not find admin.root.com... nslookup with a different DNS server will find admin.root.com.

So it appears to be a DNS issue... but other computers on the domain are not receiving the same error, using the same DNS servers.

Removed machine from domain, ran newsid and rejoined domain - no luck.