Google Ads

WSUS 3.0 Fails with error regarding performance counters

I came across an error today when trieing to install WSUS 3 on one of our servers, it appeared to get to the end of the installation process and then failed with the error.

‘Windows Server Update Services 3.0 SP2 could not install WSUSService and the performance counters. For more information, see the Setup logs’

To rebuild the performance counters goto a command prompt and run

C:\windows\system32> lodctr /R

Opening Office 2007 documents from the Companyweb in SBS2003

I recently encountered a problem where we couldn’t open documents using the new office file format when opening them from the Companyweb on SBS2003, and if I tried to save them it saved them as a zip file.

After a bit of research I narrowed it down to being mime entries being missing from iis manager, I assumed this is because we are running Sharepoint Services v2 which was part of the sbs install and you can’t upgrade to WSS3 from 2 but thats a different topic.

Anyway I managed to fix this by running this script on the server, paste this into notepad and save as 2007.vbs if you run this multiple times you will end up with multiple entries in your mime types.

‘This script adds the necessary Office 2007 MIME types to an IIS Server.
‘To use this script, just double-click or execute it from a command line.
‘Running this script multiple times results in multiple entries in the IIS MimeMap.

Dim MimeMapObj, MimeMapArray, MimeTypesToAddArray, WshShell, oExec
Const ADS_PROPERTY_UPDATE = 2

‘Set the MIME types to be added
‘ MimeTypesToAddArray = Array(“.manifest”, “application/manifest”, _
‘ “.xaml”, “application/xaml+xml”, “.application”, “application/x-ms-application”, “.deploy”, “application/octet-stream”, _
‘ “.xbap”, “application/x-ms-xbap”)
MimeTypesToAddArray = Array( _
“.docm”,”application/vnd.ms-word.document.macroEnabled.12″ , _
“.docx”,”application/vnd.openxmlformats-officedocument.wordprocessingml.document” , _
“.dotm”,”application/vnd.ms-word.template.macroEnabled.12″ , _
“.dotx”,”application/vnd.openxmlformats-officedocument.wordprocessingml.template” , _
“.potm”,”application/vnd.ms-powerpoint.template.macroEnabled.12″ , _
“.potx”,”application/vnd.openxmlformats-officedocument.presentationml.template” , _
“.ppam”,”application/vnd.ms-powerpoint.addin.macroEnabled.12″ , _
“.ppsm”,”application/vnd.ms-powerpoint.slideshow.macroEnabled.12″ , _
“.ppsx”,”application/vnd.openxmlformats-officedocument.presentationml.slideshow” , _
“.pptm”,”application/vnd.ms-powerpoint.presentation.macroEnabled.12″ , _
“.pptx”,”application/vnd.openxmlformats-officedocument.presentationml.presentation” , _
“.xlam”,”application/vnd.ms-excel.addin.macroEnabled.12″ , _
“.xlsb”,”application/vnd.ms-excel.sheet.binary.macroEnabled.12″ , _
“.xlsm”,”application/vnd.ms-excel.sheet.macroEnabled.12″ , _
“.xlsx”,”application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” , _
“.xltm”,”application/vnd.ms-excel.template.macroEnabled.12″ , _
“.xltx”,”application/vnd.openxmlformats-officedocument.spreadsheetml.template” _
)

