Thursday, December 16, 2010

Using an HTA to launch an .exe (be very afraid)


Turns out you can script a .HTA to launch just about anything. Which likely is why even the BPOS site for my RnD project blocks saving them by default.
The example below will launch an executable with a button click. One use I am considering using this for is to launch some of my legacy .exe code inside of a Share Point Web Part.
Of course if I allow access to HTA's on a production server I am just begging for the script-kiddies to turn my life into a living hell. But if I can get it into a Web Part that cannot be modified expect by me it might be worth trying.
Meanwhile here is the launcher bits for running remote desktop:
'<'INPUT style="background-color:transparent; width:160;height:25"
TYPE="button" VALUE="Terminal Svcs" ID="essctermsvcs">

essctermsvcs.onclick = function runtermsvcs()
{
var shell = new ActiveXObject("WScript.shell");
if (shell)
{
shell.run("mstsc.exe");
}
else
{
alert("Terminal Services Not available");
}
}

OLAP and SASS (get cubic)


After my first class was canceled, they gave me a 10% discount on the next, which is SASS, SQL Analytics and MDX to get into the cube.
At first glance OLAP is very similar to SQL, at which I am an old hand. But the OLAP concept is multi-dimensional cubes with a lot of spreadsheet type functionality.
Here is a code snippet:

SELECT
{ [Measures].[Store Sales] } ON COLUMNS,
{
[Date].[2002],
[Date].[2003] } ON ROWS
FROM Sales
WHERE (
[Store].[USA].[CA] )

That translates into the cube above, with a measurement dimension of sales, two date dimensions for 2002 and 2003, all sliced by the state of California.

This could be an interesting and useful class

Thursday, December 9, 2010

Adventures with IPSec


Looking at how to control access on what MS calls an External Secure Communication Mode for SharePoint and Project Sophia I ran across the improvements made by MS in Windows 7 to IPSec configuration.
First question out of the box is, can I dump the gunky Sonicwall Software VPN that is such a pain?
Second question is what is up with the "Join to your companies Domain" stuff?
When I have the answers, I'll update this post...

Wednesday, December 8, 2010

@Home php equal to an RSS Feed

Is something that I can never remember...

So here: http://essc-home.org/feed.php