Wednesday, August 8, 2018

PS 1.8.2 Working with File System

Below are some cmdlets you can use to work with cmdlets

cd \
dir
help dir 

cd training: # training is a psdrive 
dir | more
#lists just folders
dir -Directory
#list just files and recurse
dir -File -Recurse
#filtering is can by tricky
#this will work
dir .\*.txt 
dir -filter *.txt
#so will this if your recurse
dir -include *.txt -Recurse

help filesystem

Featured Posts

Adding Accesspolicy to KeyVault for Service Principal Using Portal and Powershell

  Scripts path : https://drive.google.com/drive/folders/1sbBpnVFgXhUIXLdf2E9heyWDeU2f9427?usp=sharing  Adding Accesspolicy to KeyVault for S...