Hi,

I am using Desktop Authority to create a post-engine script that will make some registry changes to MS Office so that the correct username and initials are present within the personalised settings in Word, Excel etc. I have tested this as a .vbs script and it works perfectly. However once this script is used with Desktop Authority, and hence it is converted to a .kix file then I get the follwoing error message:

Error: IDispatch pointers not allowed in expressions!
Script: \\domaincontroller\netlogon\officeresetid.kix
Line: 9

The contents of the .kix file is below:

; ScriptLogic Custom Script File
; File Name: officeidreset.kix
; Description: officeidreset.kix
;
;----------------------------------------------------------

Set objSysInfo = CreateObject("ADSystemInfo")

strUser = objSysInfo.UserName
Set objUser = GetObject("LDAP://" & strUser)

Set objWord = CreateObject("Word.Application")
objWord.UserName = objUser.givenName & " " & objUser.SN
objWord.UserInitials = Left(objUser.givenName, 1) & Left(objUser.SN, 1)
objWord.quit
;----------------------------------------------------------
RETURN ; Must be last line of file. Do not remove this line

Any ideas how I can get this to work?

Cheers

Steven