Home > Windows Server Tips > > A poor man's "AD" scripting using kixtart in NT4
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


A poor man's "AD" scripting using kixtart in NT4


Peter Van Der Wiel
08.07.2001
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


A very simple kixtart mechanism allows you to create (NT)"active" groups, combining access permissions and scripting. The engine script resides in netlogon, the scripts called for group membership are stored elsewhere, allowing script admins do their job without the need for write access to netlogon.

process group scripting, generic trick
part of script stored in netlogon share
rtscript points to read-only connected disk
enumerate the groups that user is member of
and check if is there is a script with that name
the 100 test is just a safeguard to avoid endless loops

$rtscript="r:scripts"
$groupcount=0
$group=enumgroup($groupcount)
while $group and $groupcount < 100

$script=$rtscript + "groups" + $group
gosub doscript
$groupcount=$groupcount + 1
$group=enumgroup($groupcount)
loop

append .txt to create the name of the script for easy editing
:doscript
$script=$script + ".txt"
if exist($script)
call $script
endif
return


Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2004 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts