Is it possible to test for and/or utilize domain groups in NT login scripts?
I have several groups created in User Manager for our various departments
etc. (e.g. Backup Users, Accounting, Proxy Users, ...) and I would like to
be able to execute various tasks based on these groups from my login script.
For example...if member of proxy users then attach to network resource
1...etc...
This is a very common use of scripting under Netware but doesn't seem
possible with NT?!? Is their another way to accomplish this, possibly with
some other scripting tool available for NT?
Thanks,
Tom
tmorgan@_nospam_cgfns.org
Win32 Scripting [Clarence Washington]
http://cwashington.netreach.net
http://cwashington.netreach.net/script_repository/repository.asp
http://cwashington.netreach.net/script_repository/query.asp
http://cwashington.netreach.net/main_site/downloads
http://cwashington.netreach.net/script_repository/faqs.asp?topic=wmifaq
===> http://cwashington.netreach.net/script_repository/faqs.asp?topic=adsifaq
--
Michael Harris
Microsoft.MVP.Scripting
--
"Thomas Morgan" <tmorgan...@cgfns.org> wrote in message
news:svrgnjj...@corp.supernews.com...
Tino Donderwinkel
"Thomas Morgan" <tmorgan...@cgfns.org> wrote in message
news:svrgnjj...@corp.supernews.com...
Regards,
/Jimmy
--
Jimmy Andersson, Consultant
Microsoft MVP, MCP, CNTA, CCA
"Thomas Morgan" <tmorgan...@cgfns.org> wrote in message
news:svrgnjj...@corp.supernews.com...
:: IF NT then Check to see if User has local admin rights.
If Not (%OS%)==(Windows_NT) goto Rights
C:\NetUtils\showmbrs Administrators | Find "YourDomain\Domain Users" >nul
if errorlevel 1 GOTO TryUser
if errorlevel 0 GOTO Rights
:TryUser
C:\NetUtils\showmbrs Administrators | Find "%USERNAME%" >nul
if errorlevel 1 GOTO NoRights
if errorlevel 0 GOTO Rights
:Rights
:: Do Stuff Here
:NoRights
:: Log to file and exit.
Regards
John
"Jimmy Andersson" <ji...@mvps.org> wrote in message
news:uhD2i#1QAHA.256@cppssbbsa03...
We are thinking of changing from kix to wsh, and this is not the only
"gotcha" that kixtart does no problem. One solution I have considered to the
"isingroup" thing is to create a directory on the DC called "isingroup"
permitted read to everyone and populate it with files like "Finance dept"
permitted ONLY to a group of that name. This would be wrapped in a function
(or method) called isingroup( groupname ).
Downsides:
1) maintenance chore with a large number of groups (we are looking at max a
dozen).
2) name of function would be more properly changed to
IsInGroupOrIsAnAdministratorAccount.
/Al
"Tino Donderwinkel" <ti...@tino.nl> wrote in message
news:8tkgan$2k37$1...@news.kabelfoon.nl...
Gary
"Ricardo M. Urbano" <rm...@columbiaSPAM.SUCKSedu> wrote in message
news:3A001FCC...@columbiaSPAM.SUCKSedu...
ifmember: GetTokenInformation failed.
Error code returned by system was 122.
More information about this error code can be obtained by
typing "NET HELPMSG xxx", where xxx is the error code above.
If I run imember as a Administrator its fine.
John
"Gary Dom" <gd...@nospam.pacbell.net> wrote in message
news:UlVL5.281$7a7.2...@news.pacbell.net...