Jump to content

Help needed with function send


Recommended Posts

I need it because some commands does not work in cmd but works in Run dialog box, its just to provide ease to the user through script.

Run uses shell execute while cmd uses run. To use shell execute from cmd, then type:

start commandhere

And also curious to know wheather Function Send () can be used with admin right or not.And if yes then how.

It can't. And Google doesn't show any means at all of opening a run box with admin privileges through user interaction.
Link to comment
Share on other sites

This is my answer to my own question

RunAs($adminuser, $admindomain, $adminpass, 4, 'c:\WINDOWS\system32\rundll32.exe shell32.dll,#61', @SystemDir)

it is possible to open standard Run dialog window from command line

c:\WINDOWS\system32\rundll32.exe shell32.dll`,#61

Thanks anyway for the help

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...