Wednesday, 19 December 2012

Terminal Services - User Profile Hive Cleanup Service

This service is good to have on Terminal Servers as it cleanly logs off the
users, preventing profile related problems from occuring.

http://www.microsoft.com/en-au/download/details.aspx?id=6676

Thursday, 27 September 2012

Wednesday, 4 July 2012

Tuesday, 5 June 2012

Error 0x0000007e when connecting HP LaserJet on Server 2008 R2 x64

Source:
http://social.technet.microsoft.com/Forums/en/w7itprogeneral/thread/95284883-e9bf-45a8-99ed-43d14483fbd3

...64 bit clients are unable to add printers and receive an error of
"Cannot Connect to Printer" with an error code of 0x0000007e...

My solution was to remove the CopyFiles key from
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\<Printer
Name>\

Driver installs on x64 without further fuss.

Friday, 25 May 2012

Cannot remove AD using DCPROMO

When running DCPROMO to remove AD from a server and it fails stating that
something cannot be deleted see here:

http://anetconfig.blogspot.com.au/2008/08/active-directory-could-not-be-removed.html

You need to have the Support Tools (On Server 2003) installed and run the
"ntdsutil" tool to remove the offending element.

Thursday, 24 May 2012

Install .NET 1.1 on SBS 2011

Installing .NET (dotnet)1.1 on SBS 2011 is to be avoided if possible as upon installation because it aggressively changes the IIS & SBS .NET configuration.
Some of the effects of installing .NET 1.1 include:
- "Companyweb" not working
- "Connect" site not working
- Exchange Management Console not working
- WSUS service not working

A saving grace is that core server functionality is still intact.

If you absolutely must install it (e.g. Quickbooks DB Manager) there is a way around the problem:
After installing the .NET 1.1 package...

This is what I did to restore the server to normal :
- Open admin command prompt
- CD to  c:\windows\microsoft.net\framework64\2.0.50727
- Run the following "aspnet_regiis /i"
- Run the same command in c:\windows\microsoft.net\framework64\v4.0.30319
- Run a repair on the .NET 4 install (from the Control Panel)
- Reboot the server

- Open the IIS Configuration console

- For the highlighted entry - change the Executable path to ..\Framework64\.. rather than \Framework\
(the ..\Framework\.. refers to the 32bit version of .NET 4 which is incompatible)

- Ensure all ASP .NET extensions are allowed

- Ensure that all the Application Pools are set to the correct version of .NET as above. (They are all incorrectly set to v4.0 initially)
- Reboot the server.

You should now have a functional SBS 2011 server with .NET 1.1 installed

I cobbled this solution together from the following sources:
http://msmvps.com/blogs/bradley/archive/2011/04/16/promise-me-you-won-t-try-to-do-this.aspx
http://brendon.davis.to/2012/02/06/sbs-2011-and-net-framework-1-1/
http://social.technet.microsoft.com/Forums/en-US/exchangesvrdeploy/thread/cee39a9d-5fa0-496c-89a5-aef857014cc1



Friday, 18 May 2012

XenServer - Attach an existing HDD based SR

First off, while the server is turned off, physically connect the HDD
containing the SR you need to attach and boot up. Check BIOS to ensure
drive is detected.

Run the following commands in the XenServer console:

1. pvscan
(the above gets the existing SR UUID to use in next command)

2. xe sr-introduce uuid=93937a2a-bf78-af99-bd75-b275e9211e4c type=ext
name-label="Local EXT3 SR 2" content-type=user

3.ls -l /dev/disk/by-id/
(the above lists the SCSI ID to use in next command)

4.xe pbd-create sr-uuid=93937a2a-bf78-af99-bd75-b275e9211e4c
device-config:device=/dev/disk/by-id/scsi-SATA_Hitachi_HDS7230_MN1221F30D6L7D
host-uuid=37448bb1-fb14-49e3-8637-5aaf51565289
(the above generates a PBD UUID to use in next command)

5. xe pbd-plug uuid=984a0186-6ec0-1e53-4ee2-cbf204109b91

After that the existing volumes should be listed in XenCenter. You will
need to attach them to the relevant VM in the correct order, etc.

Source:
http://support.citrix.com/article/CTX120962

Monday, 14 May 2012

USB Autoplay in Windows

If this feature is not working - add/modify the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer
"NoDriveTypeAutoRun"=dword:00000095 (change/set data to 91, 95 is XP
default)

Source:
http://forums.whirlpool.net.au/archive/1127219
http://technet.microsoft.com/library/Cc959381

Additional Source for Win7/Vista:
http://www.mydigitallife.info/fix-windows-7-autoplay-dialog-box-missing-or-not-appear-display-and-pop-up/

Monday, 19 March 2012

Monitor Intel RAID under Linux(Incl. XenServer)

To monitor Intel RAID devices running under Linux(XenServer)

Download the Intel Linux RAID Tool - CMDTool2
http://downloadcenter.intel.com/Detail_Desc.aspx?lang=eng&DownloadType=undefined&OSFullname=%0A&DwnldID=18444

Unzip and run the following to install
rpm -ivh Lib_Utils-1.00-01.noarch.rpm
rpm -ivh CmdTool2-5.00.14-1.i386.rpm

Run the following to test installation
/opt/MegaRAID/CmdTool2/CmdTool2 -v

Get number of controllers
/opt/MegaRAID/CmdTool2/CmdTool2 -adpCount

Get adapter information
/opt/MegaRAID/CmdTool2/CmdTool2 -AdpAllInfo -a0

