网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
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 convertTo-SecureString Password -AsPlainText -force)}

B

import-csv Accounts.csv Foreach {New-ADUser -Name $_.Name -Enabled $true -AccountPassword convertTo-SecureString $_.Password -AsPlainText -force)}

C

import-csv Accounts.csv foreach {New-ADUser -Name $_.Name -Enabled $true -AccountPassword Read-Host -AsSecureString Password)}

D

import-csv Accounts.csv Foreach {New-ADUser -Name $_.Name -Enabled $true -AccountPassword (Read-Host -AsSecureString $_.Password)}


参考答案

参考解析
解析: 暂无解析
更多 “单选题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 convertTo-SecureString Password -AsPlainText -force)}B import-csv Accounts.csv Foreach {New-ADUser -Name $_.Name -Enabled $true -AccountPassword convertTo-SecureString $_.Password -AsPlainText -force)}C import-csv Accounts.csv foreach {New-ADUser -Name $_.Name -Enabled $true -AccountPassword Read-Host -AsSecureString Password)}D import-csv Accounts.csv Foreach {New-ADUser -Name $_.Name -Enabled $true -AccountPassword (Read-Host -AsSecureString $_.Password)}” 相关考题
考题 Your network contains a server that runs Windows Server 2008 R2.You plan to create a custom script.You need to ensure that each time the script runs, an entry is added to the Application event log.Which tool should you use?()A.EventcreateB.EventvwrC.WecutilD.Wevtutil

考题 You configure and deploy a Group Policy object (GPO) that contains AppLocker settings.     You need to identify whether a specific application file is allowed to run on a computer.     Which Windows PowerShell cmdlet should you use()A、Get-AppLockerFileInformationB、Get-GPOReportC、Get-GPPermissionsD、Test-AppLockerPolicy

考题 You need to design phase one of the new authentication strategy. Your solution must meet business requirements.What should you do?()A、Install a Windows Server 2003 enterprise root CA, Configure certificate templates for autoenrollmentB、Install a Windows Server 2003 enterprise subordinate CA, Configure certificate templates for autoenrollmentC、Install a Windows Server 2003 stand-alone subordinate CA, Write a logon script for the client computers in the HR department that contains the Certreq.execommandD、Install a Windows Server 2003 stand-alone root CA,Write a logon script for the client computers in the HR department that contains the Certreq.execommand

考题 Your network contains a server that runs Windows Server 2008 R2.You plan to create a custom script.You need to ensure that each time the script runs, an entry is added to the Application event log.Which tool should you use?()A、EventcreateB、EventvwrC、WecutilD、Wevtutil

考题 You work as a network administrator at ABC.com.The ABC.com network consists of a single domain named ABC.com.  All servers on the ABC.com network have Windows Server 2012 R2 installed and all client computers have Windows 8 installed.The ABC.com network contains a domain controller named ABC_DC04 and member server named ABC_SR11.ABC_SR11 runs a Core Installation of Windows Server 2012 R2.How would you configure THESABCING_DC04 to remotely view the event log on ABC_SR11?()A、You should use the Windows Powershell to run the Get-NetFirewallRule command.B、You should use the Windows Powershell to run the Set-NetFirewallProfile commandC、You should use the Windows Powershell to run the New-NetIPsecRule command.D、You should use the Windows Powershell to run the Show-NetIPsecRule command.

