Membru cu cele mai relevante răspunsuri
Need to run netsh command with elevated previledges

Întrebare
-
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.
Răspunsuri
-
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.
- Propus ca răspuns de arnavsharmaModerator joi, 18 septembrie 2014 23:15
- Marcat ca răspuns de arnavsharmaModerator sâmbătă, 20 septembrie 2014 14:26
-
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.
- Propus ca răspuns de arnavsharmaModerator joi, 18 septembrie 2014 23:15
- Marcat ca răspuns de arnavsharmaModerator sâmbătă, 20 septembrie 2014 14:26
Toate mesajele
-
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.
- Propus ca răspuns de arnavsharmaModerator joi, 18 septembrie 2014 23:15
- Marcat ca răspuns de arnavsharmaModerator sâmbătă, 20 septembrie 2014 14:26
-
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.
- Propus ca răspuns de arnavsharmaModerator joi, 18 septembrie 2014 23:15
- Marcat ca răspuns de arnavsharmaModerator sâmbătă, 20 septembrie 2014 14:26