Win32 SID path - linking sims to AD
I've developed a web application which enables me to create and delete users based on the information in SIMS. It creates accounts, mailboxes, home folders and disk quotas etc, deletes them fully, and records its actions to a db. When I look at the logs it seems that it is taking a full minute to set up the disk quotas, everything else happens in seconds! It sometimes fails the disk quota setup too because it can't find the account.
I wondered, given windows disk quota mechanism, if it would work faster if I fed the account information to the script as a SID, but no matter how I set it up the system returns account not found, or sometimes invalid object path. I wondered if anyone knows what the correct path information for a Win32_Account reference should be if using the SID, or if I should be using a different Win32 reference altogether.
By the way, if anyone is interested in the code, it's nothing very clever but helps us a good deal. I'd be happy to post it.
Best wishes
Jay
Re: Win32 SID path - linking sims to AD
I'd like to see that jay, sounds a bit interesting.
Re: Win32 SID path - linking sims to AD
No problem - I'm on holiday till next friday (why can't I take my head out of work). I'll post it the essentials next week, at the moment it's very site specific (server names and domain names are hard coded) but it shouldn't be too hard to reconfigure. There are a couple of extra bits we've found useful, sending files to specific exam accounts, clearing said accounts etc.
Anyway I'll post the code next week.
Jay