cancel
Showing results for 
Search instead for 
Did you mean: 

How to schedule the Powershell script in Redwood?

Former Member
0 Kudos

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. "

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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....

h_carpenter
Active Contributor
0 Kudos

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

h_carpenter
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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....

Former Member
0 Kudos

I am able to execute the Powershell Code as .bat file and .ps1 file in Server end.

So the problem might be in Redwood server.

Could you please guide me if anything else have to enabled in Redwood?