New
#1
Can't import tasks when fresh install Windows.
I have an automation script that tries to import several tasks. These fail with an error;
ERROR: No mapping between account names and security IDs was done.
This is because the xml file for the task when it was exported has a userid field which contains the SID for that installation of Windows.
<UserId>S-1-5-21-3173435481-3098723185-4139672091-1001</UserId>
The SID changes with each Windows install, so it doesn't match. Hence the import fails.
Does any one know a way around this?
One thing I thought of ... It's easy enough to grab the SID from the registry, but I don't know how to replace the line in the XML file with the new SID