| external help file | OutSystems.SetupTools-help.xml |
|---|---|
| Module Name | OutSystems.SetupTools |
| online version | |
| schema | 2.0.0 |
Returns the list of modules installed on an Outsystems environment.
Get-OSPlatformModules [-ServiceCenter <String>] [-Credential <PSCredential>] [-Filter <ScriptBlock>]
[-PassThru] [<CommonParameters>]
This will return the list of modules (espaces and extensions) installed on an Outsystems environment. The function can be used to query a remote Outsystems environment for the list of modules installed using the ServiceCenterHost parameter. If not specified, the function will query the local machine.
$Credential = Get-Credential
Get-OSPlatformModules -ServiceCenter "8.8.8.8" -Credential $Credential
$password = ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential ("username", $password) Get-OSPlatformModules -ServiceCenter "8.8.8.8" -Credential $Credential
Filter by module name
Get-OSPlatformModules -ServiceCenter "8.8.8.8" -Credential $Credential -Filter {$_.Name -eq 'MyModule'}
Get all modules with outdated references
Get-OSPlatformModules -ServiceCenter "8.8.8.8" -Credential <username> -Filter {$_.StatusMessages.Id -eq 6}
Get all modules not published since the last version update
Get-OSPlatformModules -ServiceCenter "8.8.8.8" -Credential <username> -Filter {$_.StatusMessages.Id -eq 13}
Get modules all the modules from my factory
@('dev','test','qa','prd') | Get-OSPlatformModules -ServiceCenter -Credential <username>
Get all outdated modules from my factory
@('dev','test','qa','prd') | Get-OSPlatformModules -ServiceCenter -Credential <username> -Filter {$_.StatusMessages.Id -eq 6}
{{ Fill ServiceCenter Description }}
Type: String
Parameter Sets: (All)
Aliases: Host, Environment, ServiceCenterHost
Required: False
Position: Named
Default value: 127.0.0.1
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseUsername or PSCredential object with credentials for Service Center. If not specified defaults to admin/admin
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: $OSSCCred
Accept pipeline input: False
Accept wildcard characters: FalseFilter script to filter returned modules
Type: ScriptBlock
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseIf spedified returns the list of modules grouped by environment. Also returns the ServiceCenter and the Credentials parameters. Useful for the Publish-OSPlatformModules cmdLet
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
You can run this cmdlet on any machine with HTTP access to Service Center.