Public/SSO/Read-SSOString.ps1
#Requires -RunAsAdministrator <# .SYNOPSIS Read BTDF SSO settings for deployed BizTalk applications .DESCRIPTION Makes use of BTDF SSOSettingsFileReader helper assembly to read all SSO settings for a deployed application .PARAMETER Application Name of the BTDF deployed application to read SSO settings .PARAMETER Value Name of the SSO setting to get the value of .EXAMPLE PS C:\> Read-SSO -Application Scratchpad -Value StringSetting Returns a string typed value from SSO for the Scatchpad appliction for the setting "StringSetting" .OUTPUTS string #> function Read-SSOString { [CmdletBinding()] [OutputType([string])] Param ( [Parameter(Mandatory=$true, ValueFromPipeline=$true, Position=0)] [string]$Application, [Parameter(Mandatory=$true, Position=1)] [string]$Value ) Process { return [SSOSettingsFileReader]::ReadString($Application, $Value) } } |