saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Install Salt from the Salt package repositories here:
https://docs.saltproject.io/salt/install-guide/en/latest/
Apache License 2.0
14.23k stars 5.49k forks source link

Microsoft LAPS - Error setting Backup Directory #65781

Open bcowman opened 11 months ago

bcowman commented 11 months ago

Description I am trying to enable Microsoft LAPS on Windows 10 Pro 22H2 using lgpo.set. I get an error when setting the Backup directory. image

Setup These are some of the sls configurations I have tried:

LAPS: lgpo.set:

---Error Invalid element name: Backup directory

LAPS: lgpo.set:

--Error Failed to set the following policies: Configure password backup directory

LAPS: lgpo.set:

--Error Element LAPS_BackupDirectory does not have a valid value

Versions Report Salt Version: Salt: 3006.5

Python Version: Python: 3.10.13 (heads/main:5600dd9, Nov 15 2023, 04:42:06) [MSC v.1937 64 bit (AMD64)]

Dependency Versions: cffi: 1.14.6 cherrypy: 18.6.1 dateutil: 2.8.1 docker-py: Not Installed gitdb: 4.0.7 gitpython: Not Installed Jinja2: 3.1.2 libgit2: Not Installed looseversion: 1.0.2 M2Crypto: Not Installed Mako: Not Installed msgpack: 1.0.2 msgpack-pure: Not Installed mysql-python: Not Installed packaging: 22.0 pycparser: 2.21 pycrypto: Not Installed pycryptodome: 3.10.1 pygit2: Not Installed python-gnupg: 0.4.8 PyYAML: 6.0.1 PyZMQ: 25.0.2 relenv: 0.14.2 smmap: 4.0.0 timelib: 0.2.4 Tornado: 4.5.3 ZMQ: 4.3.4

System Versions: dist:
locale: cp1252 machine: AMD64 release: 10 system: Windows version: 10 10.0.19045 SP0 Multiprocessor Free

welcome[bot] commented 11 months ago

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey. Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. If you have additional questions, email us at saltproject@vmware.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!

bcowman commented 10 months ago

On further testing, the setting configuration works the first time it is run. Subsequent runs fail. If I manually change the setting back to 'Not Configured' using Group Policy editor then run again it works. It looks like a bug where reapplying the same setting works on the first attempt but fails on subsequent attemps.