Click here to get back home

use of ampersand in password and scripting

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
use of ampersand in password and scripting roga 03-14-2007
Get Chitika Premium
Posted by roga on March 14, 2007, 3:30 pm
Please log in for more thread options
I have a password containing the ampersand, however if I try and run a batch
file with (e.g.) schtask /u user /p p&ssword the ampersand confuses the cmd.

Is there a reliable way of handing this? (quotation marks sometimes work,
but sometimes nested quote marks seem to make things overcomplicated)

Are there any other characters I should avoid in passwords?

regards

Roga



Posted by mb@xato.net on March 14, 2007, 5:31 pm
Please log in for more thread options
On Mar 14, 1:30 pm, "roga"
> I have a password containing the ampersand, however if I try and run a batch
> file with (e.g.) schtask /u user /p p&ssword the ampersand confuses the cmd.
>
> Is there a reliable way of handing this? (quotation marks sometimes work,
> but sometimes nested quote marks seem to make things overcomplicated)

Try escaping the ampersand with a caret: p^&ssword

Of course, its not such a good idea to put a password in a batch
file :)


Mark Burnett
http://xato.net


Similar ThreadsPosted
Problem in Change Password! Password Recovery August 27, 2005, 1:24 am
Password Expired / Cannot Change Password May 9, 2006, 9:46 am
App Services password July 6, 2005, 9:46 pm
Password Visibility December 14, 2005, 9:31 am
Password Complexity March 2, 2006, 12:12 pm
Admin Password March 9, 2006, 6:15 pm
HOW CAN i GET THE ADMINISTRATOR PASSWORD? November 20, 2006, 7:43 am
Locked Out! Despite Having The Right Password! September 24, 2007, 12:02 pm
Reset Password January 21, 2008, 7:39 pm
Password expiration April 26, 2008, 4:41 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap