YouhaveaWindowsPowerShellscriptthatcontainsthefollowingcode:import-csvAccounts.csv|Foreach

题目内容(请给出正确答案)

YouhaveaWindowsPowerShellscriptthatcontainsthefollowingcode:import-csvAccounts.csv|Foreach{New-ADUser-Name$_.Name-Enabled$true-AccountPassword$_.password}Whenyourunthescript,youreceiveanerrormessageindicatingthattheformatofthepasswordisincorrect.Thescriptfails.Youneedtorunascriptthatsuccessfullycreatestheuseraccountsbyusingthepasswordcontainedinaccounts.csv.Whichscriptshouldyourun()

A.import-csvAccounts.csv Foreach{New-ADUser-Name$_.Name-Enabled$true-AccountPassword(ConvertHost-

B.import-csvAccounts.csv Foreach{New-ADUser-Name$_.Name-Enabled$true-AccountPassword(ConvertTo-

C.import-csvAccounts.csv Foreach{New-ADUser-Name$_.Name-Enabled$true-AccountPassword(Read-To

D.import-csvAccounts.csv Foreach{New-ADUser-Name$_.Name-Enabled$true-AccountPassword(Read-Host

参考答案和解析
参考答案:B
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
更多相关问题