ch 2 windows server 2019

Ace your homework & exams now with Quizwiz!

Which of the following are valid methods for executing the superscript.ps1 file within PowerShell, assuming it is in your current directory, C:\Scripts? (Choose all that apply.) a. C:\Scripts\superscript.ps1 b. superscript.ps1 c. ./superscript.ps1 d. .\superscript.ps1

a. C:\Scripts\superscript.ps1 c. ./superscript.ps1 d. .\superscript.ps1

Which of the following can be used to open a new Windows PowerShell prompt that is connected to a remote computer (provided that winRM is enabled)? a. Enter-PSSession computername b. Invoke-Command computername c. Execute-Shell computername d. Enable-PSRemoting computername

a. Enter-PSSession computername

Which of the following features can be configured within Control Panel? (Choose all that apply.) a. File caching and flushing b. Environment variables c. Power options d. Startup and recovery options

a. File caching and flushing b. Environment variables c. Power options d. Startup and recovery options

Which of the following are panes that you will see listed for a server, server group, or server role within Server Manager? (Choose all that apply.) a. Services b. Events c. Roles and Features d. Performance

a. Services b. Events c. Roles and Features d. Performance

What command could you execute within PowerShell to learn about the syntax of the Get-WMIObject cmdlet? (Choose all that apply.) a. help Get-WMIObject b. Get-Help Get-WMIObject c. get-help Get-WMIObject d. Get-Help Get-WMIObject -online

a. help Get-WMIObject b. Get-Help Get-WMIObject c. get-help Get-WMIObject d. Get-Help Get-WMIObject -online

What should be your first course of action when you see a device marked Unknown within Device Manager? a. Install the manufacturer-provided driver package on the system and reboot. b. Right-click the Unknown device within Device Manager and choose Update driver. Supply the manufacturer-provided driver files if prompted. c. Right-click the Unknown device within Device Manager and choose Uninstall device. Reboot your system afterwards. d. Right-click the Unknown device within Device Manager and choose Properties. Note whether there is a resource conflict.

b. Right-click the Unknown device within Device Manager and choose Update driver. Supply the manufacturer-provided driver files if prompted.

Which of the following PowerShell constructs is best to use when you wish to perform a specific action based on the value of a single variable? a. if b. switch c. do...while d. for

b. switch

Which of the following utilities can be used to manually install a new device that is not fully PnP-compliant? a. Windows PowerShell b. Device Manager c. Devices and Printers utility d. Server Manager

c. Devices and Printers utility

Which of the following tools within the navigation pane of the Windows Admin Center can be used to perform capacity planning? a. Performance b. Services c. System Insights d. Azure hybrid services

c. System Insights

Your system has three physical storage devices. Windows Server 2019 is installed on the first physical storage device. What can you do to increase the performance of the system as much as possible? a. Move the paging file to the second physical storage device b. Move the paging file to the third physical storage device c. Create a paging file on the second and third physical storage devices d. Create a paging file on the second and third physical storage devices and remove the page file from the first storage device

d. Create a paging file on the second and third physical storage devices and remove the page file from the first storage device

Which of the following aliases can be used to switch to a different PowerShell provider? a. sp b. ps c. cd d. sl

d. sl

In the following example, three loops will be executed. $args = "one","two","three","four" foreach ($i in $args) {write $i -foregroundcolor magenta} (true or false)

false

The Sigverif tool can be used to verify and repair corrupt system files. (true or false)

false

PowerShell console files use the .ps1 extension. (true or false)

false <PowerShell console files use the .psc1 extension, whereas PowerShell script files use the .ps1 extension.>

Server Manager can be used to monitor and manage other Windows Server 2008 and later systems. (true or false)

true

Some software issues require that you modify the value of an entry within the Windows Registry to fix a system problem. (true or false)

true

System environment variables apply to any user logged onto the system. (true or false)

true

The Tab key can be used to auto complete a PowerShell cmdlet as you are typing it. (true or false)

true

The Test-NetConnection cmdlet can be used to test network connectivity to a target computer. (true or false)

true

The Windows Admin Center allows you to obtain a Windows PowerShell session within your Web browser. (true or false)

true


Related study sets

United Nations History and Functions

View Set