HTA and Alternate Credentials

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
User avatar
hitec92407
Posts: 8
Joined: Tue Sep 13, 2011 6:39 am

HTA and Alternate Credentials

Post by hitec92407 »

I don't mean this to be a "cross post" but I was directed to post this here :0

I have an HTA that does things like add/remove AD users to groups.

I need this to run with alternate credential using a service account with appropriate permissions to modify the AD accounts/groups. The HTA also performs operations that use vbscript run method to execute powershell commands. I want to code use of the service account into the HTA so it is hidden from the user.

I also want to compile this into an exe.

I'm considering buying primalscript.

1. Can primal script do all of this?

2. What type of project would I specify for an HTA?

thanks.

User avatar
Alexander Riedel
Posts: 7406
Joined: Tue May 29, 2007 4:43 pm

HTA and Alternate Credentials

Post by Alexander Riedel »

1. Yes.
2. Go to Script - Script Packager - Open Script Package
in that dialog you can select "MSHTA" as the engine type
and add your HTA file to the package.
As for alternate credentials, on the security tab you can specify
"Impersonate" or "Run As User". Which one is best for you very much depends
on your environment.
Alexander Riedel
SAPIEN Technologies, Inc.