VEEAM Powershell and batch file

PowerShell script exchange

VEEAM Powershell and batch file

Veeam Logoby NADON » Sun Aug 23, 2015 9:14 pm

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 ?
NADON
Lurker
 
Posts: 2
Liked: never
Joined: Sun Aug 23, 2015 9:00 pm
Full Name: NADON

Re: VEEAM Powershell and batch file

Veeam Logoby v.Eremin » Mon Aug 24, 2015 11:02 am

Take a look at this post and ask for additional clarification, should it be needed. Thanks.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: VEEAM Powershell and batch file

Veeam Logoby NADON » Thu Sep 03, 2015 7:49 am

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 ?
NADON
Lurker
 
Posts: 2
Liked: never
Joined: Sun Aug 23, 2015 9:00 pm
Full Name: NADON

Re: VEEAM Powershell and batch file

Veeam Logoby v.Eremin » Thu Sep 03, 2015 10:46 am

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

Code: Select all
Asnp VeeamPSSnapin


Thanks.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: Google [Bot] and 4 guests