I'll post the ps script to my blog once I've finished off testing and refining.
> On 13 Jan 2015, at 17:02, Daniel Ratliff <[email protected]> wrote: > > Ah, nice catch Paul. Will have to keep in mind myself, we are getting ready > to re-engineer our task sequences and remove all the Install package steps > and replace with Package variables. > > Daniel Ratliff > > From: [email protected] [mailto:[email protected]] > On Behalf Of Paul Winstanley > Sent: Tuesday, January 13, 2015 10:48 AM > To: [email protected] > Subject: Re: [mssms] Installing list of packages > > Ok school boy error. I am attempting to create the TS variables with the > values > > APPID0001 = PackageName:ProgramName > > should be > > PackageID:ProgramName > > eg TST000A5:Install > > Now chugging away nicely. > > > > On Tue, Jan 13, 2015 at 3:27 PM, Paul Winstanley <[email protected]> > wrote: > Nope that didn't fix Daniel. > > Basically I created TS variables for each package and have each program for > the packages set to "Allow to be installed from TS without being deployed' > and removed my deployments to collections that the device was a member of. > Still got the error: > > No matching policy assignments received. InstallSoftware 13/01/2015 15:22:48 > 2236 (0x08BC) > Policy download failed, hr=0x80004005 InstallSoftware 13/01/2015 15:22:48 > 2236 (0x08BC) > > > On Mon, Jan 12, 2015 at 5:40 PM, Paul Winstanley <[email protected]> > wrote: > Hey Daniel. Hope you had a good festive season mate. > > Yep the computers are known and the specific packages are deployed to a > collection that the computers are a member. This is how the PS script > enumerates which packages are available to the machines and creates the > variables. > > I'll mod my PS script remove the device from the collection or use a runbook > step prior to attempting the package installs. > > I'll update with the results. > > Cheers > Paul > > On Mon, Jan 12, 2015 at 4:56 PM, Daniel Ratliff <[email protected]> wrote: > Two things come to mind. > > 1. Any chance this is standalone media? If so, you need to enable the > software distribution agent. > > 2. Are these known or unknown records you deploy to? If they are known, > are these packages/programs already being deployed to them? > > > I have seen issues during migrations if the record already has a deployment > for that specific package/program. Removing the existing deployment allowed > the package/program to install during the TS. > > Daniel Ratliff > > From: [email protected] [mailto:[email protected]] > On Behalf Of Paul Winstanley > Sent: Monday, January 12, 2015 11:23 AM > To: [email protected] > Subject: [mssms] Installing list of packages > > I'm currently attempting to install a list packages generated by PS within a > TS. The code is working fine and returns the list with the output > > APPID001 SCOMAgent:Install > APPID002 RDCMan:Install > > I have set each program with the following 'Allow this program to be > installed from the Install Software task sequence without being advertised' > and 'Whether or not a user is logged on' but I get the following error: > > No matching policy assignments received. InstallSoftware > 12/01/2015 16:10:18 2448 (0x0990) > Policy download failed, hr=0x80004005 InstallSoftware > 12/01/2015 16:10:18 2448 (0x0990) > Process completed with exit code 2147500037 TSManager 12/01/2015 > 16:10:18 1240 (0x04D8) > > > I've had a Google and whilst there have been discussion around this error > most relate to the settings above and no real fix beyond that. > > Any ideas as quite frustrating? > > Here's a bit more of the smsts.log file showing success creating the TS > variable but failure to install. > > Cheers > Paul > > Expand a string: FullOS TSManager 12/01/2015 16:10:18 1240 > (0x04D8) > Executing command line: smsswd.exe /pkg: /install /basevar:APPid > /continueOnError:False TSManager 12/01/2015 16:10:18 > 1240 (0x04D8) > [ smsswd.exe ] InstallSoftware 12/01/2015 16:10:18 > 2448 (0x0990) > PackageID = '' InstallSoftware 12/01/2015 16:10:18 2448 (0x0990) > BaseVar = 'APPid', ContinueOnError='False' InstallSoftware > 12/01/2015 16:10:18 2448 (0x0990) > ProgramName = '' InstallSoftware 12/01/2015 16:10:18 2448 > (0x0990) > SwdAction = '0003' InstallSoftware 12/01/2015 16:10:18 2448 > (0x0990) > DSInstaller::Execute() InstallSoftware 12/01/2015 > 16:10:18 2448 (0x0990) > Setting progress step for initialization InstallSoftware > 12/01/2015 16:10:18 2448 (0x0990) > Setting total steps to 1 InstallSoftware 12/01/2015 > 16:10:18 2448 (0x0990) > Env variable with specified basename APPid and suffix '001' is found. > InstallSoftware 12/01/2015 16:10:18 2448 (0x0990) > Set authenticator in transport InstallSoftware 12/01/2015 16:10:18 > 2448 (0x0990) > Added RDCManTest:"Install" to the install list InstallSoftware > 12/01/2015 16:10:18 2448 (0x0990) > Adding 1 installs to steps InstallSoftware 12/01/2015 > 16:10:18 2448 (0x0990) > Setting total steps to 2 InstallSoftware 12/01/2015 > 16:10:18 2448 (0x0990) > Step 1 out of 2 complete InstallSoftware 12/01/2015 > 16:10:18 2448 (0x0990) > Executing Policy Assignment Request. InstallSoftware > 12/01/2015 16:10:18 2448 (0x0990) > Default CSP is Microsoft Enhanced RSA and AES Cryptographic Provider > InstallSoftware 12/01/2015 16:10:18 2448 (0x0990) > Default CSP Type is 24 InstallSoftware 12/01/2015 16:10:18 > 2448 (0x0990) > Request client ID: GUID:0a77ab39-66cc-49fb-bbec-423c67ae7e6b > InstallSoftware 12/01/2015 16:10:18 2448 (0x0990) > Response client ID: GUID:0a77ab39-66cc-49fb-bbec-423c67ae7e6b > InstallSoftware 12/01/2015 16:10:18 2448 (0x0990) > No matching policy assignments received. InstallSoftware > 12/01/2015 16:10:18 2448 (0x0990) > Policy download failed, hr=0x80004005 InstallSoftware > 12/01/2015 16:10:18 2448 (0x0990) > Process completed with exit code 2147500037 TSManager 12/01/2015 > 16:10:18 1240 (0x04D8) > !--------------------------------------------------------------------------------------------! > TSManager 12/01/2015 16:10:18 1240 (0x04D8) > Failed to run the action: Install Package. > Unspecified error (Error: 80004005; Source: Windows) TSManager > 12/01/2015 16:10:18 1240 (0x04D8) > Set authenticator in transport TSManager 12/01/2015 16:10:18 1240 > (0x04D8) > Set a global environment variable _SMSTSLastActionRetCode=-2147467259 > TSManager 12/01/2015 16:10:18 1240 (0x04D8) > Set a global environment variable _SMSTSLastActionSucceeded=false > TSManager 12/01/2015 16:10:18 1240 (0x04D8) > Clear local default environment TSManager 12/01/2015 16:10:18 > 1240 (0x04D8) > Failed to run the action: Install Package. Execution has been aborted > TSManager 12/01/2015 16:10:18 1240 (0x04D8) > Set authenticator in transport TSManager 12/01/2015 16:10:18 1240 > (0x04D8) > Failed to run the last action: Install Package. Execution of task sequence > failed. > Unspecified error (Error: 80004005; Source: Windows) TSManager > 12/01/2015 16:10:19 1240 (0x04D8) > Set authenticator in transport TSManager 12/01/2015 16:10:19 1240 > (0x04D8) > Task Sequence Engine failed! Code: enExecutionFail TSManager > 12/01/2015 16:10:26 1240 (0x04D8) > > > > The information transmitted is intended only for the person or entity to > which it is addressed > and may contain CONFIDENTIAL material. If you receive this > material/information in error, > please contact the sender and delete or destroy the material/information. > > > > > > > The information transmitted is intended only for the person or entity to > which it is addressed > and may contain CONFIDENTIAL material. If you receive this > material/information in error, > please contact the sender and delete or destroy the material/information. >

