I am using a secedit command line to change some security settings on a Win7 SP1 X64 task sequence build. The command line works just fine when I run it manually but my task sequence step fails with error code 1.
Here is the command line:
secedit.exe /configure /db c:\windows\security\database\custom.sdb /cfg %scriptroot%\security.inf /overwrite /quiet
Here is the full error message:
Command line returned 1. The operating system reported error 1: Incorrect function.
I've verified the security.inf file is in my MDT toolkit in the scripts folder. Any ideas why I might be getting this error message when it runs just fine manually?