DeltaForceLeader Posted December 26, 2012 Share Posted December 26, 2012 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},FULLWhen I enter this command I get the following "syntax" message:The syntax of this command is:NET SHAREsharename 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 /DELETEI 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. Link to comment Share on other sites More sharing options...
Tripredacus Posted December 26, 2012 Share Posted December 26, 2012 NET SHARE {share name}={path} /GRANT:{username},FULLWhen 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 Link to comment Share on other sites More sharing options...
DeltaForceLeader Posted December 26, 2012 Author Share Posted December 26, 2012 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,FULLThank you! I forgot to use an elevated command prompt. That is why the command wouldn't work. Link to comment Share on other sites More sharing options...
Tripredacus Posted December 27, 2012 Share Posted December 27, 2012 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. Link to comment Share on other sites More sharing options...
DeltaForceLeader Posted December 27, 2012 Author Share Posted December 27, 2012 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. 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! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now