Windows PowerShell and System Center Operations Manager Quiz
Covers Windows PowerShell scripting and SCOM 2007 administration including cmdlets, management packs, monitoring, and system configuration
Questions
Which of the below CmdLet will give the MAC and IP address of a Remote system?
- $strComputer ="Compuet name" $colItems = GWMI -cl "Win32_NetworkAdapterConfiguration" -name "root\CimV2"-comp $strComputer -filter "IpEnabled = TRUE" Write-Host "MAC Address: " $objItem.MacAddress Write-Ho
- $strComputer ="Compuet name" $colItems = GWMI -cl "Win32_NetworkAdapterDetails" -name "root\CimV2"-comp $strComputer -filter "IpEnabled = TRUE" Write-Host "MAC Address: " $objItem.MacAddress Write-Host &qu
- $strComputer ="Compuet name" $colItems = GWMI -cl "Win32_NetworkAdapterConfiguration" -name "root\CimV2"-comp $strComputer -filter "IpEnabled = FALSE" Write-Host "MAC Address: " $objItem.MacAddress Write-H
- $strComputer ="Compuet name" $colItems = GWMI -cl "Win32_ NetworkAdapterDetails " -name "root\CimV2"-comp $strComputer -filter "IpEnabled = FALSE" Write-Host "MAC Address: " $objItem.MacAddress Write-Host
If the below code will be executed what will be the output? $strA = "fast" Write-Host 'Tom drives a $strA car.'
- Tom drives a fast car
- Tom drives a $strA car.
- Tom drives a “fast” car.
- none of the above
Which of the below CMdLet is used in PowerShell to get the list of Scheduled Tasks created in Local/Remote System?
- $colItems = get-wmiobject -class " Win32_Directory " -namespace "root\CIMV2"-computername $strComputer
- $colItems = get-wmiobject -class " Win32_Share " -namespace "root\CIMV2"-computername $strComputer
- $colItems = get-wmiobject -class "Win32_ScheduledJob" -namespace "root\CIMV2"-computername $strComputer
- $colItems = get-wmiobject -class " Win32_SystemPartitions " -namespace "root\CIMV2"-computername $strComputer
What will be the value of the variable $Result after executing the below PowerShell Script? $Result = "10.99MB" $Result = $Result.replace("MB","") $Result = ([double]$Result *1024 *1024)
- 11523850.24
- 11253.76
- 11800422645.76
- 11524432850.24
Which of the below CmmLet give the history of the commands that has been executed in a current PowerShell Session?
- Invoke-History
- Invake-History
- Get-History
- Export-Console
Which of the below CmdLet will display a Pop Window in Powershell?
- $a = new-object -comobject wscript.Window $intAnswer = $a.popup("This is a Pop up?",0,"Select Option",3)
- $a = new-object -comobject wscript.shell $intAnswer = $a.Window("This is a Pop up?",0,"Select Option",4)
- $a = new-object -comobject wscript.shell $intAnswer = $a.popup("This is a Pop up?",0,"Select Option",4)
- $a = new-object -comobject wscript.shell $intAnswer = $a.Window("This is a Pop up?",0,"Select Option",5)
Which among the below is the correct order of action for Creating and Using a New Snap-In?
- I. Create a Snap-In II. Install the Snap-In III. Register the Snap-In IV. Add the Snap-In to console
- I. Create a Snap-In II. Register the Snap-In III. Install the Snap-In IV. Add the Snap-In to console
- I. Create a Snap-In II. Add the Snap-In to console III. Install the Snap-In IV. Register the Snap-In
- none of the above
Which of the below statements are True, while signing a Windows PowerShell script file?
- Create a self signed certificate file using “makecert” tool
- Enable strong Private Key protection for the certificate
- Sign the script file using Set_authenticodeSignature
- Use the Public key each time to execute the script file
The below statement is True/False? “A PowerShell Script can be compiled to run as an exe file”
- True
- False
The below statement is True/False? “Windows PowerShell Drives are not different from Windows Drives”
- True
- False
Select all that applies. A Tee-Object is used to:
- Pipe an object input to a file or variable
- sends the output of a command in two directions
- Tee-Object uses Unicode encoding when it writes to files
- input data to CmdLets without using variables
Select the Valid Snap-Ins available in Power Shell for SCOM 2007?
- Microsoft.EnterpriseManagement.OperationsManager.Client
- Microsoft.EnterpriseManagement.OperationsManager.server
- Microsoft.EnterpriseManagement.OperationsManager.SQLserver
- Microsoft.EnterpriseManagement.OperationsManager.ScomServer
The account that is used to read and write information in the Operations Manager database?
- Data Warehouse Write Account
- Data Reader Account
- Action account
- SDK
Which of the following are not parts of management pack?
- Rule
- Monitor
- Tasks
- Agent
The status of the discovered item is unknown. There is no monitor available for this specific discovered item then agent States is?
- Green check mark
- Red check mark
- Gray agent. The check mark and agent name are grayed out.
- Green circle with no check mark
Which of the following is not a user role in SCOM 2007 ?
- Advanced Operator
- Author
- Operator
- MP Admin
The tool is used to export management pack settings?
- MP view tool
- SCOM 2007
- Authoring tool
- MAN MAN tool
How can we create auto groups in SCOM 2007?
- Creating an Attribute
- Creating an Task
- Creating an Monitor
- Creating an Rule
Which of the following are the prerequisite for installation of SCOM 2007 agent?
- Microsoft Core XML Services (MSXML) 6.0
- SQL Agent.
- Active directory
- None of the above