If I remember correctly,  I had to create a query and results for
deployment that had this set as run from location we switched them all to
download and install.

I haven't had the need to do it again so not sure if there is a cmdlet
available.

On Sun, Mar 20, 2016, 8:24 PM Magnus Tveten <[email protected]>
wrote:

> Hmmm
>
> Seems in theory you should be able to use this command :
>
> Set-CMPackageDeployment
>
>
>
> So if I have a Package “Blah” (package ID ***015E3)
>
> Program “InstallMSI-BLAH”
>
> Collection “BlahTest”
>
>
>
> Set-CMPackageDeployment -PackageId "***015e3" -StandardProgramName
> "InstallMIS-BLAH"
>
> -CollectionName "BlahTest" -FastNetworkOption
> RunProgramFromDistributionPoint
>
>
>
> But then in SMSProv.log
>
> You can see it does this :
>
>
>
> ....
>
> SELECT * FROM SMS_Advertisement WHERE
> AdvertisementName='InstallMSI-BLAH_***015E3_BlahTest'
>
> ....
>
> Results returned : 0 of 1
>
> ...
>
>
>
> ... =  one or more uninteresting lines for this discussion J
>
>
>
>
>
> And I’m sure that’s Great for Deployments that follow the standard names
> that the SCCM2012 Console generates when you creates deployments, however
> this is a migrated package from SCCM2007 environment where you could name
> the advertisements whatever you wanted* and my advertisement name is :
> “Blah – Install”
>
>
>
> Does not seem to be a way to specify what the advertisement name is, its
> just presumed that you followed the standard that was to come in a later
> version of the product  J
>
>
>
>
> ------------------------------
>
> *MAGNUS TVETEN *
>
> SERVER SUPPORT ENGINEER
>
> CO CITRIX/SERVER
>
> Insurance Australia Group Limited
>
> Lvl 1, 23 Lakeside Drive, Burwood
>
> Burwood East VIC 3151
>
> Australia
>
>
>
> T +61 3 8804 3226   M +61 411 010 460
>
> E [email protected]
>
> www.iag.com.au
>
> *PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL.*
> ------------------------------
>
>
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *CESAR.ABREG0 .
> *Sent:* Monday, 21 March 2016 1:44 PM
> *To:* [email protected]
> *Subject:* Re: [mssms] SCCM2012 r2 sp1 - Powershell commands for
> Deployment...
>
>
>
> I think there isn't one. I did the same thing you trying to do about 2
> years ago and had to use WMI. I think I still have the script somewhere.
>
>
>
> On Sun, Mar 20, 2016, 5:22 PM Magnus Tveten <[email protected]>
> wrote:
>
> Hey All,
>
>                 Ok this is probably something super simple that I’m
> overlooking....
>
>
>
> In our SCCM 2012 R2 Sp1, we have some packages that have their deployments
> set to ‘Run From DP’ instead of ‘download and install’
>
>
>
> Normally I would just script it and use WMI to connect to the packages and
> Advertisements and change to download and install and remove the share from
> the package and all that.
>
>
>
> However I thought I really should get around to using the Powershell
> commands that are available these days..
>
> But for the life of me cannot find the right command to change those
> settings..
>
>
>
> If anyone can help that would be awesome...
>
>
>
> thanks
>
>
> ------------------------------
>
> *MAGNUS TVETEN *
>
>
> _____________________________________________________________________
>
> The information transmitted in this message and its attachments (if any)
> is intended
> only for the person or entity to which it is addressed.
> The message may contain confidential and/or privileged material. Any
> review,
> retransmission, dissemination or other use of, or taking of any action in
> reliance
> upon this information, by persons or entities other than the intended
> recipient is
> prohibited.
>
> If you have received this in error, please contact the sender and delete
> this e-mail
> and associated material from any computer.
>
> The intended recipient of this e-mail may only use, reproduce, disclose or
> distribute
> the information contained in this e-mail and any attached files, with the
> permission
> of the sender.
>
> This message has been scanned for viruses.
> _____________________________________________________________________
>
>
>
>
> _____________________________________________________________________
>
> The information transmitted in this message and its attachments (if any)
> is intended
> only for the person or entity to which it is addressed.
> The message may contain confidential and/or privileged material. Any
> review,
> retransmission, dissemination or other use of, or taking of any action in
> reliance
> upon this information, by persons or entities other than the intended
> recipient is
> prohibited.
>
> If you have received this in error, please contact the sender and delete
> this e-mail
> and associated material from any computer.
>
> The intended recipient of this e-mail may only use, reproduce, disclose or
> distribute
> the information contained in this e-mail and any attached files, with the
> permission
> of the sender.
>
> This message has been scanned for viruses.
> _____________________________________________________________________
>



Reply via email to