Skip to content
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

SmbShare: If the Share exists but with the wrong Path, the resource does not update the path #215

Closed
johlju opened this issue Apr 13, 2019 · 0 comments · Fixed by #286
Closed
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.

Comments

@johlju
Copy link
Member

johlju commented Apr 13, 2019

Details of the scenario you tried and the problem that is occurring

This originated from dsccommunity/xSmbShare#10 and was moved here when the module xSmbShare was deprecated.

If the Share exists and the Path is not consistent with the desired state, the resource does not update the path.

Verbose logs showing the problem

Not available.

Suggested solution to the issue

The path cannot be updated without recreating the share, since Set-SmbShare do not support the parameter Path, and New-SmbShare does. Recreating the share could potentially remove configuration that has not been enforced by the DSC configuration. We should support recreating the share, but only if the user expressively allow that by using, for example, a resource parameter Force.

The DSC configuration that is used to reproduce the issue (as detailed as possible)

Any configuration where the desired path mismatch the actual path.

The operating system the target node is running

n/a

Version and build of PowerShell the target node is running

n/a

Version of the DSC module that was used ('dev' if using current dev branch)

dev

@PlagueHO PlagueHO added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. labels Apr 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
2 participants