'Create Share' on Xp

Got a problem you cannot solve? Try here.
jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

'Create Share' on Xp

Postby jweksej » Mon Dec 18, 2006 10:46 am

'Create Share' on Xp does not work when 'Simple File Sharing' option (explorer 'Tools->FolderOptions->View' dialog) is enabled.
How to get current status of this SFS and how to change it from IA script level? I've found some info - shell32 allows to change it but I've failed on looking which function is responsible for it. Do someone know how to do it?
Any help appreciated
regards
Jarek

PetSo
Posts: 6
Joined: Thu Dec 14, 2006 5:22 am
Location: Sweden

Postby PetSo » Tue Dec 19, 2006 3:30 am

Wouldn't it work to run a commandline similar to:
'net share mytemp=c:\\tmp /REMARK:"MyTemp"'

Instead of changing the settings on a users computer?

To get info on more commandline options for 'net share' type 'net help share' on the commandline.

/PeterS

jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Postby jweksej » Tue Dec 19, 2006 4:35 am

No, it doesn't works. For security reasons MS disabled this feature (simple file sharing) in WinXp. It is easy to enable it from explorer GUI, but I would like to do it from IA script level.

PetSo
Posts: 6
Joined: Thu Dec 14, 2006 5:22 am
Location: Sweden

Postby PetSo » Tue Dec 19, 2006 5:11 am

Yes I can see that you would like the feature to work in IA, I was just trying to give you an option while you wait for them to fix it.

FWIW
I tried setting the SFS to off and to me it seemed the 'net' commandline worked equally well to create a share wether SFS was on or off.

A quick search with google seems to indicate that the only way to enable/disable SFS is with that checkbox in explorer.

To check if it is enabled you can read
HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\ForceGuest

If it is 1 then SFS is enabled.

/PeterS


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 161 guests