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

Invoke-DscResource weirdness #164

Closed
potatoqualitee opened this issue Sep 2, 2022 · 3 comments
Closed

Invoke-DscResource weirdness #164

potatoqualitee opened this issue Sep 2, 2022 · 3 comments

Comments

@potatoqualitee
Copy link
Owner

image

solution is earlier in the script not to test for the existence of the module but for import-dscresource to actually load and if it doesnt then copy to program files and explicitly import from there

@potatoqualitee
Copy link
Owner Author

@potatoqualitee
Copy link
Owner Author

potatoqualitee commented Sep 3, 2022

PSDscResources or xPSDesiredStateConfiguration

so when you call Invoke-DscResource, you can specify the ModuleName parameter - you should always do this (and tbh, specify the minimum or precise version you need) and especially to avoid using the resources that shipped in DSC v1.1

@potatoqualitee
Copy link
Owner Author

@jpomfret i feel decently confident this will address your issues. please feel free to reopen if you run into it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant