![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #2 (permalink) | ||||||||||||
| Guest | Re: disable user account importing csv file If you dont mind installing free quest tools from www.quest.com/powershell get-qaduser <name> | disable-QADuser Brandon Shell --------------- Blog: http://www.bsonposh.com/ PSH Scripts Project: www.codeplex.com/psobject
| ||||||||||||
| | #3 (permalink) | ||||||||||||||||||||||||||||||||||||
| Guest | Re: disable user account importing csv file On 15 Lug, 17:07, Brandon Shell [MVP] <a_bshell.m...@xxxxxx> wrote:
file... | ||||||||||||||||||||||||||||||||||||
| | #4 (permalink) | ||||||||||||||||||||||||||||||||||||
| Guest | Re: disable user account importing csv file no problem (if you have headers) $users = import-csv <csv File> foreach($user in $user){disable-qaduser $user.Name -whatif} disable-qaduser is going to want either DN or Domain\User. Replace Name with the header name of the value you want to use. Remove the whatif, assuming it works as expected. Brandon Shell --------------- Blog: http://www.bsonposh.com/ PSH Scripts Project: www.codeplex.com/psobject
| ||||||||||||||||||||||||||||||||||||
| | #5 (permalink) | ||||||||||||||||||||||||||||||||||||
| Guest | Re: disable user account importing csv file actually the allowable values to find the user for disable-qadusers is DN, SID, GUID, UPN or Domain\Name so you can use any of those. Brandon Shell --------------- Blog: http://www.bsonposh.com/ PSH Scripts Project: www.codeplex.com/psobject
| ||||||||||||||||||||||||||||||||||||
| | #6 (permalink) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Guest | Re: disable user account importing csv file On 15 Lug, 17:30, Brandon Shell [MVP] <a_bshell.m...@xxxxxx> wrote:
work properly | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to migrate file from one user account to another | Jixa | Vista General | 2 | 07-30-2008 06:08 PM |
| Disable User Account Control just for admin profile? Vista Home Premium | Tuttle | Vista General | 7 | 06-11-2008 10:02 PM |
| Is it possible to disable the user account picture in the Start me | Gabriel Lozano-Moran | Vista account administration | 5 | 01-15-2008 07:01 AM |
| User Account Control - Disable | GW | Vista security | 2 | 11-18-2007 05:38 PM |
| Disable user account control | Alan | Vista security | 2 | 06-12-2006 01:40 PM |