Questions Related to technology

Multiple choice technology
  1. \$Keys = Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Installed \$Items = \$keys |foreach-object {Get-ItemProperty \$_.PsPath}
  2. \$Keys = Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall \$Items = \$keys |foreach-object {Get-ItemProperty \$_.PsPath}
  3. \$Keys = Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall \$Items = \$keys |foreach-object {Get-ChildItem \$_.PsPath}
  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Multiple choice technology
  1. \$strComputer = "Computer name" \$colRAM = Get-WmiObject -Class "win32_PhysicalMemory" -namespace "root\CIMV2"-computerName \$strComputer Foreach (\$objRAM In \$colRAM) { "Memory Installed: " + \$objRAM.DeviceLocator &quo
  2. \$strComputer = "Computer name" \$colRAM = Get-WmiObject -Class "win32_PhysicalMemoryArray" -namespace "root\CIMV2"-computerName \$strComputer Foreach (\$objRAM In \$colRAM) { "Memory Installed: " + \$objRAM.DeviceLocator
  3. \$strComputer = "Computer name" \$colRAM = Get-WmiObject -Class "win32_PhysicalMemorySize" -namespace "root\CIMV2"-computerName \$strComputer Foreach (\$objRAM In \$colRAM) { "Memory Installed: " + \$objRAM.DeviceLocator
  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice technology
  1. Get-WMIObject -List| Where{$_.name -match "^Win32_"} | Sort Name | Format-Table Name
  2. Get-WMIObject -Table| Where{$_.name -match "^Win32_"} | Sort Class | Format-Table Name
  3. Get-WMIObject -List| Where{$_.name -notlike "^Win32_"} | Sort Name | Format-Table Name
  4. Get-WMIObject -List| Where{$_.name -like "^Win32_*"} | Sort Name | Format-Table Name
Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice technology
  1. get-wmiobject -Class "win32_Desktop" -namespace "root\CIMV2"-computername $computername | Format-List *
  2. get-wmiobject -Class "win32_Enviornmanet" -namespace "root\CIMV2"-computername $computername | Format-List *
  3. get-wmiobject -Class "win32_TimeZone" -namespace "root\CIMV2"-computername $computername | Format-List *
  4. get-wmiobject -Class "win32_TimeZoneSetting" -namespace "root\CIMV2"-computername $computername | Format-List *
Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology
  1. $strComputer ="Compuet name" $colItems = GWMI -cl "Win32_NetworkAdapterConfiguration" -name "root\CimV2"-comp $strComputer -filter "IpEnabled = TRUE" Write-Host "MAC Address: " $objItem.MacAddress Write-Ho
  2. $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
  3. $strComputer ="Compuet name" $colItems = GWMI -cl "Win32_NetworkAdapterConfiguration" -name "root\CimV2"-comp $strComputer -filter "IpEnabled = FALSE" Write-Host "MAC Address: " $objItem.MacAddress Write-H
  4. $strComputer ="Compuet name" $colItems = GWMI -cl "Win32_ NetworkAdapterDetails " -name "root\CimV2"-comp $strComputer -filter "IpEnabled = FALSE" Write-Host "MAC Address: " $objItem.MacAddress Write-Host
Reveal answer Fill a bubble to check yourself
A Correct answer