A community where customers and the community can provide feedback to make a better product for everyone! For more details on how we prioritize requests, please see:
There is a direct link to downloading the latest version, https://aka.ms/fslogix_download. It would be a nice addition if the file could be automatically downloaded.
Guest
Mar 11, 2025
I've created a script that we're using, to download the latest version and place the extracted files into the PMPC LocalRepository (but the formatting here looks awful...):
<#
.SYNOPSIS Downloads FSLogix from official download-link.
.DESCRIPTION Downloads from FSLogix official download-link, unzips and copies to $DestinationPath.
.PARAMETERUrl Web address to download from. Using https://aka.ms/fslogix_download as default. The adress is listed on https://learn.microsoft.com/en-us/fslogix/how-to-install-fslogix#direct-download
.PARAMETERDestinationPath Folder to copy the extracted files to.
I've created a script that we're using, to download the latest version and place the extracted files into the PMPC LocalRepository (but the formatting here looks awful...):
<#.SYNOPSISDownloads FSLogix from official download-link..DESCRIPTIONDownloads from FSLogix official download-link, unzips and copies to $DestinationPath..PARAMETERUrlWeb address to download from. Using https://aka.ms/fslogix_download as default. The adress is listed on https://learn.microsoft.com/en-us/fslogix/how-to-install-fslogix#direct-download.PARAMETERDestinationPathFolder to copy the extracted files to..PARAMETERLogFolderFolder for log files.#>param([Parameter()] [string]$Url="https://aka.ms/fslogix_download",[Parameter()] [string]$DestinationPath,[Parameter()] [string]$LogFolder="C:\Data\Log")$ErrorActionPreference="Stop"$logFile=Join-Path-Path$LogFolder-ChildPath"Get-FSLogixLatestVersion.log"$dnFile=Join-Path-Path$env:TEMP-ChildPath"FSLogix.zip"# Download FSLogixOut-File-FilePath$logFile-InputObject"Downloading FSLogix from URL:$Url."$webClient=New-ObjectSystem.Net.WebClient$webClient.DownloadFile($Url,$dnFile)$webClient.Dispose()# Verify that stuff got downloadedif((Test-Path-Path$dnFile)-eq$false) {Out-File-FilePath$logFile-InputObject"Failed to download FSLogix."-Appendthrow$_}else{try{Out-File-FilePath$logFile-InputObject"Download OK."-AppendOut-File-FilePath$logFile-InputObject"Attempting to unpack."-AppendAdd-Type-AssemblyName System.IO.Compression.FileSystem$unpackPath="$env:TEMP\FSLogix"[System.IO.Compression.ZipFile]::ExtractToDirectory($dnFile,$unpackPath)Out-File-FilePath$logFile-InputObject"Unpack OK."-Append}catch{Out-File-FilePath$logFile-InputObject"Failed to unpack FSLogix from archive."-AppendOut-File-FilePath$logFile-InputObject"Error message:$_"-Appendthrow$_}}# Copy FSLogix to PatchMyPc repositorytry{Out-File-FilePath$logFile-InputObject"Attempting to copy to$DestinationPath."-AppendCopy-Item-Path$unpackPath-Destination$DestinationPath-Recurse-Force-ContainerOut-File-FilePath$logFile-InputObject"Copy OK."-Append}catch{Out-File-FilePath$logFile-InputObject"Failed to copy to$DestinationPath."-AppendOut-File-FilePath$logFile-InputObject"Error message:$_"-Appendthrow$_}# Cleanuptry{Remove-Item-Path$dnFile-Force-Confirm:$falseRemove-Item-Path$unpackPath-Force-Recurse-Confirm:$false}catch{Out-File-FilePath$logFile-InputObject"Failed to cleanup."-AppendOut-File-FilePath$logFile-InputObject"Error message:$_"-Appendthrow$_}+1