Jump to content
EduGeek EdSec 2026 is on Tuesday in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

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

Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...