Code Monkey home page Code Monkey logo

admxtodsc's People

Contributors

gpoguy avatar jdhitsolutions avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

admxtodsc's Issues

Scope issues

You have scope issues. You define $valueNameHashTable in the main body of your script and expect to reference it inside your nested functions. It most likely works but is not a best practice and could come back later to bite you. If you want to do this you should use a scope identifier like global or script.

No need to rename internal functions

Because your internal functions are only called from the main function, there is no need to give them standard names. I often use non-standard names for internal functions to remind me that the user will never see these functions.

roadmap

What are your long term plans for this? If I have a policy that does things like configure services and event logs, I would want the script to convert those settings to a DSC config because those use out of the box resources like you are using Registry. Eventually, it would be nice to check thinks like a new folder preference and create that configuration using on of the SMBShare resources.

I think the challenge is that the GP cmdlets don't easily expose settings like service configurations. Anyway I'd love to hear more about where you intend to go with this project.

Infinite Loop Condition When Analyzing Certain GPOs

Ran into this one while generating DSCs to test against using DSCEA. With particular policies that have no value listed (see first image below), the Recurse_PolicyKeys function, particularly at line 99's else condition, does not appear to increment past the empty valued key, this getting stuck on it and putting the code into a loop.

For testing, the object it's getting stuck on for me is Computer Configuration > Policies > Software Settings > System > Remote Assistance > Offer Remote Assistance set to Disabled. Script runs without issue when the suspect object is removed from the GPO. Not sure if this condition exists for other objects.

image

minor style issues

  • requires GP cmdlets to function
  • extra text at the bottom of the file
  • params are not marked mandatory even though they will fail without proper input ๐Ÿ˜ƒ

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.