none
Need to run netsh command with elevated previledges RRS feed

  • 问题

  • Hi Team,

    I am running an script with netsh command for to enable file & print sharing module and that to only for an domain profile.

    But when i try to call this command through VB script, it asks me to run that in elevated previledges.

    PLease help me how do i achieve that, or is there any feasibility to invoke same in bat file itself, please let me know.

    Regards,

    Deepak Sharma.

    2014年9月17日 15:57

答案

  • Here are couple of URL that might help you : 

    http://stackoverflow.com/questions/17466681/how-to-run-vbs-as-administrator-from-vbs

    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/310e57f9-2367-4293-9f97-53d0e077aacc/vb-script-to-run-a-batch-script-as-admin?forum=ITCG

    http://www.server-world.info/en/note?os=Other&p=vbs


    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    2014年9月18日 0:01
    版主
  • If this does not works, please post your question here : 

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


    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    2014年9月18日 0:02
    版主

全部回复

  • Here are couple of URL that might help you : 

    http://stackoverflow.com/questions/17466681/how-to-run-vbs-as-administrator-from-vbs

    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/310e57f9-2367-4293-9f97-53d0e077aacc/vb-script-to-run-a-batch-script-as-admin?forum=ITCG

    http://www.server-world.info/en/note?os=Other&p=vbs


    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    2014年9月18日 0:01
    版主
  • If this does not works, please post your question here : 

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


    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    2014年9月18日 0:02
    版主