locked
Delegation of admin function RRS feed

  • Question

  • Is there a way to delegate computer management of a server to a specific user or set of users?

    This came up as a question due to users leaving files open on a share and when other users attempt to access the files they show up as in use or read only. Has anyone else come across this or have a different solution?

    Wednesday, March 12, 2014 2:58 PM

Answers

  • I agree with you...I am personally against giving admin rights to regular users and that's why I gave you the second option..

    If you use the second option the own user would be able to know who is using the file and ask that person to close it...

    I am not very skilled with the scripts so this is just an idea:
    You can try to explore an script option... I think this command "Net Session" gives you the option to see the users that have opened files and how much idle time they have.. if you are skilled with the scripting you might be able to write the script first to check if the user has opened files and then the idle time.. if your conditions are true disconnect them..

    http://technet.microsoft.com/en-us/library/cc725598.aspx
    http://technet.microsoft.com/en-us/library/bb490711.aspx

    Share how you solve it

    Regards


    Joaquin Camarero Muñoz


    Wednesday, March 12, 2014 5:03 PM
  • Hi,

    I agree with jcamarero, as he mentioned, maybe you we should create a Scheduled Task on the file server to run a script to close these opened files. Please modify the script with the following command: net file <ID> /close .

    Close an Open File

    http://technet.microsoft.com/en-us/library/cc732037.aspx

    If you have some trouble modifying the script, I suggest we could ask in the script forum. We will get a better assistance there.

    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG

    Best Regards,

    Andy Qi

    TechNet Subscriber Support

    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.


    Andy Qi
    TechNet Community Support

    • Marked as answer by Andy Qi Tuesday, March 25, 2014 5:21 PM
    Thursday, March 13, 2014 12:16 PM

All replies

  • Hi Cliff

    If you want to delegate computer management to be able to close open files left by other people you would need to grant Admin Rights on the computer where you have your shares...

    Or you can create an schedule task on your file server to run maybe psfile (systernals) or OpenFiles /query (windows command) to be executed according your needs.. maybe 5, or 10 mins and write the results on the same share where those users have access.. so they would be able to see who has files opened and they can contact the person to has the file opened so it can by closed by themself

    Share how you solve it.

    Regards


    Joaquin Camarero Muñoz

    Wednesday, March 12, 2014 3:31 PM
  • Hmmm..... Giving the users admin rights to the server would work but I think the users would possibly cause more havoc than needed.

    Maybe theres a utility out there that looks at open files on a specific share and closes them out after inactivity to the file.


    Cliff Greene

    Wednesday, March 12, 2014 3:40 PM
  • I agree with you...I am personally against giving admin rights to regular users and that's why I gave you the second option..

    If you use the second option the own user would be able to know who is using the file and ask that person to close it...

    I am not very skilled with the scripts so this is just an idea:
    You can try to explore an script option... I think this command "Net Session" gives you the option to see the users that have opened files and how much idle time they have.. if you are skilled with the scripting you might be able to write the script first to check if the user has opened files and then the idle time.. if your conditions are true disconnect them..

    http://technet.microsoft.com/en-us/library/cc725598.aspx
    http://technet.microsoft.com/en-us/library/bb490711.aspx

    Share how you solve it

    Regards


    Joaquin Camarero Muñoz


    Wednesday, March 12, 2014 5:03 PM
  • Hi,

    I agree with jcamarero, as he mentioned, maybe you we should create a Scheduled Task on the file server to run a script to close these opened files. Please modify the script with the following command: net file <ID> /close .

    Close an Open File

    http://technet.microsoft.com/en-us/library/cc732037.aspx

    If you have some trouble modifying the script, I suggest we could ask in the script forum. We will get a better assistance there.

    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG

    Best Regards,

    Andy Qi

    TechNet Subscriber Support

    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.


    Andy Qi
    TechNet Community Support

    • Marked as answer by Andy Qi Tuesday, March 25, 2014 5:21 PM
    Thursday, March 13, 2014 12:16 PM
  • Hi,

    Any update?

    Just checking in to see if the suggestions were helpful. Please let us know if you would like further assistance.

    Best Regards,

    Andy Qi

    TechNet Subscriber Support

    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.


    Andy Qi
    TechNet Community Support

    Monday, March 17, 2014 11:26 AM