Protect Powershell script to be not editable, but executable

Ivaylo Stefanov 136 Reputation points
2021-05-25T11:33:24.28+00:00

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
0 comments No comments

6 answers

Sort by: Most helpful
  1. Bartosz Wójcik 0 Reputation points
    2026-09-11T22:46:35.0333333+00:00

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.