Wednesday, 14 December 2011

Configure secondary DNS server in a Server2003 environment

Found this handy write-up on Microsoft's support pages detailing exactly the steps required to add a backup DNS server to Windows Server 2003
http://support.microsoft.com/kb/816518

Tuesday, 13 December 2011

Removing a failed DC manually from server 2003 domain

Found an awesome article with nice step-by-step on the process to manually remove a bad AD Domain Controller from the network if dcpromo fails
http://www.petri.co.il/delete_failed_dcs_from_ad.htm

Tuesday, 8 November 2011

iTunes 10.5 Error during install

What to do when you receive the following error message
"There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor."

Seems one of the iTunes components already installed is damaged. A quick remedy to this is to go to the Control Panel and Uninstall any Apple software - if you get any errors regarding a damaged or missing installer right click the item in the list and say repair. Once completed you should be able to remove it and install iTunes 10.5

Happy hunting

Tuesday, 27 September 2011

Windows 7 - Temporary Profile issue

After being met with the lovely "Logged in with a Temporary Profile" warning on my Win7 VM I lost my temper slightly,then googled a lovely solution writeup which can be found here

If for some reason this blogpost goes down i've made a copy

Fix Temporary Profile in Windows 7 Issue

1)      Log in with temp profile.
2)      Start registry editor by typing regedit in find box in Windows 7.
3)      Navigate the following location in Windows 7.
Fix Temporary Profile in Windows 7
4)      You can see similar keys under profile list with .bak difference, as shown below.
Fix Temporary Profile in Windows 7
5)      You correct profile key is marked as bak. Currently your Windows 7 computer logged in with fresh profile with same key. So, rename the new profile key ( which is not having.bak) and remove .bak from correct profile key. See below.
Fix Temporary Profile in Windows 7
6)      That’s it. Log off and log in with your user name and password. You must get your icons and profile settings back in Windows 7. This is very simple and easy method to fix temp profile in Windows 7  issue.

Friday, 12 August 2011

Exchange 2003 SP2 - Re-mount oversized dismounted store automatically

For those of you unfortunate enough to still be stuck with Exchange 2003 SP2 and it's 75Gig store limit,if you cannot apply best practices to lower mailbox sizes you may want to consider trying the following scriptlet i've customized.

'**********************************************************************
' Name: Store.VBS
' Purpose: To Mount, Dismount, or Delete a Mailbox Store (MDB) on Exchange Server
'
'Written by Leon Funnell
'email me at leon_funnell(At)hotmail(d0t)com
'17/02/2005
'modified by LDean -- ldean[at]quikteks[dot]com
'11/10/2008
'modified by PsyWulf
'07/08/2010

quot = chr(34)

Set iServer = CreateObject ("CDOEXM.ExchangeServer")
Set iMDB = CreateObject ("CDOEXM.MailboxStoreDB")

' check command line
GetArgs strMode,strComputerName,strSGName,strMDBName,CorrectSyntax
If CorrectSyntax Then
BindMailboxStore strComputerName,strSGName,strMDBName
Select Case strMode
Case "mount"
wscript.echo "Mounting Database " & strMDBName & " in Storage Group " & strSGName & " on " & strComputerName
iMDB.mount
Case "dismount"
wscript.echo "Dismounting Database " & strMDBName & " in Storage Group " & strSGName & " on " & strComputerName
iMDB.dismount
Case "delete"
wscript.echo "Deleting Database " & strMDBName & " in Storage Group " & strSGName & " on " & strComputerName
iMDB.DataSource.delete
Case "status"
dim sStoreStatus
If iMDB.Status = 0 Then
  wscript.echo "Status 0 - Mounted"
  wscript.quit(0)
 ElseIf iMDB.Status = 1 Then
  wscript.echo "Status 1 - Dismounted"
  wscript.echo "Attempting to mount"
  iMDB.mount

  wscript.quit(1)
 ElseIf iMDB.Status = 2 Then
  wscript.quit(2)
 ElseIf iMDB.Status = 3 Then
  wscript.quit(3)
 Else
  wscript.quit(4)
 End If
End Select

' Cleanup
Set iServer = Nothing
Set iMDB = Nothing
Else
DisplayHelp
wscript.quit
End If

Sub BindMailboxStore (strComputerName,strSGName,strMDBName)
' Bind to the Exchange Server
iServer.DataSource.Open strComputerName

' Build the first part of the URL to the MailboxStoreDB
strTemp = "LDAP://" & iServer.DirectoryServer & "/" & "cn=" & strMDBName & ","

' Set variant array to the ExchangeServer.StorageGroups
arrStGroup = iServer.StorageGroups

