Upravit

Sdílet prostřednictvím


Add-CMPassiveSite

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

Syntax

Add-CMPassiveSite
   -InputObject <IResultObject>
   -InstallDirectory <String>
   [-LocalSourceDirectory <String>]
   [-NetworkSourceDirectory <String>]
   -SourceFilePathOption <PassiveSiteSourceFileType>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Add-CMPassiveSite
   -InstallDirectory <String>
   [-LocalSourceDirectory <String>]
   [-NetworkSourceDirectory <String>]
   -SiteCode <String>
   -SiteSystemServerName <String>
   -SourceFilePathOption <PassiveSiteSourceFileType>
   [-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.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisableWildcardHandling

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

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ForceWildcardHandling

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

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

{{ Fill InputObject Description }}

Type:IResultObject
Aliases:SiteSystemServer
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-InstallDirectory

{{ Fill InstallDirectory Description }}

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-LocalSourceDirectory

{{ Fill LocalSourceDirectory Description }}

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NetworkSourceDirectory

{{ Fill NetworkSourceDirectory Description }}

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SiteCode

{{ Fill SiteCode Description }}

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SiteSystemServerName

{{ Fill SiteSystemServerName Description }}

Type:String
Aliases:Name, ServerName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SourceFilePathOption

{{ Fill SourceFilePathOption Description }}

Type:PassiveSiteSourceFileType
Accepted values:CopySourceFileFromActiveSite, UseLocalSourceDirectory, UseNetworkSourceDirectory
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

Outputs

System.Object