Search Results for

    Show / Hide Table of Contents

    Copy-UssPackageFromServer

    SYNOPSIS

    Copies a package from one server to another server.

    SYNTAX

    Default

    Copy-UssPackageFromServer -PackageId <String> [-VersionQuery <VersionQuery>] -SourceServer <String>
     [-SourcePort <Int32>] [-SourceUseSsl] [-SourceIdentity <String>] [-SourceCredential <PSCredential>] [-NoWait]
     [-Server <String>] [-Port <Int32>] [-Credential <PSCredential>] [<CommonParameters>]
    

    Hashtable

    Copy-UssPackageFromServer -InputHashtable <Hashtable> -SourceServer <String> [-SourcePort <Int32>]
     [-SourceUseSsl] [-SourceIdentity <String>] [-SourceCredential <PSCredential>] [-NoWait] [-Server <String>]
     [-Port <Int32>] [-Credential <PSCredential>] [<CommonParameters>]
    

    Package

    Copy-UssPackageFromServer -Package <ResolverPackageQueryModel[]> -SourceServer <String> [-SourcePort <Int32>]
     [-SourceUseSsl] [-SourceIdentity <String>] [-SourceCredential <PSCredential>] [-NoWait] [-Server <String>]
     [-Port <Int32>] [-Credential <PSCredential>] [<CommonParameters>]
    

    DESCRIPTION

    Use Copy-UssPackageFromServer to copy a package from one server to another server.

    EXAMPLES

    Example 1

    PS C:\> Copy-UssPackageFromServer -PackageId 'ls-update-service-server' -Server 'https://myserver.com' -SourceServer 'https://otherserver.com'
    

    This example copies the package with the ID 'ls-update-service-server' from the server 'https://otherserver.com' to the server 'https://myserver.com'.

    PARAMETERS

    -Credential

    Specifies the credentials of the server.

    Type: PSCredential
    Parameter Sets: (All)
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -InputHashtable

    Specifies the input hashtable.

    Type: Hashtable
    Parameter Sets: Hashtable
    Aliases:
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: True (ByValue)
    Accept wildcard characters: False
    

    -NoWait

    Specifies that the cmdlet should not wait for the operation to complete.

    Type: SwitchParameter
    Parameter Sets: (All)
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -Package

    Specifies the package to copy.

    Type: ResolverPackageQueryModel[]
    Parameter Sets: Package
    Aliases:
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: True (ByValue)
    Accept wildcard characters: False
    

    -PackageId

    Specifies the ID of the package to copy.

    Type: String
    Parameter Sets: Default
    Aliases: Id
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: True (ByPropertyName, ByValue)
    Accept wildcard characters: False
    

    -Port

    DEPRICATED: Use -Server instead.

    Type: Int32
    Parameter Sets: (All)
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -Server

    Specifies the server to connect to.

    Type: String
    Parameter Sets: (All)
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -SourceCredential

    Specifies the credentials of the source server.

    Type: PSCredential
    Parameter Sets: (All)
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -SourceIdentity

    DEPRIACTED.

    Type: String
    Parameter Sets: (All)
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -SourcePort

    DEPRIACTED, use -SourceServer instead.

    Type: Int32
    Parameter Sets: (All)
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -SourceServer

    Specifies the source server to copy the package from.

    Type: String
    Parameter Sets: (All)
    Aliases: SourceHost, Host
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -SourceUseSsl

    DEPRIACTED, use -SourceServer instead.

    Type: SwitchParameter
    Parameter Sets: (All)
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -VersionQuery

    Specifies the version query to select a version to copy.

    Type: VersionQuery
    Parameter Sets: Default
    Aliases: Version
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: True (ByPropertyName)
    Accept wildcard characters: False
    

    CommonParameters

    This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

    INPUTS

    System.String

    LSRetail.UpdateService.Common.SemanticVersioning.VersionQuery System.Collections.Hashtable

    OUTPUTS

    System.Object

    NOTES

    RELATED LINKS

    In This Article
    • SYNOPSIS
    • SYNTAX
      • Default
      • Hashtable
      • Package
    • DESCRIPTION
    • EXAMPLES
      • Example 1
    • PARAMETERS
      • -Credential
      • -InputHashtable
      • -NoWait
      • -Package
      • -PackageId
      • -Port
      • -Server
      • -SourceCredential
      • -SourceIdentity
      • -SourcePort
      • -SourceServer
      • -SourceUseSsl
      • -VersionQuery
      • CommonParameters
    • INPUTS
      • System.String
    • OUTPUTS
      • System.Object
    • NOTES
    • RELATED LINKS
    Back to top Generated by DocFX