File and Folder Encryption in Powershell












0














enter image description hereI have folder in my D drive containing a notepad file, I want to checked the (Encrypt Contents to Secure data) which is in properties->Advance option using Powershell code.
I tried a lot but didn't find any solution. Thanks










share|improve this question
























  • Hi, SO is not a scriptwriting service. Please provide at least an example of your work (btw, what you want to achieve is possible and actually very easy using Powershell)
    – bluuf
    Nov 21 at 10:11










  • I upload the image, what I want is that only get checked the "Encrypt Content to Secure Data" option of file using powershell
    – Ghufran Ataie
    Nov 21 at 10:24












  • Please provide a code sample of your own work so far. Using the default Windows encryption is very easy using Powershell, but before I will post an answer I need to see what you have written so far (SO is not a script writing function). As a hint : try doing Get-Item on a file (stick it in a variable) and then call the Encrypt() function...
    – bluuf
    Nov 21 at 11:35










  • I even don't know what command is used for encryption in powershell.
    – Ghufran Ataie
    Nov 21 at 15:03
















0














enter image description hereI have folder in my D drive containing a notepad file, I want to checked the (Encrypt Contents to Secure data) which is in properties->Advance option using Powershell code.
I tried a lot but didn't find any solution. Thanks










share|improve this question
























  • Hi, SO is not a scriptwriting service. Please provide at least an example of your work (btw, what you want to achieve is possible and actually very easy using Powershell)
    – bluuf
    Nov 21 at 10:11










  • I upload the image, what I want is that only get checked the "Encrypt Content to Secure Data" option of file using powershell
    – Ghufran Ataie
    Nov 21 at 10:24












  • Please provide a code sample of your own work so far. Using the default Windows encryption is very easy using Powershell, but before I will post an answer I need to see what you have written so far (SO is not a script writing function). As a hint : try doing Get-Item on a file (stick it in a variable) and then call the Encrypt() function...
    – bluuf
    Nov 21 at 11:35










  • I even don't know what command is used for encryption in powershell.
    – Ghufran Ataie
    Nov 21 at 15:03














0












0








0







enter image description hereI have folder in my D drive containing a notepad file, I want to checked the (Encrypt Contents to Secure data) which is in properties->Advance option using Powershell code.
I tried a lot but didn't find any solution. Thanks










share|improve this question















enter image description hereI have folder in my D drive containing a notepad file, I want to checked the (Encrypt Contents to Secure data) which is in properties->Advance option using Powershell code.
I tried a lot but didn't find any solution. Thanks







powershell






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 10:24

























asked Nov 20 at 20:20









Ghufran Ataie

74




74












  • Hi, SO is not a scriptwriting service. Please provide at least an example of your work (btw, what you want to achieve is possible and actually very easy using Powershell)
    – bluuf
    Nov 21 at 10:11










  • I upload the image, what I want is that only get checked the "Encrypt Content to Secure Data" option of file using powershell
    – Ghufran Ataie
    Nov 21 at 10:24












  • Please provide a code sample of your own work so far. Using the default Windows encryption is very easy using Powershell, but before I will post an answer I need to see what you have written so far (SO is not a script writing function). As a hint : try doing Get-Item on a file (stick it in a variable) and then call the Encrypt() function...
    – bluuf
    Nov 21 at 11:35










  • I even don't know what command is used for encryption in powershell.
    – Ghufran Ataie
    Nov 21 at 15:03


















  • Hi, SO is not a scriptwriting service. Please provide at least an example of your work (btw, what you want to achieve is possible and actually very easy using Powershell)
    – bluuf
    Nov 21 at 10:11










  • I upload the image, what I want is that only get checked the "Encrypt Content to Secure Data" option of file using powershell
    – Ghufran Ataie
    Nov 21 at 10:24












  • Please provide a code sample of your own work so far. Using the default Windows encryption is very easy using Powershell, but before I will post an answer I need to see what you have written so far (SO is not a script writing function). As a hint : try doing Get-Item on a file (stick it in a variable) and then call the Encrypt() function...
    – bluuf
    Nov 21 at 11:35










  • I even don't know what command is used for encryption in powershell.
    – Ghufran Ataie
    Nov 21 at 15:03
















Hi, SO is not a scriptwriting service. Please provide at least an example of your work (btw, what you want to achieve is possible and actually very easy using Powershell)
– bluuf
Nov 21 at 10:11




