-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VcMdtApplication cmdlets have not worked for some time now. Last worked in 3.0.273 I believe. #154
Comments
Here is the problem code:
vclist objects do not produce a path field, and we are checking for one here. |
PS X:\Evergreen> $vclist[0]
|
in update-vcmdtapplication there is this:
but you will never see that useful error message because the error is thrown in Test-VCListObject |
Changing the invoking code to
resolves the issue, but that parameter really needs to be renamed from -VcList to -SaveVcRedist or something so we know what data to supply it, especially since the useful error message is never called. |
What is the point of the 'path' parameter then if we are pulling the path from the output of save-vcredist? |
Alright I found this discussion: #123 |
The same problem with a different cmdlet here: #153 |
Please close issue, redefined the issue as #155 |
This is currently working as designed, so the syntax would be: Import $VcList = Get-VcList | Save-VcRedist -Path E:\Temp\VcRedist
Update-VcMdtApplication -VcList $VcList -MdtPath \\localhost\Deployment\Automata Update $VcList = Get-VcList | Save-VcRedist -Path E:\Temp\VcRedist
Update-VcMdtApplication -VcList $VcList -MdtPath \\localhost\Deployment\Automata |
$Path = "X:\Evergreen"
Get-VcList | Save-VcRedist -Path "$Path\VcRedist"
$vclist = get-vclist
Import-VcMdtApplication -VcList ($vclist) -Path "$Path\VcRedist" -MdtPath \fabricmdt\FactoryDeployment -Verbose -AppFolder VCRedist3
VERBOSE: Retrieving existing Visual C++ Redistributables from the deployment share
Property: 'Path' missing.
At C:\Program Files\WindowsPowerShell\Modules\VcRedist\4.1.494\Private\Test-VcListObject.ps1:48 char:21
Update-VcMdtApplication -VcList ($vclist) -Path "$Path\VcRedist" -MdtPath \fabricmdt\FactoryDeployment -Verbose -AppFolder VCRedist
VERBOSE: Update applications in: DS099:\Applications\VCRedist
Property: 'Path' missing.
At C:\Program Files\WindowsPowerShell\Modules\VcRedist\4.1.494\Private\Test-VcListObject.ps1:48 char:21
The text was updated successfully, but these errors were encountered: