Re: Is it possible???
- From: Christian Lamparth <ChristianLamparth@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 6 Feb 2006 13:41:27 -0800
Why not just highlight all the accounts (ctrl a) and than right click
properties and than define the logon hours of those accounts?
"Jorge de Almeida Pinto [MVP]" wrote:
dsquery user <distinguished name OU> -scope subtree | dsmod user -disabled.
yes
for this to be changed you need to delegate at least read/write permission
on the useraccountcontrol attribute
The "account is disabled" option is represented by a BIT/FLAG in the
useraccountcontrol attribute. That same attribute also contains other bits
that represent other options like "password never expires".
So to delegate the change of the option "account is disabled" to a group
(recommended) or user, you need to delegate the change to the
useraccountcontrol attribute (read permission and write permission). The
catch here is that by doing this you also allow the change of the other
BITS/FLAGS and that may be not desired by you.
--
Cheers,
(HOPEFULLY THIS INFORMATION HELPS YOU!)
# Jorge de Almeida Pinto # MVP Windows Server - Directory Services
BLOG --> http://blogs.dirteam.com/blogs/jorge/default.aspx
-----------------------------------------------------------------------------
* This posting is provided "AS IS" with no warranties and confers no rights!
* Always test before implementing!
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
"elvecio" <elvecio@xxxxxxxxxxxxx> wrote in message
news:e3eQBW0KGHA.2304@xxxxxxxxxxxxxxxxxxxxxxx
We would like to make a Bat file to disable all accounts of a specific OU
at night. and it will be started by a person who isen't member of the
administrators group. So...
I would like to know if it's possible to create this bat and how???
I would like to know if a simple user can do this.....
If anybody could help me...
Elvecio.
- References:
- Is it possible???
- From: elvecio
- Re: Is it possible???
- From: Jorge de Almeida Pinto [MVP]
- Is it possible???
- Prev by Date: Re: Forest trust child domain not visible in logon dialog box
- Next by Date: best practice for building replacement workstations?
- Previous by thread: Re: Is it possible???
- Next by thread: Question about the new printer depolyment in R2
- Index(es):
Relevant Pages
|
Loading