Get-Item : Cannot find path '\\' because it does not exist.
At C:\Program Files\WindowsPowerShell\Modules\VcRedist\2.0.132\Public\Import-VcConfigMgrApplication.ps1:183 char:68
I isolated it to when the Deployment Type was being created in SCCM (version 1810). It's due to set-location on line 177 and get-item on line 183. Once I updated the code everything worked as expected.
This project only accepts pull requests related to open issues.
If suggesting a new feature or change, please discuss it in an issue first.
If fixing a bug, there should be an issue describing it with steps to reproduce
Please link to the issue here
Motivation and Context
Why is this change required? What problem does it solve?
How Has This Been Tested?
Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to see how your change affects other areas of the code, etc.
Screenshots (if appropriate):
Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have updated the CHANGELOG file accordingly for the version that this merge modifies.
I kept getting an error when running the script:
Get-Item : Cannot find path '\\' because it does not exist.
At C:\Program Files\WindowsPowerShell\Modules\VcRedist\2.0.132\Public\Import-VcConfigMgrApplication.ps1:183 char:68
I isolated it to when the Deployment Type was being created in SCCM (version 1810). It's due to set-location on line 177 and get-item on line 183. Once I updated the code everything worked as expected.
Source: https://stackoverflow.com/questions/23574653/running-get-childitem-on-unc-path-works-in-powershell-but-not-in-powershell-run
Description
Please describe your pull request in detail.
Related Issue
This project only accepts pull requests related to open issues.
Please link to the issue here
Motivation and Context
Why is this change required? What problem does it solve?
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
What types of changes does your code introduce? Put an
x
in all the boxes that apply:Checklist:
Go over all the following points, and put an
x
in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!