Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8795797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:28:07+00:00 2026-06-13T23:28:07+00:00

This is a question with a rather small scope, but I’m running a lot

  • 0

This is a question with a rather small scope, but I’m running a lot of windows command prompt commands that involve using the admin password. I can either have part of the command be “/user:administrator /password:examplepassword”, where examplepassword is in plaintext, or I can just have “/user:administrator”, and it prompts me for the password, which I then enter masked (*******).

So, my question is simply this: is entering the password in the plaintext secure? (obviously besides the simple over-the-shoulder insecurity of it). Are command line arguments saved anywhere on the computer after a command prompt session is closed?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:28:08+00:00Added an answer on June 13, 2026 at 11:28 pm

    The Windows command prompt does not save history between invocations. There are several hacks about that try to emulate this behaviour, but the basic tool doesn’t support it.

    Of course, command line statements can be stored in batch files and then it would be advantageous not to declare the password in-line.

    Otherwise, you are correct. Using the second option merely protects you from shoulder-surfing or malicious access to an open command prompt (with a live history). Personally I think those are sufficient reasons to use the second option.

    Finally, it’s worth noting that both solutions are vulnerable to key logging.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Excuse if this is more a file format conversion question rather than programming, but
Sorry if this question is too vague, but I'd rather not muddy it's point
This is a rather vague question but here we go - I would like
This is admittedly a rather loose question. My current understanding of singletons is that
I'm not sure if this might be a rather stupid question. But is it
This may be a silly question, but right now I have a rather large
This question is server oriented. I have a hosted server (a rather small one,
This question is related to this SO post Rather than using a recursive CTE
Note: This question is related to an advice rather than an issue. I would
Rather Trivial Question. So I tried to do this: if (array[0]==some_string) where array is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.