I'm flow charting my login scripts and wanted advice on what I want to
do. All my OU scripts have the same check for Netstorage access, so my
thought was to move this check to a profile and place an include call
in all the OU sripts to that profile which would then have an Exit
command to stop any further script running.

Here is what I currently have in the OU scripts:

************************************************** *********************
REM This command prevents the default login script from running
NO_DEFAULT

REM This variable is used to set the users
REM login address regardless of how they connect.
SET LOGADDRESS = "%NETWORK_ADDRESS"

REM This Login Scrip Profile is used for users logging into
REM NetStorage. It limits their drive mapping to the drives
REM shown and then stops all subsequent script execution.
IF <WEBACCESS> = "1" THEN

REM This step calls the "NetStorageScript" profile object to
REM set the drive connections given to users logging in to
REM NetStorage via an IE Browser.
Include .NetStorageScript.MBC

REM This is the end of the Login Script for individuals using NetStorage
END
************************************************** **********************

What I think would be logical is to replace this with just this:

REM This variable is used to set the users
REM login address regardless of how they connect.
SET LOGADDRESS = "%NETWORK_ADDRESS"

Include .NetStorageScript.MBC

and place the "WEBACCESS" check there and add an Exit command at the
end of the script to halt all other scripts from executing.


NetStorageScript
************************************************** **********************
REM This Login Scrip Profile is used for users logging into
REM NetStorage. It limits their drive mapping to the drives
REM shown and then stops all subsequent script execution.
IF <WEBACCESS> = "1" THEN

REM This maps the TEMPLATES Drive that everyone uses
MAP ROOT T:=.ServerName_VOL1.MBCHQ.MBC:\Templates
MAP ROOT P:=.ServerName_VOL1.MBCHQ.MBC:\SHARDATA

REM This command maps the first available drive (i.e., F:) for DOS
level
REM logins. This is used when "Ghosting" PCs
IF MEMBER OF ".EVERYONE.MBCHQ.MBC" THEN
MAP ROOT G:=.ServerName_VOL1.MBCHQ.MBC:\GROUPS
END

IF MEMBER OF ".EVERYONE.PAC.MBC" THEN
MAP ROOT G:=.ServerName_VOL1.MBCHQ.MBC:\GROUPS
END

REM This section is used to map admin drives
IF MEMBER OF ".ADMINSMBC.MBCHQ.MBC" THEN
MAP ROOT W:=.ServerName_VOL1.MBCHQ.MBC:\SHAREDSOFTWARE
MAP ROOT J:=.ServerName_VOL1.MBCHQ.MBC:\ISBFILES
REM This ends the Admin Group Mapping
END

IF MEMBER OF ".ENFORCEMENTSDRIVE.MBCHQ.MBC" THEN
MAP ROOT S:=.ServerName_VOL1.MBCHQ.MBC:Enforcement
END

REM This calls the Profile to run the Probation Users
REM Drive Mapping Script Profile.
Include .LAMETEnfDriveMapScript.MBC

REM This calls the Profile to run the Probation Users
REM Drive Mapping Script Profile.
Include .NorthEnfDriveMapScript.MBC

REM This calls the Profile to run the Probation Users
REM Drive Mapping Script Profile.
Include .SouthEnfDriveMapScript.MBC

REM This calls the Profile to run the Probation Users
REM Drive Mapping Script Profile.
Include .ProbationDriveMapScript.MBC

REM This ends the NetStorage Mapping
EXIT

REM This is the end of the Login Script for individuals using NetStorage
END
************************************************** **********************
--