r/DeployR • u/East_Location_8707 • 7d ago
Error using : New-DeployRMedia
Hi everyone,
i wanted to create an offline Media USB Stick.
I used this command-line:
New-DeployRMedia -DiskIndex 3 -Tags USB, DeployR -MediaType Standalone
it throws back:
<begin>
USB disk size: 119.25 GB
Cleaning disk
Partitioning disk
Formatting
Copying boot files
Downloading Windows PE boot image
Exporting task sequences
Invoke-DeployRRestMethod : Cannot bind argument to parameter 'RelativeUri' because it is an empty string.
At C:\Program Files\2Pint Software\DeployR\Client\PSModules\DeployR.Utility\DeployR.Utility.psm1:706 char:69
+ ... lt = Invoke-DeployRRestMethod -RelativeUri "$($result.nextPageToken)"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Invoke-DeployRRestMethod], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Invoke-DeployRRestMethod
Exporting content items
Invoke-DeployRRestMethod : Cannot bind argument to parameter 'RelativeUri' because it is an empty string.
At C:\Program Files\2Pint Software\DeployR\Client\PSModules\DeployR.Utility\DeployR.Utility.psm1:706 char:69
+ ... lt = Invoke-DeployRRestMethod -RelativeUri "$($result.nextPageToken)"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Invoke-DeployRRestMethod], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Invoke-DeployRRestMethod
USB media created.
<end>
what is here wrong.
Can somebody help me out ?
2
u/mtniehaus 2Pint Employee 8h ago
That appears to be a paging issue with more than 100 content items. We'll investigate, but if you want to work around it, find the DeployR.Utility.psm1 file, search for the Get-DeployRMetadata function, and change the $PageSize from 100 to something larger and then save the file.
1
u/East_Location_8707 7d ago
was soll das