Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How to share on cmdline the folder D:\aaa\bbb for User 123 ?

07 May 2011   #1

win7pro 64bit
How to share on cmdline the folder D:\aaa\bbb for User 123 ?

I am seaching for a way to assign sharing permissions FROM COMMANDLINE
for a particular user with particular permission under Win7 (!). Something like

defineshare -dir=D:\aaa\bbb -user=myuser123 -perm="full access"

As I learned so far there must be built-in or additional prgm like


Which of these cmds do I need for mentioned plan?

How would the cmdline look like in detail?


My System SpecsSystem Spec

08 May 2011   #2
Johnathan Lyman

Windows 7 Ultimate 64-bit


I would try typing "net share /?" and you should get all the answers and "flags" you will need. I've never done it this way ,personally, so I can't speak to the difficulty level.

My System SpecsSystem Spec

 How to share on cmdline the folder D:\aaa\bbb for User 123 ?

Thread Tools

Similar help and support threads
Thread Forum
User Profile Folder - Change User Account Folder Name
How to Change the User Folder Name of a User Profile in Windows 7 Normally, you could change your account name in User Accounts from the Control Panel (icons view), but that still would not change your accoun's user profile folder name in C:\Users. This will show you how to change your...
Hide user by registry stange problem: User still appears in C folder
Hi! I did an new install of windows 7 (home first then upgraded to pro) I want to hide a user by doing this on the registry: HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft \Windows NT \CurrentVersion \Winlogon \SpecialAccounts\ UserList ..then add dword32 by my username value to 0 I did this on my old...
General Discussion
User Profile folder - static folder instead of created by user signon
A twist on the creation of user folders on a drive other than C: in Win 7 Ultimate. Does anyone know if one could designate a user folder location such as E:\Data instead of using the users name and being a subdirectory of "Users". I am the ONLY one on my computer - and it would seem much easier to...
Installation & Setup
how do i share a folder on a workgroup without home share?
i've enabled homeshare and now can't seem to turn it off. All users on the workgroup can see all folders in homeshare. Which isn't what i want i just want to share the documents folder and that's it. ive turned off omeshare and they are all sill showing up. I've also right clicked on the documents...
Network & Sharing
Share folder with a user account on ANOTHER computer in the workgroup
Hi, It is easy to share a folder with Everyone, or to share it with other user accounts on the same computer, but how can I share a folder with a specific user account on ANOTHER computer in the workgroup? Reason: in my neighborhood, four friends are connected by cable to the same router, and...
Network & Sharing
Why is the User folder shared when you share a folder?
I recently made a folder to share with an XP machine. When I look at the network through my seven machine I see the folder I shared and the USERS folder shared as well. Why is that? I have the network setup at a home network. 7100 32 bit.
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:25.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App