- Joined: 3/19/2007
Monday, March 19, 2007 1:22 PM
Not sure if this is the best place to post this but firstly a v. useful utility however
May I point out a flaw in the version that is currently on the ITFORUM website.
When you use the -runas option and set a user and a password the routine fails and the reason is a flaw in the SetRunAsPassword routine In the file SrvcMgmt.cpp. The 2nd parameter of the StringCChCopyx and StringCChCatx requires the total length of the string including null terminator so the guid gets truncated the way the code reads at the moment.
I've attached a version that works.
May I also suggest you alter dcomperm.cpp so it produces a message when -runas succeeds