SyntaxHighlighter

Tuesday, 18 September 2012

Troubleshooting a Slow Server - SBS 2008

Speed issues are always difficult to troubleshoot because modern computers do so much, this is especially true of a server and doubly so of an SBS server.  So when a customer recently said that their software was running slowly where did I start?

Task Manager
Open up task manager and have a look at those readings under the performance tab.  Is memory usage high, is CPU usage high, is disk utilization high or is network utilization high?  These would give a good indication of where to start.  CPU usage was very low <10% but all other figures were 20% or higher.

Performance Monitor
Type perfmon /report in the "run" box and it will run a quick 1 minute diagnosis of the computer.  It will give green, amber and red lights depending on what it considers to be of concern.  This may not lead you to the cause of the problem in hand but it seemed like as good a place as any to get some more info.  The problem with this approach is that it may indicate something as ok when it is performing much worse than usual so it is important to have a baseline performance benchmark.  I did not, but I had a feeling an SBS server with 5 users should not have so much disk IO caused by 1 or 2 standard server processes.

Memory Usage
8Gb seemed like a perfectly reasonable amount of memory for an SBS 2008 server, but given the greater than 90% usage, I thought I'd try to bring it down a bit.  Open up Task Manager and under processes select View and choose columns, then select PID.  Sort the processes by Memory usage and I found sqlserver right at the top.  Then open a command prompt (type cmd in the run box) and type at the prompt tasklist /svc |find "sql"
When the command returns it will display several processes each with their PID, now compare the PID to the one at the top of the list in Task Manager and see if you can find the exact database name from the other list.

SBS Monitoring seems to be one of the chief culprits of memory usage so I restricted this to under 1Gb
http://social.technet.microsoft.com/Forums/en-US/smallbusinessserver/thread/d195baac-da8b-4387-9079-c55d5e1879b4
http://blogs.technet.com/b/sbs/archive/2009/07/14/sbs-2008-console-may-take-too-long-to-display-alerts-and-security-statuses-display-not-available-or-crash.aspx

I have kind of run out of time to get this blog finished properly and I'd rather publish it than leave it here languishing, so perhaps I'll update it when I get chance but for now, I hope this helps.  If you'd like to discuss it with me then please contact The PC Support Group on +44 (0) 845 2233116.

Forward Emails for a User who has Left

Suppose a user has left a small business (or even a large one) and their manager would like to ensure that no emails are accidentally sent to this user and thereby missed.  To do this in SBS 2011 (Exchange Server 2010) do the following:
Open: Exchange Management Console from the Start Menu.
Expand: Recipient Configuration
Select: Mailbox
Double-click: The user who's left
Select: The "Mail Flow Settings" tab
Double-click: Delivery Options
Check: "Forward to:" and then enter the email address of the intended recipient.

To have emails forward to an non-company email address, this will need to be entered as a contact in:
Recipient Configuration > Mail Contact.

Tuesday, 4 September 2012

SBS 2011 ran out of disk space

So the other day a customer phoned to say that they hadn't received any emails all morning.  Upon closer inspection the Exchange Information Store service had been creating log files like there's no tomorrow.

A tool I use all the time is Windirstat - it should come as standard with Windows - this led me straight to the culprit.

To disable logging, go into the IIS Manager -> Right-click on Websites and select Properties-> Uncheck “Enable Logging”

For help with this or any other issue, please contact The PC Support Group on 0845 2233116, or visit our website at http://www.pcsupportgroup.com

Android Mail deletes email from Exchange server

So having recently migrated our mail over to Office-365, I was looking forward to using Exchange Active-Sync on my Android phone.  The setup was fairly painless albeit a bit involved.  There is a video guide here which I used to set mine up: http://www.gsu.edu/ist/email/configure-android.html

However, having set up active-sync I found that my phone was running out of storage space, even though I'd set it up to download only the last day's messages.  So I deleted some messages to free up some space.  I was surprised to find that they'd been deleted from my desktop computer also and were in Deleted items.  This is perhaps useful behaviour for some people, as you have all email accounts with the same emails in them showing which one's you've read etc.  However, phone's do have the issue of storage space which other devices generally do not.  So what's the solution:

- Some people said K-9 mail app - but this doesn't support Office-365 - I tried.
- Some people said Touchdown app - but this costs £12.99 - apparently it does work - I've not tried it though.

