Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Help with "net use" command syntax

  • 05-05-2006 6:11pm
    #1
    Registered Users, Registered Users 2 Posts: 6,949 ✭✭✭


    hopefully someone can help me here as im a bit stumped and also out of time.

    I need to mount a share under the "system" account under windows MCE. But I want to use a valid, existing username and password on the server to do so.

    This should allow the MCE recording service, which runs under the "system" account record onto a network share. As a result, it cannot record to mapped shares as they are mapped at user level. I need to mount the share under the local account "system"

    I have both linux SAMBA and Windows 2000 Pro machines to toy with.


Comments

  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,572 Mod ✭✭✭✭Capt'n Midnight


    net.exe use x: \\servername\share /USER:username password

    http://www.experts-exchange.com/Networking/Microsoft_Network/Q_21820849.html
    I seem to have it working now. I'm now using uppercase for USER. That is the only thing I changed. I also have it in a batch file instead of running it manually from the command line. I'm not sure where the hiccup was/is.

    How to get a service to see it I'm not sure, you can run an exe as a service but you can't run a Batch file as a service.


    Maybe autologon so it's not a service and fast user switcher for local access to the PC by other users ?

    You could change the service to run with a logon but not sure if that would help.


    http://www.kellys-korner-xp.com/win_xp_passwords.htm


  • Registered Users, Registered Users 2 Posts: 6,949 ✭✭✭SouperComputer


    I had a feeling that you would be the first to reply Capt'n!

    thanks for the link, but it doesnt seem to do what I need it to, unless im missing somthing. I can easily mount the share under the account "soupercomputer" client.

    But what I want to do is use the "soupercomputer" credentials to mount the share on the , but mount it under the local user "system"

    Is this possible, I thought it was but its not looking like it!

    * no, the account is not REALLY called soupercomputer, im not THAT bad! *


  • Registered Users, Registered Users 2 Posts: 6,762 ✭✭✭WizZard


    You could attempt to change the owner of the share to "system"? That might work.

    Although, it's still possible programmatically to check whether a drive letter/directory is a mapped share. No matter what you do it will not allow you to write to that share so (if the app is programmed like that).

    Is it a permissions issue or something different?


  • Registered Users, Registered Users 2 Posts: 6,949 ✭✭✭SouperComputer


    its not the permissions on the server anyway, for the moment ill try and get it to work with win2k and then SAMBA.

    others have managed to get MCE to write to network shares handy enough. It invloved using null shares though which im not too fond of!

    The MCE recording facility runs under the user account "system" so if I can mount the share under that user im flyin'. I can map the share using the UNC within MCE, but it just reverts to a local store as the "system" account does not have access to the share.


  • Registered Users, Registered Users 2 Posts: 2,426 ✭✭✭ressem


    If you're still interested...

    would you be comfortable altering and buidling the c++ program
    http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/wnet/wnet/assigning_a_drive_to_a_share.asp

    to connect to a different path, and different user, using a config file if you prefer.

    Then setup to run as a service using instsrv and srvany
    http://support.microsoft.com/kb/q137890/

    Set service to run as local system account in the services control panel.

    "should work" (tm)


  • Advertisement
Advertisement