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

Command Line options #46

Open
God-damnit-all opened this issue Jun 16, 2021 · 4 comments
Open

Command Line options #46

God-damnit-all opened this issue Jun 16, 2021 · 4 comments
Labels
enhancement A request for additional functionality

Comments

@God-damnit-all
Copy link

I've noticed that, a couple years back, someone forked the project to create command line options for the program, but surprisingly, he never opened an issue or push request on this repo. Maybe it was never truly finished and he lost interest: https://github.com/daveMueller/PolicyPlus/commits/UseCommandLineUtils

Though, one big flaw was that he had to separate the GUI and console versions, making it difficult to reapply his work.

It would be good to have command line features implemented, as LGPO.exe is a bit of a pain in the ass at times.

@Fleex255 Fleex255 added the enhancement A request for additional functionality label Jun 16, 2021
@RokeJulianLockhart
Copy link

RokeJulianLockhart commented May 22, 2023

#46 (comment)

@ImportTaste, until this is implemented, have you tried editing Group Policy settings via PowerShell's registry editing capability? I find that it's remarkably easy.

@God-damnit-all
Copy link
Author

@ImportTaste, until this is implemented, have you tried editing Group Policy settings via PowerShell's registry editing capability? I find that it's remarkably easy.

Some policies have multiple registry entries associated with them, and while editing policies edits the registry values, I don't think the reverse is true, so you lose track of what's been changed.

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented May 22, 2023

#46 (comment)

@ImportTaste, this answers.microsoft.com question might be vaguely useful.

@Fleex255
Copy link
Owner

If you modify the Registry directly, the changes will not be reflected in the POL, so the Local Group Policy Editor would not see them. (Policy Plus only would if you opened a Registry source.)

As a workaround for the absence of command-line option support, it is possible to load Policy Plus into PowerShell as a .NET assembly and use its components from script: #5 (comment). Someone could even write a PowerShell module to make this process nicer.

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

No branches or pull requests

3 participants