Thursday, 23 July 2020

powershell 1

get-alias

get-childitem | select-object name
show file names in folder

get-childitem | select-object -first 2
show first 2 files in folder

get-childitem | select-object -last 2

 get-childitem | select-object -index 2
select 3rd file in folder

get-childitem | select-object -index 2 | select-object name

get-childitem | select-object -index 2 | get-member
show property info

(get-childitem | select -first 2).name

get-help select

get-help select -full

get-help *printer*

get-command *printer*

reference:
https://www.youtube.com/watch?v=TUNNmVeyjW0

No comments:

Post a Comment