Create CitrixCommands.ps1
Collection of Commands to manage Citrix Provisioning Services Disc Images
This commit is contained in:
11
Citrix/Provisioning Services (PVS)/CitrixCommands.ps1
Normal file
11
Citrix/Provisioning Services (PVS)/CitrixCommands.ps1
Normal file
@@ -0,0 +1,11 @@
|
||||
# Collection of Commands to manage Citrix Provisioning Services Disc Images
|
||||
# I use Powershell for this rather than the GUI as the GUI sometimes Times Out
|
||||
|
||||
# Load PowerShell SnapIn (do it once per Session)
|
||||
Import-Module “C:\Program Files\Citrix\Provisioning Services Console\Citrix.PVS.SnapIn.dll”
|
||||
|
||||
# Create a new vDisk version
|
||||
New-PvsDiskMaintenanceVersion -DiskLocatorName "DiscName" -StoreName "StoreName" -SiteName "SiteName"
|
||||
|
||||
# Promote Disc
|
||||
Invoke-PvsPromoteDiskVersion -DiskLocatorName "DiscName" -StoreName "StoreName" -SiteName "SiteName"
|
||||
Reference in New Issue
Block a user