Get-PSUPublishedFolder
SYNOPSIS
Gets published folder definitions from PowerShell Universal.
SYNTAX
All (Default)
Get-PSUPublishedFolder [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
[-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]ById
Get-PSUPublishedFolder -Id <Int64> [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
[-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]DESCRIPTION
Returns the published folders configured in PowerShell Universal. You can retrieve all published folders or a single folder by Id.
EXAMPLES
Example 1
Returns the published folder with Id 1.
PARAMETERS
-AppToken
Specifies the app token to use when authenticating to the PowerShell Universal management API.
-ComputerName
Specifies the URL or host name of the target PowerShell Universal instance. Bare host names are normalized to an http://<host>:5000 URL.
-Id
Specifies the numeric Id of the resource.
-Integrated
Uses the in-process integrated management client when the cmdlet runs inside PowerShell Universal.
-UseDefaultCredentials
Uses the current Windows credentials when authenticating to the management API.
-Credential
Credentials to login to the PowerShell Universal Management API.
-TrustCertificate
Whether the cmdlet should ignore certificate issues.
-Cookies
Reuses and persists authentication cookies for the current PowerShell session.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.
INPUTS
None
OUTPUTS
System.Object
NOTES
RELATED LINKS
PERMISSIONS
Requires platform.publishedfolders/read to retrieve published folder definitions with or without -Id. Grant this permission to the role assigned to the access token.
Last updated
Was this helpful?