solved…
i used a computer startup script
script name:
C:\Users\admin\sysprep\firstlogon.ps1
script parameters:
powershell -ep Bypass
and heres the script (just made a rough one to test and every command ran as when i logged in after the pc syspreped all commands worked)
start-process 'C:\Users\admin\sysprep\Firefox Setup 138.0.exe' /S -wait Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\AdventNet\DesktopCentral\DCAgent\" -Name "ImagedComputer" -Force Remove-Item -Path "HKLM:\SOFTWARE\Wow6432Node\AdventNet\DesktopCentral\DCAgent\SystemDetails" -Force Set-LocalUser -Name "user01" -PasswordNeverExpires $true Set-LocalUser -Name "it" -PasswordNeverExpires $true remove-item -path C:\Users\admin\sysprep -recurse -force