hello vagrant ssh
or vagrant powershell will open a session as the vagrant user or run a command with -c you will have a way to run the command as admin in linux . vagrant ssh -c 'sudo <sommand>' does the trick in windows I am familiar only with `runas` but not sure whats the proper powershell way. vagrant will use the vagrant user alvaro. On Wed, Nov 14, 2018 at 2:04 PM Ozan Cansel <ozancan...@gmail.com> wrote: > Hello, I want to run my powershell script dynamically with elevated > privileges. For example, on the host, I want to run vagrant powershell -c > "any command here". I know it can be done with provisioning with elevated > privilege but I need to run it on after 10 minutes from machine is up. Is > it possible ? I searched, googled but I could not found. On winrm-plugin > documents supports it with vagrant winrm -c -e "<cmd>" but when I installed > that plugin vagrant suggests to uninstall it. Could you help me about it ? > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/vagrant/issues > IRC: #vagrant on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vagrant-up+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vagrant-up/4227b10b-3ebf-49f4-b188-88bb2b9567cd%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/4227b10b-3ebf-49f4-b188-88bb2b9567cd%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0eySEXipvDbU5e-ihr5nf38ZXTbqucpCYP_1_RsFnsPFAw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.