Publish-CMPrestageContent
SYNOPSIS
Publicerar filer till en distributionsplats.
SYNTAX
SearchByValueMandatory_DeploymentPackage (standard)
Publish-CMPrestageContent -DeploymentPackage <IResultObject> [-Description <String>]
-DistributionPointName <String> -FileName <String> [-DisableWildcardHandling] [-ForceWildcardHandling]
[-WhatIf] [-Confirm] [<CommonParameters>]
SearchByValueMandatory_Application
Publish-CMPrestageContent -Application <IResultObject> [-Description <String>] [-DisableDependencyExport]
-DistributionPointName <String> -FileName <String> [-DisableWildcardHandling] [-ForceWildcardHandling]
[-WhatIf] [-Confirm] [<CommonParameters>]
SearchByIdMandatory_Application
Publish-CMPrestageContent -ApplicationId <String[]> [-Description <String>] [-DisableDependencyExport]
-DistributionPointName <String> -FileName <String> [-DisableWildcardHandling] [-ForceWildcardHandling]
[-WhatIf] [-Confirm] [<CommonParameters>]
SearchByNameMandatory_Application
Publish-CMPrestageContent -ApplicationName <String[]> [-Description <String>] [-DisableDependencyExport]
-DistributionPointName <String> -FileName <String> [-DisableWildcardHandling] [-ForceWildcardHandling]
[-WhatIf] [-Confirm] [<CommonParameters>]
SearchByValueMandatory_BootImage
Publish-CMPrestageContent -BootImage <IResultObject> [-Description <String>] -DistributionPointName <String>
-FileName <String> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByIdMandatory_BootImage
Publish-CMPrestageContent -BootImageId <String[]> [-Description <String>] -DistributionPointName <String>
-FileName <String> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByNameMandatory_BootImage
Publish-CMPrestageContent -BootImageName <String[]> [-Description <String>] -DistributionPointName <String>
-FileName <String> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByIdMandatory_DeploymentPackage
Publish-CMPrestageContent -DeploymentPackageId <String[]> [-Description <String>]
-DistributionPointName <String> -FileName <String> [-DisableWildcardHandling] [-ForceWildcardHandling]
[-WhatIf] [-Confirm] [<CommonParameters>]
SearchByNameMandatory_DeploymentPackage
Publish-CMPrestageContent -DeploymentPackageName <String[]> [-Description <String>]
-DistributionPointName <String> -FileName <String> [-DisableWildcardHandling] [-ForceWildcardHandling]
[-WhatIf] [-Confirm] [<CommonParameters>]
SearchByIdMandatory_DriverPackage
Publish-CMPrestageContent [-Description <String>] -DistributionPointName <String> -DriverPackageId <String[]>
-FileName <String> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByNameMandatory_DriverPackage
Publish-CMPrestageContent [-Description <String>] -DistributionPointName <String> -DriverPackageName <String[]>
-FileName <String> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByValueMandatory_DriverPackage
Publish-CMPrestageContent [-Description <String>] -DistributionPointName <String>
-DriverPackage <IResultObject> -FileName <String> [-DisableWildcardHandling] [-ForceWildcardHandling]
[-WhatIf] [-Confirm] [<CommonParameters>]
SearchByIdMandatory_OperatingSystemImage
Publish-CMPrestageContent [-Description <String>] -DistributionPointName <String> -FileName <String>
-OperatingSystemImageId <String[]> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByNameMandatory_OperatingSystemImage
Publish-CMPrestageContent [-Description <String>] -DistributionPointName <String> -FileName <String>
-OperatingSystemImageName <String[]> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByValueMandatory_OperatingSystemImage
Publish-CMPrestageContent [-Description <String>] -DistributionPointName <String> -FileName <String>
-OperatingSystemImage <IResultObject> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByIdMandatory_OperatingSystemInstaller
Publish-CMPrestageContent [-Description <String>] -DistributionPointName <String> -FileName <String>
-OperatingSystemInstallerId <String[]> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf]
[-Confirm] [<CommonParameters>]
SearchByNameMandatory_OperatingSystemInstaller
Publish-CMPrestageContent [-Description <String>] -DistributionPointName <String> -FileName <String>
-OperatingSystemInstallerName <String[]> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf]
[-Confirm] [<CommonParameters>]
SearchByValueMandatory_OperatingSystemInstaller
Publish-CMPrestageContent [-Description <String>] -DistributionPointName <String> -FileName <String>
-OperatingSystemInstaller <IResultObject> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf]
[-Confirm] [<CommonParameters>]
SearchByIdMandatory_Package
Publish-CMPrestageContent [-Description <String>] -DistributionPointName <String> -FileName <String>
-PackageId <String[]> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByNameMandatory_Package
Publish-CMPrestageContent [-Description <String>] -DistributionPointName <String> -FileName <String>
-PackageName <String[]> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByValueMandatory_Package
Publish-CMPrestageContent [-Description <String>] -DistributionPointName <String> -FileName <String>
-Package <IResultObject> [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Cmdleten Publish-CMPrestageContent publicerar filer för program, avbildningar, paket eller installationsprogram för operativsystem till en distributionsplats utan att Konfigurationshanteraren distributionsprocessen.
Ange distributionsplatsen, filnamnet och det objekt som ska publiceras.
Du kan ange något av följande för att publicera till en distributionsplats:
- Program
- BootImage
- DeploymentPackage
- DriverPackage
- OperatingSystemImage
- OperatingSystemInstaller
- Paket
Du kan ange det objekt som ska publiceras med namn eller ID, eller använda en annan cmdlet för att hämta önskat objekt.
Anteckning
Kör Konfigurationshanteraren cmdlets från Konfigurationshanteraren platsenheten, till exempel PS XYZ:\>
. Mer information finns i Komma igång.
EXAMPLES
Exempel 1: Publicera ett paket
PS XYZ:\>Publish-CMPrestageContent -PackageId "CM200001" -DistributionPointName "FileDist02.Western.Contoso.com" -FileName "C:\Users\admin\Documents\Package.pkgx"
Det här kommandot publicerar paketet som har ID:t CM200001 till den angivna distributionsplatsen som angiven .pkgx-fil.
Exempel 2: Publicera en startavbildning
PS XYZ:\>Publish-CMPrestageContent -BootImageId "CM200005" -DistributionPointName "FileDist02.Western.Contoso.com" -FileName "C:\Users\admin\Documents\BootImage.pkgx"
Det här kommandot publicerar startavbildningen som har ID:t CM200005 till den angivna distributionsplatsen som angiven .pkgx-fil.
Exempel 3: Publicera ett drivrutinspaket
PS XYZ:\>Publish-CMPrestageContent -DriverPackageId "CM20000F" -DistributionPointName "FileDist02.Western.Contoso.com" -FileName "C:\Users\admin\Documents\DriverPackage.pkgx"
Det här kommandot publicerar drivrutinspaketet som har ID:t CM20000F till den angivna distributionsplatsen som angiven .pkgx-fil.
Exempel 4: Publicera en operativsystemavbildning
PS XYZ:\>Publish-CMPrestageContent -OperatingSystemImageId "CM200006" -DistributionPointName "FileDist02.Western.Contoso.com" -FileName "C:\Users\admin\Documents\OSImage.pkgx"
Det här kommandot publicerar operativsystemavbildningen som har ID:t CM200006 till den angivna distributionsplatsen som angiven .pkgx-fil.
Exempel 5: Publicera ett installationsprogram för operativsystem
PS XYZ:\>Publish-CMPrestageContent -OperatingSystemInstallerId "CM200017" -DistributionPointName "FileDist02.Western.Contoso.com" -FileName "C:\Users\admin\Documents\OSInstaller.pkgx"
Det här kommandot publicerar installationsprogrammet för operativsystemet som har ID:t CM200017 till den angivna distributionsplatsen som angiven .pkgx-fil.
PARAMETERS
-Program
Anger ett programobjekt. Om du vill hämta ett programobjekt använder du cmdleten Get-CMApplication.
Type: IResultObject
Parameter Sets: SearchByValueMandatory_Application
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ApplicationId
Anger en matris med program-ID:er.
Type: String[]
Parameter Sets: SearchByIdMandatory_Application
Aliases: ApplicationIds
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ApplicationName
Anger en matris med namn på program.
Type: String[]
Parameter Sets: SearchByNameMandatory_Application
Aliases: ApplicationNames
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-BootImage
Anger ett startavbildningsobjekt. Om du vill hämta ett startavbildningsobjekt använder du cmdleten Get-CMBootImage.
Type: IResultObject
Parameter Sets: SearchByValueMandatory_BootImage
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-BootImageId
Anger en matris med ID:er med startavbildningar.
Type: String[]
Parameter Sets: SearchByIdMandatory_BootImage
Aliases: BootImageIds
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-BootImageName
Anger en matris med namn på startavbildningar.
Type: String[]
Parameter Sets: SearchByNameMandatory_BootImage
Aliases: BootImageNames
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Uppmanar dig att bekräfta innan du kör cmdleten.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-DeploymentPackage
Anger ett distributionspaketobjekt. Om du vill hämta ett distributionspaketobjekt använder du cmdleten Get-CMDeploymentPackage.
Type: IResultObject
Parameter Sets: SearchByValueMandatory_DeploymentPackage
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DeploymentPackageId
Anger en matris med ID:er med distributionspaket.
Type: String[]
Parameter Sets: SearchByIdMandatory_DeploymentPackage
Aliases: DeploymentPackageIds
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DeploymentPackageName
Anger en matris med namn på distributionspaket.
Type: String[]
Parameter Sets: SearchByNameMandatory_DeploymentPackage
Aliases: DeploymentPackageNames
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Beskrivning
Anger en beskrivning av innehållet.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DisableDependencyExport
Type: SwitchParameter
Parameter Sets: SearchByValueMandatory_Application, SearchByIdMandatory_Application, SearchByNameMandatory_Application
Aliases: DisableExportAllDependencies
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DisableWildcardHandling
Den här parametern behandlar jokertecken som värden för literaltecken. Du kan inte kombinera den med ForceWildcardHandling.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DistributionPointName
Anger en distributionsplats för innehållet.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DriverPackage
Anger ett drivrutinspaketobjekt. Om du vill hämta ett drivrutinspaketobjekt använder du cmdleten Get-CMDriverPackage.
Type: IResultObject
Parameter Sets: SearchByValueMandatory_DriverPackage
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DriverPackageId
Anger en matris med ID:er med drivrutinspaket.
Type: String[]
Parameter Sets: SearchByIdMandatory_DriverPackage
Aliases: DriverPackageIds
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DriverPackageName
Anger en matris med namn på drivrutinspaket.
Type: String[]
Parameter Sets: SearchByNameMandatory_DriverPackage
Aliases: DriverPackageNames
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-FileName
Anger ett filnamn för en .pkgx-fil.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ForceWildcardHandling
Den här parametern bearbetar jokertecken och kan leda till oväntat beteende (rekommenderas inte). Du kan inte kombinera den med DisableWildcardHandling.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OperatingSystemImage
Anger ett objekt för operativsystemavbildning. Om du vill hämta ett objekt för operativsystemavbildningar använder du cmdleten Get-CMOperatingSystemImage.
Type: IResultObject
Parameter Sets: SearchByValueMandatory_OperatingSystemImage
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OperatingSystemImageId
Anger en matris med ID:er med operativsystemavbildningar.
Type: String[]
Parameter Sets: SearchByIdMandatory_OperatingSystemImage
Aliases: OperatingSystemImageIds
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OperatingSystemImageName
Anger en matris med namn på operativsystemavbildningar.
Type: String[]
Parameter Sets: SearchByNameMandatory_OperatingSystemImage
Aliases: OperatingSystemImageNames
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OperatingSystemInstaller
Anger ett objekt för installationsprogrammet för operativsystemet. Om du vill hämta ett installationsobjekt för operativsystemet använder du cmdleten Get-CMOperatingSystemInstaller.
Type: IResultObject
Parameter Sets: SearchByValueMandatory_OperatingSystemInstaller
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OperatingSystemInstallerId
Anger en matris med ID:er med installationsprogram för operativsystem.
Type: String[]
Parameter Sets: SearchByIdMandatory_OperatingSystemInstaller
Aliases: OperatingSystemInstallerIds
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OperatingSystemInstallerName
Anger en matris med namn på installationsprogram för operativsystem.
Type: String[]
Parameter Sets: SearchByNameMandatory_OperatingSystemInstaller
Aliases: OperatingSystemInstallerNames
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Paket
Anger ett paketobjekt. Om du vill hämta ett paketobjekt använder du cmdleten Get-CMPackage.
Type: IResultObject
Parameter Sets: SearchByValueMandatory_Package
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PackageId
Anger en matris med paket-ID:er.
Type: String[]
Parameter Sets: SearchByIdMandatory_Package
Aliases: PackageIds
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PackageName
Anger en matris med namn på paket.
Type: String[]
Parameter Sets: SearchByNameMandatory_Package
Aliases: PackageNames
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
Denna cmdlet har stöd för parametrarna -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction och -WarningVariable. Mer information finns i about_CommonParameters.