多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

You have a Windows PowerShell script that contains the following code:   import-csv Accounts.csv | Foreach {New-ADUser -Name $_.Name -Enabled $true  -AccountPassword $_.password}     When you run the script, you receive an error message indicating that the format of the password  is incorrect. The script fails.     You need to run a script that successfully creates the user accounts by using the password  contained in accounts.csv.     Which script should you run()

  • A、import-csv Accounts.csv Foreach {New-ADUser -Name $_.Name -Enabled $true - AccountPassword (ConvertHost-
  • B、import-csv Accounts.csv Foreach {New-ADUser -Name $_.Name -Enabled $true - AccountPassword (ConvertTo-
  • C、import-csv Accounts.csv Foreach {New-ADUser -Name $_.Name -Enabled $true - AccountPassword (Read-To
  • D、import-csv Accounts.csv Foreach {New-ADUser -Name $_.Name -Enabled $true - AccountPassword (Read-Host
正确答案:B
答案解析:
进入题库查看解析

微信扫一扫手机做题