Win32 API calls require permission to run unmanaged code. As soon as you make a Win32 API call, your assembly instantly requires the highest possible level of permission that an assembly can have. This means that it will be much harder to...
I found this on Microsoft's website. It is a great little script that programatically shows the FSMO roles of your AD deployment.
Another greate snippet of code. This one enumerates all the shares on a machine in a specific domain.
Here is a bit of code that inputs a username and domain combination, and tells you if the account is disabled or not. This is a handy function to be part of a user administration suite.
Here is a little piece of code that will allow you to create a file share programmatically. Great for an administrative suite of scripts.
Another handy script for the administrator's suite. This one adds a user to a group.
· An error in declaration may lead to memory exceptions (Remember the By Val Keyword)...