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)

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.