Hello Pavan,pavan.penmetsa wrote:Hello,
Can anyone let me know what we need to pass to the following commandlet as argument.
get-VSBTaskSession -session "?"
Please try this:
Code: Select all
Get-VSBSession | {filter here} | Get-VSBTaskSession
Hello Pavan,pavan.penmetsa wrote:Hello,
Can anyone let me know what we need to pass to the following commandlet as argument.
get-VSBTaskSession -session "?"
Code: Select all
Get-VSBSession | {filter here} | Get-VSBTaskSession
Code: Select all
$Job = Get-VBRJob | ?{$_.name -eq "JobName"}
Code: Select all
$job = Get-VBRJob | ?{$_.name -eq "JobName"}
$vo = $job.GetOptions()
$vo.EmailNotification = $true
$job.SetOptions($vo)
Code: Select all
Get-Folder "Temp" | Get-VM | ForEach { $v += @($_.Name) }
Code: Select all
function Add-JO{
Param ([string]$vmname,[string]$jobname)
$newjob = Get-VBRJob | ?{$_.Name -eq "$jobname"}
$vbrserver = Get-VBRServer | ?{$_.Type -eq "VC"}
Add-VBRJobObject -Job $newjob -Server $vbrserver -Object $vmname
}
Code: Select all
Add-JO "vm01.lab.local" "VM01 Backup Job Name"
Users browsing this forum: No registered users and 21 guests