Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Add-CMPassiveSite

Use this cmdlet to add a site server in passive mode.

Syntax

AddByInputObjectMandatory (Default)

Add-CMPassiveSite
 -InputObject <IResultObject>
 -InstallDirectory <String>
 -SourceFilePathOption <PassiveSiteSourceFileType>
 [-LocalSourceDirectory <String>]
 [-NetworkSourceDirectory <String>]
 [-DisableWildcardHandling]
 [-ForceWildcardHandling]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

AddBySiteCodeMandatory

Add-CMPassiveSite
 -InstallDirectory <String>
 -SiteCode <String>
 -SiteSystemServerName <String>
 -SourceFilePathOption <PassiveSiteSourceFileType>
 [-LocalSourceDirectory <String>]
 [-NetworkSourceDirectory <String>]
 [-DisableWildcardHandling]
 [-ForceWildcardHandling]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

Use this cmdlet to add a site server in passive mode.

Examples

Example 1

Add-CMPassiveSite -InputObject $SiteSystem -InstallDirectory $InstallPath -SourceFilePathOption CopySourceFileFromActiveSite

Example 2

Add-CMPassiveSite -SiteCode $SiteCode -SiteSystemServerName $SiteSystemServerName -InstallDirectory $InstallPath -SourceFilePathOption UseLocalSourceDirectory -LocalSourceDirectory $LocalSourcePath

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-InputObject

{{ Fill InputObject Description }}

Parameter properties

Type:IResultObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:SiteSystemServer

Parameter sets

-InstallDirectory

{{ Fill InstallDirectory Description }}

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-LocalSourceDirectory

{{ Fill LocalSourceDirectory Description }}

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-NetworkSourceDirectory

{{ Fill NetworkSourceDirectory Description }}

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-SiteCode

{{ Fill SiteCode Description }}

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-SiteSystemServerName

{{ Fill SiteSystemServerName Description }}

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Name, ServerName

Parameter sets

-SourceFilePathOption

{{ Fill SourceFilePathOption Description }}

Parameter properties

Type:PassiveSiteSourceFileType
Default value:None
Accepted values:CopySourceFileFromActiveSite, UseLocalSourceDirectory, UseNetworkSourceDirectory
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet doesn't run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

CommonParameters

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

Inputs

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

Outputs

System.Object

Related Links


Feedback

Was this page helpful?