PowerShell script exchange
Post Reply
NADON
Lurker
Posts: 2
Liked: never
Joined: Aug 23, 2015 9:00 pm
Full Name: NADON
Contact:

VEEAM Powershell and batch file

Post by NADON »

Hello,

I am a beginner in POWERSHELL/VEEAM and I have only one question :

I want to use powershell for VEEAM in a batch file.

If I open powershell from veeam directly => NO problem and I can do all I want.

But How can I use powershell for VEEAM with a batch file ?

I searched in the forum before (and Google), but I did not find a solution.

Could someone help me ?
veremin
Product Manager
Posts: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: VEEAM Powershell and batch file

Post by veremin »

Take a look at this post and ask for additional clarification, should it be needed. Thanks.
NADON
Lurker
Posts: 2
Liked: never
Joined: Aug 23, 2015 9:00 pm
Full Name: NADON
Contact:

Re: VEEAM Powershell and batch file

Post by NADON »

Thank you for your help.

I know the adress of this file.

But if I Launch it in a batch file, then, VEEAM commands are not reconized. I get an error.

I think there is a parameter or a command to open powershell in VEEAM environment and to use VEEAM commands.

Could someone give me this, please ?
veremin
Product Manager
Posts: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: VEEAM Powershell and batch file

Post by veremin »

Did you add a VB&R PS snap-in in the beginning of the script?

Code: Select all

Asnp VeeamPSSnapin
Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests