MSFN Forum: Windows 7 folder sharing issues - MSFN Forum

Jump to content


Windows 7 forum rules

If you have questions about customizing Windows 7 that are vLite-specific, please post them in the vLite forum, not here. If you have questions regarding the unattended installation of Windows 7, please post them in the Unattended Windows 7/Server 2008 R2 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Windows 7 folder sharing issues

#1 User is offline   DeltaForceLeader 

  • Group: Members
  • Posts: 3
  • Joined: 25-December 12
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 25 December 2012 - 07:12 PM

I have an external Western Digital My Book drive connected to a Windows 7 Ultimate PC that I am using as a file server for my network. Due to the personal content on the drive I have the drive secured using the WD SmartWare software. However, this has caused a side effect. Every time I shut down or restart the server it "forgets" all of the shared folders. Windows remembers all of the shared folders on the other external drives that are unsecured so I know it is not a problem with Windows itself. What I have decided to do is set up a batch file to restore all of the shared folders and permissions that I can execute after a reboot. Unfortunately, I am having trouble getting the commands to work properly. This is the command I am using:

NET SHARE {share name}={path} /GRANT:{username},FULL

When I enter this command I get the following "syntax" message:

The syntax of this command is:

NET SHARE
sharename
sharename=drive:path [/GRANT:user,[READ | CHANGE | FULL]]
[/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents| Programs | BranchCache | None]
sharename [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents | Programs | BranchCache | None]
{sharename | devicename | drive:path} /DELETE
sharename \\computername /DELETE

I have tried this command and it works:

NET SHARE {share name}={path}

Therefore, the problem is obviously with the user information. I would appreciate any help with this issue.

P.S. I have tried entering the user as both a username and domain/username combo.


#2 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 26 December 2012 - 09:08 AM

View PostDeltaForceLeader, on 25 December 2012 - 07:12 PM, said:

NET SHARE {share name}={path} /GRANT:{username},FULL

When I enter this command I get the following "syntax" message:


There must be an error in how you are typing it. I just tested this command it and it works fine using an elevated command prompt:

net share intel=c:\intel /GRANT:test,FULL


#3 User is offline   DeltaForceLeader 

  • Group: Members
  • Posts: 3
  • Joined: 25-December 12
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 26 December 2012 - 04:56 PM

View PostTripredacus, on 26 December 2012 - 09:08 AM, said:


There must be an error in how you are typing it. I just tested this command it and it works fine using an elevated command prompt:

net share intel=c:\intel /GRANT:test,FULL



Thank you! I forgot to use an elevated command prompt. That is why the command wouldn't work.

#4 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 26 December 2012 - 07:03 PM

That's great. I did some research on that software and found just about nothing about sharing the drive (other than the backup) and didn't look forward to troubleshooting a software compatibility problem.

:thumbup

#5 User is offline   DeltaForceLeader 

  • Group: Members
  • Posts: 3
  • Joined: 25-December 12
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 26 December 2012 - 09:48 PM

View PostTripredacus, on 26 December 2012 - 07:03 PM, said:

That's great. I did some research on that software and found just about nothing about sharing the drive (other than the backup) and didn't look forward to troubleshooting a software compatibility problem.

:thumbup


Yeah, the problem is that since the drive is encrypted until unlocked with a password, Windows cannot read it at start-up and therefore deletes the shares from its list. If I couldn't get the batch file working (which I have fully tested and is working thanks to you) my only other option would be to permanently unlock the drive. Thanks, again! :hello:

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy