Monday, May 18, 2015

Power-shell , Filter and Projection

To getstart with any command in PS, run help.

image

image

To filter it, use the where-object or use ? directly.

image

get running service

image

Or just using ? instead.

image

Using Select to run a projection, select name, status only

image

also, you can skip and tail the results

image

sellect last 5 only

image

convert the result to a Html page? using the convert*

image

to show it in a gridview

image

No comments:

 
Locations of visitors to this page