Title: 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

                                                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,
Mitchell D. Lawrence
Director, Network Administrator
IT&S Department
North Bay Hospital
1711 W. Wheeler Ave
Aransas Pass, TX 78336
ph: (361) 758-0580
fx: (361) 758-0581
pg: (361) 270-0421
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(home)
**< Good | Cheap | Fast > (Pick Two)**

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Passo, Larry
Posted At: Tuesday, July 20, 2004 1:49 PM
Posted To: ~AD Discussion~
Conversation: [ActiveDir] LastLogOn
Subject: RE: [ActiveDir] LastLogOn

 

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
Sent: Tuesday, July 20, 2004 10:24 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LastLogOn

 

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.

-----Original Message-----
From: Tim Foster [mailto:[EMAIL PROTECTED]
Sent: 20 July 2004 17:06
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LastLogOn

BgInfo from

 

http://www.sysinternals.com/ntw2k/freeware/bginfo.shtml

 

may help.

 

 

Tim Foster

 


From: Durant, Ryan A [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 11:42 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LastLogOn

 

Query every domain controller and store those results in a database.

The number of domain controllers, amount of users and link speeds will determine how fast you can collect the stats.

You may only be able to collect once a day or possibly once an hour.

Have a logon script query the DB for the last logon value and have it pop up on their screen. You could also query a web page to get the values if you didn't want to worry about odbc and sql calls from the client machines.

 

But you have to be a scripter to get this done I believe.

 

Ryan

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rutherford, Robert
Sent: Tuesday, July 20, 2004 6:26 AM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] LastLogOn

Dear All,

Not in anyway being a scripter….

How would I get the date and time a user last logged on to pop up on their screen at logon? I guess it would be via the 'lastlogon' attribute? Linked into a login script?

Cheers,

Rob


This e-mail and the information it contains are confidential and may be privileged. If you have received this e-mail in error please notify the sender immediately and delete the material from any computer. Unless you are the intended recipient, you should not copy this e-mail for any purpose, or disclose its contents to any other person.
The MCPS-PRS Alliance is not responsible for the completeness or accuracy of this communication as it has been transmitted over a public network. Whilst the MCPS-PRS Alliance monitors all communications for potential viruses, we accept no responsibility for any loss or damage caused by this e-mail and the information it contains.
It is the recipient's responsibility to scan this e-mail and any attachments for viruses. Any
e-mails sent to and from the MCPS-PRS Alliance servers may be monitored for quality control and other purposes.

The MCPS-PRS Alliance Limited is a limited company registered in England under company number 03444246 whose registered office is at c/o 29-33 Berners Street, London, W1T 3AB.


This e-mail and the information it contains are confidential and may be privileged. If you have received this e-mail in error please notify the sender immediately and delete the material from any computer. Unless you are the intended recipient, you should not copy this e-mail for any purpose, or disclose its contents to any other person.
The MCPS-PRS Alliance is not responsible for the completeness or accuracy of this communication as it has been transmitted over a public network. Whilst the MCPS-PRS Alliance monitors all communications for potential viruses, we accept no responsibility for any loss or damage caused by this e-mail and the information it contains.
It is the recipient's responsibility to scan this e-mail and any attachments for viruses. Any
e-mails sent to and from the MCPS-PRS Alliance servers may be monitored for quality control and other purposes.

The MCPS-PRS Alliance Limited is a limited company registered in England under company number 03444246 whose registered office is at c/o 29-33 Berners Street, London, W1T 3AB.

Reply via email to