考题 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-ToD、import-csv Accounts.csv Foreach {New-ADUser -Name $_.Name -Enabled $true - AccountPassword (Read-Host

考题 Your network contains an Active Directory domain. The domain contains two domain controllers  named DC1 and DC2.   You perform a full backup of the domain controllers every night by using Windows Server Backup. You update a script in the SYSVOL folder.   You discover that the new script fails to run properly.   You need to restore the previous version of the script in the SYSVOL folder. The solution must minimize  the amount of time required to restore the script.  What should you do first()A、Run the Restore-ADObject cmdlet.B、Restore the system state to its original location.C、Restore the system state to an alternate location.D、Attach the VHD file created by Windows Server Backup.

考题 You have three computers that run Windows 7. You use Windows PowerShell to perform remote administration tasks on all three computers. You need to remotely administer all three  computers by usingPowerShell.  Which PowerShell cmdlet should you use?()A、Enable-PSRemotingB、Enable-PSSessionConfigurationC、New-PSDriveD、New-PSSession

考题 You have an Exchange Server 2010 organization. You need to install the Hub Transport server role on a new server. You install all the prerequisites for the Hub Transport role on the server.  What should you do next()?  A、From Windows PowerShell, run the Add-WindowsFeature cmdlet.B、From Windows PowerShell, run the Install-TransportAgent.ps1 script.C、At the command prompt, run Setup.com /M:Install /R:Ht.D、At the command prompt, run ServerManagerCmd.exe -IP Exchange-HUb.xml.

考题 You have a single server that has a Server Core Installation of Windows Server 2012 R2. How would you install the graphical user interface (GUI) to this server?()A、You should use Windows PowerShell to run the Enable-NetFirewallRule command.B、You should use Windows PowerShell to run the Add-WindowsPackage command.C、You should use Windows PowerShell to run the Install-WindowsFeature command.D、You should use Server Manager console on to add the User Interfaces.E、You should use Server Manager console to add the Infrastructure feature.F、You should use Server Manager console to add the Windows feature.

考题 Your company purchases a new application to deploy on 200 computers. The application requires  that you modify the registry on each target computer before you install the application.     The registry modifications are in a file that has an .adm extension.     You need to prepare the target computers for the application.     What should you do()A、Import the .adm file into a new Group Policy Object (GPO). Edit the GPO and link it to an organizational unit that computer.B、Create a Microsoft Windows PowerShell script to copy the .adm file to the startup folder of each target computer.C、Create a Microsoft Windows PowerShell script to copy the .adm file to each computer. Run the REDIRUsr CONTAID、Create a Microsoft Windows PowerShell script to copy the .adm file to each computer. Run the REDIRCmp CONTA

考题 You deploy two Windows Server 2008 R2 Hyper-V servers. You manage the servers by using Microsoft System Center Virtual Machine Manager (VMM) 2008 R2. You need to ensure that you can restore virtual machines (VMs) in the event of a hardware failure. What should you do?()A、Use a PowerShell script to create a snapshot of each VM. Run the script every 60 minutes on each Hyper-V serverB、Use a PowerShell script to create a checkpoint of each VM. Run the script every 60 minutes on each Hyper-V serverC、Use a PowerShell script to pause, export, and start each VM, and then to copy the export to the opposite Hyper-V server. Run the script once per day on each Hyper-V serverD、Use a PowerShell script to shut down, export, and start each VM, and then to copy the export to the opposite Hyper-V server. Run the script once per day on each Hyper-V server

考题 Your network contains a server that runs Windows Server 2008 R2.You need to create a script to identify known configuration issues. What should you include in the script?() A、the Get-BPAModel cmdletB、the Invoke-BPAModel cmdletC、the Mrinfo toolD、the Systeminfo tool

考题 You work as an administrator at ABC.com. The ABC.com network consists of a single domain named ABC.com.ABC.com has a domain controller, named ABC-DC01, which has Windows Server 2012 R2  installed. Another ABC.com domain controller, named ABC-DC02, has Windows Server 2008 R2 installed.You have deployed a server, named ABC-SR15, on ABC.com’s perimeter network. ABC-SR15 is running a Server Core Installation of Windows Server 2012 R2.You have been instructed to make sure that ABC-SR15 is part of the ABC.com domain.  Which of the following actions should you take?()A、You should consider making use of Set-Computer Windows PowerShell cmdlet on ABC-SR15.B、You should consider making use of Get-Computer Windows PowerShell cmdlet on ABC-SR15.C、You should consider making use of Test-Computer Windows PowerShell cmdlet on ABC-SR15.D、You should consider making use of Add-Computer Windows PowerShell cmdlet on ABC-SR15.

考题 单选题Your company purchases a new application to deploy on 200 computers. The application requires that you modify the registry on each target computer before you install the application. The registry modifications are in a file that has an .adm extension. You need to prepare the target computers for the application. What should you do()A Import the .adm file into a new Group Policy Object (GPO). Edit the GPO and link it to an organizational unit that contains the target computers.B Create a Microsoft Windows PowerShell script to copy the .adm file to the startup folder of each target computer.C Create a Microsoft Windows PowerShell script to copy the .adm file to each computer. Run the REDIRUsr CONTAINER-DN command on each target computer.D Create a Microsoft Windows PowerShell script to copy the .adm file to each computer. Run the REDIRCmp CONTAINER-DN command on each target computer.

考题 单选题You work as a network administrator at ABC.com.The ABC.com network consists of a single domain named ABC.com.  All servers on the ABC.com network have Windows Server 2012 R2 installed and all client computers have Windows 8 installed.The ABC.com network contains a domain controller named ABC_DC04 and member server named ABC_SR11.ABC_SR11 runs a Core Installation of Windows Server 2012 R2.How would you configure THESABCING_DC04 to remotely view the event log on ABC_SR11?()A You should use the Windows Powershell to run the Get-NetFirewallRule command.B You should use the Windows Powershell to run the Set-NetFirewallProfile commandC You should use the Windows Powershell to run the New-NetIPsecRule command.D You should use the Windows Powershell to run the Show-NetIPsecRule command.

考题 单选题Your network contains an Active Directory domain named contoso.com. The domain contains a server named Server1. Server1 runs Windows Server 2012 R2 and has the Hyper- V server role installed. You need to log the amount of system resources used by each virtual machine. What should you do?()A From Windows PowerShell,run the Enable-VMRe5ourceMetering cmdletB From Windows System Resource Manager,enable AccountingC From Windows System Resource Manager,add a resource allocation policyD From Windows PowerShell,run the Measure-VM cmdlet

考题 单选题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.

考题 单选题You configure and deploy a Group Policy object (GPO) that contains AppLocker settings.  You need to identify whether a specific application file is allowed to run on a computer.   Which Windows PowerShell cmdlet should you use()A Get-AppLockerFileInformationB Get-GPOReportC Get-GPPermissionsD Test-AppLockerPolicy

考题 单选题Your network contains a server that runs Windows Server 2008 R2.You need to create a script to identify known configuration issues. What should you include in the script?()A the Get-BPAModel cmdletB the Invoke-BPAModel cmdletC the Mrinfo toolD the Systeminfo tool

考题 单选题You administer 80 computers that run Windows 7. The computers have static IP addresses. You need tochange the static IP addresses on all the computers by using a startup script.  Which command should youinclude in the startup script ?()A Ipconfig.exeB Nbtstat.exeC Netstat.exeD Netsh.exe

考题 单选题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-ModuleB Register-ObjectEventC Set-ADDomainD Set-ADUser

考题 单选题Your network contains an Active Directory domain.     You need to restore a deleted computer account from the Active Directory Recycle Bin.     What should you do()A From the command prompt, run recover.exe.B From the command prompt, run ntdsutil.exe.C From the Active Directory Module for Windows PowerShell, run the Restore-Computer cmdlet.D From the Active Directory Module for Windows PowerShell, run the Restore-ADObject cmdlet.

考题 单选题You have three computers that run Windows 7. You use Windows PowerShell to perform remote administration tasks on all three computers. You need to remotely administer all three  computers by usingPowerShell.  Which PowerShell cmdlet should you use?()A Enable-PSRemotingB Enable-PSSessionConfigurationC New-PSDriveD New-PSSession