Solved

Run the htascript for another domain with admin credentials

Posted on 2011-03-11
8
587 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 19

Expert Comment

by:Miguel Angel Perez Muñoz
ID: 35107672
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
ID: 35107699
Sorry I read vbscript. Change wscript  and enter the program that runs the script.
0
 

Author Comment

by:sivark14
ID: 35107744
The above is not running for hta script.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 12

Expert Comment

by:Navdeep
ID: 35108118
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
ID: 35108344
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
ID: 35108453
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
ID: 37433058
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

688 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