Solved

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

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

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
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 …
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.

831 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