Page File Location when System drive is Mirrored

I have been working on a server today which has 2 HDD, mirrored for redundancy. It is a software based mirror provided by Windows Server 2003. The server had been having a couple of performance issues, and whenlooking at the performance monitor, they tended to be caused by long write times to the Page File.

The page file was still in it’s default location on the C: drive – as this is SBS 2003 it had never been looked at. This meant that all page file write operations were being written to two HDD every time.

This is not neccessary. The solution that we have come up with to ealleviate this ‘dual-writing’ is to shrink the data partition (also mirrored) on the disk to give us back some unallocated space. I then created a simple volume on the first disk which could be used to host the page file. Assigned the next available drive letter and changed the page file drive assignments in the System Properties.

After a reboot and a couple of hours with loggin turned on I went back and found that the page file write time is significantly decreased.

This just goes to show how important it is to look where data is actually being stored on a system to make sure that you are getting the most from the hardware that you have.

Be the first to like.
Posted in Server 2003 | Tagged , | 1 Comment

Redirected My Documents folders showing as ‘Documents’ rather than the users name

Had a complaint from a member of staff recently that all students work folders showed up as My Documents when he was browsing through their work.

Many of you may have been directed to this Microsoft KB as a ‘solution’. http://support.microsoft.com/kb/947222

Not much of a solution if you ask me. Redirection to a subfolder would work, but do you really want to change something that significant on your network? Enable exclusive access would be fine if you didn’t need to give other people access to the documents folder. In a student-teacher situation, teachers need to be able to see the students work, so this doesn’t work for us. Option 3 – deny permission to the desktop.ini. We have 1400 students. That’s a lot of changes – yes I could use xcacls or subinacl to automate it, but what a headache.

The best ‘solution’ that we have come up with, is to simply delete the desktop.ini file at logoff. We created a VB Script, which looks for a desktop.ini file in the user’s My Documents folder, and if it exists then delete it. Attach this into a GPO that affects the user as a logoff script.

The code we used is:

On Error Resume Next
Set WSHShell = WScript.CreateObject("WScript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")
DocsPath = WSHShell.SpecialFolders("MyDocuments")
If FSO.FileExists (DocsPath & "\desktop.ini") Then
  FSO.DeleteFile (DocsPath & "\desktop.ini")
End If

Next time the user logs on and then off again, the desktop.ini file will be deleted, and the folder will show as the username of the user.

Shame there isn’t a GPO option which allows you to turn off this feature. On a home machine it is great, but in a corporate environment you need to be able to turn off the fancy features and see exactly what you have got.

2 people found this post useful.
Posted in Server 2008, VBScript, Vista | Tagged , , , | 4 Comments

Active Directory Topology Diagrammer

Used this tool a couple of times – and it saves so much time when you need or want to draw out your AD structure.

This free download from Microsoft queries your AD for the domains, sites, OU’s, and Exchange structure, and draws it out with connectors and information in Visio. I’m using it with Visio 2010 and it works great. Just saved 2 hours of drawing out every OU and GPO assignment.

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=cb42fc06-50c7-47ed-a65c-862661742764&displaylang=en#Overview

Be the first to like.
Posted in General Stuff | Leave a comment

Facilities Manager Software

After failing to find a piece of software that met all of our needs, I decided to write a program for managing bookings for the facilities at the college. It is very nearly complete, and offers nearly all the functionality that we were looking for.

If you have a venue where you are looking to book out rooms, and are looking for new, flexible software with which to do it, let me know. I would love people to test my software for me.

Am thinking about going comercial too – so testers may get significant discounts!!

Use the contact me forms to get in touch and register your interest.

Be the first to like.
Posted in General Stuff | Leave a comment

Installing Quicktime Silently

Been having a bit of trouble installing QuickTime silently – kept getting errors on the lines of ‘A Newer Version of QuickTime already exists’, even though the previous version was 6.something. We were trying to install 7.6.8.

It seems like the installer looks in a number of places for this information. We did manage to get the install to work though, using the following script. Hope this will help someone else.

On Error Resume Next
Set obj_shell = CreateObject("WScript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")
Const HKEY_CLASSES_ROOT = &H80000000
Const HKEY_LOCAL_MACHINE = &H80000002

strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")

DeleteSubkeys HKEY_LOCAL_MACHINE, "Software\Apple Computer, Inc.\QuickTime"
DeleteSubKeys HKEY_CLASSES_ROOT, "Installer\Products\7414007EACC2C134AA50A21B669B87D5"
DeleteFolder ("C:\Program Files\QuickTime")
DeleteFile("C:\Windows\System32\QuickTime.qts")
DeleteFile("C:\Windows\System32\QuickTimeVR.qtx")
WScript.Sleep 60000

