876
General Software Discussion / Re: Script to set read+write permissions to folders for users based on foldername
« Last post by 4wd on April 03, 2018, 04:43 PM »>I saw it flash something in red but have not rerun-questorfla (April 03, 2018, 01:32 PM)
You're just double-clicking on the file aren't you?
UPDATE The error says: add-NTFSAccess : The 'Add-NTFSAccess' command was found in the module 'NTFSSecurity', but the module could not be loaded. So i am working on that one
> Says something about the file not being digitally signed ;( Also get further and just more messages telling me that for some reason the NTFSSecurity module is not going to run on this system ;((
You'll need to create a shortcut and add options to bypass Policy Control, set the following as Target, (change path to file to suit), and set the Run as admin option.
powershell.exe -executionpolicy bypass -File "<full path>\Set2Rights.ps1"
Or if running from a CLI/PoSh, (as Admin):
powershell.exe -executionpolicy bypass -File "<full path>\Set2Rights.ps1"
NOTE: Have updated the original post/script, now tested (had a couple of typos) also added info on how to Trust the PowerShell Gallery repository, (any modules from there will inherit the trust), and added the above execution info.

Recent Posts


