I followed the instructions in
http://www.dmp.com.tw/tech/os-wince/Sharing_Folders_in_Windows_CE_5.pd
When I look at the registry there are no entries for
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares]
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\HDD]
What do I have to do to make these available to me?
Thanks
--
Don
Although not specifically mentioned in the guide you included in your post,
you will need to add those registry keys manually to your project.reg file.
Ryan
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Don" <D...@discussions.microsoft.com> wrote in message
news:E4A5427F-05E9-4023...@microsoft.com...
Thanks for your help. My problem was that I was not modifying the
project.reg file through platform builder. The next problem that pops up
when I try to share files is
when I execute the command
net use z: \\Wince\hdd
It returns
System error 53 has occurred.
The network path was not found.
The command :
ping wince
does work though
Can you shed some light on what is happening here?
Don
I think you might need to set another registry key for which adapter the SMB
Server uses publically. e.g. AdapterList
Check out http://msdn2.microsoft.com/en-us/library/ms884924.aspx for more
information on that key and its value.
Let me know if you need any more help.
Ryan
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Don" <D...@discussions.microsoft.com> wrote in message
news:E0F0936D-D7C0-4DDA...@microsoft.com...
The documentation you pointed me to says
AdapterList : REG_SZ Provides a list of network adapters separated with a
semicolon. You can also use the "*" option to specify any adapters that are
present on the operating system. If you set this registry key to "localhost",
the file server will listen on loopback.
I have used the * like the instruction say.
One more thing in my CE image I don't notice anywhere that you can set a
workgroup or enable file and printer sharing like you can on xp.
I would appreciate any help you can give
Thanks
--
May I ask what OS Design template you used? If it was one with an UI and
Internet Explorer (e.g. Enterprise Web Pad) then you could remotely
administer the SMB File Server settings. To do this you will need to add
SYSGEN_SMB_UI and rebuild your image.
1.) Boot the image, browse to http://%device_ip_addr%/RemoteAdmin where
%device_ip_addr% is the WinCE ip addr you pinged (alternatively, you could
put the DeviceName instead of the IP Addr).
2.) Enter a password for the administrator, [Apply]. The service will
restart itself.
3.) Login using 'admin' and the password from step 2.
4.) You may need to update the image name, [Apply]
5.) Edit the publicly facing adapter with "Add/Del Network Adapter"
6.) Edit user accounts with "Add/Del Users" (I created a tempuser here)
7.) Edit your file share with "Add/Del Shares" (I created a share called
Public that pointed to my \Temp)
Note: You will need to Allow user accounts access to the shares (by default
they will be denied). I added my tempuser account from step 6 here.
Then from my XP box: net use * \\MyDeviceName\Public /u:tempuer %pwd%
You can set a Network ID that you CE image can use to access other resources
by going to the Owner applet in the Control Panel, then selecting the
Network ID tab.
One other thing, did you include SYSGEN_REDIR in your image?
Ryan
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Don" <D...@discussions.microsoft.com> wrote in message
news:DC6B5D4E-F300-4019...@microsoft.com...
The OS design template I am using is an Internet application.
I just wanted to thank you for your help. I am able to share a folder now
between My Windows XP machine and My Windows CE 5.0 OS design based on your
excellent advice, information and patients.
Thanks again
Now that I am sharing files successfully. Is there away to set up the file
sharing so that I don't have to use RemoteAdmin everytime I boot my device in
order to share
a directory. Ideally I would like to share a folder that any user can
access regardless of there user or password without using RemoteAdmin. In
other words is there a way to set up the registry with the changes that the
RemoteAdmin tool is making. In the RemoteAdmin tool I notice that users
come up with permissions denied and you have to change it to allow. Is there
a way for Windows CE to just keep these settings after a reboot.
You could try adding the specific reg keys and values to your project.reg
and rebuild your image. This should hard code the information into your
image.
Note: the UseAuthentication regvalue wasn't working in an out of the box
install of the 5.0 tools, but was QFE'd so please make sure you install is
up-to-date. I believe the monthly update that contained this fix is here:
http://www.microsoft.com/downloads/details.aspx?familyid=61D983F5-192A-455B-A8C4-46243F79689A&displaylang=en
Example, add:
[HKEY_LOCAL_MACHINE\Services\SMBServer]
"AdapterList"="DC211401;"
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares]
"UseAuthentication"=dword:00000000
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\Public]
"UserList"="*"
"Path"="\\Temp"
"Type"=dword:00000000
I am not 100% sure that the "UserList"="*" will work, but give it a shot.
Ryan
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Don" <D...@discussions.microsoft.com> wrote in message
news:C33CEB11-693C-4800...@microsoft.com...
I installed the platform builder update and Rebuilt my operating system with
the following registry keys and I still need to use the Remote admin utility
to share a folder. Shared folder still come up access deny. And it is still
necessary for me to set up the users that are allowed to access my shared
folder.
These are my registry settings
[HKEY_LOCAL_MACHINE\Ident]
"Name"="WinCE"
"Desc"="Windows CE Test Device (ICOP)"
"OrigName"="WindowsCE"
[HKEY_LOCAL_MACHINE\Services\Smbserver]
"AdapterList"="*"
"dll"="smbserver.dll"
"Keep"=dword:1
"Order"=dword:9
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares]
"UseAuthentication"=dword:0
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\HDD]
"Path"="\\Hard Disk"
"Type"=dword:0
"UserList"="@*;"
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\HDD1]
"Path"="\\Hard Disk2"
"Type"=dword:0
"UserList"="@*;"
Do you see anything wrong with these?
I was able to access my SMB file share (running on an Emulator) without
providing any credentials and without having to use RemoteAdmin.
Could you try setting "UserList"="*" instead? (as a side note: I believe
the authentication only matches user names and ignores any domain
information so.) Also, can you double check those settings actually applied
to the image by using the Remote Registry Viewer before you launch the
RemoteAdmin?
Are you getting an access denied or a path not found when trying to browse
to the share? If it's the later, try giving a more unique name for your
device (e.g. SuperSMBNNNN, where NNNN are the last two octets of this
devices MAC address). There might be some stale network information.
I wonder if this might have something to do with a Hard Disk. Could you
also try to set up a share similar to my example? E.g. sharing \Temp as
Public.
Ryan
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Don" <D...@discussions.microsoft.com> wrote in message
news:32F477F2-6180-4589...@microsoft.com...
In answer to your question. I am just not able to map the shared folder
through Windows XPs windows explorer map network drive. I get an error
occured while trying to reconnect. How can I query the device for its Mac
address?
I am unable to provide an answer for you regarding your query. I'll
continue to look into it and try to find a solution.
For now, I would suggest you set your file server up using the RemoteAdmin
utility. Make sure your device is set to load an existing image (as oppose
to downloading a new image every time) and not clearing the registry hive
when reset. This will ensure the changes you make to your image remain
intact. These should be options in your devices bootloader or if you are
always connected to Platform Builder change the following Core Service
Settings in the Connectivity Options: Under "Download Image" to "Never (jump
to image only)" and under "KITL Settings", uncheck "Clear memory on reset"
Ryan
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Don" <D...@discussions.microsoft.com> wrote in message
news:C33CEB11-693C-4800...@microsoft.com...
I was wondering if you have made any progress on this issue. This issue has
now become my top priority. I would really appreciate any help you can give.
You can do this by creating the necessary registry settings and adding them
to your project.reg file before you create your image.
Here are the links:
http://msdn2.microsoft.com/en-us/library/aa450272.aspx
http://msdn2.microsoft.com/en-us/library/aa451153.aspx
http://msdn2.microsoft.com/en-us/library/ms899610.aspx
http://msdn2.microsoft.com/en-us/library/ms899601.aspx
Reading the full-thread it seems that you were having problems with this.
Please let me know if you are unable to configure server still with this
information and where you are getting stuck.
Also, what file sharing scenario are you trying to get working? CE to CE,
XP to CE?
Thanks,
Alexander T. Bussmann [MSFT]
"Don" <D...@discussions.microsoft.com> wrote in message
news:9611CC8F-CE64-4666...@microsoft.com...
Thanks for your help.
I went through the process of creating the file server and still I believe
the registry key
[KEY_LOCAL_MACHINE\Services\SMBServer\Shares]
"UseAuthentication"=dword:0
Is not working.
I then went back to the documentation concerning this as a known issue that
has been resolved.
Apparently the issues has been solved in the april update for Platform
Builder. Since in this documentation it suggests that the update will not
work unless all previous Platform Builder updates have been installed. This
got me thinking that I have been making a mistake by not installing all the
updates for Platform Builder 5.0. The other thing is I had all ready
installed the april update before reading it carfully. I am not sure if you
can install updates out of order? So intalled the updates that come as one
file for 2005. Then I installed the updates from 2006. I checked the clean
before building option in Platform Builder and rebuild the image. I still
had to use the remoteadmin utility to set permissions in order to map it on
my XP machine but to my suprise the other thing which I had been working on
which is the mounting of the OS onto the compact flash started working. I
thought to my self, updates are good! I then downloaded the January update
for this year rebuilt the OS and now the RemoteAdmin utility gives me errors
when I try to open it on my XP machine. Does anyone have any ideas about why?
(A) the registry key
[KEY_LOCAL_MACHINE\Services\SMBServer\Shares]
"UseAuthentication"=dword:0
is not working
(B) the ability to run RemoteAdmin has stopped. I believe due to the
January update for Platfrom Builder
--
Don
I have verified some things with respect to UseAuthentication=0 in CE 5.0.
Unfortunately this does not work and it is known broken in CE 5.0. We did
make the fix for CE 6.0. There are no updates for this issue in CE 5.0.
What errors are you seeing from the Remote Admin component?
Sorry for the inconvenience,
Alexander T. Bussmann [MSFT]
"Don" <D...@discussions.microsoft.com> wrote in message
news:6CDCBF72-3197-4782...@microsoft.com...
I have decided to abandon Windows CE 5.0 development and move on to 6.0
since I absolutly need to be able to share folders over ethernet without the
RemoteAdmin Tool. Is the documentation for 5.0 still relevent or should I be
looking somewhere else for information on how to share file in 6.0?
I have now recreated the problem in Windows CE 6.0. How do I fix it?
<quote>
I have decided to abandon Windows CE 5.0 development and move on to 6.0
since I absolutly need to be able to share folders over ethernet without the
RemoteAdmin Tool. Is the documentation for 5.0 still relevent or should I
be
looking somewhere else for information on how to share file in 6.0?
</quote>
You do not need the RemoteAdmin tool to share folders over ethernet. Please
help me to understand the precise steps you are using to recreate your
problem.
I have posted the steps that I have used to share a folder and disable
authentication on it, here:
Alexander T. Bussmann [MSFT]
Visit http://blogs.msdn.com/cenet
"Don" <D...@discussions.microsoft.com> wrote in message
news:EAD07A59-9349-4678...@microsoft.com...
I followed the instructions at the following link:
http://msdn2.microsoft.com/en-us/library/aa450272.aspx
http://msdn2.microsoft.com/en-us/library/aa451153.aspx
http://msdn2.microsoft.com/en-us/library/ms899610.aspx
http://msdn2.microsoft.com/en-us/library/ms899601.aspx
The following is my Project.reg file. It is still necessary for me to use
RemoteAdmin to unlock permissions on the shared drive. I do plan to follow
the instructions that you gave. But I do doubt this method because you say
to change the registry with the Remote registry Editor. I don't think I have
a registry which remains after a Power Cycle. Does this double have any
merit? Do I need a Registry that remains after a Power Cycle to make this
work?
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
;
; Use of this sample source code is subject to the terms of the Microsoft
; license agreement under which you licensed this sample source code. If
; you did not accept the terms of the license agreement, you are not
; authorized to use this sample source code. For the terms of the license,
; please see the license agreement between you and Microsoft or, if
applicable,
; see the LICENSE.RTF on your install media or the root of your tools
installation.
; THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
;
;[HKEY_LOCAL_MACHINE\Ident]
;"Name"=LOC_DEFAULTDEVICENAME
;"Desc"=LOC_DEFAULTDEVICEDESC
; Redirector settings
[HKEY_LOCAL_MACHINE\Comm\Redir]
; Expose \NETWORK dir for mapped resources
"RegisterFSRoot"=dword:1
; Set memory thresholds for Hibernate
[HKEY_LOCAL_MACHINE\SYSTEM\Hibernate]
"Bytes"=dword:20000
"Pages"=dword:28
IF BSP_DISPLAY_MQ200 !
; CS_SAVEBITS implemented. GWES restores screen bits on power on
; Options here are:
; 0 : OAL must deal with saving/invalidating bits between power on/off
; 1 : GWES will restore screen bits on power on
; 2 : Entire screen invalidated on power on
[HKEY_LOCAL_MACHINE\system\gwe]
"PORepaint"=dword:1
ENDIF BSP_DISPLAY_MQ200 !
; Let Start/Settings/Control Panel Auto Expand
[HKEY_LOCAL_MACHINE\Explorer]
"ExpandControlPanel"=dword:0
[HKEY_LOCAL_MACHINE\Ident]
"Name"="AXYZCEDEVICE"
"Desc"="Windows CE Test Device (ICOP)"
"OrigName"="WindowsCE"
[HKEY_LOCAL_MACHINE\Services\Smbserver]
"AdapterList"="*"
"dll"="smbserver.dll"
"Keep"=dword:1
"Order"=dword:9
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares]
"UseAuthentication"=dword:0
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\HDD]
"Path"="\\Hard Disk"
"Type"=dword:0
"UserList"="@*;"
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\HDD1]
"Path"="\\Hard Disk2"
"Type"=dword:0
"UserList"="@*;"
;[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\Share]
;"UserList"="Don;"
;"ROUserList"=""
;"Type"=dword:0
;"Path"="Temp"
[HKEY_LOCAL_MACHINE\Windows CE Tools]
"Platform"="{356145cf-f1f4-44d4-bd1c-36f5aab1fac4}"
I am trying to follow your instructions. The problem I am having now is I
can't connect with the remote registry editor using the tcpip transport
option because my 6.0 OS does not contain the file cemgrc.exe. When I was
building 5.0 images it was there. Do you know how to add this? I also am
experiencing another problem. The 6.0 OS that I am building does not boot
every time from my compact flash. Some times it boots. Some times it
reboots my Mini-ITX and then boots and sometimes it does not boot. Do you
have any suggestions?
May I suggest starting another thread on the issue with respect to Remote
Registry Editor and your Mini-ITX problems. Experts in these areas may not
be looking at this thread given it is about Sharing Folders.
Alexander T. Bussmann [ MSFT ]
"Don" <D...@discussions.microsoft.com> wrote in message
news:BFD0BA0B-C75B-47A6...@microsoft.com...
First you do not need the Remote Registry Editor or the RemoteAdmin tool to
configure the SMB Server. All you need are to add the registry settings I
outlined into your project.reg file. Each time you boot the device these
settings will be used to initialize the SMB Server. IF you do change the
registry settings when the device is running then you need to restart the
SMB Server.
If you open a build window from Platform Builder and go to the
%_FLATRELEASEDIR%. Make sure that your common.reg file doesn't have a
UseAuthentication=dword:1 line in it. It shouldn't but I just want us to be
sure.
Also, what platforms are you connecting here. CE client to CE server, XP
client to CE server? I can see that you are trying to share out your hard
drives root. Can you try to share out \\windows or \\temp?
Thanks,
Alexander T. Bussmann [MSFT]
"Don" <D...@discussions.microsoft.com> wrote in message
news:AB40B1A5-4BBB-4BBF...@microsoft.com...
http://support.microsoft.com/kb/238897
I think,
When the Remote Admin (the http based config) creates OrigName and then restarts the SMB server.
If you do not have persistent registry,
This register does not exist each time you boot the device.
So,
you can add the registery (OrigName) with a value different from that of Name
And then, restart SMB.
I have a similar problem, Let me know your if you have any updates.
Mallik.
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
I checked that my common.reg file does not have that line in the same
directory where nk.bin is being built. Do have any other suggestions?
<quote>
Also, what platforms are you connecting here. CE client to CE server, XP
client to CE server? I can see that you are trying to share out your hard
drives root. Can you try to share out \\windows or \\temp?
</quote>
Regards,
Alexander T. Bussmann [MSFT]
"Don" <D...@discussions.microsoft.com> wrote in message
news:F2F946A6-CB46-41EA...@microsoft.com...
CE Server to XP client. I shall build a OS that has \Windows shared an let
you know.
Thanks for you help.
It is still necessary to use RemoteAdmin to share the \Windows directory
since its permissions come up in the deny state. I appreciate your help and
look forward to another suggestion.
Regards,
Alexander T. Bussmann [MSFT]
"Don" <D...@discussions.microsoft.com> wrote in message
news:72C821CF-32B4-4572...@microsoft.com...
Athough I can ping the device. When I try over and over again to map
\\AXYZCEDEVICE\Windows or any of the other shares using Map Network Drive
under the tools menu in Windows explorer on XP. I get the following error:
The network path \\axyzcedevice\Windows cannot be found.
Has this issue been posted as a known bug to be solved?
I hate to keep harping on this one. But it is at risk of stopping my
development with Windows CE since this is a feature I must absolutley have in
whatever OS I choose.
Change the name of the machine you are using:
HKEY_LOCAL_MACHINE\Ident
Name="xxx"
This is typically WindowsCE by default and you should change it to anything
else. Ensure that you can access the device by this name using some other
means.
HKEY_LOCAL_MACHINE\Servers\Smbserver\Shares
UseAuthentication=0 (do not use authentication)
HKEY_LOCAL_MACHINE\Servers\Smbserver\Shares\shareX
Path="\\temp"
Type=0 (disk access)
Shouldn't need the userlist from what I can see.
When you include services.exe use the following commands to refresh the
smb-server from PB:
s services unload SMB0:
s services load smbserver
s services refresh SMB0:
If you've done all of these things then I am stumped as to why this isn't
working for you. I've marked it down as something for our team to try out
and verify. I can assure you though that the remote admin tool is nothing
more than a wrapper for the registry and it just restarts the smb service
when you update the settings. This discussion has me wondering whether
others are also experiencing this issue.
Regards,
Alex
ale...@microsoft.com
"Don" <D...@discussions.microsoft.com> wrote in message
news:72C821CF-32B4-4572...@microsoft.com...
If remote is admin is only a wrapper for what is in the registry then what
registry entry is it reading to fill in the Deny radio button when I click on
a shared folder?
--
Don
"Alexander T. Bussmann [MSFT]" wrote:
[HKEY_LOCAL_MACHINE\Services\SMBServer]
"AdapterList"="*"
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares]
"UseAuthentication"=dword:0
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\Windows]
"UserList"="ADMIN"
"Path"="\\windows"
"Type"=dword:0
I was also able to share the Windows folder. I modified the machine name to
be something other than WindowsCE. From the CE machine I was able to
perform a "net use local_name \\machine_name\windows" and "net view
\\machine_name" showed the "windows" share.
I was unable however to access the CE share from an XP machine. There seems
to be a bug, looks like it might be a regression. We've logged a bug to
track this issue. I was able to turn authentication on and restart the SMB
Server and then continue to access the share this way. This can be
accomplished by adding a user to the NTLM user list and provisioning the
username in the SMB Server user list.
Please contact PSS and request a QFE from them. There is no cost for
bug-related support.
Thanks,
Alexander T. Bussmann
ale...@microsoft.com
"Don" <D...@discussions.microsoft.com> wrote in message
news:69EFA6BC-44AD-4C4C...@microsoft.com...