New-CMInstallationSourceFile

Creates an installation source file for Configuration Manager.

Syntax

New-CMInstallationSourceFile
   [-Confirm]
   [-CopyFromNetworkLocation]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   -UncPath <String>
   [-WhatIf]
   [<CommonParameters>]
New-CMInstallationSourceFile [-Confirm] [-CopyFromParentSiteServer] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-WhatIf] []
New-CMInstallationSourceFile [-Confirm] [-CopyFromSecondarySiteLocation] [-DisableWildcardHandling]
 [-ForceWildcardHandling] -LocalPath  [-WhatIf] []

Description

The New-CMInstallationSourceFile cmdlet creates an installation source file for Microsoft System Center Configuration Manager. An installation source file is an object that contains installation source parameters for a secondary site installation. A secondary site has no System Center Configuration Manager database of its own. Instead, it forwards information that it gets from clients to a primary site that stores the data for all the secondary sites that are attached to it.

Examples

Example 1: Create an installation source file

PS C:\> New-CMInstallationSourceFile -CopyFromParentSiteServer

This command creates an installation source file for a secondary site installation by copying the installation files from the primary site.

Required Parameters

-CopyFromNetworkLocation

Indicates that Configuration Manager copies the installation files for a secondary site installation from a specific Universal Naming Convention (UNC) path.

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

Indicates that Configuration Manager copies the installation files for a secondary site installation from the primary site.

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

Indicates that the installation files for a secondary site installation reside on the secondary site server.

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

Specifies a path to source files in the local file system of the secondary site server.

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

Specifies a UNC path to source files in the local file system of the secondary site server.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

Indicates that wildcard handling is disabled.

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

Indicates that wildcard handling is enabled.

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

Shows what would happen if the cmdlet runs. The cmdlet is not run.

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