Access your domain contoller and type the following format to disable your user :
dsmod user "cn=Joe Bloggs, ou=IT Admins, dc= Your Domain name , dc=com" -disabled yes
Showing posts with label user. Show all posts
Showing posts with label user. Show all posts
Sunday, 27 September 2009
Check if user account is active using command line
Access your domain contoller and type the following format to check if the user is active :
NET USER jbloggs /DOMAIN | FIND /I "Account active"
NET USER jbloggs /DOMAIN | FIND /I "Account active"
Delete a user in Active Directory using command line
Access your domain contoller and type the following format to delete your user :
dsrm "cn=Joe Bloggs, ou=IT Admins, dc= Your Domain name , dc=com"
dsrm "cn=Joe Bloggs, ou=IT Admins, dc= Your Domain name , dc=com"
Add a user in Active Directory using command line
Access your domain contoller and type the following format to add your user :
dsadd user "cn=Joe Bloggs, ou=IT Admins, dc= Your Domain name , dc=com" -samid joebloggs -upn info@YourDomain.com -fn Joe -ln Bloggs -display "Joe Bloggs" -pwd Pa$$w0rd -desc "Systems Administrator"
*ou = is the name of Organisational Unit you will be adding the user to.
dsadd user "cn=Joe Bloggs, ou=IT Admins, dc= Your Domain name , dc=com" -samid joebloggs -upn info@YourDomain.com -fn Joe -ln Bloggs -display "Joe Bloggs" -pwd Pa$$w0rd -desc "Systems Administrator"
*ou = is the name of Organisational Unit you will be adding the user to.
How to set the homepage in Internet Explorer using the registry
Recently I had a situation where a user couldn't re-set her homepage using the normal Internet Explorer (IE) options.
This was a problem as the site that was set to her homepage no longer existed and every time she launched IE she would get 'Page not found'.
In order to resolve this i applied the following registry hack :
1. Winkey + R or Start menu run
2. Type 'regedit'
3. Go to [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Start Page"="http://www.supportingtech.com/"
4. Change the website to the one you require and you are done.
* Please note that the registry is a very important part of the operating system and you should use extreme caution when making changes.
This was a problem as the site that was set to her homepage no longer existed and every time she launched IE she would get 'Page not found'.
In order to resolve this i applied the following registry hack :
1. Winkey + R or Start menu run
2. Type 'regedit'
3. Go to [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Start Page"="http://www.supportingtech.com/"
4. Change the website to the one you require and you are done.
* Please note that the registry is a very important part of the operating system and you should use extreme caution when making changes.
Subscribe to:
Posts (Atom)