Solved

remove the home directory from active directory user objects.

Posted on 2008-10-28
7
399 Views
Last Modified: 2012-05-05
remove the home directory from active directory user objects.
0
Comment
Question by:UnityTech
7 Comments
 
LVL 17

Expert Comment

by:JohnGerhardt
Comment Utility
Sorry you are going to have to give some more information. I dont understand!?
0
 

Author Comment

by:UnityTech
Comment Utility
I need to remove the home directory in the profile in the users property for multiple users, so I was wanted to know if there was a way to automate it instead of going into each users profile and manually modifying it.
0
 
LVL 35

Accepted Solution

by:
Joseph Daly earned 125 total points
Comment Utility
GO into active directory multiselect all the users that you want to remove it from right click and select properties. You will have the ability to change all of them back to local home directory or any other location you like.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 35

Expert Comment

by:Joseph Daly
Comment Utility
You could do something like dsquery user -samid * | dsmod user -hmdir {enter your text here}
0
 
LVL 5

Assisted Solution

by:lecaf
lecaf earned 125 total points
Comment Utility
yes anagrammatically is a way ... but if you lack experience don't go that way


go to active directory users and computers
dsa.msc
select saved queries
right click new
create a query to catch all users
on the left pane select them all
right click properties


go to profile
tick the home folder leave it empty
and voila


the advantage over xxdcmast: is that you catch ALL OUs in one click

if you have lots of users then create a filter as such
define query select custom advanced
copy paste
(&(&(objectcategory=person)(objectclass=user)(homeDirectory=*)))

or

(&(&(objectcategory=person)(objectclass=user)(homeDirectory=\\server*)))
this will catch only users who's home drive begins with \\server


m a  r  c
0
 
LVL 5

Expert Comment

by:lecaf
Comment Utility
anagrammatically = programatically

damn spell checker

m  a r  c
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

[b]Ok so now I will show you how to add a user name to the description at login. [/b] First connect to your DC (Domain Controller / Active Directory Server) SET PERMISSIONS FOR SCRIPT TO UPDATE COMPUTER DESCRIPTION TO USERNAME 1. Open Active …
Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now