>
> "Jmnts" <Jmnts[ at ]discussions.microsoft.com> wrote in message
> news:CF9127BE-235C-4E8B-8237-9283EF0F2B59[ at ]microsoft.com...
> > Ok thank you for your response.
> >
> > Let me refrase, to you know any script to run on a given server that get a
> > list of domain users that logged on that server?
>
> I believe there to be such scripts. I tend to use one of the pstools
> utilities which is designed to do that very thing:
>
>
http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx>
> > And from that list get the
> > last logon that they did?
>
> As I recall, psloggedon does that as well.
>
> /Al
>
> >
> >
> > "Al Dunbar" wrote:
> >
> >>
> >> "Jmnts" <Jmnts[ at ]discussions.microsoft.com> wrote in message
> >> news:942C7AE6-29F6-4AF5-8FD7-D4651642D7E0[ at ]microsoft.com...
> >> > Hi Pegasus you're very helpfull.
> >> >
> >> > Although the rlmueller is an excellent site with lots of script
> >> > solutions,
> >> > I
> >> > cannot find anything to my particular scenario!!!
> >>
> >> Very often you will never find the exact solution to a problem - unless
> >> someone else has had the exact problem before. Rather, you need to
> >> understand information such as found on Richard's site, and figure out
> >> how
> >> to adapt it to your situation.
> >>
> >> > I need to run the script
> >> > against the servers and take all users info that logged on that server,
> >> > last
> >> > time they logged, description, if is a local user or domain user!!!
> >>
> >> Whether or not this can be done may depend on whether or not the
> >> information
> >> has been logged in the past. You may need to enable some sort of auditing
> >> to
> >> be able to do this in the future.
> >>
> >> Alternately, you could look at the date of the NTUSER.DAT file in each
> >> profile. I find that in our environment this is not always accurate.
> >>
> >> > Do you think that is possible with script?
> >>
> >> Yes - but only if the information is there somewhere.
> >>
> >> > I already found some samples
> >> > (WMI) I downloaded the WMI code creator and scriptomatic and I used the
> >> > Win32_UserAccount, but this doesn't give me the last time that they
> >> > logged
> >> > on?
> >> >
> >> > I'm starting going crazy with this... :(
> >> >
> >> > For example I also nee to get software installed on those servers,
> >> > again I
> >> > used scriptomatic to create a script with Win32_Product, guess what??
> >> > Not
> >> > all
> >> > installed software is returned?? Why? I did a test on a server with SQL
> >> > installed and the SQL wasn't listed??
> >>
> >> I would suggest you start a different discussion thread on this other
> >> unrelated issue, as combining the two issues in one thread is likely to
> >> prove counterproductive.
> >>
> >> /Al
> >>
> >>
> >> > Perhaps I'm using the wrong classes I don't know... All I know is that
> >> > I
> >> > need the list for all these tasks and I have nothing so far...
> >> >
> >> > Thank you for your time.
> >> >
> >> > "Pegasus (MVP)" wrote:
> >> >
> >> >>
> >> >> "Jmnts" <Jmnts[ at ]discussions.microsoft.com> wrote in message
> >> >> news:F0FA7F70-7CC0-4CB6-A243-C06045345E2E[ at ]microsoft.com...
> >> >> > Hi everyone,
> >> >> > I have 2 questions I hope that script experts could help me.
> >> >> >
> >> >> > 1-
> >> >> > I've a huge task to complete.
> >> >> >
> >> >> > It's my job to get a list among dozens of servers (2000 and 2003) a
> >> >> > list
> >> >> > of
> >> >> > the users that logged on those servers (the servers have local and
> >> >> > domain
> >> >> > users) and related properties especially:
> >> >> >
> >> >> > -User Name
> >> >> > -Description
> >> >> > -Last time that the user logged on that server (this is very
> >> >> > important,
> >> >> > and
> >> >> > remember that I've local users and domain users that logs on the
> >> >> > servers,
> >> >> > I
> >> >> > only need to know the last time that they logged on that particular
> >> >> > server).
> >> >> > -State (enabled or disabled)
> >> >> >
> >> >> > - I don't have much experience with scripting but I can't find
> >> >> > nothing
> >> >> > that
> >> >> > has this particular needs.
> >> >> >
> >> >> > 2-
> >> >> > I use a batch file with xcopy that copies files and folders between
> >> >> > computers/servers, however when copying "for example" a directory,
> >> >> > with
> >> >> > always ask me for destination F=File or D=Directory, is there any
> >> >> > way
> >> >> > to
> >> >> > provide the answer automatically
> >> >> >
> >> >> > Xcopy \\computer\share\Directory1 \\Computer\share\ (this is a
> >> >> > directory)
> >> >> > /S
> >> >> >
> >> >> > Thank you all for the help that you can provide.
> >> >> >
> >> >>
> >> >> 1. There is a lot of relevant stuff on Richard Mueller's site:
> >> >>
http://www.rlmueller.net/products.htm> >> >>
http://www.rlmueller.net/freecode2.htm> >> >>
http://www.rlmueller.net> >> >>
> >> >> 2. You have a couple of options:
> >> >> a) Add a trailing backslash:
> >> >> xcopy /s "Source Folder" "Destination Folder\"
> >> >> b) Pipe a "D" into the command:
> >> >> echo D|xcopy /s "Source Folder" "Destination Folder"
> >> >> Note that xcopy.exe is now deprecated. If fails occasionally on large
> >> >> jobs.
> >> >> Use robocopy instead.
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>