Skip to content

Latest commit

 

History

History
194 lines (136 loc) · 6.56 KB

Get-UiPathAuthToken.md

File metadata and controls

194 lines (136 loc) · 6.56 KB
NAME
    Get-UiPathAuthToken
    
SYNOPSIS
    Obtains an UiPath authentication token
    
    
SYNTAX
    Get-UiPathAuthToken -AccountName <string> -ClientId <string> -TenantName <string> -UserKey <string> 
    [-CloudDeployment <string>] [-FolderPath <string>] [-RequestTimeout <int>] [-Session <SwitchParameter>] 
    [<CommonParameters>]
    
    Get-UiPathAuthToken [-URL] <string> -Host <SwitchParameter> -Password <string> -Username <string> [-RequestTimeout 
    <int>] [-Session <SwitchParameter>] [<CommonParameters>]
    
    Get-UiPathAuthToken -CurrentSession <SwitchParameter> [-RequestTimeout <int>] [<CommonParameters>]
    
    Get-UiPathAuthToken [-URL] <string> -Password <string> -Username <string> [-FolderPath <string>] [-RequestTimeout 
    <int>] [-Session <SwitchParameter>] [-TenantName <string>] [<CommonParameters>]
    
    Get-UiPathAuthToken [-URL] <string> -WindowsCredentials <SwitchParameter> [-FolderPath <string>] [-RequestTimeout 
    <int>] [-Session <SwitchParameter>] [<CommonParameters>]
    
    Get-UiPathAuthToken [-URL] <string> -Unauthenticated <SwitchParameter> [-FolderPath <string>] [-RequestTimeout 
    <int>] [-Session <SwitchParameter>] [-TenantName <string>] [<CommonParameters>]
    
    
DESCRIPTION
    The authentication token is needed for other UiPath Powershell cmdlets.
    

PARAMETERS
    -CloudDeployment <string>
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -UserKey <string>
        
        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -ClientId <string>
        
        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -Host <SwitchParameter>
        
        Required?                    true
        Position?                    named
        Default value                False
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -CurrentSession <SwitchParameter>
        
        Required?                    true
        Position?                    named
        Default value                False
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -URL <string>
        
        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -Username <string>
        
        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -Password <string>
        
        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -WindowsCredentials <SwitchParameter>
        
        Required?                    true
        Position?                    named
        Default value                False
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -Unauthenticated <SwitchParameter>
        
        Required?                    true
        Position?                    named
        Default value                False
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -TenantName <string>
        
        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -AccountName <string>
        
        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -FolderPath <string>
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -Session <SwitchParameter>
        
        Required?                    false
        Position?                    named
        Default value                False
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -RequestTimeout <int>
        
        Required?                    false
        Position?                    named
        Default value                100
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see 
        about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). 
    
INPUTS
    
OUTPUTS
    
    ----------  EXAMPLE 1  ----------
    
    Get-UiPathAuthToken -URL https://platform.uipath.com -Username <myuser> -Password <mypassword>
    
    Connect to UiPath public platform Orchestrator, using user name and password.
    ----------  EXAMPLE 2  ----------
    
    Get-UiPathAuthToken -URL https://platform.uipath.com -Username <myuser> -Password <mypassword> -Session
    
    Connect to UiPath public platform Orchestrator, using user name and password and save the token for the current 
    session.
    ----------  EXAMPLE 3  ----------
    
    Get-UiPathAuthToken -URL https://uipath.corpnet -WindowsCredentials -Session
    
    Connect to a private Orchestrator with Windows enabled, using current Windows credentials and save the token for 
    current session.
    ----------  EXAMPLE 4  ----------
    
    Get-UiPathAuthToken -URL https://uipath.corpnet -Username <myuser> -Password <mypassword> -OrganizationUnit 
    <MyOrganization> -Session
    
    Connect to a private Orchestrator using user name and password and selects a current Organization Unit, saves the 
    token for current session.
    
RELATED LINKS