Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

command to create a remote share

Status
Not open for further replies.

nix45

MIS
Nov 21, 2002
478
US
In the Windows NT Resource Kit is a utility called rmtshare.exe which allows you to create and modify shares on remote servers.


What is the equivalent command in a Windows 2000 environment? I need to create users home directories from within this Perl script I'm writing.

Thanks,
Chris
 
Well, I couldn't find an equivalent command but I was able to get the job done using a combination of rcmd, net share, and xcacls.

ChrisP, RHCE
 
rmtshare stills works on w2k, w2k3,xp....


rmtshare \\machinename\my_new_share_alias=drive_letter:
ex: rmtshare \\workstation1\cdrom=e:\
 
Doesn't work for me on my XP machine, or any any machine at all on our network.

rmtshare \\server\cdrom=D:
The command failed: -1073741819


ChrisP, RHCE
 
Could be a permissions problem then. Do know. I just rmtshared from my XP wks to W2k Server, W2k3 Server, NT Server, w2k wks, and another XP wks. try this to eleminate then perms question.


net use \\server\ipc$ /user:server_name\local_server_admin Local_server_admin_password

rmtshare \\server\CDROM=D:\
 
Same thing, but it doesn't matter anymore, my script is finished and works great.

F:\>net use \\server\ipc$
The command completed successfully.

F:\>rmtshare \\server\test=C:\Test

The command failed: -1073741819

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top