Google Answers Logo
View Question
 
Q: Batch file scripting in Windows (using rasdial) ( No Answer,   2 Comments )
Question  
Subject: Batch file scripting in Windows (using rasdial)
Category: Computers > Operating Systems
Asked by: digitalsierra-ga
List Price: $4.00
Posted: 02 Jul 2006 21:43 PDT
Expires: 01 Aug 2006 21:43 PDT
Question ID: 742903
I'm trying to create a batch file within Windows XP Pro(SP2) to do a
VPN connection.

If I type the following at a command prompt it works fine and I'm connected...
rasdial "my office" vpn "funny%^face"

"my office" is the VPN connection I've already created
vpn is my username
funny%^face is my password

If I stick the above line into a batch file and run that, it says
"error 691 - Access was denied because the username and/or password
was invalid on the domain".  I've checked the spelling of my password
a dozen times, it's correct.
If I replace "funny%^face" with * , it asks me for my password and then connects.

For some reason it won't connect when I keep the password in my batch file.
(I can secure my file later with permissions/encryption).
Please help.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Batch file scripting in Windows (using rasdial)
From: iamdeux-ga on 03 Jul 2006 13:41 PDT
 
It`s not right to use special symbols like "%" in batch file as password.
Try to change your password to more simple ( like: thisMYpass123 ).
It would help.

Content of batch file must be like that:


rasdial "my office" vpn "thisMYpass123"
Subject: Re: Batch file scripting in Windows (using rasdial)
From: digitalsierra-ga on 04 Jul 2006 13:26 PDT
 
Yes.  It was that % symbol that was causing me grief.  Thanks iamdeux-ga!

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy