Noticed a small error (wouldn’t have noticed it until we changed the background image).
Error shown in red below.
Thank you, -----Original Message-----
It does tell you the time you logged into the PC. Very useful tool. I have it scripted into my logon.vbs, using it to force a background out to the PC’s.
For reference (yeah, I know its probably ugly, I am by no means a pro vbs scripter):
'============================================================================= ' Copy Desktop Background File and Set It '============================================================================= public sub CheckBkgFile()
On Error Resume Next
Dim strSrc, strDst, strSF, strDF, strSrcF, strDstF, strProg, strPrPar1 Dim strPrPar2, strPrPrms, strCommandLine, return, strServer strServer = strSysRoot & " \system32\server.txt" strSrc = "\\DC01\NETLOGON\" strSF = strSrc & "NBHBG.jpg" strDst = strSysRoot & "\system32\" strDF = strDst & "NBHGB.jpg" strProg = strSrc & "Bginfo.exe" strPrPar1 = strSrc & "Bginfo.bgi" strPrPar2 = "/Timer:0" strPrPrms = strPrPar1 & " " & strPrPar2
If fso.FileExists (strServer) then 'Proceed else If fso.FileExists (strDF) then strDstF = fso.GetFile(strDF) strSrcF = fso.GetFile(strSF) If strDstF.DateLastModified <> strSrcF.DateLastModified then fso.CopyFile strSrc, strDst, true [Mitch writes: ] Should be fso.CopyFile strSF, strDst, true end if else fso.CopyFile strSF, strDst, true end if
strCommandLine = strProg & " " & strPrPrms return = wshShell.run (strCommandLine, 0, TRUE) end if end sub
Allows us to do a single change on the corporate background image and force it out to the desktops on user logon.
Thank you, -----Original Message-----
Bginfo will show you the logon server but it doesn’t show you the last logon value. It is still subject to the requirement that you need to query the last logon time from all of the DCs in the domain.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Rutherford, Robert
Oh yeh... that's a good idea. We have it on our servers, but yeh it would also work in the clients. I'll look into it.
Cheers Tim.
|
Title: Message
- RE: [ActiveDir] LastLogOn Rutherford, Robert
- RE: [ActiveDir] LastLogOn Durant, Ryan A
- RE: [ActiveDir] LastLogOn Tim Foster
- RE: [ActiveDir] LastLogOn Rutherford, Robert
- RE: [ActiveDir] LastLogOn Passo, Larry
- RE: [ActiveDir] LastLogOn DL.ActiveDirectory
- DL.ActiveDirectory