In older versions of Veeam, I used Powershell scripts perfectly....But in this version, I simply cannot get it to work...
I have this:
powershell.exe -ExecutionPolicy ByPass -File C:\Scripts\PreScript.ps1 -ErrorAction SilentlyContinue
powershell.exe -ExecutionPolicy ByPass -File C:\Scripts\PostScript.ps1 -ErrorAction SilentlyContinue
If I launch that line even in a NON admin Powershell session it works perfectly.
-
- Expert
- Posts: 110
- Liked: 5 times
- Joined: Oct 21, 2015 10:01 am
- Full Name: John
- Contact:
-
- Product Manager
- Posts: 20389
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Cannot get Pre-Job and Post-Jost Powershell scripts to work
The causes might vary, so reach our support team for further investigation. Also, it wouldn't harm to search these forums - there are plenty of topics discussing similar matter. Thanks!
-
- Expert
- Posts: 110
- Liked: 5 times
- Joined: Oct 21, 2015 10:01 am
- Full Name: John
- Contact:
Re: Cannot get Pre-Job and Post-Jost Powershell scripts to work
Its a lot faster to post it on a public forum and get some answers .
-
- Expert
- Posts: 110
- Liked: 5 times
- Joined: Oct 21, 2015 10:01 am
- Full Name: John
- Contact:
Re: Cannot get Pre-Job and Post-Jost Powershell scripts to work
Example, part of the script has
Invoke-Command -ComputerName FQDN.OF.SERVER -ScriptBlock {Stop-Computer -Force}
This does not run so I have some suspects of it being a permissions issue.
Invoke-Command -ComputerName FQDN.OF.SERVER -ScriptBlock {Stop-Computer -Force}
This does not run so I have some suspects of it being a permissions issue.
-
- Product Manager
- Posts: 20389
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Cannot get Pre-Job and Post-Jost Powershell scripts to work
Without seeing the script, account, permissions, etc. it's merely impossible to suggest anything. So, having a support ticket is the recommended approach.
As to typical causes, they have been discussed multiple times on these forums - so, feel free to search them through.
Thanks!
As to typical causes, they have been discussed multiple times on these forums - so, feel free to search them through.
Thanks!
Who is online
Users browsing this forum: No registered users and 20 guests