I am running a NT 4 domain and a Windows 2000 domain. Both are fully trusted by each other. I have the following home page greeting however it works on the NT4 domain but not the 2k domain. Any ideas?
'Generic Web Part Function. REQUIRED.
Function GetContent(nod)
Dim strHTMLRet ' Output string
Dim UserNameRep
Dim FullName
Dim h
On Error Resume Next
'get username - note this bit of code required because if anonymous then blank string
UserName = request.servervariables("Logon_User"
if Len(UserName) = 0 then
UserName = "Anonymous"
end if
UsernameRep=Replace(ucase(UserName) , "\", "/"
set adsUser = getObject("WinNT://" & UserNameRep)
FullName = adsUser.FullName
' Build up output string
h = Hour(Now)
If h < 12 then
strtime = "Good morning! "
ElseIf h < 18 then
strtime = "Good afternoon! "
Else
strtime = "Good evening! "
End If
strHTMLRet = "<table width=""475"" border=""0"" cellpadding=""1"" background=""welcome.jpg"" cellspacing=""0"" align=""left""><tr ><td colspan=""3"" align=""right"">" & FormatDateTime(Now(), 1) & "</td></tr>"
strHTMLRet = strHtmlRet & "<tr><td width=""50""></td>" & "<td valign=""top""><b><br><font color=""#1a3fa5"">" & strtime & FullName & "</b>. Welcome to Hulksters Intranet! " & "</font></td><td></td></tr><tr><td colspan=""3"" height =""7""></td></tr><td colspan=""3"" bgcolor=""#d6d7ef"" height =""4""></td></tr></table>"
'Return string to Dashboard
GetContent = strHtmlRet
End Function
Thanks in advance
'Generic Web Part Function. REQUIRED.
Function GetContent(nod)
Dim strHTMLRet ' Output string
Dim UserNameRep
Dim FullName
Dim h
On Error Resume Next
'get username - note this bit of code required because if anonymous then blank string
UserName = request.servervariables("Logon_User"
if Len(UserName) = 0 then
UserName = "Anonymous"
end if
UsernameRep=Replace(ucase(UserName) , "\", "/"
set adsUser = getObject("WinNT://" & UserNameRep)
FullName = adsUser.FullName
' Build up output string
h = Hour(Now)
If h < 12 then
strtime = "Good morning! "
ElseIf h < 18 then
strtime = "Good afternoon! "
Else
strtime = "Good evening! "
End If
strHTMLRet = "<table width=""475"" border=""0"" cellpadding=""1"" background=""welcome.jpg"" cellspacing=""0"" align=""left""><tr ><td colspan=""3"" align=""right"">" & FormatDateTime(Now(), 1) & "</td></tr>"
strHTMLRet = strHtmlRet & "<tr><td width=""50""></td>" & "<td valign=""top""><b><br><font color=""#1a3fa5"">" & strtime & FullName & "</b>. Welcome to Hulksters Intranet! " & "</font></td><td></td></tr><tr><td colspan=""3"" height =""7""></td></tr><td colspan=""3"" bgcolor=""#d6d7ef"" height =""4""></td></tr></table>"
'Return string to Dashboard
GetContent = strHtmlRet
End Function
Thanks in advance