Jump to content


Sign in to follow this  
slater7607

Allow HTA to write a line to smsts.log?

Recommended Posts

I'm working on an HTA frontend for our task sequences, starting with a basic computer information one. I had previously used a .vbs that did a wscript.echo command that wrote a line in the log file. However, wscript commands inside of an HTA aren't allowed (https://blogs.technet.com/b/heyscriptingguy/archive/2005/10/31/how-can-i-start-an-application-from-an-hta.aspx?Redirected=true)

 

Is there any other way to pass a line into the smsts.log file from the HTA?

Share this post


Link to post
Share on other sites


or incorportate mdt and with ztiutility it will log to whatever your script is called, eg: mycustomscript.log

Share this post


Link to post
Share on other sites

Thanks for the info, I made a small function with some ideas I got from here: https://blogs.technet.com/b/deploymentguys/archive/2010/04/26/exporting-all-sccm-variables-to-a-log-file-for-debugging.aspx?Redirected=true

 

I'm using the _SMSTSLogPath to determine where the TS is writing smsts.log to, do you happen to know if it will take any logs in that folder back to the CCM\Logs folder after everything is done?

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...
Sign in to follow this  

×
×
  • Create New...