How to store a vds in library server on SCVMM with Powershell?

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.

Tags: , , , , ,


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply