Page 1 of 1 1
Topic Options
#48399 - 1999-10-25 05:56 AM Creating Shares from script?
Anonymous
Unregistered


Anyone know a way to create a share in win95/98? I need to share the windows directory for admin purposes...
Top
#48400 - 1999-10-27 09:51 AM Re: Creating Shares from script?
Anonymous
Unregistered


On the Links page of http://kixtart.to you see a link to the page of: Oliver Knorr. On that page you will find this:
code:

Sharing the C: drive
Because remote administration is often too complicated to use, I prefer sharing the hard drive the "normal" way for a suitable group. On Windows 95/98 machines with user level security, I use the follwing KiXtart code to share C:\ with the share name C-DRIVE for the group BIGBROTHERS in domain MYDOMAIN.

$res=ADDKEY("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan")
$res=ADDKEY("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C-DRIVE")
$res=WRITEVALUE("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C-DRIVE","Flags","403","REG_DWORD")
$res=WRITEVALUE("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C-DRIVE","Parm1enc","","REG_BINARY")
$res=WRITEVALUE("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C-DRIVE","Parm2enc","","REG_BINARY")
$res=WRITEVALUE("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C-DRIVE","Path","C:\","REG_SZ")
$res=WRITEVALUE("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C-DRIVE","Remark","","REG_SZ")
$res=WRITEVALUE("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Network\LanMan\C-DRIVE","Type","0","REG_DWORD")
$res=ADDKEY("HKEY_LOCAL_MACHINE\Security\Access\C:")
$res=WRITEVALUE("HKEY_LOCAL_MACHINE\Security\Access\C:","MYDOMAIN\BIGBROTHERS","B780","REG_BINARY")
Again, there are a lot of binary flags and parameters here, that might be different for you.


HTH

------------------
Lon Geefshuysen (MCP)
kixtart.to/lon
lon@kixtart.to


Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.133 seconds in which 0.101 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org