Hi, SO is not a scriptwriting service. Please provide at least an example of your work (btw, what you want to achieve is possible and actually very easy using Powershell)
– bluuf
Nov 21 at 10:11












I upload the image, what I want is that only get checked the "Encrypt Content to Secure Data" option of file using powershell
– Ghufran Ataie
Nov 21 at 10:24






I upload the image, what I want is that only get checked the "Encrypt Content to Secure Data" option of file using powershell
– Ghufran Ataie
Nov 21 at 10:24














Please provide a code sample of your own work so far. Using the default Windows encryption is very easy using Powershell, but before I will post an answer I need to see what you have written so far (SO is not a script writing function). As a hint : try doing Get-Item on a file (stick it in a variable) and then call the Encrypt() function...
– bluuf
Nov 21 at 11:35




Please provide a code sample of your own work so far. Using the default Windows encryption is very easy using Powershell, but before I will post an answer I need to see what you have written so far (SO is not a script writing function). As a hint : try doing Get-Item on a file (stick it in a variable) and then call the Encrypt() function...
– bluuf
Nov 21 at 11:35












I even don't know what command is used for encryption in powershell.
– Ghufran Ataie
Nov 21 at 15:03




I even don't know what command is used for encryption in powershell.
– Ghufran Ataie
Nov 21 at 15:03












1 Answer
1






active

oldest

votes


















-1














you can use a tool like lockdir or a utility software like folder lock instead.
pretty sure there also may be free versions too.



you can use lockdir it has a free version



It doesn't encrypt things but it hides others from accessing



Here you have an article which lists encryption tools that you can use on windows.






share|improve this answer























  • this answer has nothing to do with the question asked.. The question was about using the default Windows encryption options, you suggest a 3rd party tool which doesn't even encrypt data.
    – bluuf
    Nov 21 at 11:33











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53400928%2ffile-and-folder-encryption-in-powershell%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









-1














you can use a tool like lockdir or a utility software like folder lock instead.
pretty sure there also may be free versions too.



you can use lockdir it has a free version



It doesn't encrypt things but it hides others from accessing



Here you have an article which lists encryption tools that you can use on windows.






share|improve this answer























  • this answer has nothing to do with the question asked.. The question was about using the default Windows encryption options, you suggest a 3rd party tool which doesn't even encrypt data.
    – bluuf
    Nov 21 at 11:33
















-1














you can use a tool like lockdir or a utility software like folder lock instead.
pretty sure there also may be free versions too.



you can use lockdir it has a free version



It doesn't encrypt things but it hides others from accessing



Here you have an article which lists encryption tools that you can use on windows.






share|improve this answer























  • this answer has nothing to do with the question asked.. The question was about using the default Windows encryption options, you suggest a 3rd party tool which doesn't even encrypt data.
    – bluuf
    Nov 21 at 11:33














-1












-1








-1






you can use a tool like lockdir or a utility software like folder lock instead.
pretty sure there also may be free versions too.



you can use lockdir it has a free version



It doesn't encrypt things but it hides others from accessing



Here you have an article which lists encryption tools that you can use on windows.






share|improve this answer














you can use a tool like lockdir or a utility software like folder lock instead.
pretty sure there also may be free versions too.



you can use lockdir it has a free version



It doesn't encrypt things but it hides others from accessing



Here you have an article which lists encryption tools that you can use on windows.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 19 at 1:50

























answered Nov 21 at 10:14









Dulara Malindu

154110




154110












  • this answer has nothing to do with the question asked.. The question was about using the default Windows encryption options, you suggest a 3rd party tool which doesn't even encrypt data.
    – bluuf
    Nov 21 at 11:33


















  • this answer has nothing to do with the question asked.. The question was about using the default Windows encryption options, you suggest a 3rd party tool which doesn't even encrypt data.
    – bluuf
    Nov 21 at 11:33
















this answer has nothing to do with the question asked.. The question was about using the default Windows encryption options, you suggest a 3rd party tool which doesn't even encrypt data.
– bluuf
Nov 21 at 11:33




this answer has nothing to do with the question asked.. The question was about using the default Windows encryption options, you suggest a 3rd party tool which doesn't even encrypt data.
– bluuf
Nov 21 at 11:33


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53400928%2ffile-and-folder-encryption-in-powershell%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'