All,
I am trying to test deploying WMF5 preview to nodes and can not seem to get it to work.
Here is what I have tried:
#Pull computer objects for AD function GetDSCServers { import-module ActiveDirectory Get-ADComputer -SearchBase "OU=DSC Managed Nodes,OU=SERVERS,OU=NYC,OU=Americas,DC=lab2,DC=mckinsey,DC=com" -filter * | Select-Object Name } $DSCServers = GetDSCServers foreach ($DSCServer in $DSCServers) { $DSC = $DSCServer.name Copy-item "\\lab-dsc-01\WMF_5" -container -recurse "\\$DSC\c$\temp\" -Force Invoke-Command -Computername $DSC -ScriptBlock { Start /wait wusa.exe "c:\temp\WMF_5\Extracted\Win8.1AndW2K12R2--KB3066437-x64.msu" /quiet /forcerestart } -Credential $(Get-Credential) }
Here I tried extracting the msu.
#Pull computer objects for AD function GetDSCServers { import-module ActiveDirectory Get-ADComputer -SearchBase "OU=DSC Managed Nodes,OU=SERVERS,OU=NYC,OU=Americas,DC=lab2,DC=mckinsey,DC=com" -filter * | Select-Object Name } $DSCServers = GetDSCServers foreach ($DSCServer in $DSCServers) { $DSC = $DSCServer.name Copy-item "\\lab-dsc-01\WMF_5" -container -recurse "\\$DSC\c$\temp\" -Force Invoke-Command -Computername $DSC -ScriptBlock { Start-Process -FilePath 'dism.exe' -ArgumentList "/online /add-package /PackagePath:c:\temp\WMF_5\Extracted\WindowsBlue-KB3066437-x64.cab" } -Credential $(Get-Credential) }
The files copy the the servers with no issues, I can see the credental logging on in the Security Event log, but it never runs.
All help is appreciated.
Thanks