How To Remotely Create A New Network Share in Windows 7 [Tip]

0

Here are two ways of doing so.

Prerequisite

Obviously, you need the local admin privilege to have full access to the remote computer.

A typical GUI way

1. Open Computer Management, by typing “computer management” from Start Menu. 2. Go to Action from the top menu, and click Connect to another computer…. image thumb100 - How To Remotely Create A New Network Share in Windows 7 [Tip] 3. Type in the name of remote computer, and hit OK. image thumb102 - How To Remotely Create A New Network Share in Windows 7 [Tip] 4. Right click Shares under Shared Folders in System Tools, and go to New Shares. image thumb103 - How To Remotely Create A New Network Share in Windows 7 [Tip] 5. Then follow the wizard to complete the task. image thumb104 - How To Remotely Create A New Network Share in Windows 7 [Tip] image thumb105 - How To Remotely Create A New Network Share in Windows 7 [Tip] image thumb106 - How To Remotely Create A New Network Share in Windows 7 [Tip] image thumb107 - How To Remotely Create A New Network Share in Windows 7 [Tip] image thumb108 - How To Remotely Create A New Network Share in Windows 7 [Tip] 6. Now, you’ve successfully created a network share on a remote computer. image thumb109 - How To Remotely Create A New Network Share in Windows 7 [Tip] Well, it’s quite a work to make a network share remotely, isn’t it. So let’s try something easier.

A PowerShell way

PowerShell is the new scripting programming tool developed by Microsoft. It’s built right in Windows 7 as well, and it’s very powerful. 1. Open PowerShell console, by typing in “powershell” in the Start Menu. 2. Type in the following command to create a network share “Test” in my remote computer KC-VMXP.

([wmiclass]’\\kc-vmxp\root\cimv2:Win32_Share’).Create(‘c:\temp’, ‘Test’, 0, 12, ‘test share’).ReturnValue image thumb110 - How To Remotely Create A New Network Share in Windows 7 [Tip]

Replace the parameters to create your own network shares remotely. Isn’t it much cooler? Thanks to PowerTips from PowerShell.com. To make this PowerShell script work, you need to open WMI Scripting on the remote computer firewall to allow access. If you know any other better way of remotely creating network shares, please share.

LEAVE A REPLY

Please enter your comment!
Please enter your name here