Solved

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

Posted on 2013-11-27
3
835 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
  • 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

Join & Write a Comment

Microsoft Windows Server Update Service (WSUS) is free for everyone, but it lacks of some desirable features like send an e-mail to the administrator with the status of all computers on the WSUS server. This article is based on my PowerShell script …
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
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 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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now