< Back
Connect-SmaServer
Post
NAME Connect-SmaServer
SYNOPSIS
SYNTAX
Connect-SmaServer [-Server] <String> [-Org] <String> [-Credential] <PSCredential> [<CommonParameters>]
DESCRIPTION
Connect to a SMA server. This command generates an access token to be used during the same session. This token has
an expiration of 1 hour, after which you must authenticate again.
PARAMETERS
-Credential <PSCredential>
The credentials of the user authenticating to the SMA Server
Required? true
Position? 2
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Org <String>
The SMA org to connect to.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Server <String>
The FQDN of the appliance. Must begin with `https://`
Required? true
Position? 0
Default value None
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
None
OUTPUTS
System.PSCustomObject
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> Connect-SmaServer -Server 'https://kace.example.com' -Org 'Default' -Credential (Get-Credential)
Server Org Status Protocol User
------ ---- ------ -------- ----
kace.example.com Default Connected HTTPS my_user
Connects to the default org of a Kace SMA Server.
RELATED LINKS
Online Version: https://github.com/ArtisanByteCrafter/K ... aServer.md
SYNOPSIS
SYNTAX
Connect-SmaServer [-Server] <String> [-Org] <String> [-Credential] <PSCredential> [<CommonParameters>]
DESCRIPTION
Connect to a SMA server. This command generates an access token to be used during the same session. This token has
an expiration of 1 hour, after which you must authenticate again.
PARAMETERS
-Credential <PSCredential>
The credentials of the user authenticating to the SMA Server
Required? true
Position? 2
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Org <String>
The SMA org to connect to.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Server <String>
The FQDN of the appliance. Must begin with `https://`
Required? true
Position? 0
Default value None
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
None
OUTPUTS
System.PSCustomObject
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> Connect-SmaServer -Server 'https://kace.example.com' -Org 'Default' -Credential (Get-Credential)
Server Org Status Protocol User
------ ---- ------ -------- ----
kace.example.com Default Connected HTTPS my_user
Connects to the default org of a Kace SMA Server.
RELATED LINKS
Online Version: https://github.com/ArtisanByteCrafter/K ... aServer.md