Giter Site home page Giter Site logo

activedirectorydsc.reverse's Issues

Getting Error with Get-TargetResource

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

Clarification of functionality

Details of the scenario you try and problem that is occurring:

We are using the provided powershell module on a Windows Server 2016 to replicate our Active Directory (forest and domain functional level 2016). After execution, the output folder contains only a .ps1 file containing only AD users. No .psd1 is generated and no error is printed.

From the README, we expected the module to replicate our AD. Currently, I see only users being replicated. Are we assessing the situation correctly?

The DSC configuration that is using the resource:

Version of the Operating System and PowerShell the DSC Target Node is running:

  • Windows Server 2016 (forest and domain functional level 2016)
  • PowerShell version
$PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.3471
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.3471
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version of the DSC module you're using:

Latest master e58afec

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.