I need to log make a log using a batch file(in this situation its better to use .bat then .vbs), the code is what I have so far, I used netsh because it seams to be a better fit for a mixed XP/Win7 environment.
I want the log to look like:
DELL-123456 Mon 06/14/2010 13:34:10.38 192.168.1.1
Thanks ahead of time, google really isn't turning up much for me on this one.
@Net use Q: "\\server\d$" /USER:
netsh interface ip show addresses | find "IP Address" | find /v "127.0.0.1" | find /v "0.0.0.0"
@echo %computername% %date% %time% %IP% >> Q:\Image_log.txt
@Net use Q: /delete /Y