Advertisement
gpo_pc_aide

LGPO.exe

Jun 24th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. https://download.microsoft.com/download/8/5/C/85C25433-A1B0-4FFA-9429-7E023E7DA8D8/LGPO.zip
  2. ◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼
  3. LGPO.exe v2.2 - Local Group Policy Object utility
  4.  
  5. LGPO.exe has four modes:
  6. * Import and apply policy settings;
  7. * Export local policy to a GPO backup;
  8. * Parse a registry.pol file to "LGPO text" format;
  9. * Build a registry.pol file from "LGPO text".
  10.  
  11. To apply policy settings:
  12.  
  13. LGPO.exe command [...]
  14.  
  15. where "command" is one or more of the following (each of which can be repeated):
  16.  
  17. /g path import settings from one or more GPO backups under "path"
  18. /m path\registry.pol import settings from registry.pol into machine config
  19. /u path\registry.pol import settings from registry.pol into user config
  20. /ua path\registry.pol import settings from registry.pol into user config for Administrators
  21. /un path\registry.pol import settings from registry.pol into user config for Non-Administrators
  22. /u:username path\registry.pol
  23. import settings from registry.pol into user config for local user
  24. specified by "username"
  25. /s path\GptTmpl.inf apply security template
  26. /a[c] path\Audit.csv apply advanced auditing settings; /ac to clear policy first
  27. /t path\lgpo.txt apply registry commands from LGPO text
  28. /e <name>|<guid> enable GP extension for local policy processing; specify a
  29. GUID, or one of these names:
  30. * "zone" for IE zone mapping extension
  31. * "mitigation" for mitigation options, including font blocking
  32. * "audit" for advanced audit policy configuration
  33. * "LAPS" for Local Administrator Password Solution
  34. * "DGVBS" for Device Guard virtualization-based security
  35. * "DGCI" for Device Guard code integrity policy
  36. /boot reboot after applying policies
  37. /v verbose output
  38. /q quiet output (no headers)
  39.  
  40. To create a GPO backup from local policy:
  41.  
  42. LGPO.exe /b path [/n GPO-name]
  43.  
  44. /b path Create GPO backup in "path"
  45. /n GPO-name Optional GPO display name (use quotes if it contains spaces)
  46.  
  47. To parse a Registry.pol file to LGPO text (stdout):
  48.  
  49. LGPO.exe /parse [/q] {/m|/u|/ua|/un|/u:username} path\registry.pol
  50.  
  51. /m path\registry.pol parse registry.pol as machine config commands
  52. /u path\registry.pol parse registry.pol as user config commands
  53. /ua path\registry.pol parse registry.pol as user config for Administrators
  54. /un path\registry.pol parse registry.pol as user config for Non-Administrators
  55. /u:username path\registry.pol
  56. parse registry.pol as user config for local user
  57. specified by "username"
  58. /q quiet output (no headers)
  59.  
  60. To build a Registry.pol file from LGPO text:
  61.  
  62. LGPO.exe /r path\lgpo.txt /w path\registry.pol [/v]
  63.  
  64. /r path\lgpo.txt Read input from LGPO text file
  65. /w path\registry.pol Write new registry.pol file
  66. ◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼
  67.  
  68. ◼Edit a registry.pol
  69. lgop.exe /parse /u .\registry.pol > registry.txt
  70.  
  71. ◼Build a registry.pol from registry.txt
  72. lgpo.exe /r registryNew.txt /w registryNew.pol
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement