Startup/Logoff/Shutdown Script

Home Forums Scripting General Scripting Startup/Logoff/Shutdown Script

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    franklinrd
    Member
    #154784

    Hello,
    I have a logon script that runs a command (see below) that writes data to a log file on a share on our server. I want it to write similar data to a different log file when the computer starts up, logs off and shuts down. I was told to add runas but I don’t know where to add it or how. Any suggestions?

    echo %date% – %time% – %computername% – %username% – Logon Successful >> \SERVER-01Apps01$logsLogonlogfile.log

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.