Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-01-08
6
Medium Priority
?
783 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
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
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 configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Suggested Courses

721 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