Microsoft help

MS: Finding current shares on your server

On Windows Server 2003, from cmd prompt type: net share On Windows Server 2008: Either right click on Computer in the Start menu and select Manage, or launch the Server Manager (by default, the first icon next to the start menu in the task bar). In the Server Manager, expand the Roles node, then expand the… Continue reading MS: Finding current shares on your server

Microsoft help

MS: AD: Error deleting objects

In trying to delete a decommissioned server from AD I came across this error: Active Directory Windows cannot delete object object name because: The specified directory service attribute or value does not exist. This is how you fix it: Open the Active Directory Users and Computers snap-in. Navigate to the container in which the object… Continue reading MS: AD: Error deleting objects

Microsoft help

MS: Run a specific app as a different user

I know that in most instances you can just right click (or SHIFT+RIGHT CLICK) to be able to run a specific app as a different user, but if you don't get the option you can always: Launch Command Prompt as different user. Here is how you can do it. Pin Command Prompt onto Taskbar. Hold… Continue reading MS: Run a specific app as a different user

Microsoft help

MS: AD: Defining primary group membership with Powershell

NOTE: Be sure to change the Temp user/group entries in $NewGroup and $BaseOU to your required distinguished names. # The current Domain $DomainNC = ([ADSI]"LDAP://RootDSE").DefaultNamingContext # The Primary Group Token for Domain Users and Guests will always be # the same value (no matter the forest). Used as a demonstration of # how the value… Continue reading MS: AD: Defining primary group membership with Powershell

Microsoft help

MS: AD: Adding users to local security groups using Group Policy

In this example, we will add all domain users to the local computers' Power Users group for all computers in the domain. Open the Group Policy Management Console Edit the Default Domain Policy Navigate to Computer Configuration > Policies > Windows Settings > Security Settings > Restricted Groups Right-click Restricted Groups and select Add Group...… Continue reading MS: AD: Adding users to local security groups using Group Policy

Microsoft help

MS: AD: Powershell script to disable and delete user accounts in a specific OU

####################################################################################### ##DisabledUserCleanup.ps1 ##This script is designed to poll AD for any disabled user accounts that are over 30 days old and deletes them. ##The results are put into a file and then emailed to IT staff. ####################################################################################### #load AD module import-module activedirectory $oldDate = [DateTime]::Today.AddDays(-0) $AMSearchBase = "OU=Users,DC=domain,DC=local" $ShortRegion = "AM" $Region = "AM Region"… Continue reading MS: AD: Powershell script to disable and delete user accounts in a specific OU