Powershell to unblock all the files in a folder -


trying make .bat can drop in folder, when run unblock files in folder...

@echo off powershell.exe -noprofile -executionpolicy bypass -command "& {get-childitem '%~dp0' | unblock-file}" exit 

...keeps telling me "the term 'unblock-file' not recognized name of cmdlet..." no matter how try format it, going wrong?

i'm trying can copy .bat folder (and not have copy .bat , .ps1) thought 1-line powershell "call" way go?

the unblock-file command available powershell 3.0. upgrade powershell , script should work


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -