search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Virtual Machine Manager, Windows Powershell | No Comment | 9,749 views | 17/02/2009 20:15

You can store a vds account in library server on SCVMM with this Powershell commands:

1
2
3
4
5
6
7
8
9
10
11
12
13
# ------------------------------------------------------------------------------
# Store Virtual Machine Wizard Script
# ------------------------------------------------------------------------------
# Script generated on 17 Şubat 2009 Salı 14:25:54 by Virtual Machine Manager
# 
# For additional help on cmdlet usage, type get-help <cmdlet name>
# ------------------------------------------------------------------------------
 
$VMName = VM0212
$VM = Get-VM -VMMServer localhost -Name "$VMName" | where {$_.VMHost.Name -eq "hyperv02.fabrikam.contoso.net"}
$LibraryServer = Get-LibraryServer -VMMServer localhost | where {$_.Name -eq "hyperv02.fabrikam.contoso.net"}
 
Store-VM -VM $VM -LibraryServer $LibraryServer -SharePath "\\hyperv02.fabrikam.contoso.net\Library" -RunAsynchronously -UseLAN

We used “Localhost” but if you have another SCVMM and if you want to store vds in that host, you should use it like vmm02.fabrikam.contoso.net.