In order to use this script, copy it from the post mentioned before, paste it into a new txt file in an editor. Save it as a .VBS file in your Lansweeper actions folder (
Program Files (x86)\Lansweeper\Actions by default). Then on the web console under
Configuration\Asset pages, section
Asset actions, create a new asset action and use the filename of your script as asset action, together with a parameter which passes the username to it. I.e.
{actionpath}yourscript.vbs {username}
{actionpath} and {username} are variables which will be automatically filled by Lansweeper if you execute the asset action from an asset page.