For the time being I'm going to procrastinate over this one, delete an App or two and either hold off until my phone gets upgraded in about two months, or just pay the £12.99.  I have to say, as good as the HTC Wildfire is, I am constantly getting low storage space warnings on it which drive me crazy!

Tuesday, 14 August 2012

Chronosync Permission Problems

Recently I helped a customer to overcome their chronosync permission problems.  Going into the usual Disk Utility and repairing permissions did not solve the problem - apparently because in OSX Lion this utility does not repair permissions for anything in your home folder.  So the trick to solving permissions problems with Chronosync when using Lion is done like so:

In Lion, there is an additional Repair Permissions application utility hidden away. This tool is located inside boot Repair Utilities. Here’s how to access it.
  1. Restart Lion and hold down the Command and R keys.
  2. You will boot into the Repair Utilities screen. On top, in the Menu Bar click the Utilities item then select Terminal.
  3. In the Terminal window, type resetpassword and hit Return.
  4. The Password reset utility launches, but you’re not going to reset the password. Instead, click on the icon for your Mac’s hard drive at the top. From the drop-down below it, select the user account where you are having issues.
  5. At the bottom of the window, you’ll see an area labeled ‘Reset Home Directory Permissions and ACLs’. Click the Reset button there.
The reset process takes a couple of minutes. When it’s done, quit the programs you’ve opened and restart your Mac. Notice that ‘Spotlight’ starts re-indexing immediately.

This should be done for all user accounts and on all Macs that are involved in the synchronisation.  If there is still an issue following the permission repair then have a look at the file(s) concerned.  In my case there was still a corrupt file on one of the computers that I could delete.  I knew it was corrupt as one computer said its size was 40kb and the other computer said 0kb, so I deleted the 0kb one.

Instructions courtesy of http://osxdaily.com/2011/11/15/repair-user-permissions-in-mac-os-x-lion/

If you would like help with this or any other fix for your Mac, then please contact The PC Support Group on +44 (0) 845 2233116.

Friday, 10 August 2012

Paste a table into Blogspot / Blogger

Attempting a new approach of inserting a table into Blogger, I decided to try using a Macro in Excel to generate the HTML code.  As usual, someone else had beaten me to it and provided some ready to use code: http://dmcritchie.mvps.org/excel/xl2html.htm

To quickly get up to speed and have you table pasted into Blogger in under 5 minutes and in just over 10 steps by following these steps below:

1. Copy all the text from this page: http://dmcritchie.mvps.org/excel/code/xl2htmlx.txt
2. In Excel press Alt + F11 to bring up the macro editor
3. Select Insert > Module
4. Paste the text from 1. into the right hand window (if it is not displayed already, double-click "Module 1" in the left-hand pane.
5. I had to delete the first 8 lines to get the code to compile so I recommend you do the same.
6. Save the file - when the dialog box warns you about the file-type (in 2010) then select no and then go on to save the file.
7. Return to your Excel table - create the table if you haven't already
8. Highlight the table that you want to paste into Blogger
9. Press Alt + F8 to show the available macros, select XL2HTML and then press Run.
10. Save the txt file when prompted, but more importantly a webpage will pop up displaying the table, now highlight the table here and copy it.
11. Go to Blogger and in "Compose" view, paste the table.

In the future you can use the excel workbook again and again for creating HTML tables, you can jump right in at step 7.

If you would like help with any of the steps above, then do contact us at The PC Support Group on 0845 2233116

Using Word 2010 and Blogspot

For my last post I needed to insert a table into Blogspot.  This must be common enough, yet the only way I could find to do it was by typing out the html manually.  If I'd had an HTML editor to hand then no doubt I could have used that, and I'm sure there are other tricks too.  What I discovered was the Blogpost option in Word 2010, so I started investigating.  I was sadly disappointed.

This post provided some hope: http://astralsnotes.blogspot.co.uk/2012/05/publishing-word-doc-to-bloggercom-with.html
This one also pointed to a possible solution: http://caflib.blogspot.co.uk/2009/08/publishing-to-blogger-from-word-2007.html

This Technet post here seems to back up my findings that Google and Microsoft are not talking to each other as far as blog posts are concerned.
http://social.technet.microsoft.com/Forums/en-US/word/thread/426b0f98-68f3-4a8a-9d88-a05fab1b6616

So to solve my original problem of inserting a table in Blogspot, I turned to Excel to solve the problem.  See my next post for more info.