Create remote share?

S

Stan

[My apologies if I am posting this to the wrong newsgroup.]

I'm writing a script that will run on a Windows 2003 Server computer. The
script needs to create a share on a remote Windows 2003 Server computer. The
script will run under the context of a user with local admin access to the
remote server. How can I accomplish this? Thanks.
 
T

Torgeir Bakken (MVP)

Stan said:
[My apologies if I am posting this to the wrong newsgroup.]

microsoft.public.windows.server.scripting would have fitted better ;-)

I'm writing a script that will run on a Windows 2003 Server computer. The
script needs to create a share on a remote Windows 2003 Server computer. The
script will run under the context of a user with local admin access to the
remote server. How can I accomplish this? Thanks.

Command line:

RMTShare.exe: http://www.jsiinc.com/asp/reghacks.asp?tipnumb=6353


VBScript/WMI:

See "Create a Network Share " at
http://www.microsoft.com/technet/scriptcenter/filefolder/default.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top