How to open advanced tab of Advanced User Accounts using command line?


  1. Posts : 396
    Win7 Pro X64, Win10 Pro x640
       #1

    How to open advanced tab of Advanced User Accounts using command line?


    Is there a specific run command to directly open the advanced (second) tab of Advanced User Accounts, netplwiz or control userpasswords2?

    Netplwiz and userpasswords 2 opens the 1st tab, but I want to directly open the 2nd (advanced tab) from the run box or command prompt.

    I have tried variants as well as exhaustive internet searches, nothing which helped. The syntax should resemble something like below...but none work. Can anyone help please? Thanks!

    explorer {98641F47-8C25-4936-BEE4-C2CE1298969D} -page\advanced
    Rundll32.exe shell32.dll,Rundll_netplwiz
    control userpasswords2 (parameter?)
    control /name netplwiz (parameter?)
    control /name userpasswords2
      My Computer


  2. Posts : 27
    Windows
       #2

    What do you want to do once the Advanced tab is displayed?

    Mange Passwords button - can be accessed with control keymgr.dll
    Advanced button - seems to be disabled in Windows 10
    Require Ctrl+Alt+Delete - I seem to recall a Registry setting for this, but I don't remember which key to modify
      My Computer


  3. Posts : 396
    Win7 Pro X64, Win10 Pro x640
    Thread Starter
       #3

    mahoneycutt said:
    What do you want to do once the Advanced tab is displayed?

    Mange Passwords button - can be accessed with control keymgr.dll
    Advanced button - seems to be disabled in Windows 10
    Require Ctrl+Alt+Delete - I seem to recall a Registry setting for this, but I don't remember which key to modify
    I confirmed, there is no command with parameter/argument to open the advanced tab of netplwiz.
      My Computer

  4. das10's Avatar
    Posts : 2,822
    Win 10 pro 20H2
       #4

    Not a direct command, but a workaround using Powershell. The only problrm is that once NetAplwiz starts it needs an admin process to manipulate tabs etc.

    So, one can either use a bat file which is "Run as Administrator", or the whole command string needs to be run in an "Admin Command box".

    For a batch file run as Admin:
    Code:
    :: start Netplwiz and go to second tab
    :: NOTE run this bat as admin
    Powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -command "  "start-process Netplwiz" ;  Start-Sleep -MilliSeconds 250 ; Add-Type -AssemblyName System.Windows.Forms ; Start-Sleep -Milliseconds 250  ; [System.Windows.Forms.SendKeys]::SendWait('"^^{TAB}"' ) "
    Exit
    Or as a command string in an Admin Command Box:
    Code:
    Powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -command "  "start-process Netplwiz" ;  Start-Sleep -MilliSeconds 250 ; Add-Type -AssemblyName System.Windows.Forms ; Start-Sleep -Milliseconds 250  ; [System.Windows.Forms.SendKeys]::SendWait('"^^{TAB}"' ) "
    Or as a Powershell string in an Admin Powershell Box:
    Code:
    Powershell.exe -NoProfile -ExecutionPolicy RemoteSigned start-process Netplwiz ;  Start-Sleep -MilliSeconds 250 ; Add-Type -AssemblyName System.Windows.Forms ; Start-Sleep -Milliseconds 250  ; [System.Windows.Forms.SendKeys]::SendWait("^{TAB}")
    Maybe it works for you.
      My Computer


  5. Posts : 396
    Win7 Pro X64, Win10 Pro x640
    Thread Starter
       #5

    das10 said:
    Not a direct command, but a workaround using Powershell. The only problrm is that once NetAplwiz starts it needs an admin process to manipulate tabs etc.

    So, one can either use a bat file which is "Run as Administrator", or the whole command string needs to be run in an "Admin Command box".

    For a batch file run as Admin:
    Code:
    :: start Netplwiz and go to second tab
    :: NOTE run this bat as admin
    Powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -command "  "start-process Netplwiz" ;  Start-Sleep -MilliSeconds 250 ; Add-Type -AssemblyName System.Windows.Forms ; Start-Sleep -Milliseconds 250  ; [System.Windows.Forms.SendKeys]::SendWait('"^^{TAB}"' ) "
    Exit
    Or as a command string in an Admin Command Box:
    Code:
    Powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -command "  "start-process Netplwiz" ;  Start-Sleep -MilliSeconds 250 ; Add-Type -AssemblyName System.Windows.Forms ; Start-Sleep -Milliseconds 250  ; [System.Windows.Forms.SendKeys]::SendWait('"^^{TAB}"' ) "
    Or as a Powershell string in an Admin Powershell Box:
    Code:
    Powershell.exe -NoProfile -ExecutionPolicy RemoteSigned start-process Netplwiz ;  Start-Sleep -MilliSeconds 250 ; Add-Type -AssemblyName System.Windows.Forms ; Start-Sleep -Milliseconds 250  ; [System.Windows.Forms.SendKeys]::SendWait("^{TAB}")
    Maybe it works for you.
    Wow, that really does work. Thank you! I really should learn how to use PowerShell sometime!
      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 23:11.
Find Us




Windows 10 Forums