logon script to capture my docs

Home Forums Scripting General Scripting logon script to capture my docs

Viewing 1 post (of 1 total)
  • Author
  • Avatar

    So I guess after all, Google is not my friend :cry:

    Here is the current logon script:

    net use k: “\IP ADDRESS HIDDENgbh”
    K:bginfoBgInfo.exe K:bginfoCapture.bgi /accepteula /timer
    net use K: /delete

    So as you see, everytime any user login or logoffs; BgInfo captures the time and date & puts it in an excel spreadsheet.

    I’d like to also write an IF statement (or similar) so that when my 20 users log in it will use this same logon.bat file.

    I’ve tried :
    robocopy %userprofile%Documents \fileserverusername$ /E /R:2 /NP /XJ

    As you can see i have $ at the end of username to hide documents for all other users. On the backend on the file server, All usernames have been set up using their logon credentials (example: Doe, John would be [email protected])
    We also have an echo turned off but that is pretty simple to implement so I decided to leave it out of this forum.

    Hope i haven’t confused you. The purpose of this is to save All Users My Documents to the file server for compliance & company data. USERS WILL NOT BE USING THESE FOLDERS so folder redirection is not needed.

    Thanks so much in advance.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.