in reply to userinfo on NT

You do need admin privleges. You seem to be doing things correctly. GetUserwill return the full names to a hash ref. I posted an similar, extended example of how to get this type information here, but it's no good without the rights.


Replies are listed 'Best First'.
Re: Re: userinfo on NT
by RayRay459 (Pilgrim) on Jul 12, 2001 at 21:42 UTC
    Ozzy.... Your scripts rock. I was thinking of doing something like this and thinking of a clean way to do it. I am just a novice monk but i am constantly looking for things that will make me more efficent with perl on my win32 systems. Always willing to listen and learn more perl.. ~Ray~
Re: Re: userinfo on NT
by RayRay459 (Pilgrim) on Jul 13, 2001 at 01:31 UTC
    Question... I am new to perl(about a month or so) and i have finished the Learning Perl for Win32...where else, in your opinion, should i go to further my learning for perl in retrospect to being able to apply it on my NT/2k machines. I bought "Windows NT - Win32 Perl Programming: The Standard Extensions" and it is a little more advanced in programming. Maybe i guess...i am looking for...something that will keep going in progression...kinda like how the Learning Perl book does...learn a little something new and test my knowledge on it with everything that i previously learned as well. I am able to apply scripts that i find or other people provide for me as examples by tweeking them, but i probably would not be able to get there by myself. Does that make sense? This may be a lot of jarble..but since you do program for NT/2k environment, i figured you would be a good person to ask. Any advice would be much appreciated. As i am always open to listen. thnx ~Ray~
      I'm not a Win32 SysAdmin, but a cow-orker who is bought the following book.   He says it helps a lot in his initial efforts at Perl.
          striving toward Perl Adept
          (it's pronounced "why-bick")

      Win32 Perl Scripting: The Administrators Handbook
      ISBN: 1578702151
      Author: Dave Roth
      Publisher: New Riders

      I understand exactly what you are saying, You wish to continue from Perl 101 to 102, and 110, and then 210, etc. Unfortunately, there aren't many win32 books out there, and I haven't read one of them (I probably should!). I actually learn by taking on projects that are much bigger than my knowledge base, and asking a lot of questions here at PM

      Honestly, my code consists of 90% plain old Perl, and 10% lines dealing with win32. When I want to expand my Perl horizons, I don't look to win32; I look to Perl. Better looping or learning internal variables (I recently learned about $.) and such have helped much more than knowing exactly when to use GetUser vs. GetUserAttributes. If I know what I'm generally looking for, I can find the specifics in the docs.

      But, I find that books are a hard to recommend, as we all have different styles of learning. I learned Perl from the SAMS Teach Yourself Perl in 21 days, which worked incredibly well for me. If I went by the reviews on this book, I would never have bought it. I would have spit on it and set it on fire. If I went by the reviews, I should've bought the camel book, which was not visually broken down for skimming, and didn't fit my learning style. All I can say is: grab a cup of joe, head to the bookstore, give them all a good read, and then buy them online.

      Although, Merlyn wrote a win32 book that I have been meaning to pick up...

      I wish I could be more helpful...


        Thanks for your help. And thank God for Perl Monks. i will focus on Perl itself then and kinda go from there. Cheers ~Ray~