Windows Server 2016-Powershell新建用户补充
发表于:2024-10-17 作者:千家信息网编辑
千家信息网最后更新 2024年10月17日,前边我们介绍到Windows Server 2016-图形化新建域用户(一) 及 Windows Server 2016-批量新建域用户(二) ,里边提到了批量通过new-aduser常见帐号,这里简
千家信息网最后更新 2024年10月17日Windows Server 2016-Powershell新建用户补充
前边我们介绍到Windows Server 2016-图形化新建域用户(一) 及 Windows Server 2016-批量新建域用户(二) ,里边提到了批量通过new-aduser常见帐号,这里简单的对前章节内容做个补充,具体信息如下:
命令语法:
New-ADUser [-Name][-AccountExpirationDate ] [-AccountNotDelegated ] [-AccountPassword ] [-AllowReversiblePasswordEncryption ] [-AuthType { | }] [-CannotChangePassword ] [-Certificates ] [-ChangePasswordAtLogon ] [-City ] [-Company ] [-Country ] [-Credential ] [-Department ] [-Description ] [-DisplayName ] [-Division ] [-EmailAddress ] [-EmployeeID ] [-EmployeeNumber ] [-Enabled ] [-Fax ] [-GivenName ] [-HomeDirectory ] [-HomeDrive ] [-HomePage ] [-HomePhone ] [-Initials ] [-Instance ] [-LogonWorkstations ] [-Manager ] [-MobilePhone ] [-Office ] [-OfficePhone ] [-Organization ] [-OtherAttributes ] [-OtherName ] [-PassThru ] [-PasswordNeverExpires ] [-PasswordNotRequired ] [-Path ] [-POBox ] [-PostalCode ] [-ProfilePath ] [-SamAccountName ] [-ScriptPath ] [-Server ] [-ServicePrincipalNames ] [-SmartcardLogonRequired ] [-State ] [-StreetAddress ] [-Surname ] [-Title ] [-TrustedForDelegation ] [-Type ] [-UserPrincipalName ] [-Confirm] [-WhatIf] [ ]
常用字段注解:
Name | 姓名 |
AccountExpirationDate | 账户到期时间 |
City | 城市 |
Company | 公司 |
Department | 部门 |
Description | 描述 |
DisplayName | 显示名称 |
EmailAddress | 电子邮件地址 |
EmployeeID | 员工ID |
EmployeeNumber | 员工编号 |
HomePhone | 家庭电话 |
Manager | 经理 |
MobilePhone | 移动电话 |
Office | 办公室 |
OfficePhone | 办公室电话 |
Organization | 组织 |
PasswordNeverExpires | 密码永不过期 |
SamAccountName | 用户登录名(老版本/不带@) |
StreetAddress | 街道地址 |
Title | 职称 |
UserPrincipalName | UPN用户登录名带@符 |
例:创建wen帐号:
New-ADUser -Name wen -SamAccountName wen -UserPrincipalName wen@a.com -AccountPassword (ConvertTo-SecureString "P@ssw0rd" -asplaintext -force) -enabled $true -ChangePasswordAtLogon $false
欢迎关注微信公众号:小温研习社
用户
电话
办公室
员工
地址
帐号
办公
登录
信息
公众
公司
内容
名称
命令
图形
城市
姓名
字段
家庭
密码
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
电力软件开发项目名称
网络安全征集活动广西
arm服务器运行x86应用
打开数据库时打不开
fm2020加载不了数据库
手机隐私定位服务器怎么打开
软件开发收入怎么样
科学数据库技术
小程序服务器布置云端费用
耕地数据库技术服务合同
服务器开机自检
数据库中定义一个学生表
数据库相同订单如何相加
桌面服务器套什么定额
影院售票系统数据库课程设计
ftp服务器 高速
浙江网络安全学院报名不了
连锁店设计软件开发
以网络安全为重点
办公软件开发有哪些
网络安全加减乘除
网上学习软件开发
打开数据库时打不开
苹果平板管理服务器
选择数据库最新一条
中国网络安全法第27条的处罚
国家大剧院剧目制作部数据库
服务器无法配置
公务员和银行软件开发哪个好
存储服务器怎么看里面硬盘