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. > _____________________________________________________________________ > >