' Look in the StorageGroups array if the StorageGroup with strSGName exists
If strSGName = "" Then
' Add last part to the URL to the MailboxStoreDB
strMDBUrl = strTemp & iServer.StorageGroups(0)
Else
For i = 0 To UBound(arrStGroup)
If InStr(1, UCase(arrStGroup(i)), UCase(strSGName)) <> 0 Then
strMDBUrl = arrStGroup(i)
End If
Next
If strMDBUrl <> "" Then
' Add last part to the URL to the MailboxStoreDB
strMDBUrl = strTemp & strMDBUrl
End If
End If
' Bind to the MailboxStoreDB
iMDB.DataSource.Open strMDBUrl ', , , adCreateOverwrite
End Sub


Sub GetArgs(strMode,strComputerName,strSGName,strMDBName,CorrectSyntax)
Set Args = WScript.Arguments
If args.count = 4 Then
CorrectSyntax = True
strMode = args(0)
strComputerName = args(1)
strSGName = args(2)
strMDBName = args(3)
Else
CorrectSyntax = False
End If
Select Case lcase(strMode)
Case "mount","dismount","delete"
CorrectSyntax = True
Case "/?","/help","?","help"
CorrectSyntax = False
End Select
End Sub


Sub DisplayHelp
wscript.echo "Mounts, Dismounts, or Deletes a Mailbox Store on an Exchange 2000/2003 server"
wscript.echo ""
wscript.echo "cscript Store.vbs /? or /Help ----------------------------------- Displays this help screen"
wscript.echo "cscript Store.vbs Mount Servername StorageGroupName MDBName ----- Mounts Database"
wscript.echo "cscript Store.vbs Dismount Servername StorageGroupName MDBName -- Dismounts Database"
wscript.echo "cscript Store.vbs Delete Servername StorageGroupName MDBName ---- Deletes Database"
wscript.echo "cscript store.vbs status Servername StorageGroupName MDBName ---- Checks status of database"
wscript.echo ""
wscript.echo ""
wscript.echo "Example:"
wscript.echo ""
wscript.echo "cscript Store.vbs Mount SERVER1 "&quot&"First Storage Group"&quot&" "&quot&"Mailbox Store (SERVER1)"&quot
wscript.echo ""
End Sub
'**********************************************************************

Copy this into a file called store.vbs and save it to the Server. Then create a batch file with the following in

cscript c:\store.vbs status servername "storage group name"  "Mailbox Store name"
 Set it to run daily or hourly even. What the script does is check the Exchange store status,if dismounted it attempts to re-mount the store

Hope this helps

Thursday, 28 July 2011

Adding PDF Files to the Sharepoint Foundation 2010 Search

There's quite a bit of misleading info on the web regarding this so I'm putting this here to try clear it up a bit
From this and this


1. Install PDF iFilter 9.0 (64 bit) from http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025

2. Download PDF icon picture from Adobe web site and copy to [i]C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\[/i]

3. Add the following entry in docIcon.xml file under File types, which can be found at: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML

<Mapping Key="pdf" Value="pdf16.gif" />

4. Copy the below content to a VBS file and save it (I.E save file name as AddExtension.vbs) in the C:\ drive of the server
----------------------------------------------------------------------------------------------
Sub Usage

    WScript.Echo "Usage:    AddExtension.vbs extension"
    WScript.Echo

end Sub


Sub Main


    if WScript.Arguments.Count < 1 then
                Usage
                wscript.Quit(1)
   end if

    dim extension
    extension = wscript.arguments(0)

    Set gadmin = WScript.CreateObject("SPSearch4.GatherMgr.1", "")

    For Each application in gadmin.GatherApplications
        For Each project in application.GatherProjects
                    project.Gather.Extensions.Add(extension)
                Next
    Next

End Sub


call Main 
-------------------------------------------------------

5. Now run the following from Command Prompt:

WScript AddExtension.vbs pdf 

6. Register PDF ifilter as below:

   Find regkey "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\Search\Setup\ContentIndexCommon\Filters\Extension\"
   Right-Click – [New]-[Key]. Then specify key name ".pdf"
    Right-Click (Default) of above ".pdf" key then click "Modify"
    Specify value "{E8978DA6-047F-4E3D-9C78-CDBE46041603}"
    Restart SPSearch4

7. stsadm.exe -o spsearch action startfullcrawl

If step 7 fails due to a crawl being in progress:
stsadm.exe -o spsearch action stopfullcrawl

Your Sharepoint Foundation server will now start indexing the content of Text-PDFs

Monday, 27 June 2011

Skydrive updated interface

Been a while since I had anything worth posting. Just had to pop in and say the new Skydrive interface is 100x better than before

Better browsing and exploring interface,reminiscent of  other online File services like Dropbox

