Solved

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

Posted on 2013-01-08
6
748 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 23

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
Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

 
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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

628 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