Solved

Run the htascript for another domain with admin credentials

Posted on 2011-03-11
8
581 Views
Last Modified: 2012-05-11
I want to run the hta script from one domain to another domain which is complely different domain. We have network connections established to acces that domain and how to run the script with another credentials and add the runas option.
0
Comment
Question by:sivark14
8 Comments
 
LVL 19

Expert Comment

by:Miguel Angel Perez Muñoz
Comment Utility
Try this way:  runas /env /user:user@other.domain "WSCRIPT "route to file.vbs""
0
 
LVL 19

Expert Comment

by:Miguel Angel Perez Muñoz
Comment Utility
Sorry I read vbscript. Change wscript  and enter the program that runs the script.
0
 

Author Comment

by:sivark14
Comment Utility
The above is not running for hta script.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 12

Expert Comment

by:Navdeep
Comment Utility
do you have any trust relatioship with that domain, if it's completely separate entity then you won't be able to run otherwise you can right click on the file and select Run As runas
0
 

Author Comment

by:sivark14
Comment Utility
Thanks for the update. I know how to add the runas option thorugh reged but i don't have access to edit the registry on the machine. Some time back I used the command runas /user:'@domain.com "C:\windows\system32\mshta.exe test.hta"" which was working. I forgot the exact command which will give the results.

0
 

Accepted Solution

by:
sivark14 earned 0 total points
Comment Utility
I tried  this command runas /user:domain\domainadmin "c:\windows\system32\mshta.exe \"h:\test.hta\"" which is working fine.
0
 
LVL 74

Expert Comment

by:Glen Knight
Comment Utility
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now