Jump to content


mqh7

Custom HTA using PowerShell

Recommended Posts

I found the HTA tool on this site but I wanted to know if there are any HTA style tools that are written in PowerShell. I know PS a little but and I wanted to create a custom HTA for a Windows 7 OSD using CM2012.

 

And if not can I use a PowerShell front end with CM2012 OSD? I can create prompts and query AD with PS so it would make my life easier.

 

Thanks.

Share this post


Link to post
Share on other sites


Thank you. one more quick question for you. How about using PrimalScript? I've played with it a little and it works good with PowerShell. If I wrote a PrimalScript / PowerShell GUI could I then pass my variables into a CM2012 Task Sequence?

 

Thanks again for your help.

Share this post


Link to post
Share on other sites

On another forum someone said powershell is not really good for task sequences due to the .Net Framework. It was a bit unclear is reason. But I wanted to ask this board. Is there any reason you would "Not" use PowerShell for your .HTA tool in a cm2012 task sequence?

Share this post


Link to post
Share on other sites

The only downside is that your PE Image will be inflated to 300MB. So it takes a little bit longer to load.

I also experienced some problems during the reimaging of some older bitlocker encrypted builds, because of the size of their BDE partitions. So i had to add an additional partitoning step (bitlocker command line :) ), which kicks in in case the BDE Partition is too small to keep the PE. Otherwise the Task sequence would just error out after applying the boot Image.

New BDE partitions are getting formatted with 500MB now.

Share this post


Link to post
Share on other sites

How does WinPE and PowerShell handled calls to AD? I use the Quest AD CMDLET's which of course would not work in WinPE. But to run GET-ADUser or GET-ADComputer in WinPE don't you need all of the RSAT tools?

Share this post


Link to post
Share on other sites

same here, still using Maik Kosters web services (they rock)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...