path = WScript.ScriptFullName  ' script file name
ScriptPath = Left(path, InstrRev(path, "\"))
instruction = "msiexec /i " & ScriptPath & "QuickTime.msi /qn"
obj_shell.Exec(instruction)
Wscript.Sleep 60000

Sub DeleteSubkeys(HKEY_LOCAL_MACHINE, strKeyPath)
    objRegistry.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubkeys

    If IsArray(arrSubkeys) Then
        For Each strSubkey In arrSubkeys
            DeleteSubkeys HKEY_LOCAL_MACHINE, strKeyPath & "\" & strSubkey
        Next
    End If

    objRegistry.DeleteKey HKEY_LOCAL_MACHINE, strKeyPath
End Sub

Sub DeleteFolder (Path)
 If FSO.FolderExists(Path) = True Then
  FSO.DeleteFolder Path
 End If
End Sub

Sub DeleteFile(Path)
 If FSO.FileExists(Path)= True Then
  FSO.DeleteFile Path
 End If
End Sub

 

To use:

  1. Extract the QuickTime MSI files from the setup package.
  2. Save the above script as a VBS file and place in the same folder as the MSI file.
  3. Install the AppleApplicationSupport.msi file silently. (msiexec /i AppleApplicationSupport.msi /qn)
  4. Run the script.

After 2-3 minutes the latest version of QuickTime should then be installed.

Hope this helps save someone else the frustration.

Maybe in the future Apple will write some better MSI’s. I suppose atleast we should be grateful that they are now MSI!

Be the first to like.
Posted in SCCM | Tagged | Leave a comment

XSL:Sort by Date Time

If you are stuck trying to sort XML date by date/time then this snippet of code may help you. Been stuck in head first into some XSL scripting, so learning at quite a rate.

<xsl:sort select=”ddwrt:FormatDateTime(@DateTimeField, number($lcid), ‘yyyyMMddHHmm’)” />

In the above line, @DateTimeField is the name of the field to sort, $lcid is your locale number.

By doing this, the data is then sorted as a number, in ascending date order, without having to change the underlying date. By changing the format at the end you could also quickly sort just by time or date, depending on the format of the source data.

Happy sorting!

1 person found this post useful.
Posted in Programming, SharePoint | Tagged | Leave a comment

Room and Equipment Reservations

Right, after an extremely frustrating day trying to get my head around XSL – something I never want to repeat again – I am near to having completing a re-hashed template of the Room and Equipment Reservations template originally provided by Microsoft for SharePoint 2007.

Following the post by Samantha – http://blogs.technet.com/b/tothesharepoint/archive/2010/08/18/sharepoint-2010-products-upgrade-and-the-fabulous-40-application-templates.aspx - which explains that the Fab 40 are not to be recreated, and although Khalil is working hard to recreate them on his site http://techsolutions.net/Blog/tabid/65/EntryId/17/Fab-40-Templates-for-MOSS-2010.aspx), I am just impatiant really!

So, for out recently upgraded SharePoint 2010 deployment we will shortly have a working Room Bookings system again.

One of the key changes in my rewrite of the template, is the removal of the need for the list to have to include details of all the time in a day – both available and booked. One of the things that really frustrated me in SharePoint 2007 was the need to make sure when you deleted a booking that the free time was re-calculated – which depending on the view that you were in (we frequently did bulk updates through the datasheet view) didn’t update the list correctly. Bit of a headache to implement in XSL - but nearly there. Also I have managed to break down all of the ‘Free’ time into 30 minute blocks. One of the frequent problems at work was people clicking a section and forgetting to check both the start and the end times – resulting in wasted resources.

I am hoping that I will be able to finish tweaking the template tomorrow. Providing I can sort out restrictions on double booking a resource, I will be able to post the template on this site for others to download. Not saying that it is going to be perfect (still spending a lot of time working on SharePoint and developing my skills) but hopeflly it will help someone else out.

1 person found this post useful.
Posted in SharePoint | Tagged , | 13 Comments

SharePoint Search – Access Denied

Having a bit of a SharePoint day. Had recently noticed that no People were being returned in search results, even if you type in their name exactly.

Went through the check list of possible causes:

  • Default Content Access account permissions to the User Profile Service (Read Profiles for Search Crawler)
  • Full Read permissions on the My Site Web Application
  • Crawl Rule set up for the My Site Web Application
  • Location included in the Content Source

We were still getting Access Denied errors.

Suddenly remembered this little MS article about accessing FQDN’s from the local machine. Turns out it is still relevant in SharePoint 2010.

http://support.microsoft.com/kb/896861

Hope this helps someone else out there with the mysterious Access Denied when crawling Profiles.

1 person found this post useful.
Posted in SharePoint | Tagged , | Leave a comment

Exchange 2007 SP3: Exchange Server Setup encountered and Error.

Not the most useful error message that you will ever see. Combine this with a lack of information in the Exchange Setup Log and in the Event Viewer you have a small mystery.

However, the answer is probably really simple: Check you have met the pre-requisites for the setup to run.

  • Member of Enterprise Administrators
  • Member of Schema Admins
  • Member of Exchange Organisation Administrators

And the final check, which allowed setup to run for me. If you have UAC enabled on your server, then right click the setup application, and select Run As Administrator.

Feeling a bit stupid for forgettting about this feature. 2 weeks working on Windows Server 2003 makes you forget that these new-fangled security features exist!

4 people found this post useful.
Posted in Exchange | Tagged | 3 Comments
  • Tags

  • Categories

  •  

    May 2012
    M T W T F S S
    « Apr    
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • Meta

  • Top Liked Posts

    Powered by WP Likes

Swedish Greys - a WordPress theme from Nordic Themepark.