Forum Discussion
iworkonline
Mar 28, 2019Copper Contributor
unable to run PowerShell script
I am on windows 7 professional and created a powershell script that I cannot run. my security setting is set to unrestricted. I have run it 3 ways and nothing happens. First I right click the sc...
Darrick
Apr 03, 2019Brass Contributor
Try this.
From:
$gpgr + ' ' + $output + ' ' + $encrypt
To:
Invoke-Expression "$gpgr $output $encrypt"