CreatinG windows share remotely from a command line

Associate
Joined
22 Oct 2002
Posts
958
Location
Colchester
Hello,

Trying to create a batch file to create share on a server remotely to well make life a little simpler...any Idea how???

Can do the permissions with setacl.exe , just need to create the folders and shares remotely...

Help


GJUK
 
C:\>wmic /node:"myserver" /user:"myDomain\administrator" /password:something share call create "", "Users home directories","5","USERS", "E:\USERS", 0
Executing (Win32_Share)->Create()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
ReturnValue = 21;
};

I am typing it wrong??.......yes I am having a bad day..lol
 
Back
Top Bottom