csvde批量导入域用户数据

netsh

interface

ipv4

set address “local area connection” static ip mask gateway

set dnsserver “local area connection” static ip primary

netdom computername %hostname% /add:newcomputername

netdom computername %hostname% /makeprimary:newcomputername

netdom computername %hostname% /remove:oldcomputername

dcpromo /unattend /balabala

dcpromo /?:promotion/demotion

csvde /d LDAP path /f exportfilepath /j logfilepath /l comma separated attribute /

csvde /i /k /f exportfilepath /j logfilepath

DN

objectClass

sn

givenName

displayname

description

sAMAccountName

userPrincipalName

physicaldeliveryofficename

l

st

co

postalcode

mobile

User fields that cannot be imported

The following fields are protected system fields and cannot be modified through an LDIFDE import.:

・ badPasswordTime:

・ badPwdCount:

・ lastLogoff:

・ lastLogon:

・ logonCount:

・ memberOf

・ objectGUID:

・ objectSid:

・ primaryGroupID:

・ pwdLastSet:

・ sAMAccountType:

HR的excel原始数据

clip_image002

用left/right/lower/concatenate函数处理成需要的数据,转换为csv文件

黄色部分需要手动修改一下(ou命名规则和hr部门命名规则不对,可以用lookup提取,这里没做);绿色部分通用数据,基本是固定不变,不需要修改的;紫色部分是公式自动抓取的

clip_image004

csvde无法导入密码,这样做进去的账号是disabled的

你可能感兴趣的:(local,primary,gateway,interface,Address)