GPReport Use WMI in Power Shell Daniel Smith PDF

Title GPReport Use WMI in Power Shell Daniel Smith
Author Daniel Smith
Course Network Scripting
Institution ECPI University
Pages 1
File Size 99.8 KB
File Type PDF
Total Downloads 15
Total Views 145

Summary

Download GPReport Use WMI in Power Shell Daniel Smith PDF


Description

Use WMI in PowerShell Lab Report 1. Fill in the following table with the WMI Class and the property name that contains the information indicated. The first line is already completed. WMI Class Name

Property

Free space on disk drive

Win32_LogicalDisk

Freespace

CPU speed

Win32_Processor

CurrentClockSpeed

CPU manufacturer

Win32_Processor

Manufacturer

Computer Name

Win32_OperatingSystem

ComputerName

Domain Name

Win32_ComputerSystem

Domain

Name of installed software

Win32_ApplicationService

Name

Operating System

Win32_OperatingSystem

Caption

Service Pack installed

Win32_OperatingSystem

CSDVersion

Name of Running Processes

Win32_Process

ParentProcessId

BIOS manufacturer

Win32_BIOS

Manufacturer

Names of Shared folders

Win32_Share

Name

Memory part number

Win32_PhysicalMemory

PartNumber

Installed service startup mode

Win32_Service

Name

2.

Use the Get-WMIObject cmdlet Property and Filter parameters to perform the following: 

Query the Win32_Process class to see the PIDs for all processes named svchost.exe

Get-WMIObject Win32_Process -Filter * “name=’svchost.exe’” 

Query the Win32_ComputerSystem class on SERVER to show the logged on user

Get-WMIObject Win32_ComputerSystem -ComputerName Daniel-dc-01 | Select-Object -Property user 

Query the Win32_UserAccount class for the names and SIDs of the local users on the W8-Client computer

Get-WMIObject Win32_UserAccount -ComputerName w8-client | Select-Object -Property Name,SID 3. Use the Get-WMIObject cmdlet Query parameter to perform the following: 

Query the Win32_Group class for the name and SID of the administrators group

Get-WMIObject -Query “Select Name,SID from Win32 Group where Name=’Administrators’” 

Query the Win32_PhysicalMemory class for the DataWidth and Capacity of the memory in Bank 0 on the computer DC1

Get-WMIObject -Query “Select DataWidth,Capacity from Win32_PhysicalMemory where BankLabel=’RAM slot #0’” 1

December 28, 2018...


Similar Free PDFs