Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the Get-CimClass cmdlet used for? What difference will it make to the output by moving the asterisk(*) to the beginning, end, or both


  1. What is the Get-CimClass cmdlet used for?
  2. What difference will it make to the output by moving the asterisk(*) to the beginning, end, or both in the below script?

Get-CimClass -ClassName *computer

Get-CimClass -ClassName computer*

Get-CimClass -ClassName *computer*

  1. The show output is produced with the below script. What changes can we make to further filter and obtain only the Win32 classes?

Get-CimClass -ClassName *computerSystem*

CimClassName CimClassMethods CimClassProperties

------------ --------------- ------------------ Win32_ComputerSystemEvent {} {SECURITY_DESCRIPTOR, TI...

CIM_ComputerSystem {} {Caption, Description, I...

CIM_UnitaryComputerSystem {SetPowerState} {Caption, Description, I... Win32_ComputerSystem {SetPowerState, R... {Caption, Description, I... CIM_ComputerSystemPackage {} {Antecedent, Dependent}

Win32_ComputerSystemProcessor {} {GroupComponent, PartCom...

CIM_ComputerSystemResource {} {GroupComponent, PartCom...

CIM_ComputerSystemMappedIO {} {GroupComponent, PartCom...

CIM_ComputerSystemDMA {} {GroupComponent, PartCom...

CIM_ComputerSystemIRQ {} {GroupComponent, PartCom... Win32_ComputerSystemProduct {} {Caption, Description, I...

  1. What is the use of the "?" character in the below CIM searches?

Get-CimClass -ClassName Win32_computerSystem?????

  1. What does the -method parameter specify in the Get-CimClass cmdlet?
  2. What does the select object -expandpropery parameter do?
  3. What is the use of the -Unique parameter and sort-object in the below script?

Get-CimClass -ClassName * -QualifierName * | Select-Object -

ExpandProperty Ci mClassQualifiers | Select-Object Name -Unique | Sort-Object Name

  1. What is the use of the worddeprecatedunder-QualifierNameas in the below command?

Get-CimClass -QualifierName deprecated

  1. What is a method to search for dynamic classes under *time classname?
  2. What is the use of the below set of commands?

$disk = Get-CimInstance -ClassName Win32_LogicalDisk -KeyOnly

Get-CimAssociatedInstance -InputObject $disk[1]


  1. What is the reason for the below error?


image
  1. What are two methods of correcting the above error? 


Administrator: Windows PowerShell PS C:\> $logon = Get-CimInstance win32_LogonSession -Keyonly PS C:\> Get-CimAssociated Instance Slogon Get-CimAssociated Instance: Cannot convert System.object[] to the type 'Microsoft. Management. Infrastructure. CimInstance required by parameter 'Inputobject'. Specified method is not supported. At line:1 char:27 + Get-CimAssociated Instance $logon ~~~~~~ PS C:\> + CategoryInfo + FullyQualifiedErrorId: Cannot ConvertArgument, Microsoft. Management. mmand : Invalid argument: (:) [Get-CimAssociated Instance], ParameterBindingException X Infrastructure.cimcmdlets.GetCimAssociated InstanceCo

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Computer Network questions

Question

4. Greet students at the door to the class every day.

Answered: 1 week ago

Question

=+7.2 Large-Sample Confidence Intervals for a Population Mean

Answered: 1 week ago