Get Events
/opt/MegaRAID/CmdTool2/CmdTool2 -AdpEventLog -GetEvents -a0

Get Array configuration and status
/opt/MegaRAID/CmdTool2/CmdTool2 -CfgDsply -a0

Get BBU status
/opt/MegaRAID/CmdTool2/CmdTool2 -AdpBbuCmd -GetBbuStatus -a0

Monday, 12 March 2012

Windows 7 - SRV 2017 Event Logs

Apparently you need to tell Windows that you want to use the machine as a
file server and that it should allocate resources accordingly. Set the
following registry key to '1?:

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory
Management\LargeSystemCache

and set the following registry key to '3?:

HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size

After making these changes and restarting, I haven't seen this issue arise
again. Fixed!

Source:
http://alan.lamielle.net/2009/09/03/windows-7-nonpaged-pool-srv-error-2017

Friday, 9 March 2012

Blackberry Enterprise Server Express installation

The way this system works is the BB device connects via 3G to the providers
BIS system which in turn hooks into the main BB core (SRP) system. The
default configuration in most cases is to configure email settings on the
main BB system to collect emails from the users existing email account.
(i.e. http://providername.blackberry.com)

This has its limitations regarding synchronising with enterprise features -
e.g. Calendars, Contacts, Mailbox, etc. This can be done manually by
interfacing directly with Outlook using the BB Desktop software.

The alternative is to install a BB Enterprise Server Express (BES) that
links directly with the local Exchange server and commnicated directly
with the main BB core and in turn with the BB device itself. This provides
full synchronisation facilities OTA.

The installation needs to be done carefully to avoid weird problems.

1. The BESAdmin user account need to be configured properly with the
correct Exchange permissions, etc.
2. This account must not be hidden from the GAL.
3. I have found it easier if the account is temporarily added to the Domain
Admin group for the installation.
4. You must install the BES while logged in as BESAdmin.

If after installation you find the Admin website is not running it could be
a problem with the web keystore. Look for "Keystore was tampered with, or
password was incorrect" in the BAS-AS logs.

The trick is to manually rebuild the key store as follows:
-----------
As I alluded to in the edit of my previous post this was not a problem with
the password and logging in to BAS itself but rather an inconsistency with
the web.keystore file and the registry, apparently it's a known problem
with corruption that can occur during upgrade/installation.

The following steps are butchered from a document on btsc that details a
similar problem with BlackBerry Monitoring Service;

* Stop the BlackBerry Administration Service - Application Server and
BlackBerry Administration Service - Native Node Container

* Rename the web.keystore file to web.keystore.OLD under C:\Program
Files\Research In Motion\BlackBerry Enterprise Server\BAS\bin.

* Open a command prompt and navigate to C:\Program Files\Research In
Motion\BlackBerry Enterprise Server\BAS\bin.
Type the following command
webGenKey.bat "C:\Program Files (x86)\Java\latest java release directory\"
"C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise
Server\BAS" mypassw0rd mybes.mydomain.com

Confirm a new web.keystore file now exists in the following path:
C:\Program Files\Research In Motion\BlackBerry Enterprise Server\BAS\bin.

* Open BlackBerry Server Configuration
Go to tab Administration Service - Web keystore
Change your password from (e.g.) mypassw0rd to something else (you're
limited to a particular list of special characters here so be aware) and OK

*Start the BlackBerry Administration Service - Application Server
(BlackBerry Administration Service - Native Node Container will start
automatically)

* Wait for the BAS-AS process to stabilise at around 630,00 - 650,00 K via
Task Manager

* Load your BAS page
Ta daaa

Thanks to all who took the time to reply, hopefully this will help someone
who finds themself in a similar situation.

------------
Source:
http://supportforums.blackberry.com/t5/BlackBerry-Enterprise-Solution/Cannot-connect-to-BAS-after-upgrade-to-5-0-3/td-p/1206507

Outlook not opening hyperlinks

If you want do the manual steps to fix this problem, just run the following
commands (Open Commando prompt as administrador on Windows Vista or
Windows 7)

REG ADD HKEY_CURRENT_USER\Software\Classes\.htm /ve /d htmlfile /f
REG ADD HKEY_CURRENT_USER\Software\Classes\.html /ve /d htmlfile /f
REG ADD HKEY_CURRENT_USER\Software\Classes\.shtml /ve /d htmlfile /f
REG ADD HKEY_CURRENT_USER\Software\Classes\.xht /ve /d htmlfile /f
REG ADD HKEY_CURRENT_USER\Software\Classes\.xhtml /ve /d htmlfile /f

After this just make your Internet Explorer the Default browser.

Source:
http://answers.microsoft.com/en-us/office/forum/office_2007-outlook/cant-open-any-hyperlinks-this-operation-has-been/8815ad6c-0f44-477a-9ffa-beb98109b5a6

Wednesday, 18 January 2012

Outlook 2003 - "Exchange in Recovery Mode" is displayed on startup

The OST file needs to be reset:

http://technet.microsoft.com/en-us/library/aa997781%28EXCHG.65%29.aspx

Sharepoint Repair on SBS 2008

After applying a few innocuous updates Sharepoint blows up.

The first option is to run
C:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\12\BIN\psconfigui.exe

That should fix it - if not you may need to be a bit more forceful.
Run Admin CMD session and CD into this directory:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN\

and run the follwing:

psconfig.exe –cmd upgrade -wait –force

Ref:
http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/a2e05eb5-31fc-41ec-8970-673e089e13c2/