slater7607 Posted March 6, 2012 Report post Posted March 6, 2012 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? Quote Share this post Link to post Share on other sites More sharing options...
0 Peter van der Woude Posted March 7, 2012 Report post Posted March 7, 2012 I'm not sure if it's smart to use the smsts.log for that.. I would use my own logfile and just use the writeLine method (example: http://www.devguru.com/technologies/vbscript/quickref/textstream_writeline.html) Quote Share this post Link to post Share on other sites More sharing options...
0 anyweb Posted March 7, 2012 Report post Posted March 7, 2012 or incorportate mdt and with ztiutility it will log to whatever your script is called, eg: mycustomscript.log Quote Share this post Link to post Share on other sites More sharing options...
0 slater7607 Posted March 7, 2012 Report post Posted March 7, 2012 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? Quote Share this post Link to post Share on other sites More sharing options...
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