cipher /S:D:\ /H | findstr "^E"
In the above example, we are looking for encrypted files on drive
cipherlists all files and folders, and indicates whether the files or the folders are encrypted. The switch
/His to instruct
cipherto look for hidden or system files as well. Command
findstrallows us to use Regular Expression, and In "
^" indicates the beginning of a line and "
E" indicates that the file or the folder is encrypted.