Re: DSQuery in 2003 Please help

Tech-Archive recommends: Fix windows errors by optimizing your registry



Yes True. Can edit the xml file to pull data in the time that I want. But I
don't want to have to select all users in the query to disable the user or
users. I just want it to automataclly disable. Unless I am reading your
post incorrectly.

What I am reading from your post is create a query and export it to a xml.
Then change the number of days and import it back into Saved Queries. When
it finds a user that hasn't logged in for the numbers of days specified it
will show that user. then you would have to select all and right click to
disable.

This is what I am getting from your query.

Great Answers everyone This helps so much

I did try that oldcmp this works pretty well and I would be able to
schedule a job to run at night.

"Paul Bergson" wrote:

> Only have to import and export ONCE. That is to change the days to 1
> (Sounds like you want it 7 now). The default is 30 60 90 or 120 so to get
> it to 7 is the export/import need. Once you have done this you never need
> to do it again. Everytime you look at the query it is up to date and has
> the details for 7 days or older.
>
> --
>
>
> Paul Bergson MCT, MCSE, MCSA, CNE, CNA, CCA
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "Jeromy" <Jeromy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:60A0607C-D4D2-4415-BF7B-671710B28447@xxxxxxxxxxxxxxxx
> >I am in 2003 Native for forest and domain. If you are in 2000 native this
> > query won't work because 2000 native does not support this type of query.
> >
> > I am only asking for one week because I don't have any other accounts that
> > are inactive for more than a day. I created one account and I have not
> > used
> > it for a week but it doesn't return that user. I will wait one more week
> > to
> > see if I do a query for two weeks and see if it brings back a value that I
> > want.
> >
> > Laura and Joe I will have to try that oldcmp.
> >
> > Paul that would seem to be a work around but it seems to be to much work.
> > I
> > would like to run a script or task every morning and me having to manual
> > do
> > it and export it seems to be to much work. Microsofts famous words "Least
> > amount of administrative effort"
> >
> > Thanks for all your input if you have anymore suggestions please let me
> > know.
> >
> > Thanks a bunch
> >
> > "Paul Williams [MVP]" wrote:
> >
> >> What mode is your domain running in?
> >>
> >> Some of the DS* commands only work in 2003 functional mode.
> >>
> >> The other question is what happens if you use a value greater than one?
> >> Say, four weeks?
> >>
> >> --
> >> Paul Williams
> >> Microsoft MVP - Windows Server - Directory Services
> >> http://www.msresource.net | http://forums.msresource.net
> >>
> >>
> >>
>
>
>
.



Relevant Pages

  • Re: Query AD Users with Nordic Characters
    ... Paul Bergson ... MVP - Directory Services ... I need to find all users with the special chars below. ... When I query Ad, even though it shows the chars the way they are, AD ...
    (microsoft.public.windows.server.active_directory)
  • Re: script to count all users in domain
    ... courtesy of Paul Bergson. ... Computers MMC to get a count of all users in the domain, ... Right-click on Saved Queries and choose New> Query ...
    (microsoft.public.windows.server.active_directory)
  • Re: DSQuery in 2003 Please help
    ... That script center should help me ... > Paul Bergson MCT, MCSE, MCSA, CNE, CNA, CCA ... >> What I am reading from your post is create a query and export it to a xml. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Problem with Code Because I already have an Open Query
    ... FROM [RESPEL ALL CHARGES] INNER JOIN RESERVATIONS ON [RESPEL ALL ... The too few parameters error means the query is missing values for 3 ... I use a QUERYcalled "ACCOUNTS" because it takes data from different ... Now from there I use a Form "ACCOUNTS SEARCH" with a SubForm to filter ...
    (microsoft.public.access.forms)
  • Re: Problem with Code Because I already have an Open Query
    ... Make a copy of the Accounts query to work with call it qryAccountsCopy. ... FROM [RESPEL ALL CHARGES] INNER JOIN RESERVATIONS ON [RESPEL ALL ...
    (microsoft.public.access.forms)