header pic

Understanding FastTrack Scripting           fasttrack_orb


FastTrack Scripting Host (FSH)  is the only high-level Scripting Language on the market today.

It is targeted at (but not limited to) any kind of Scripting that might be needed to service Client machines in a Windows network
(eg: Domain-Logon Scripts and automating Installations).

All other Scripting Languages require a significant amount of time to create Scripts and the complexity alone prohibits many IT professionals from doing much of what they would like to do (or should be doing!) with Scripting.

Most Scripting Languages are closely-related to Programming Languages and many of them are, in fact, the counterparts of real Programming Languages, like VBScript. The need for Programming skills for Scripting purposes often results in snippets from    previous work simply being copied and tweaked. Worse still, third-party Scripts from unknown sources are often acquired from the internet... Think Inefficiency and Viruses!

It is very difficult to Script complex tasks, even for a Programmer, yet most organizations don't have a Programmer in the System Administrators' department.

But FastTrack Scripting Host isn't like other Scripting Languages!

With FastTrack, there's a new Paradigm :
 FSH Paradigm

If you need to synchronize files from one directory to another you simply write one line in your GUI-enabled Script !

This, of course, triggers hundreds of real code-lines in the engine, but you don't write the code to actually execute the operation, you just

specify what you want to accomplish !

If you have a relatively large WSH Logon-Script today, you'll be amazed how few Script lines you'll need to achieve the same with FastTrack Scripting Host.

What's more, your Scripts will be far more readable and you will no longer need to rely on other people's snippets... or expensive Consultants'.

Anyone with IT understanding can write a FastTrack Script to accomplish complex tasks, so now you can use your energy on what you want DONE instead of how and who you want to do it.

 

Understanding the difference

To help understand the difference between FastTrack Script and other Scripting Languages, let's look at a comparison with the commonly-used VBScript :

This is a typical Logon Script to test whether the User who is logging-on is a member of a certain "Active Directory" group.
If they
are a member, then a Share is connected.

In the VBScript version, we will assume there is an Active Directory and use the LDAP provider, as this will require the least number of lines:

If IsMember("SalesStaff") Then MapNetworkDrive "I:","\\AcmeServer\Sales"

Function IsMember(groupName)
  Const ADS_NAME_INITTYPE_GC = 3
  Const ADS_NAME_TYPE_NT4 = 3
  Const ADS_NAME_TYPE_1779 = 1

  ''==== CONVERT GROUP NAME TO FULLY QUALIFIED NAME ====
  Set WSHNetwork = WScript.CreateObject("WScript.Network")
  Set objTrans = CreateObject("NameTranslate")
  objTrans.Init ADS_NAME_INITTYPE_GC, ""
  objTrans.Set ADS_NAME_TYPE_NT4, WSHNetwork.UserDomain & "\" & groupName
  strGroupDN = objTrans.Get(ADS_NAME_TYPE_1779)
  strGroupDN = Replace(strGroupDN, "/", "\/")

  ''==== GET GROUP AND USER ====
  Set objGroup = GetObject("LDAP://" & strGroupDN)
  Set objADSysInfo = CreateObject("ADSystemInfo")
  strUserDN = objADSysInfo.UserName

  ''==== DETERMINE MEMBERSHIP ====
  If objGroup.IsMember("LDAP://" & strUserDN) Then
    IsMember=True
  Else
    IsMember=False
  End If
End function

Function MapNetworkDrive(letter, uncPath)
  ''==== DISCONNECT EXISTING DRIVE IF CONNECTED ====
  Set objNetwork = CreateObject("WScript.Network")
  Set objDrives = objNetwork.EnumNetworkDrives()
  For objDrive = 0 To objDrives.Count - 1 Step 2
    If objDrives.Item(objDrive) = letter Then
      objNetwork.RemoveNetworkDrive letter, true
    End If
  Next

  ''==== MAP SHARE ====
  objNetwork.MapNetworkDrive letter, uncPath, false
End function

( In "real life" the VBScript version would be longer, as there is no error-handling and checking that the group actually exists, to ensure that the Script can continue in case of execution error. )
 
Using a FastTrack Script, the same operation requires just one line :

If UserIsMemberOf SalesStaff Then ConnectShare I:,\\AcmeServer\Sales

In case of an error, the General Error-Handler Script (errorhandler.fsh) will be included and the Script will continue.
 

Both Scripts produce the same result !

The VBScript example will be slightly slower and it will stress your Active Directory if there are many computers in the network, because it will query your Active Directory (over the network) every time a User logs-on.

The FastTrack Script version will query only against locally-cached information, which the WinLogon process has already retrieved from your domain controller.

For more, see Documentation

Telenor

 

FastTrack  

footer_left   footer_right
spacer
spacer