Powershell commands not working after upgrade

PowerShell script exchange

Powershell commands not working after upgrade

Veeam Logoby pallingd » Mon Feb 28, 2011 9:18 am

Hi All

After upgrading from ver. 4 to ver. 5 my scripts are not working at all. Even the get-vbrcommand throws an error at me:

'get-vbrcommand' is not recognized

Other commands like start-vbrjob seem to work, but apparently the syntax has changed, because a simple job like this one fails (e2k7 is the job name in the GUI)

PS C:\> start-vbrjob e2k7
Start-VBRJob : Cannot bind parameter 'Job'. Cannot convert the "e2k7" value of type "System.String" to type "Veeam.Back
up.Core.CBackupJob".
At line:1 char:13
+ start-vbrjob <<<< e2k7
+ CategoryInfo : InvalidArgument: (:) [Start-VBRJob], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Veeam.Backup.PowerShell.Command.StartVBRJob

This happens even for a new job created in ver. 5.

What did I miss?
pallingd
Novice
 
Posts: 6
Liked: never
Joined: Thu Mar 04, 2010 12:24 pm
Location: Denmark
Full Name: Per Alling-Dam

Re: Powershell commands not working after upgrade

Veeam Logoby Vitaliy S. » Mon Feb 28, 2011 9:44 am

Hello Per,

The PowerShell syntax has changed in v5. Please take a look at this topic for more info: Powershell script in v5

Hope it helps!
Vitaliy S.
Veeam Software
 
Posts: 19564
Liked: 1103 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 3 guests