Solved

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

Posted on 2013-01-08
6
735 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
 
LVL 7

Expert Comment

by:wdfdo1986
ID: 38757735
0
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 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