DaveWentzel.com            All Things Data

FileSystem Provider


Some sample commands:

 

get-psdrive

 

get-childitem *.txt

which is the same as:

dir *.txt

 

OS Operations

stop-process

stop-service

stop-service -servicename *sql* -confirm

 


FileSystem Operations

 
















new-item -path "c:\whatever" -type directory

create a directory

copy-item -path <> -destination <> -recurse

copy files and folders
remove-item
delete files and folders

 

 

 

Add new comment