Sign in to follow this  
Followers 0
vendingo

Report computername to log file

4 posts in this topic

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



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)

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Try this :

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

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

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

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  
Followers 0