网友您好, 请在下方输入框内输入要搜索的题目:
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
参考答案