Discussion Locked

RMTSHARE Help

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am trying to create hidden shares for all users on my server using the rmtshare command as follows :" FOR %%X IN (username) DO RMTSHARE \\ROCKLAND_PDC\%%X=D:\SYS\USERS\%%X " . This command successfully creates a share for all users I specify, but i would like to create them hidden. Do I have to manually enter in a "$" after each username specified? (over 500 users). Any help is appreciated.

3 replies

by cavedweller

Yes, just add the character to the script like this:

FOR %%X IN (username) DO RMTSHARE \\ROCKLAND_PDC\%%X$=D:\SYS\USERS\%%X

This discussion is closed to new replies.