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: Incorrect Function - Sharing

12 Dec 2012   #1
andyMc

Windows 7 Pro x64
 
 
Incorrect Function - Sharing

I recently added a larger hard drive to my system and moved everything from my old drive to the new one and changed the drive letter of the new drive to match the old one so that paths would not be broken for all my shortcuts, Lightroom folders, etc. Everything seemed to transition fine. However I'm trying to share my drive over the network, which before was a never a problem. I had removed the share to troubleshoot other issues I was having previously and decided to wait till I made the drive switch to reactivate the share.
Today I right click on the drive and go to properties and sharing. I noticed that the share button under 'Network File and folder Sharing' is grayed out even though it's not being shared. So I choose Advanced Sharing. From there I check the box to share the folder and press apply and I get this lovely error:
"An error occurred while trying to share F. Incorrect function. The shared resource was not created at this time."

I also tried using net share via elevated command line, but when I do "net share f=F:\" it tells me that my syntax is incorrect, which I'm pretty sure it's correct as I can use net share to share other folders fine.
Any ideas?

Btw:
-firewall is turned off.
-using net view does not show any extra share that shouldn't be there
-I have tried using different names for the share beside just the drive letter.
-sharing folders within the drive work fine, just not the fill drive itself
-I need to share the full drive because I'm mapping it on other computer to use a program which needs to retain the full integrity of the path (ie. if it's f:\foobar one computer it has to be f:\foobar on the other).
-EDIT: I tried net share f=F:/ (notice different slash) and got System error 1, incorrect function.

thanks.




Attached Images
  
My System SpecsSystem Spec
.

12 Dec 2012   #2
chev65

Windows 7 Ult, Windows 8.1 Pro,
 
 

Is your name showing up as the Admin with full control under the Security tab of this drive?

If not you may need to take ownership of the drive.

You also need to turn on the Windows firewall or nothing will work right.

If you need to give Everyone in your LAN access to this drive then you need to go into the Security tab>Edit button>Add button>type Everyone into the empty box and apply, ok.

You would also need to share the drive using the Advanced sharing button under the Sharing tab.

The greyed out share button is typical, nothing new there at all, mine is the same way. Just use the advanced sharing button to share that drive.
My System SpecsSystem Spec
12 Dec 2012   #3
andyMc

Windows 7 Pro x64
 
 

Quote   Quote: Originally Posted by chev65 View Post
Is your name showing up as the Admin with full control under the Security tab of this drive?

If not you may need to take ownership of the drive.

You also need to turn on the Windows firewall or nothing will work right.

If you need to give Everyone in your LAN access to this drive then you need to go into the Security tab>Edit button>Add button>type Everyone into the empty box and apply, ok.

You would also need to share the drive using the Advanced sharing button under the Sharing tab.

The greyed out share button is typical, nothing new there at all, mine is the same way. Just use the advanced sharing button to share that drive.
Thanks for the quick reply. I did verify that I have full control, I also ran the TakeOwnership shortcuts from the forum to make sure it drilled down and took control of everything.

I don't understand your statement about the firewall. I always feel that the firewall keeps stuff from working, not makes it work, but I'm no expert in the inner workings of Win7. Either way, If I turn Windows Firewall on (even if I use restore default settings) I cannot share anything. With the firewall turned on it turns off network discovery. When I try to turn network discovery on, it turns it right back off. Which may be symptomatic of another issue. (I troubleshooted that problem for a week before I just went back to having the firewall off).
My System SpecsSystem Spec
.


12 Dec 2012   #4
chev65

Windows 7 Ult, Windows 8.1 Pro,
 
 

The problem isn't with the firewall at all, it just appears to be because the actual problem is with network discovery not staying on which is a very typical problem with many different causes. You should Google or search "Network Discovery will Not Stay On" and you will see what I mean.

There are so many causes of this problem it's near impossible for me to nail one of them down here but it's most likely a Windows service problem with the base filtering engine.

In any event, the Windows firewall needs to remain turned on. And like I already mentioned it's not a firewall problem though it appears to be.

I receive the message that my ESET installation ended prematurely - ESET Knowledgebase
My System SpecsSystem Spec
12 Dec 2012   #5
andyMc

Windows 7 Pro x64
 
 

Quote   Quote: Originally Posted by chev65 View Post
The problem isn't with the firewall at all, it just appears to be because the actual problem is with network discovery not staying on which is a very typical problem with many different causes. You should Google or search "Network Discovery will Not Stay On" and you will see what I mean.
There are so many causes of this problem it's near impossible for me to nail one of them down here.
yeah, like I said I troubleshooted that for many hours before just turning the firewall off. Most solutions ended up being solved by turning the firewall off in the end. Which is what I finally did after trying many many other steps.

Quote   Quote: Originally Posted by chev65 View Post
In any event, the Windows firewall needs to remain turned on.
What's the reasoning for that statement? If I'm behind my router, monitor services, monitor inbound/outbound network connections why should I have the firewall turned on? I'm just wondering what the firewall does that would help with file sharing?

Also are you saying that we can't troubleshoot my original problem without turning on the firewall? I can share any folder anywhere fine, I just cannot share the top drive level.
My System SpecsSystem Spec
25 Feb 2013   #6
xmonkz

Windows 7 Ultimate x64
 
 

Iv had a similar problem lately and it turned out to be a virus had deleted all the rules from the firewall

(HLM\system\currenntcontrolsetzservices\sharedaccess\defaults\firewallpolicy\firewallrules)

The whole dafault folder was gone.

