FSLogix / Invoke-FslShrinkDisk

This script will shrink a FSLogix Disk to its minimum possible size
MIT License
155 stars 55 forks source link

The ampersand (&) character is not allowed #23

Closed gerguk closed 4 years ago

gerguk commented 4 years ago

Hi,

Really appreciate all the work that goes into this :-)

Windows Server 2019 (1809) Powershell version 5.1 Build 17763 Revision 1432 Containers are stored on this server in: D:\Containers \Office \Profile Running your PS1 file like this from Powershell opened as Administator .\Invoke-FslShrinkDisk.ps1 -Path d:\Containers -Recurse -LogFilePath C:\Users\my.name\Downloads\fsl_run1.csv

I get lots of errors

At C:\users\my.name\Downloads\Invoke-FslShrinkDisk.ps1:151 char:21

Quite likely I'm doing something wrong!

Many thanks, Greg

gerguk commented 4 years ago

Hmmm, formatting is a bit rubbish so trying again!

At C:\users\my.name\Downloads\Invoke-FslShrinkDisk.ps1:151 char:21
                 Sign up
                     ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\users\my.name\Downloads\Invoke-FslShrinkDisk.ps1:178 char:190
 ... ata-ga-click="(Logged out) Header, go to Features">Features <span cla ...
                                                                 ~
The '<' operator is reserved for future use.
At C:\users\my.name\Downloads\Invoke-FslShrinkDisk.ps1:178 char:261
 ... ="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</s ...
JimMoyle commented 4 years ago

So that code isn't in my script, can you re-download and try it again?

gerguk commented 4 years ago

Sorry about that Jim. I downloaded and extracted the Zip and all good now :-)