RE: File Sharing in 5.0



As best I could tell from reading through the posts here you have the
following problems:

1) You don't want the remote admin UI to prompt you to set the device's name
A: Just change the remote admin script and remove the prompt for
the device name.
In public\servers\oak\GWAdmin\html\RGUI_DeviceConfig.htm, go to
the end of the file and change the script from:
<script language="javascript">
document.write("<form ID=EditForm METHOD=post onsubmit='return
SubmitHandler(this)'>");

if(!window.g_PASSWORD_PasswordSet) {
BuildMainTable_NoToolBar("NAS Admin", "", "ShowPasswordConfig()");
} else if(window.g_HOSTNAME_NotSet) {
BuildMainTable_NoToolBar("NAS Admin", "Please assign your device a
network name", "ShowHostNameConfig()");
} else {
BuildMainTable("Please name your device", "", "ShowBoth()");
}
document.write("</form>");

</script>
To:
<script language="javascript">
document.write("<form ID=EditForm METHOD=post onsubmit='return
SubmitHandler(this)'>");

if(!window.g_PASSWORD_PasswordSet) {
BuildMainTable_NoToolBar("NAS Admin", "", "ShowPasswordConfig()");
}
document.write("</form>");

</script>

2) You don't want to configure the admin password.
You can set a password for the Admin programmatically through
NTLMSetUserInfo. Documentation is here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesecurity
5/html/wce50lrfNTLMSetUserInfo.asp
There is a registry setting UseAuthentication (mentioned in the
docs here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm5/ht
ml/wce50consmbserverregistrysettings.asp), that can be used to disable the
password requirements altogether. I don't recommend doing that for
security reasons. But it is also broken as I mentioned in my response to
another post. If that is blocking your ability to ship a device, you can
request a QFE through customer service.

3) You want to have the file server sharing by default
There's plenty of documentation on the necessary registry keys.
In fact, I answered another post just last month called "File Server on
5.0" with details.
Here's an excerpt from that post...

Now that said, there is a HowTo document that walks you step-by-step
through creating a file share:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm5/ht
ml/wce50tsktestingfileserver.asp. Note: the doc says you should use IE on
the local device to configure the server, but you don't need to. You can
simply use "ipconfig /d" to get the machine's ip address in the debug
output of Platform Builder or a Network Sniffer and then browse to
http://<IP Addr>/remoteadmin from a desktop pc.

Note that under the AdapterList documentation it mentions that "*" can used
to serve on all adapters. Docs here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm5/ht
ml/wce50consmbserverregistrysettings.asp

To get the regkeys you need, you can use the ISAPI configuration tool
described in the doc, and then copy out all the keys under
HKLM\Services\SMBServer and HKLM\Ident. Some examples below (Note the
location of the AdapterList value):

[HKEY_LOCAL_MACHINE\Services\SMBServer]
"AdapterList"="*"
"DLL"="smbserver.dll"
"Keep"=dword:1
"Order"=dword:12
"Prefix"="SMB"
"Index"=dword:0

[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\MyShare]
"UserList"="ADMIN"
"Path"="\Temp"
"Type"=dword:0

[HKEY_LOCAL_MACHINE\Ident]
"Name"="TestCEName"
"OrigName"="WindowsCE"
"Desc"="WindowsCE Device"



Hope that helps,
-Corey

.



Relevant Pages

  • Domain Controller Best Practice
    ... I am in need of some supporting documentation relating to Domain ... A medium sized school would like their single DC ... along with another file server and an email server. ... They like to poke and prod. ...
    (Focus-Microsoft)
  • Re: File Server Migration Toolkit - relocating shares correction
    ... "If a file is deleted on the source file server, ... this version WILL migrate shares and permissions. ... For example, the documentation refers to ...
    (microsoft.public.windows.server.migration)
  • Re: Thinking about a linux server
    ... The file server is ... Whats better Fedora or Ubuntu as the OS for such a server? ... The reason for the choice between those two is the documentation. ... But I see no overriding reason to select one over the other. ...
    (alt.os.linux)
  • Migrating NT PDC to AD Domain
    ... the Exchange server. ... The file server is our BDC. ... find seems to cover an in-place migration, which isn't applicable to what we ... Any pointers or documentation that covers this situation ...
    (microsoft.public.windows.server.migration)
  • Re: I just cant get file sharing to work!
    ... On 5.0 you just need File Server ... (and possibly HTTPD, can't remember now). ... I can't seem to find info on remote admin for CE 4.2 on google and ... where the heck in pb can I find the ...
    (microsoft.public.windowsce.platbuilder)