Is the console of the computer you're running these on at R2 CU4? Or better yet, do you have the cmdlet library?
https://www.microsoft.com/en-us/download/details.aspx?id=46681 On Mon, Aug 17, 2015 at 8:51 AM, Mawdsley R. <[email protected]> wrote: > R2 CU4 in both Dev and Prod. > > > > Rich > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Ryan > *Sent:* 17 August 2015 14:38 > *To:* [email protected] > *Subject:* Re: [mssms] Powershell \ SCCM Bug? > > > > What version of ConfigMgr are you running? They got less buggy after R2 > CU3 and R2 CU4. > > > > On Mon, Aug 17, 2015 at 7:00 AM, Mawdsley R. <[email protected]> > wrote: > > Hi All, > > > > I’ve run the below script in my Dev environment and all worked great and > set the Fallback exactly as it should. > > > > However when I run it in production environment, it not only sets the > Fallback, but also sets each application to Only Install when a User is > Logged in!?! > > > > Unless I’m blind, this script should not do that! Bug?? > > > > $AllApplications = Get-cmapplication | select LocalizedDisplayName > > Foreach ($application in $AllApplications) > > { > > Write-Host -ForegroundColor Yellow ("*** Verifying application > MSIorScript " + $application.LocalizedDisplayName + " ***") > > $AllDeploymentTypes = Get-CMDeploymentType -ApplicationName > $application.LocalizedDisplayName | select LocalizedDisplayName > > Foreach ($DeploymentType in $AllDeploymentTypes) > > { > > Write-Host -ForegroundColor Magenta ("*** Evaluating deployment > type MSIorScript " + $DeploymentType.LocalizedDisplayName + " ***") > > Set-CMDeploymentType -ApplicationName > $application.LocalizedDisplayName -DeploymentTypeName > $DeploymentType.LocalizedDisplayName ` > > -MsiOrScriptInstaller -AllowClientsToUseFallbackSourceLocationForContent > $true -OnSlowNetworkMode Download -Verbose > > } > > } > > > > Thankyou > > Rich > > --------------------------------- > > Rich Mawdsley > > SoftwareServices - iSolutions > > University of Southampton > > --------------------------------- > > > > > > > > > >
