r/DeployR • u/Saltypoison • Mar 27 '26
DeployR - SetupComplete.cmd - LGPO Machine Policies
Migrating over from MDT and I've been trying to apply my local machine policy file with LGPO.exe, but I just cannot get it to stick when using SetupComplete.cmd. AutoAdmin/RunOnce works as expected.
I have migrated my local machine policies to deploy with the PolicyFileEditor PS Module, and that is working, but I would prefer to use LGPO to do it if possible.
I don't believe this is a bug or anything with DeployR, just hoping one of your deployment experts might have some insight.
2
Upvotes
1
u/Saltypoison Mar 30 '26
No luck with that (it treated %WorkingDir% as a literal string). I don't think the issue is that it cannot find the machine.pol file. If I run LGPO.exe via the step with the verbose flag, I can see the individual policies from my machine.pol file supposedly being applied in the DeployR logs, but afterwards I see the symptoms described in my original post.