For the complete documentation index, see llms.txt. This page is also available as Markdown.

Scripting

DeployR uses PowerShell extensively. DeployR 1.4 uses PowerShell 7.6.9; check the Prerequisites section for the version required by your DeployR build. PowerShell 5 and PowerShell ISE are not supported for these examples. Use PowerShell 7.

DeployR includes a custom PowerShell module named DeployR.Utility. This module is installed on the DeployR server in the default path: C:\Program Files\2Pint Software\DeployR\Client\PSModules\DeployR.Utility Import the module before using it in your scripts.

Import-Module 'C:\Program Files\2Pint Software\DeployR\Client\PSModules\DeployR.Utility'

After importing the module, you can start building automation for DeployR. As of DeployR 1.4, the module includes the following commands. For what each one does, and what changed in DeployR 1.4, see DeployR.Utility module reference.

Add-DeployRContentItemVersion Connect-DeployR ConvertTo-DeployRFFU Export-DeployRContentItem Export-DeployRStepDefinition Export-DeployRTaskSequence Get-DeployRApplication Get-DeployRApplicationVersion Get-DeployRCloudOS Get-DeployRContentItem Get-DeployRContentItemVersion Get-DeployRContentItemVersionContentInfo Get-DeployRDiskSectorSize Get-DeployRDriverPack Get-DeployRDriverPackFiltered Get-DeployRDriverPackVersion Get-DeployRHost Get-DeployRMetadata Get-DeployROemDriverPack Get-DeployROperatingSystem Get-DeployROperatingSystemVersion Get-DeployRSetting Get-DeployRTaskSequence Get-DeployRTaskSequenceVersion Import-DeployRCloudOS Import-DeployRContentItem Import-DeployROEMDriverPack Import-DeployRStepDefinition Import-DeployRTaskSequence Invoke-DeployRApiRestMethod Invoke-DeployRRestMethod Invoke-DeployRStreamFFU Invoke-DeployRWebRequest Invoke-DeployRWebService New-DeployRContentItem New-DeployRContentItemVersion New-DeployRMedia Remove-DeployRMetadata Request-DeployRContent Request-DeployRCustomContent Resolve-DeployRVariables Select-DeployRTags Set-DeployRHost Set-DeployRLogPath Set-DeployRMetadata Set-DeployRProgressWindow Show-DeployRMessageBox Update-DeployRContentItemContent

Get-Secret and Set-Secret come from the Microsoft SecretManagement module that is included with DeployR.

You can get a list of commands by running: Get-Command -Module DeployR.Utility

Last updated