Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the command to retrieve the default WMI settings for a user? What is the default namespace setting of WMI? What is the command


  1. What is the command to retrieve the default WMI settings for a user?
  2. What is the default namespace setting of WMI?
  3. What is the command to query the WMI settings on a remote computer?
  4. What are some cmdlets and logical operators that can be used to improve the output from

WMI?

  1. What is the alias for Get-CimInstance cmdlet?
  2. In the below script, what does the -autosize parameter do?

$Disk=Get-CimInstanceWin32_LogicalDisk-Filter'drivetype = 3'|

Measure-Object-Propertyfreespace -Minimum-Maximum| Select-

Object-Propertyproperty,maximum,minimum| Format-Table-

AutoSize

  1. What do the the values of the 3,4,5 and 6 drives in The Win32_LogicalDisk WMI class property refer to?
  2. In the below script what is the use of Sort-Object and Select-Object?

$Query="Select Name, Path, AllowMaximum from Win32_Share"Get-CimInstance-Query$Query|Sort-Objectname|Select-Objectname,Path,AllowMaximum

  1. What is wrong with the syntax in the highlighted part of the below script?

Get-CimInstanceWin32_Process-Filter"name="explorer.exe""|

Format-Tablehandlecount,quotaNonPagedPoolUsage,PeakVirtualSize,

WorkingSetSize,VirtualSize,UserModeTime,KernelModeTime,ProcessID,

Name

  1. What is the use of the "Where" parameter in Select-Object?

Eg:$$Query="Select Name from Win32_Share where name = 'C$'"

  1. What are some benefits of declaring a variable for a filter parameter?

Eg$Filter="name='c$'"

Chapter 12 Assignemnt Questions

  1. What is one method to enable WMI access on a Windows 10 PC?
  2. What is the alias for Get-WMIObject?
  3. What is a likely reason for the below error output from PowerShell on issuing the command?

command

PSC:\>gwmiwin32_bios-cnC10gwmi

Error-output

gwmi :TheRPCserverisunavailable. (ExceptionfromHRESULT:

0x800706BA)

Atline:1char:1

+gwmiwin32_bios-cnC10+~~~~~~~~~~~~~~~~~~~~~~~~~~

+CategoryInfo :InvalidOperation: (:) [GetWmiObject],COMException +FullyQualifiedErrorId:

GetWMICOMException,Microsoft.PowerShell.Commands.

GetWmiObjectCommand

4.Q4. What is a likely reason for the below error output from PowerShell on issuing the command?

command

PSC:\Users\ed.NWTRADERS>gwmiwin32_bios-cnC10

Error-output

gwmi:Accessisdenied. (ExceptionfromHRESULT:0x80070005

(E_ACCESSDENIED))

Atline:1char:1

+gwmiwin32_bios-cnC10+~~~~~~~~~~~~~~~~~~~~~~~~~~

+CategoryInfo :NotSpecified: (:)[Get-WmiObject], UnauthorizedAccessException +FullyQualifiedErrorId:

System.UnauthorizedAccessException,Microsoft.PowerShell.

Commands.GetWmiObjectCommand

  1. What is the parameter used if logged in to PS as a non-admin user?
  2. What is a method to save the credentials in the current session?
  3. What is the advantage of running WMI commands through the PowerShell invoke cmdlet?
  4. What are the default remote listening ports of Powershell?
  5. What are two ways to store query data?
  6. What are the three parameters of narrowing down the data in a CIM query?
  7. When are the above parameters not supported in a CIM query?
  8. Whats cmdlet can be used instead of Get-WMIObject [gwmi] if you do not have DCOM and RPC access to the remote system?



Step by Step Solution

3.33 Rating (159 Votes )

There are 3 Steps involved in it

Step: 1

1 The command to retrieve the default WMI settings for a user is GetWmiObject Namespace rootcimv2 Class UserSecurity 2 The default namespace setting for WMI is rootcimv2 3 The command to query the WMI ... 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

Modern Operating Systems

Authors: Andrew S. Tanenbaum, Herbert Bos

4th edition

013359162X, 978-0133591620

More Books

Students also viewed these Computer Network questions