Hello,
Regarding the PowerShell script, if you cannot run these due to the "AllSigned" GPO, please note there is a workaround for this.
PowerShell Script Options
When there exists a GPO (Group Policy Object) restricting the execution of scripts, the digital certificate must be present in the Trusted Publishers in order for the script execution to succeed.
Now, regarding the VBScript, could you please give me some more details about this?
I'm pretty sure the Wscript.Shell is supported as I've used it many times in the past. Perhaps there's something else here.
For instance, are you able to manually run the script without encountering any errors?
If so, could you please let me know how you've scheduled your custom action? Setting file permissions require admin rights and therefore the custom action should be run elevated (deferred stage with the
"Run under the LocalSystem account with full privileges (no impersonation)" option)
Best regards,
Catalin