I have created a powerschell script that encrypt a other powershell script file in a secure-string file (using user with machine credentials )
The goal is to run this script with task manager with the account used for encrypting this powershell script.
This works flawless ! So my script is protected, can not be copied … (i hope).
The only problem is that the maximum secure-string size is 65536 , i have one script that is more than 2 times as big as this maxium size …
trey many tings to split this string ($var.substring , -split , … ) does not help …
any help ??