Jump to content

Recommended Posts

Posted

Hi,

I wonder if anyone can help me with a problem of placing a space into a command line. At the moment when I run this command line everything goes to the prompt alright except for the "cmd". It gets pushed up against the users name like this runas /npprofile /user:\ad\admincmd how do I place a space between the admin and the cmd ?? :)

send(" runas /noprofile /user:"&$host& "\ad\"&$user&"cmd")

Posted

Send(" runas /noprofile /user:" & $host & "\ad\" & $user & " cmd")

Thank you, I can't believe it was that simple - much appreciated

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
×
×
  • Create New...