on 04-15-2016 8:42 AM
How to schedule the Powershell script in Redwood?
Please let me know whoever tried this.
I am getting an error like ""ps1 cannot be loaded because the execution of s cripts is disabled on this system. Please see "get-help about_signing" for more details. "
Thank HP...
I have a couple of questions,
1. Is there any setting to be enabled in the Redwood server end?
2. Else we need to enable in windows platform is enough ?
Please clarify me...
Thansk in Advance....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anandhi,
Open C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
(It is VERY important you open that exact file, no other powershell.exe)
then try to source your ps1 script:
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
PS C:\Users\jdoe>. c:\myscript.ps1
I think this will fail with the same error or the platform agent has a bug.
Regards,
HP
Hi Anandhi Rengaraj,
The execution of PowerShell scripts has been disabled on that system. You have to contact the Windows System administrator to inquire if they can enable PowerShell on that platform.
You have to ensure the correct "bittiness" PowerShell executable has been used to allow scripts.
By default, the 32-bit version is used, on newer releases, 9.0.14+, iirc (earlier releases might have this as well), you can set a process server parameter to use the 64-bit version of the executable. See the PowerShell topic in the documentation.
You use:
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe (32-bit)
or
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe (64-bit)
I know, the path-names are confusing ;-).
Regards,
HP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.