Solved

Powershell / Quest Cmdlets script for User Account Expires the end of?

Posted on 2013-11-27
3
845 Views
Last Modified: 2013-12-02
Powershell / Quest Cmdlets script for User Account Expires.  

Takes a list of usernames from a .CVS or .txt filer and then "clicks" the Account Expires End of" option in ADUC for all of them....
0
Comment
Question by:mjm21
[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
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 39682060
Try this..
Import-Module Activedirectory
GC c:\input.txt | % {
Set-ADAccountExpiration $_ -DateTime "12/25/2013"
}

Open in new window

c:\input.txt file format..
UserA
UserB
UserC

Open in new window

0
 

Author Comment

by:mjm21
ID: 39689995
Excellent!  Going to test in a few....
0
 

Author Comment

by:mjm21
ID: 39690152
Perfect!  Thanks!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
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…
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

733 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