×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

SIGN IN YOUR ACCOUNT TO HAVE ACCESS TO DIFFERENT FEATURES

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR DETAILS?

AAH, WAIT, I REMEMBER NOW!

CREATE ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • SUPPORT

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

What arguments do we need to provide when using the "New-ADUser" command to create a user account?

by EITCA Academy / Saturday, 05 August 2023 / Published in Cybersecurity, EITC/IS/WSA Windows Server Administration, Working with PowerShell, Creating Active Directory user accounts with Powershell - part 1, Examination review

When using the "New-ADUser" command to create a user account in Windows Server Administration with PowerShell, there are several arguments that need to be provided. These arguments are essential for properly configuring the user account and ensuring its security and functionality within the Active Directory environment.

1. "Name": This argument specifies the name of the user account. It should be provided as a string, typically in the format "FirstName LastName". For example, "John Doe".

2. "SamAccountName": This argument sets the Security Account Manager (SAM) account name for the user. It is a unique identifier used for authentication purposes. The value should be a string, typically in the format "FirstName.LastName". For example, "john.doe".

3. "GivenName": This argument specifies the given name or first name of the user. It should be provided as a string. For example, "John".

4. "Surname": This argument sets the surname or last name of the user. It should be provided as a string. For example, "Doe".

5. "UserPrincipalName": This argument defines the User Principal Name (UPN) for the user. The UPN is used for user logins and is typically in the format "[email protected]". It should be provided as a string. For example, "[email protected]".

6. "Enabled": This argument determines whether the user account is enabled or disabled. It should be set to either $true or $false. For example, $true enables the account, while $false disables it.

7. "PasswordNeverExpires": This argument specifies whether the user's password should expire or not. It should be set to either $true or $false. For example, $true sets the password to never expire, while $false enables password expiration.

8. "AccountPassword": This argument sets the initial password for the user account. It should be provided as a secure string, which can be created using the "ConvertTo-SecureString" cmdlet. For example:

powershell
   $password = ConvertTo-SecureString -String "P@ssw0rd" -AsPlainText -Force
   

9. "Path": This argument determines the location within the Active Directory where the user account will be created. It should be provided as a distinguished name (DN) or a canonical name (CN) of the container or organizational unit (OU). For example, "OU=Users,DC=contoso,DC=com".

These are the essential arguments that need to be provided when using the "New-ADUser" command to create a user account in PowerShell. By properly configuring these arguments, administrators can ensure the creation of user accounts that adhere to security policies, have appropriate naming conventions, and are properly placed within the Active Directory structure.

Other recent questions and answers regarding Creating Active Directory user accounts with Powershell - part 1:

  • What settings do we need to specify when creating an Active Directory user account to ensure password security and account enablement?
  • What command do we use to secure the password before passing it to Active Directory?
  • How do we specify where the user account will be stored in Active Directory?
  • What command do we use to import the Active Directory module in PowerShell?

More questions and answers:

  • Field: Cybersecurity
  • Programme: EITC/IS/WSA Windows Server Administration (go to the certification programme)
  • Lesson: Working with PowerShell (go to related lesson)
  • Topic: Creating Active Directory user accounts with Powershell - part 1 (go to related topic)
  • Examination review
Tagged under: Active Directory, Cybersecurity, New-ADUser, PowerShell, User Account, Windows Server
Home » Creating Active Directory user accounts with Powershell - part 1 / Cybersecurity / EITC/IS/WSA Windows Server Administration / Examination review / Working with PowerShell » What arguments do we need to provide when using the "New-ADUser" command to create a user account?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (106)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Reddit publ.)
  • About
  • Contact
  • Cookie Policy (EU)

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on Twitter
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF), governed by the EITCI Institute since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    Follow @EITCI
    EITCA Academy

    Your browser doesn't support the HTML5 CANVAS tag.

    • Artificial Intelligence
    • Quantum Information
    • Cloud Computing
    • Web Development
    • Cybersecurity
    • GET SOCIAL
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.