Windows 10: How to use Powershell command Set-ADAccountPassword as a prompt

Discus and support How to use Powershell command Set-ADAccountPassword as a prompt in Windows 10 Ask Insider to solve the problem; This is where I am currently at: $firstname = Read-Host -Prompt "Please Enter the First name" $lastname = Read-Host -Prompt "Please enter the last... Discussion in 'Windows 10 Ask Insider' started by /u/Xx255q, Dec 8, 2019.

  1. /u/Xx255q Win User

    How to use Powershell command Set-ADAccountPassword as a prompt


    This is where I am currently at:

    $firstname = Read-Host -Prompt "Please Enter the First name" $lastname = Read-Host -Prompt "Please enter the last name

    New-ADUser -Name "$firstname $lastname" -GivenName "$firstname" -Surname "$lastname" -UserPrincipalName "$firstname.$lastname" -AccountPassword (ConvertTo-SecureString "1234" -AsPlainTest -Force) -Path "OU-Domain Users,OU=instructorpaul,DC=instructorpaul,DC=com" -ChangePasswordAtLogon 1 -Enabled 1

    So I believe I need to get rid of the -AccountPassword line or at least alter it so that I can get it to be a prompt like first and last name. Also a prompt to set email and manager

    submitted by /u/Xx255q
    [link] [comments]

    :)
     
    /u/Xx255q, Dec 8, 2019
    #1
  2. Kursah Win User

    PowerShell instead of Commandline in Creators Update

    Interestingly enough my personal laptop just got the update...and still has Command Prompt listed, not PowerShell...

    Edit: Not that it matters...I use both regularly. *Toast :toast:
     
    Kursah, Dec 8, 2019
    #2
  3. cwtech Win User
    command prompt will not open in safe mode with command prompt

    Would I just follow the same steps within safe mode after hooking up to the other system?
     
    cwtech, Dec 8, 2019
    #3
  4. How to use Powershell command Set-ADAccountPassword as a prompt

    Right-click on Start gave PowerShell instead of Command Prompt

    Hi,

    Thank you for posting your concern. It seems that it is set as your utility on under Settings. To help you resolve this, please follow the steps below:

    • Press Windows key + I to open Settings.
    • Go to Personalization.
    • Click on Taskbar on the left side.
    • Uncheck Replace Command Prompt with Windows PowerShell in the menu when I right-click the start button or press Windows key + X option.

    Let us know if this resolves your concern.
     
    Lemuel Cie, Dec 8, 2019
    #4
Thema:

How to use Powershell command Set-ADAccountPassword as a prompt

Loading...
  1. How to use Powershell command Set-ADAccountPassword as a prompt - Similar Threads - Powershell command Set

  2. Command Prompt or PowerShell Syntax to DISM Fix Drive C: But Using a the Command Prompt of...

    in Windows 10 Software and Apps
    Command Prompt or PowerShell Syntax to DISM Fix Drive C: But Using a the Command Prompt of...: Hi Windows 11 friends.I have no more external USB or Flashdrive to create a USB Windows 11 build 22H2 Installer to fix the drive C: Windows 11 build 22H2 nor can use its DISM or SFC Checkdisk runs fine but it's not powrful enough to fix it on its own Command Prompt among...
  3. Powershell or Command prompt !

    in Windows 10 Software and Apps
    Powershell or Command prompt !: Good morning, I use SCANNOW occassionally going into Command prompt etc. I have just been reading that using it with Powershell is better because it is a more powerful tool would you agree ? Is there anything else you would suggest using with Powershell to keep my laptop...
  4. Powershell or Command prompt !

    in Windows 10 Customization
    Powershell or Command prompt !: Good morning, I use SCANNOW occassionally going into Command prompt etc. I have just been reading that using it with Powershell is better because it is a more powerful tool would you agree ? Is there anything else you would suggest using with Powershell to keep my laptop...
  5. Powershell or Command prompt !

    in Windows 10 Gaming
    Powershell or Command prompt !: Good morning, I use SCANNOW occassionally going into Command prompt etc. I have just been reading that using it with Powershell is better because it is a more powerful tool would you agree ? Is there anything else you would suggest using with Powershell to keep my laptop...
  6. Export command prompt and powershell settings/colors/position

    in Windows 10 Support
    Export command prompt and powershell settings/colors/position: How can it be done? I've seen a similar thread for Windows 7 at SevenForums and people there say that settings of cmd are stored in "HKEY_CURRENT_USER\Console" but it doesn't look like it's the same on Windows 10 *sarc I've exported the whole "console" category from the...
  7. How to change DNS server using Command Prompt and PowerShell

    in Windows 10 News
    How to change DNS server using Command Prompt and PowerShell: [ATTACH]If you want to change the DNS server using Command Prompt or Windows PowerShell, […] This article How to change DNS server using Command Prompt and PowerShell first appeared on TheWindowsClub.com. read more...
  8. How to Reset PowerShell and Command Prompt to default settings

    in Windows 10 News
    How to Reset PowerShell and Command Prompt to default settings: [ATTACH]Microsoft allows users of the Windows Command Prompt and the Windows PowerShell on Windows 10 to have the User Experience of the consoles customized. This […] This article How to Reset PowerShell and Command Prompt to default settings first appeared on...
  9. Use "Command Prompt" instead of "PowerShell"

    in Windows 10 Customization
    Use "Command Prompt" instead of "PowerShell": Hi! I'm using Windows 10 version 1807, In this version, the option "Open in Command Prompt" fully removed from Explorer, in "File" menu and [Shift]+[Right Click] menu, And there's no option to get it back in Settings, only there's an option for [Alt]+[X] menu. I have to...
  10. Change PowerShell To Command Prompt

    in Windows 10 Support
    Change PowerShell To Command Prompt: How do you change from PowerShell to Command Prompt using file explorer ? 104838

Users found this page by searching for:

  1. Set-ADAccountPassword Reset Identity