Subscribe to Windows IT Pro
October 30, 2003 12:00 AM

JSI Tip 7390. How do I set an environment variable to the IP address of the client computer in a logon script?

Windows IT Pro
InstantDoc ID #79564
Rating: (0)


If your logon script requires that you retrieve the IP address of the client computer, add the following to the script:

for /f "Tokens=2 Delims=[]" %%i in ('ping -n 1 "%computername%"') do set IP=%%i



Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.