私のコード:
New-ADUser -samaccountname first_last -Name "first last" -UserPrincipalName aaa@egc.gov.vm -AccountPassword (ConvertTo-SecureString -AsPlainText "p@ssw0rd" -Force) -Enabled $true -PasswordNeverExpires $true -Path 'OU=EGC,DC=egc,DC=gov,DC=vm' -givenname 'first' -sn 'last' -displayname 'display name' -description 'IC NO' -title 'Job Title' -division '3' -physicaldeliveryofficename 'EGNC HQ' -telephonenumber '2424955' -mail 'first.last@egc.gov.bn' -department 'egnc hq' -company 'ministry PMO' -streetaddress 'Full Address Here' -postalcode 'BB3333'
エラーの1つ:
New-ADUser : A parameter cannot be found that matches parameter name 'telephonenumber'.
エラーは、次のLDAP属性の後に続きます。
- sn
- physicalDeliveryOfficeName
- 電話番号
- 郵便物
上記の属性を削除すると、ユーザーの作成が機能します。
これに対する修正はありますか?
回答:
- snは名前です
- 電話番号はofficephoneです(David Johnsonに感謝します)
- physicalDeliveryOfficeNameはオフィスです(David Johnsonに感謝します)
- メールはメールです