‘Get the mimemap object
Set MimeMapObj = GetObject(“IIS://LocalHost/MimeMap”)

‘Call AddMimeType for every pair of extension/MIME type
For counter = 0 to UBound(MimeTypesToAddArray) Step 2
AddMimeType MimeTypesToAddArray(counter), MimeTypesToAddArray(counter+1)
Next

‘Create a Shell object
Set WshShell = CreateObject(“WScript.Shell”)

‘Stop and Start the IIS Service
Set oExec = WshShell.Exec(“net stop w3svc”)
Do While oExec.Status = 0
WScript.Sleep 100
Loop

Set oExec = WshShell.Exec(“net start w3svc”)
Do While oExec.Status = 0
WScript.Sleep 100
Loop

Set oExec = Nothing

‘Report status to user
WScript.Echo “Mime Types have been added.”

‘AddMimeType Sub
Sub AddMimeType (Ext, MType)

‘Get the mappings from the MimeMap property.
MimeMapArray = MimeMapObj.GetEx(“MimeMap”)

‘ Add a new mapping.
i = UBound(MimeMapArray) + 1
Redim Preserve MimeMapArray(i)
Set MimeMapArray(i) = CreateObject(“MimeMap”)
MimeMapArray(i).Extension = Ext
MimeMapArray(i).MimeType = MType
MimeMapObj.PutEx ADS_PROPERTY_UPDATE, “MimeMap”, MimeMapArray
MimeMapObj.SetInfo
End Sub

I found this on Microsoft Answers Credit for this must goto Brad_Saide

Move Sage Payroll Data

To relocate your data to another location, open Payroll open the File menu and choose Relocate Data. This allows you to browse to the required location. Once complete, your Payroll data will be located and accessed from its new location.

To ensure other PCs on your network are connected to the same data, copy the files payroll.usr and pay.usr (pay12.usr for users on Sage 50 Payroll v12 and 2007 v13) from the program folder on the PC pointing to the correct location, to the Sage 50 Payroll program folder on the other PCs. The default location is C:\Program Files\Sage Payroll. All PCs using Sage 50 Payroll on the network will then point to the same data providing they all have access to the same network drive.

(Edited 02/02/14)An easier way to point payroll to a different location is to rename the pay.usr and payroll.usr files located in the programdata/sage/payroll folder and just open payroll again, it will ask for your serial number and activation key again and then ask you to browse to an existing set of data or create a new company so make sure you get your serial no. and activation key from help and about before hand.

To point a new installation of payroll to existing data on the network if you don’t have access to the above files e.g. if it is a single pc that runs payroll i found the easiest way to point it to existing data is as follows.
1. First take a backup of the existing data (very important as thing involves overwriting files).
2. Install the program and get it working on a blank database.
3. Locate the files on your network e.g. s:\sage data\payroll – move the existing files into a sub directory e.g. s:\sage data\payroll\temp.
4. Log in to payroll with the blank database go to File, Relocate Data browse to you network location e.g. s:\sage data\payroll and click ok this will move the blank data to the network location, quit Payroll.
5. Copy all files and folders from your temp folder e.g. s:\sage data\payroll\temp and over write the blank data files in s:\sage data\payroll.
6. Log into Payroll and it should take you back into your existing data.

A long winded way of doing things but as you are probably aware there is no company file to alter like there is in Accounts

Outlook continually asking for authentication on sbs2008 netwok

I recently had an issue where outlook in our case 2007 was continually popping up the the password prompt but wouldn’t accept the password, but emails where still coming through.
After much head scratching checking dns records and authentication settings I installed the sbs 2008 update rollup 4 and after the server rebooted the problem was solved.

Office 2007 The windows installer service cannot update one or more protected windows files.

This error is due to the office installer not seeing files in the c:\program files\common files\microsoft shared\web server extensions\40\bin.
I’m not sure why they weren’t their as it was a fresh install of xp pro sp3 off the dell cd, but the solution to this error is to install the Frontpage 2000 server extensions.

Go to control panel – add/remove programs – add/remove windows components highlight iis and click details, tick the Frontpage 2000 server extensions box, it also ticked a couple more boxes on my install, I suppose it depends what you are missing, and click ok.

It may need the disk so have that handy if you haven’t got the i386 folder on your hard drive.

Then try reinstalling office 2007.

CA eTrust ITM Firewall exclusions

Three firewall exclusions are needed for the ITM client to work properly for the phone home, av updates, and policy distribution etc, they need to be added to the windows firewall.

eTrust ITM – Realtime monitor — c:\program files\ca\etrustitm\realmon.exe

eTrust ITM – RPC Service — c:\program files\ca\etrustitm\inorpc.exe

eTrust ITM – Shell Scanner — c:\program files\ca\etrustitm\shellscn.exe

How to allow users to download exe-files from an iis 6 server

By default, IIS 6.0 will not serve unknown extensions and this includes exe and dmg files. When a user requests such file, IIS will reply back with a 404 status code.

The solution to this problem is to allow the exe extension.

To allow exe files to be downloaded to the client, follow these steps:

  • Open IIS Manager
  • Right click the folder where the exe-files are located and click Properties.
  • Click the “HTTP Headers” tab
  • Click on the “MIME Types” button
  • Click New
  • In the extension box, type .exe .dmg
  • In the MIME Type box, type application/octet-stream
  • Apply the new settings

No DNS Records for Domain Aliases in Plesk

ISSUE:
When adding a Domain Alias in Plesk, there are no DNS records.

CAUSE:
In Plesk 8.3, there is a bug that occurs when adding a Domain Alias through the plesk control panel.

RESOLUTION
In Plesk under “Domain Aliases”.

1. Delete old Domain Alias record if it exists.
2. Click “Add New Domain Alias”
3. Input the Domain
4. Check Mail and Web only
5. Click ‘OK’
6. For “Synchronize DNS zone with the primary domain” click the red box with the white ‘X’ to make it green
7. This will take up to 2 hours to sync through.

Default WSUS 3 groups for SBS 2003

I noticed after the WSUS server was upgraded on some of our servers the default groups seem to have disappeared here is a list of the default ones.

Unassigned Computers

Update Services Client Computers

Update Services Excluded Computers

Update Services Server Computers

SBS 2003 Console does not manage update after installing WSUS 3 SP1

If you make a change to WSUS administration console or update the software to WSUS 3 it will stop the SBS console reporting the status of updates on your network.

The following things can disable updates on the console

Under Automatic Approvals, the Default Automatic Approval Rule is enabled in Options.
Under Products and Classifications, All Microsoft Products is not selected in Options.
Under Synchronization Schedule, the Synchronize manually option is selected in Options.
Under Computers, the Use Group Policy or Registry settings on computers option is enabled in Options.
The Update Services service is stopped.

If these conditions do not apply, the Approve for Detection setting may have been disabled when you upgraded to WSUS 3.0 SP1. However, the option to change this is not available after you upgrade to WSUS 3.0 SP1. In this case, you must use a script to change the Approve for Detection setting.

Download the following file or copy and paste it into notepad and rename it to fixr2.sql Click here for fixr2 and copy to local c: then

Open a command prompt

Navigate to %programfiles% \Update Services\Setup

At the command prompt, type the following command, and then press ENTER:

executesql.exe -S MICROSOFT##SSEE -i C:\FixR2.SQL -l C:\Output.log
This was taken from Microsoft KB945985