Iv attached the missing rules in the .reg file, download and merge with your current reg (right click . merge)

Then goto control panel > firewall > allow a program or feature through the firewall > You might have to click the change settings button here > then put ticks in all the boxes under home that apply to you.. file and print sharing , network discovery etc click ok at the bottom of the page. You should then be able to turn on network discovery, file and print sharing and share your folders.

The attached file will work with all vista and win 7 systems


Attached Files
File Type: reg Firewall rules.reg (153.5 KB, 648 views)
My System SpecsSystem Spec
04 Mar 2013   #7
SolomonG

Minnesota
 
 
Fix for cannot share folders or printers

It took me a couple of days to figure this out. I could not share folders or printers. I could also not turn on Network Discovery or File and Printer sharing. The radio buttons would revert back to OFF everytime.

What I needed to do was to repair the Base Filtering Engine service. I'm guessing a virus or some bad program messed this up. I used a repair utility from ESET to do this for me.

Here it is: I receive the message that my ESET installation ended prematurely - ESET Knowledgebase

There is a ServiceRepair.exe. Running this and rebooted fixed the problem for me.

Hope this helps someone else.

Dave
My System SpecsSystem Spec
03 May 2013   #8
rbreece

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by SolomonG View Post
It took me a couple of days to figure this out. I could not share folders or printers. I could also not turn on Network Discovery or File and Printer sharing. The radio buttons would revert back to OFF everytime.

What I needed to do was to repair the Base Filtering Engine service. I'm guessing a virus or some bad program messed this up. I used a repair utility from ESET to do this for me.

Here it is: I receive the message that my ESET installation ended prematurely - ESET Knowledgebase

There is a ServiceRepair.exe. Running this and rebooted fixed the problem for me.

Hope this helps someone else.

Dave
Thank you for posting this Dave! I had this exact problem today and running the ServiceRepair.exe file from ESET fixed the issue and I was able to share folders once again.

Ryan
My System SpecsSystem Spec
08 May 2013   #9
becauseican

64 premium home
 
 

Hey ! I have to give my 'props' to both SolomonG and xmonkz . The registry firewall rules were actually missing on my machine, the Base Filtering Engine service was actually present in my services but I ran the fix above anyway, whiched actually worked. Symptom of the error described in OP is now gone.
My System SpecsSystem Spec
11 Jun 2013   #10
Faluzure

Windows 7 Home Premium 64bit
 
 

Quote   Quote: Originally Posted by rbreece View Post
Quote   Quote: Originally Posted by SolomonG View Post
It took me a couple of days to figure this out. I could not share folders or printers. I could also not turn on Network Discovery or File and Printer sharing. The radio buttons would revert back to OFF everytime.

What I needed to do was to repair the Base Filtering Engine service. I'm guessing a virus or some bad program messed this up. I used a repair utility from ESET to do this for me.

Here it is: I receive the message that my ESET installation ended prematurely - ESET Knowledgebase

There is a ServiceRepair.exe. Running this and rebooted fixed the problem for me.

Hope this helps someone else.

Dave
Thank you for posting this Dave! I had this exact problem today and running the ServiceRepair.exe file from ESET fixed the issue and I was able to share folders once again.

Ryan
Hi Guys! I just registered to tell you that this solution FIXED the problem I was having that was identical to the OP. My Network sharing would NOT stay enabled no matter what I did. I did recall having a virus several months ago and I cleaned it, but I didn't realize it disabled some of my services.

KUDOS to the ServiceRepair.exe and to user "rbreece".
My System SpecsSystem Spec
Reply

 Incorrect Function - Sharing




Thread Tools





Similar help and support threads
Thread Forum
An error occurred while trying to share D. Incorrect function.
OK, at first I thought it was a Norton 360 problem so I deleted Norton 360. The Windows firewall is no longer being controlled by it. Windows firewall is turned off, it's a public location, printer and file sharing is turned on, discovery is on, I reloaded the default settings for the...
Network & Sharing
Cant share external Hard drive "Incorrect Function"
So I have a Windows 7 64bit desktop with 2 external hard drives that have shared over my network so I can view the files on my laptop(win 7 64bit) and watch movies and such on my xbox via windows media center. I recently purchased a WD Elements 2TB external Hard Drive. I connect the new drive...
Network & Sharing
WD 1TB Ext HDD will not initialize - Incorrect Function
I recently acquired a WD 1 TB hard drive P/N WD1000H1U-00 from a friend because he can no longer get it to work, and bought a new one, he says if i can fix it i can have it... the drive shows a USB icon in the lower right hand corner with only the option to eject(last attached pic)...drive does...
Hardware & Devices
restore error 0x80070001 incorrect function
I've checked the MS knowledge base but didn't really find a resolution to this error message. When I try to use any of my restore points I get the error 0x80070001 incorrect function. Any help with this?
Backup and Restore
File Sharing and Homegroup Sharing Problem
Hi, I have been going crazy trying to get my PC to share files with a couple of laptops. I am running Windows 7 64 Bit and the laptops are running Windows 7 64 bit and Windows XP. I have enabled file sharing but The Windows 7 Laptop keeps giving me an unknown error when trying to join a...
Network & Sharing
Incorrect time - again!
I know this has been posted about before, but I'm confused again. After British Summer Time kicked in on Sunday, Windows say it went forward 1 hour, but it didn't. If I sync the time, it is OK, but when I booted into OS X (dual-boot setup) it sets the time correctly, then going back into W7, the...
General Discussion

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 20:20.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App