I removed the client0 from the domain, and re-added it. I verified that the stafproc is running under maildomain0\administrator.
I ran the following:
C:\Users\Administrator>staf client0 process start command "c:\\Program Files\\Exchange Load Generator\\LoadGenCmd.exe /r /c C:\\vclient\\mailserver\\vmmark2-mailserver-0.xml" returnstdout stderrtostdout wait
Response
--------
{
Return Code: 1
Key : <None>
Files : [
{
Return Code: 0
Data : Microsoft Exchange Load Generator
Configuring LoadGen task engine...
Loading settings...
ERROR -- Caught exception UnauthorizedAccessException:
Access to the registry key 'Global' is denied.
at Microsoft.Exchange.Swordfish.TaskEngine.initializeUserGroups()
at Microsoft.Exchange.Swordfish.TaskEngine..ctor(GlobalSettings settingsObject)
at Microsoft.Exchange.Swordfish.Cmd.SwordfishCmd.Main(String[] args)
}
]
}