Amir Joseph Sayes
01/21/2023, 1:01 AMMarco Hofmann
02/01/2023, 8:54 AMCompress-Archive
that only allows to ZIP files up and until 2GB. I think this is also true for PowerShell 7.3.
But is there any limitation for Expand-Archive
? Because for a certain project I would need to download and expand a 30GB+ ZIP for, to get access to the setup files.Owen Reynolds
02/02/2023, 9:08 PMAaron Parker
02/02/2023, 10:29 PM> $null
doesn’t work, and I think `| Out-Null`also doesn’t work.Webster Webster
02/02/2023, 11:15 PMAaron Parker
02/09/2023, 9:12 PMAaron Parker
03/06/2023, 9:59 PMChai
03/13/2023, 1:18 PMWebster Webster
03/15/2023, 11:13 AMBalint Oberrauch
03/28/2023, 12:24 PMAndrew Gresbach
04/04/2023, 2:47 AMWebster Webster
04/08/2023, 3:58 PMRay Davis
04/13/2023, 11:15 AM#####StoreFront Export and Import Configuration files, and StoreFront Subscriptions#########
##Step 1: Run PowerShell Snapin for StoreFront#######
$env:PSModulePath = [Environment]::GetEnvironmentVariable('PSModulePath','Machine')
$SDKModules = 'C:\Program Files\Citrix\Receiver StoreFront\PowerShellSDK\Modules\Citrix.StoreFront'
Import-Module "$SDKModules\Citrix.StoreFront.psd1" -verbose
Import-Module "$SDKModules.Authentication\Citrix.StoreFront.Authentication.psd1" -verbose
Import-Module "$SDKModules.Roaming\Citrix.StoreFront.Roaming.psd1" -verbose
Import-Module "$SDKModules.Stores\Citrix.StoreFront.Stores.psd1" -verbose
Import-Module "$SDKModules.WebReceiver\Citrix.StoreFront.WebReceiver.psd1" -verbose
##Step 2: Export SF configuration###
##Run on Old SF Server#########
Export-STFConfiguration -targetFolder "$env:userprofile\desktop\" -zipFileName "backup" -NoEncryption
##Step 3: Export Favorites###
$StoreObject = Get-STFStoreService -SiteID 1 -VirtualPath "/citrix/lab"
Export-STFStoreSubscriptions -StoreService $StoreObject -FilePath "$env:USERPROFILE\Desktop\Subscriptions.txt"
##Step 4: Copy files that are on Desktop to new StoreServer####
$destinationFolder = Read-Host "Enter the destination folder to copy the configuration files to (e.g. C:\NewServer\config):"
Copy-Item "$env:userprofile\desktop\backup.zip" -Destination "$destinationFolder"
$subscriptionsFilePath = "$env:USERPROFILE\Desktop\Subscriptions.txt"
Copy-Item $subscriptionsFilePath -Destination "$destinationFolder"
##Step 5: Import Configuration to new Server######
$destinationServer = Read-Host "Enter the name or IP address of the server where you want to import the configuration files (e.g.
server1.example.com`):"
$HostBaseURL = Read-Host "Enter the HostBaseURL for the new server (e.g.<https://storefront.example.com|https://storefront.example.com>
):"
$credential = Get-Credential
Enter-PSSession -ComputerName $destinationServer -Credential $credential
Import-Module Citrix.StoreFront -Verbose
Import-Module Citrix.StoreFront.Authentication -Verbose
Import-Module Citrix.StoreFront.Roaming -Verbose
Import-Module Citrix.StoreFront.Stores -Verbose
Import-Module Citrix.StoreFront.WebReceiver -Verbose
$configurationFilePath = "$destinationFolder\backup.zip"
Import-STFConfiguration -configurationZip $configurationFilePath -HostBaseURL $HostBaseURL
$StoreObject = Get-STFStoreService -SiteID 1 -VirtualPath "/citrix/lab"
Import-STFStoreSubscriptions -StoreService $StoreObject -FilePath $subscriptionsFilePath
Exit-PSSession
## In the HostBaseURL, make sure it matches your environment####`Webster Webster
04/13/2023, 11:17 AMAndrew Gresbach
04/14/2023, 12:07 AMOwen Reynolds
04/14/2023, 6:26 PMWebster Webster
04/19/2023, 5:48 PMWebster Webster
04/21/2023, 2:28 PMBalint Oberrauch
05/19/2023, 1:06 PMBenjamin Crill
05/24/2023, 1:04 PMSteve Noel
06/26/2023, 2:16 PMAndrew Gresbach
08/24/2023, 3:08 PMAaron Parker
10/04/2023, 9:00 PMparam locations array = [
'australiaeast'
'westus3'
'eastus'
'uksouth'
]
param resourceGroupNames array = [
'rg-AvdImages-${location}'
'rg-AvdManagement-${location}'
'rg-AvdCoreInfrastructure-${location}'
'rg-AvdPooledDesktop-001-${location}'
'rg-AvdPooledDesktop-002-${location}'
]
Dennis
10/30/2023, 4:34 PMBalint Oberrauch
11/30/2023, 9:22 AMAndrew Gresbach
01/16/2024, 3:06 PMJonathan Pitre
02/29/2024, 2:47 PMMarco Hofmann
03/27/2024, 4:33 PMMarco Hofmann
04/10/2024, 11:07 AM