Jump to content
Sign in to follow this  
vendingo

Report computername to log file

Recommended Posts

vendingo

I'm running the remove novell client script and would like the script to also report the computername to a log file on the network if the task was successful. I have over 250 computers to remove the novell client on and need to know if the removal script worked or not. Any clues on how to script this? I'm by no means a programmer - just a code stealer. :P

Share this post


Link to post
Share on other sites
Jos

Would something simple like this work ? (they ofcourse will need write access to the logfile.)

FileWriteLine("\\server\share\Logfile.log",@MON & @MDAY & " " & @HOUR & @MIN & @SEC & " I am done:" & @ComputerName)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Ambient

Try this :

$slogfilepath = "\\server\share\Logfile.log"

_FileWriteLog($slogfilepath, @Computername & " has now finished "

Share this post


Link to post
Share on other sites
BrettF

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×