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

Getting Error with Get-TargetResource #5

Open
bhaizlett123 opened this issue Jun 4, 2020 · 0 comments
Open

Getting Error with Get-TargetResource #5

bhaizlett123 opened this issue Jun 4, 2020 · 0 comments

Comments

@bhaizlett123
Copy link

When trying to run this in my active directory environment, i keep getting the following errors:

Get-TargetResource : The term 'Get-TargetResource' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files\WindowsPowerShell\Scripts\ActiveDirectoryDSC.Reverse.ps1:115 char:24

  •         $results = Get-TargetResource @params
    
  •                    ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (Get-TargetResource:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

Get-DSCBlock : Cannot bind argument to parameter 'Params' because it is null.
At C:\Program Files\WindowsPowerShell\Scripts\ActiveDirectoryDSC.Reverse.ps1:119 char:62

  • ... $Script:dscConfigContent += Get-DSCBlock -Params $results -Module ...
  •                                                      ~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Get-DSCBlock], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-DSCBlock
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