A PowerShell script file is a simple text file, not much to protect.
You can only remove write/delete permissions on NTFS file level, but the user will still be able to copy the file to an other location and modify it there.
Protect Powershell script to be not editable, but executable
Ivaylo Stefanov
136
Reputation points
Hi,
can you anybody show me how can I protect a script, so that the script cannot be changed (modified), but it's can be run for example every night at 00:00 as scheduled task?
Thank you.
Windows for business | Windows Server | User experience | PowerShell
6 answers
Sort by: Newest
-
Olaf Helper 47,621 Reputation points2021-05-25T13:43:52.107+00:00