Skip to content

NKCODE TECH GEEK ZONE

  • RSS - Posts
Menu
  • Home
  • Cloud
    • Azure
    • Alibaba
    • AWS
  • Hardware
  • Linux
  • Network
  • Security
  • Windows Client / Servers
    • SQL
    • Windows Client OS
      • Windows 10
    • Windows Servers
      • Windows 2008R2
      • Windows Server 2012R2
      • Windows Server 2016
      • Windows Server 2019
  • VMWARE
  • Free Tools
  • About Me
    • Disclaimer
Menu

Creating New User In PowerShell Command

Posted on November 17, 2013

The Windows PowerShell commands needed to create the new user Kugan Tech in the preceding example were as follows:

New-ADUser -DisplayName:”Kugan Tech” -GivenName:”Kugan” -Name:”Kugan Tech” -Path:”OU=IT Users OU,OU=IT OU,DC=nkcode,DC=com” -SamAccountName:”Kugan” -Server:”MIS-SRV.nkcode.com” -Surname:”Tech” -Type:”user” -UserPrincipalName:kugan@nkcode.com Set-ADAccountPassword -Identity:”CN=Kugan Tech,OU=IT Users OU, OU=IT OU,DC=nkcode,DC=com” -NewPassword:”System.Security.SecureString” -Reset:$null -Server:”MIS-SRV.nkcode.com” Enable-ADAccount -Identity:”CN=Kugan Tech,OU=IT Users OU, OU=IT OU, DC=nkcode,DC=com” -Server:”MIS-SRV.nkcode.com” Set-ADObject -Identity:”CN=Kugan Tech,OU=IT Users OU, OU=IT OU, DC=nkcode,DC=com” -ProtectedFromAccidentalDeletion:$true -Server:”MIS-SER.nkcode.com” Set-ADAccountExpiration -DateTime:”17/11/2013 00:00:00″ -Identity:”CN=Kugan Tech, OU=IT Users OU,OU=IT OU,DC=nkcode,DC=com” -Server:”MIS-SRV.nkcode.com” Set-ADAccountControl -AccountNotDelegated:$false -AllowReversiblePasswordEncryption:$true -CannotChangePassword:$true -DoesNotRequirePreAuth:$false -Identity:”CN=Kugan Tech,OU=IT Users OU,OU=IT OU, DC=nkcode, DC=com” -PasswordNeverExpires:$true -Server:”MIS-SRV.nkcode.com” -UseDESKeyOnly:$false Set-ADUser -ChangePasswordAtLogon:$false -Identity:”CN=Kugan Tech, OU=IT Users OU,OU=IT OU, DC=nkcode,DC=com” -Server:”MIS-SRV.nkcode.com” -SmartcardLogonRequired:$false

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Reddit (Opens in new window) Reddit
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…

Related

Welcome to Teck Geek Zone

Alibaba & Azure Cloud with a free trial worth $200-1200 USD Click below Cloud Providers

  • Securing the Industrial Edge: A Guide to Microsoft Defender for IoT
  • IACS UR E26 and E27 Guidance: Maritime Cybersecurity Framework for Modern Ships
  • Understanding OT, ICS, and SCADA: A Complete Guide to Industrial Technology and Cybersecurity
  • Inside Microsoft Entra: Latest Security Innovations and Features
  • How to Configure Multi-Pool Point-to-Site (P2S) VPN Using Azure Virtual WAN (vWAN)

Categories

  • Cloud (202)
    • Alibaba (39)
    • AWS (45)
    • Azure (124)
  • Free Tools (5)
  • Hardware (17)
  • Linux (13)
  • Network (30)
  • Security (23)
  • VMWARE (58)
  • Windows OS (44)
    • Windows 10 (7)
  • Windows Servers (69)
    • SQL (3)
    • Windows 2008R2 (7)
    • Windows Server 2012R2 (15)
    • Windows Server 2016 (20)
    • Windows Server 2019 (10)

Subscribe to our newsletter

©2026 NKCODE TECH GEEK ZONE | Design: Newspaperly WordPress Theme
%d