Solved

PowerShell - Quest - How to delete the Profile Path field for multiple accounts

Posted on 2013-01-08
6
716 Views
Last Modified: 2013-01-09
Hi EE

I have a couple hundred accounts that I need to remove the Profile Path from.
Ideally I would like to enter the sAMAccountNames into a text file and have the
Profile Path removed from those accounts .

I am able to update it using the app below but cant seem to remove it using that app.
http://www.wisesoft.co.uk/software/bulkadusers/default.aspx

I know PowerShell can do it :)
0
Comment
Question by:MilesLogan
6 Comments
 
LVL 22

Expert Comment

by:yo_bee
ID: 38757652
Are they under the same OU?
0
 
LVL 2

Author Comment

by:MilesLogan
ID: 38757656
No , they are not .
0
 
LVL 7

Expert Comment

by:wdfdo1986
ID: 38757735
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 2

Author Comment

by:MilesLogan
ID: 38757745
Hi  wdfdo1986

I cant select multiple accounts at once since they are all in different OUs . I could try moving them all to one OU , make my change then move them back , but not what I was looking for .
0
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 38758174
Try..
GC c:\User.txt | % {Set-QADUser $_ -ProfilePath $null}

Open in new window

text file format..
user1
user2
user3

Open in new window

0
 
LVL 2

Author Closing Comment

by:MilesLogan
ID: 38759809
Thank you Subsun !
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
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 to another domain controller. Log onto the new domain controller with a user account t…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

828 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