SMB Sharing: The secure way! (Mirror)
AKA the hard way, where we have XBMC logon to the share using a password other users are denied access to your shares.


Right click on "My Computer" and Select "Manage"
or
Start > Programs > Administrative Tools > Computer Management
or
C:\WINDOWS\system32\compmgmt.msc


Expand "Local Users and Groups"
Right click on "Users" and choose "New User..."


Define "User name" and "Password" (in this guide the user name is xbox and the password is password)
Untick the "User must change password at next logon" box
Tick off the "Password never expires" box
Click create then close


Right click on the newly created "user" and select "Properties"

View the "Member of" tab

Remove "Users" by selecting the "Users" and clicking "Remove".

You can close "Computer Management" now

We will be adding a "rule" for the Xbox/XBMC user

Open Local Security Policy by either going to:
Start > Programs > Administrative Tools > Local Security Policy
or
Control Panel > Administrative Tools > Local Security Policy
or
C:\WINDOWS\system32\secpol.msc


Extend "Local Policies" and click "User Rights Assignment"
Double click the "Access this computer from the network" policy


Click the "Add User or Group"


Add the "xbox" user and click OK

You can close "Local Security Policy" now

Time to turn off simple file sharing


Open an "Explorer" window
Open "Tools" and select "Folder Options..." 

View the "View" tab

Find the "Use simple file sharing (recommended)" and unwing it (turning it off)
Click OK


Goto your "MySharedDrives"
Right click it and select "Sharing and Security..."


Enable the "Share this folder"
Click "Permissions"


Select "Everyone" and click remove
Click "Add..."


Type "xbox" and click OK

The Xbox "user" should now be added

Click OK

Configuring XBMC for SMB secure shares! (Mirror)
Link:XboxMediaCenter

Now its time to edit the XboxMediaCenter.xml file so you will be able to see the newly shared "folder" in XBMC


Add one of the following bookmarks to XboxMediaCenter.xml in the sections you want to show the shares in (My Pictures, My Music and My Movies)

<bookmark>
<name>Network My PC</name>
<path>smb://xbox:password@ComputerName/MySharedDrives</path>
</bookmark>

You can also add the domain name into the path
<path>smb://domain;xbox:password@ComputerName/MySharedDrives</path>

<bookmark>
<name>Network My PC</name>
<path>smb://xbox:password@ip/MySharedDrives</path>
</bookmark>


You should now see a new folder "Network My PC"


Select it and you should now see all your PC drives

/TykSak