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 th

题目

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
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

When you use Microsoft Windows Media Player to begin playback of a music file, you receive the following error message: You do not have the rights to play this file.” You need to configure Windows Media Player to ensure playback of protected digital media.What should you do?()

A.A

B.B

C.C

D.D


参考答案:D

第2题:

You perform an in-place upgrade on a Microsoft Windows XP Service Pack 2 (SP2) computer to Windows Vista.After the upgrade, you attempt to run a custom application. You receive the following error message: This application is only designed to run on Windows XP or later.”You need to run the application on Windows Vista.What should you do?()

A.A

B.B

C.C

D.D


参考答案:D

第3题:

You need to create a web share on your Windows 2000 Professional computer named Admin01. You create a folder named reports. Then you configure web sharing on Reports. You name the share WebReports and allow Read permissions on the share.

You test the web share by pointing to http://admin01/WebReports from another computer. You receive the following error message, 'You are not authorized to view this page.'

You need to be able to access the folder. What must you do?

A.Allow write permission on WebReports.

B.Allow directory browsing permissions on WebReports.

C.In the IIS console, enable anonymous access to WebReports.

D.In the IIS console, set the execute permissions option to script. and executables on WebReports.


正确答案:C
解析:Explanation: The proper NTFS permissions, read permission, have already been granted. To access the folder through Internet Explorer the folder must be published in Internet Information Services (IIS), and authentication through IIS must be provided. By enabling anonymous access in the IIS console the folder would be accessible through Internet Explorer.

Incorrect answers:
A: Only read permission is required to view a page, not write permissions. And read permission is already granted.

B: Via directory browsing, web site visitors are able to view the contents of directories as a list of files. Directory browsing is not used to allow access to a web share.

D: The execute permission is only required to enable the user to run scripts and executables. It is not required to view the web share.

第4题:

Your network contains an Active Directory forest.   You set the Windows PowerShell execution policy to allow unsigned scripts on a domain   controller in the network. You create a Windows PowerShell script named new-users.ps1 that  contains the following lines:     new-aduser user1  new-aduser user2  new-aduser user3  new-aduser user4  new-aduser user5     On the domain controller, you double-click the script and the script runs. You discover that the  script fails to create the user accounts.     You need to ensure that the script creates the user accounts.     Which cmdlet should you add to the script()

  • A、Import-Module
  • B、Register-ObjectEvent
  • C、Set-ADDomain
  • D、Set-ADUser

正确答案:A

第5题:

You have a DNS server named Server1 that runs Windows Server 2003 Service Pack 2 (SP2). Server1 is configured to have an IP address of 10.10.0.10.You run the NSLookup command on the server and receive the following error message. You need to ensure that this time-out message does not appear when you run NSLookup.  What should you do?()

  • A、Disable recursion.
  • B、Create a reverse lookup zone for 10.10.0.
  • C、Add the address 10.10.0.10 to the root hints.
  • D、Create a forward lookup zone for contoso.com.

正确答案:B

第6题:

You have a computer that runs Windows Vista.You run ipconfig /release from the command prompt and receive the following error message: The requested operation requires elevation.”You need to release the IP address for the computer.What should you do?()

A.A

B.B

C.C

D.D


参考答案:C

第7题:

You attempt to upgrade a Microsoft Windows XP computer to Windows Vista.You receive an error message during the upgrade process indicating that the upgrade has failed.You need to view the details of the error message.What should you do?()

A.A

B.B

C.C

D.D


参考答案:C

第8题:

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

第9题:

You plan to use Windows PowerShell scripts to configure system settings when you deploy Windows 7.   You need to ensure that Windows PowerShell scripts will run on the client computers during initial setup.   What should you do?()

  • A、Set the script execution policy to RemoteSigned.
  • B、Set the script execution policy to AllSigned.
  • C、Set the script execution policy to Restricted.
  • D、Use Group Policy preferences.

正确答案:A

第10题:

You work as a database administrator for Supportcenter.cn. When you tried to connect to the database, you received the following error:   ERROR:   ORA-12541:TNS:no_listener   You found that the listener is not running on the server, so you issued the following command in the Listener Control utility to start the listener.   lsnrctl>START   What statement is true?()

  • A、It would attempt to start the default listener
  • B、It would start the most recently created listener.
  • C、It would display an error with a message asking for the listener name to be specified.
  • D、It would show you a list of listeners and prompts for the listener name that you want to start.

正确答案:A

更多相关问题