One thing I would like to see is multiple-file-selection,I had to delete 30 files by clicking to select and then clicking delete,effectively making 60 clicks for 30files :(

Thursday, 12 May 2011

Googleapps for domains not allowing Imap/Pop access to accounts

Weird bug,found a fix though

Log into https://www.google.com/a/YourDOMAIN.com/UnlockCaptcha with the affected account after confirming you enabled Imap and pop3 access from the webmail interface

Presto fixo!

Tuesday, 3 May 2011

Sharepoint 2010 Issue - PDF files only offering Save/Cancel option when opening

Seems Sharepoint 2010 and Foundation have a heightened security setting disabling our old trusty viewing PDFs in the web browser

To re-enable this functionality:
Go to CRM site administration
Application Management
Manage Web Applications

Click on the Sharepoint site in Question,then
in the Ribbon at the top General Settings and set

Browser File Handling

to "Permissive". Save and IISReset

Presto!

Wednesday, 13 April 2011

Trialing Googleapps Migration and Postini service note1

While attempting to migrate my mail to my newly provisioned Googleapps account I received the following puzzling error when trying to migrate the messages:

"please make sure emapi is enabled and terms of service is accepted"

Turns out,by default the ability to migrate your mail to Googleapps is turned off for users

Log into the Googleapps Administration panel,under Advanced Tools near the bottom is a Tickbox to enable users to migrate mail using the Message Migration API,mark it and your users can succesfully migrate their accounts individually

Monday, 11 April 2011

Free online storage and backup

After a family member's Notebook crashed leaving years of photos inaccesible i've been chasing down this topic as a method of protecting personal data or at least having a backup copy for posterity

2 Services have caught my eye for its quality and being free doesn't hurt at all!

Firstly on the list is Dropbox

2Gig free storage space
Online access to your files
Synchronize those files to PCs,Blackberries,Iphones etc
Easy to use web interface and synch clients
Now 2 gig is all fine and good for documents and other miscellaneous files,however a collection of photos of a few megapixels each may take a bit more space,so what do we do then?

Enter Skydrive from Microsoft

25Gig of online storage space and a 5gig Synchronized share similar to dropbox. All of this is linked to you Windows Live ID. Unfortunately they don't have a nice PC Client yet so you have to use a 3rd party tool to do things like map the storage to a network drive.

Here Gladinet saves the day,linked a tutorial from the Howtogeek to use Gladinet


I've uploaded all my important Word docs and Picture albums straight to Skydrive,and set sharing permissions to only allow my family members access. Now come any otherworldly event,my albums will be saved :)

Tuesday, 5 April 2011

Adsense...Whats the story?

Got a very generic email response from Google Adsense regarding my adsense account


- Page Type

---------------------

Further detail:

Page type: Your website is a type of website that we do not currently
accept into our programme. Such websites include, but are not limited
to, chat sites, sites that drive traffic through cybersquatting, and
sites that use excessive keywords in the content or code of their pages.



Not to be a pain but what the hell is wrong with the blog?



Monday, 28 March 2011

Scribe software

Tested a solution today to synchronize and trigger events from our one Fund administration platform to CRM. Can I say i'm impressed

Any changes to the Admin system instantly trigger the scheduled events without miss,not too resource intensive either

Friday, 25 March 2011

Grinds my gears

Not a technical post,just a little mini rant

Person at the ATM in front of me,I understand that you have never heard of cellphone or internet banking,but please,for the love of mike and all that is holy,DO NOT DO A MONTH's BUSINESS AT THE ATM DURING MY LUNCH HOUR

bloody cockbites,ATM = withdraw cash,anything else and you're just wasting my time

Tuesday, 22 March 2011

Dynamics CRM4 - Error Promoting this Item to Microsoft Dynamics CRM

After 2 weeks of struggling with Microsoft on the phone and remote assistance a solution seems to have been found.

Deleting the Exchange mailbox for the affected user,purging it and recreating it seems to fix the issue

Sunday, 6 March 2011

Coalesce and Xen Server 5.6

Made the mistake of Hard-restarting a Xenserver 5.6 host while attempting to Offline Coalesce a VM due to snapshots not being thoroughly cleared out once deleted - a bug with 5.6.

Storage Repository is completely fucked

Formatted and reloaded and attempting to restore a server backup. Praying this works

Update:
Success!  The restore server has been imported
Will test databases now

Friday, 4 March 2011

Windows 7 - Screen rotated

Pressing Ctrl+Alt+an arrow key will rotate the screen,Left Right Up and Down change direction of the rotation

Wednesday, 2 March 2011

Outlook 2010 - Object not found error when opening Rules

Imported profiles in Outlook seem to be the culprit.

Running outlook.exe /cleanrules seems te rebuild and fix that error

Post one...\o/

This blog was created just as an historical archive for any tricks I find in my daily workings so excuse me!

New Favourite toy found for mail recovery on exchange. Ontrack Powercontrols v6.0 . This app is pure boss. Importing my previous Exchange databases to the new one,duplicate detection,drag and drop. I am in love