Setting up a FastTrack Logon
On this page we will go through one possible way of setting up startup scripts with FastTrack Logon.
Please refer to the logon scripts page
FastTrack Logon configuration page
for more information on FastTrack Logon.
An alternative solution could be to simply create a new script in the script editor, hitting the "Compile Script To
Exe File" button and simply assign this exe file as the startup script. As described on the logon scripts page,
this solution is very easy to set up, but is less scalable.
Startup script files are, by default, located in
They can, however, execute from any other public network location, e.g. the netlogon share.
In this example, we will make a copy of FastTrack Logon on the netlogon share for script execution.
It is also possible to keep the default naming of FastTrack Logon files and place them in the policy folder.
We will assume that FastTrack Logon is already being used for user logon scripts, so we need to make a copy of the FastTrack Logon files.
The files could be a copy of existing logon script files or an extraction of the FTLogon.zip files from the FastTrack
Scripting Host installation folder. To create a copy of FTLogon.exe we will do the following:
- Copy FTLogon.exe to PCLogon.exe
- Copy FTLogon.ini to PCLogon.ini
- Copy the fshbin folder tree to a folder named pcbin
Assuming an existing copy of FastTrack Logon was already present, the file structure will look like
this when browsing the netlogon share for the startup script:
PCLogon.ini must also be edited to match the changes:
- "ServerDir" must be changed to "pcbin".
- "PostLogonScript" must be cleared, as it is not required for startup scripts. (The postlogon.fsh file in the pcbin folder can be deleted.)
- "ClientDir" must be changed to "[AppDataDir]\FastTrack" to put the client files in the common application files.
The PCLogon.ini file will look this after the modification:
If the startup script is assigned to a computer, the prelogon.fsh script will now be the script that is executed when
the computer starts. Edit the prelogon.fsh file to perform the desired startup operations.
Assign group policies
To get the startup script to execute, a group policy must be set. During testing, a test Organizational Unit (OU)
could be created and the group policy could be assigned to this OU. The test computers could then be
put into this OU.
To get the startup script to execute, a group policy must be set:
- Run the command gpmc.msc on your domain controller.
- Find and open the desired OU and create a new policy (or use an existing one).
- Windows 2003 Server: Open Computer Configuration->Windows Settings->Scripts (Startup/Shutdown). Double click "Startup".
- Windows 2008 Server: Open Computer Configuration->Policies->Windows Settings->Scripts (Startup/Shutdown). Double click "Startup".
- Click the add button and select the file \\%USERDOMAIN%\NETLOGON\PCLogon.exe as the script name. You can change %USERDOMAIN% to the actual dns name of your domain, if you prefer.
Establishing network credentials
A startup script is running under the local system account and therefore has no network credentials. This is not a problem
when performing local maintenance, but if files are needed from the network, it is a big problem.
However, FastTrack Scripting Host has a command to create the required token based on credentials: The "LogonUser"
command can perform a logon as another user and impersonate this identity.
The example startup script below will logon to the network and copy the installation files for Adobe Reader
and install that on the executing computer, assuming it has not been successfully installed before. It would be
a good idea to insert a logging line in the ErrorHandler.fsh script to report problems.
STARTUP SCRIPT TO INSTALL
If Not Installed Adobe Reader Then
CopyDir \\AcmeServer\Installers$\Acrobat Reader\Bin,[TempDir]\TempInstall
If Not LastLineFailed Then RegisterInstallation Acrobat