Question

PowerShell : What do these command do? Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=$true -ComputerName . | Format-Table...

PowerShell : What do these command do?

Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=$true -ComputerName . | Format-Table -Property IPAddress

1..254| ForEach-Object -Process {Get-WmiObject -Class Win32_PingStatus -Filter ("Address='192.168.1." + $_ + "'") -ComputerName .} | Select-Object -Property Address,ResponseTime,StatusCode

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please find the screenshot of this running command so that I can able to describe you better:

So, if we look at the solution, the first part of the command will give me the IP address of the devices present in the network along with the MAC addresses of the devices connected.

Second part of the command, it will look for each and every IP present in the 192.168.1.x series and tries to ping those hosts and results the output into address, Response Time and Status Code. For my scenario, I don’t have any host present in that address range hence I am getting no response time but a status code.

Add a comment
Know the answer?
Add Answer to:
PowerShell : What do these command do? Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=$true -ComputerName . | Format-Table...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 4. Using Technique 1 from the text book, write the PowerShell script that will create a...

    4. Using Technique 1 from the text book, write the PowerShell script that will create a custom object named Q4 with the properties and values as indicated in the below table. The last line in your script should output the object to the screen. Property Name FirstName LastName ProcessName Property Value Your first name Your last name The name of the first process running on your VM. You should use Get-Process in your script to retrieve this name. The ID...

  • I have a class called DataPoint that is defined like the following. Currently, it goes through...

    I have a class called DataPoint that is defined like the following. Currently, it goes through each property on an object and based on the DataPoint, it does some formatting like padding, trimming, etc... before it will save the record to the database. The current implementation makes a database call for each property which is slow, so my first step is to get everything at once into an in-memory collection. What else can I do below? Is this a good...

  • database management What command(s) would you use to get rid of the TripGuides table? [Show the...

    database management What command(s) would you use to get rid of the TripGuides table? [Show the SQL Server instruction, but do not execute it]

  • True or false? True or false? Question 63 Based on the Customer table below, which command...

    True or false? True or false? Question 63 Based on the Customer table below, which command lists all information from the table concerning customer 282? CustomerNum CustomerName --- Street City State Zip 148 Al's Appliance 28 Greenway Filmore FL 33336 282 Brookings 3827 Devon Grove FL 33321 Question 37 You have your project all set locally and on the server. You want to now make changes to your site. Which of the following is the last step of the process?...

  • ✓ Format Painter Formatting Styles Filter Select Table Styles Clipboard Font Alignment Number Cells Editing AC25...

    ✓ Format Painter Formatting Styles Filter Select Table Styles Clipboard Font Alignment Number Cells Editing AC25 1 x ✓ fx oo; ; ACADAE 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 12 Key Assumptions 3 Square footage 1,910 4 Property price ($) 101,500 5 Down payment 10.0% 6 Interest rate 7 Closing costs at start 8,000 8 Broker fee in year 25 5.0% Property...

  • Submit: a properly normalized ERD in class standard ERD format for the Property Spreadsheet: Given the...

    Submit: a properly normalized ERD in class standard ERD format for the Property Spreadsheet: Given the following spreadsheet: PID COUNTY 1234 Cobb 1235 Cherokee 1236 Fulton 1237 Clark 1238 Cowetta 1239 Cobb 1240 Cobb 1241) Cobb 1242 Cherokee 1243 Doughery 1244 Fulton 1245 Fulton LOT AREA PRICE TAX 100 A $ 456k| .05 200 B S 496 .05 300 C S 376 .07 400 D S 145k| .06 500 E S 115 .06 100 A S 456k .05 100 B...

  • What minimum Z score does a student need to get to be ranked in the top 1% of her/his class? (Use the Z table) O ar...

    What minimum Z score does a student need to get to be ranked in the top 1% of her/his class? (Use the Z table) O around 0.25 O around 2.33 O between 3.5 and 4.0 O around 1 Question 15 1 pts A sample was collected to test a hypothesis. What does it mean when the null hypothesis was rejected at alpha level of.01? O The probability was less than .01 that a sample like this could have been obained...

  • For Microsoft Access Define the four types of Action Queries: Make-table, Update, Delete, Append What is...

    For Microsoft Access Define the four types of Action Queries: Make-table, Update, Delete, Append What is an index? What field is automatically indexed? Advantages and disadvantages? What is a macro? An action? An argument? What is a command button? What are events? Event properties? Examples of event properties? What is a submacro? How is it represented in code? Why are the InputBox function and GoToControl action useful for the FindRecord action? What is the ExportWithFormatting action typically used for? What...

  • Interfaces 1. What is inside an interface definition? What does a class do to an interface...

    Interfaces 1. What is inside an interface definition? What does a class do to an interface and what keyword is involved? How does a class do this to an interface (what should we find in the class)? Can an interface have a generic parameter? How do you instantiate an interface as an object? What methods can’t you use on an interface type? Abstract Data Types 2. What does an ADT define? Does an ADT specify programming language and/or data structures...

  • Create a UML diagram to help design the class described in exercise 3 below. Do this...

    Create a UML diagram to help design the class described in exercise 3 below. Do this exercise before you attempt to code the solution. Think about what instance variables will be required to describe a Baby class object; should they be private or public? Determine what class methods are required; should they be private or public? 3. Write Java code for a Baby class. A Baby has a name of type String and an age of type integer. Supply two...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT