Can't you people be more password creative?

Page 3 of 3 FirstFirst 123

  1. Posts : 15,492
    Windows10
       #21

    Ghot said:
    Elvis being the special character?
    I couldn,t think of anything better other than Debbie Harry but I got bored typing.
      My Computer


  2. Posts : 23,281
    Win 10 Home ♦♦♦19045.4355 (x64) [22H2]
       #22

    cereberus said:
    I couldn,t think of anything better other than Debbie Harry but I got bored typing.


    Elvis works. He was either a special character or an alien.



      My Computer


  3. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #23

    Hello @FreeBooter,

    FreeBooter said:
    I have a batch script that will create random generated passwords.
    Nice Script.

    If you want to avoid incorrect user input [ Zero, Letters, Characters, etc ], where you have . . .

    Code:
    
    set /p len="Password Length: "

    . . . change it to [ it will catch the VAST majority ] . . .

    Code:
    
    set "len="
    set /p "len=Password Length: "
    for /f "delims=0123456789" %%a in ("!len!") do (goto :Start)
    if "!len!"==""  goto :Start
    if "!len!"=="0" goto :Start

    Also, and just my preference, I would use the line as follows as it is easier to troubleshoot . . .

    Code:
    
    set "alp=a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T A U V X Y Z 0 1 2 3 4 5 6 7 8 9"

    I hope this helps.
    Last edited by Paul Black; 23 Dec 2021 at 18:20.
      My Computer


  4. Posts : 5,330
    Windows 11 Pro 64-bit
       #24

    Paul Black said:
    Hello @FreeBooter,


    Nice Script.

    If you want to avoid incorrect user input [ Zero, Letters, Characters, etc ], where you have . . .

    Code:
    
    set /p len="Password Length: "

    . . . change it to [ it will catch the VAST majority ] . . .

    Code:
    
    set "len="
    set /p "len=Password Length: "
    for /f "delims=0123456789" %%a in ("!len!") do (goto :Start)
    if "!len!"==""  goto :Start
    if "!len!"=="0" goto :Start

    Also, and just my preference, I would use the line as follows as it is easier to troubleshoot . . .

    Code:
    
    set "alp=a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T A U V X Y Z 0 1 2 3 4 5 6 7 8 9"

    I hope this helps.
    Thanks, i have modified the script.
    Can't you people be more password creative? Attached Files
      My Computer


  5. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #25

    Hello @FreeBooter,

    FreeBooter said:
    Thanks.
    You are VERY welcome.
      My Computer


  6. Posts : 5,330
    Windows 11 Pro 64-bit
       #26

    I have also coded batch script that can be use for setting Windows User Account with random password.

    Code:
    :: Setting Windows User Account with Random Password
    
    @Echo Off & Cls
    
    
    REM  --> Check for permissions
    Reg query "HKU\S-1-5-19\Environment" 
    REM --> If error flag set, we do not have admin.
    if %errorlevel% NEQ 0 (
    ECHO                 **************************************
    ECHO                  Running Admin shell... Please wait...
    ECHO                 **************************************
    
        goto UACPrompt
    ) else ( goto gotAdmin )
    
    :UACPrompt
        echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        set params = "%*:"=""
        echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
    
        "%temp%\getadmin.vbs"
        del "%temp%\getadmin.vbs"
        exit /B
    
    
    :gotAdmin
    
    CLS
    
     CHOICE /C YR /M "Press Y for Random Password, R to Remove Password."
     
     If %errorlevel% == 1 Goto :RandPW
     If %errorlevel% == 2 Goto :RemPW
    
    
    :RandPW
    
    Cls
    Echo.
    Echo.
    
    net user %UserName% /random 
    
    Pause > Nul
    
    Exit
    
    
    
    :RemPW
    
    Cls
    Echo.
    Echo.
    
    net user %username% ""
    
    Pause > Nul
    
    Exit
    Can't you people be more password creative? Attached Files
      My Computer


  7. Posts : 198
    Windows 10 Pro x64
       #27

    Last pc I built I tried to use the password mypen15.

    Got error message - too short...
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:48.
Find Us




Windows 10 Forums