Allow Only One Connection Type (Jscript) - Novell ZENWORKS ENDPOINT SECURITY MANAGEMENT 3.5 - ADMINISTRATION Administration Manual

Hide thumbs Also See for ZENWORKS ENDPOINT SECURITY MANAGEMENT 3.5 - ADMINISTRATION:
Table of Contents

Advertisement

fileHandle.WriteLine "WshShell.RegWrite ""HKLM\SOFTWARE\Novell\MSC\STUWA"",
""true"", ""REG_SZ"""
fileHandle.Close
Action.Trace ("Wrote the VBScript file to: " + pathToTempVbsFile )
End Function
Function CreateStartMenuFolder
Dim fso, f, startMenuSenforceFolder
startMenuSenforceFolder = strStartMenu & "\Novell"
Set fso = CreateObject("Scripting.FileSystemObject")
If (fso.FolderExists(startMenuSenforceFolder)) Then
Action.Trace(startMenuSenforceFolder & " Already exists, so NOT creating
it.")
Else
Action.Trace("Creating folder: " & startMenuSenforceFolder)
End If
End Function

6.5.2 Allow Only One Connection Type (JScript)

// Disable Wired and Wireless if Dialup is connection
// Disable Modem and Wired if Wireless is connected
// Disable Modem and Wireless if Wired is connected
// Reenable all hardware (based off policy settings) if there are NO active
network connections
//NOTE:
//
As coded below, Wired is first, then Wireless, then Modem.
//
you have both a wired and modem connection when this script is
//
launched, then the modem will be disabled (i.e. the wired is preferred)
var CurLoc = Query.LocationName;
Action.Trace("CurLoc is: " + CurLoc);
if (CurLoc ==
{//only run this script if the user is in the desired location.
MATCH the exact name of the location in the policy
}
var Wired = Query.IsAdapterTypeConnected( eWIRED );
Action.Trace("Connect Status of Wired is: " + Wired);
var Wireless = Query.IsAdapterTypeConnected( eWIRELESS );
Action.Trace("Connect Status of Wireless is: " + Wireless );
var Dialup = Query.IsAdapterTypeConnected( eDIALUPCONN );
Action.Trace("Connect Status of Dialup is: " + Dialup );
var wiredDisabled = Query.IsWiredDisabled();
Action.Trace("Query on WiredDisabled is: " + wiredDisabled );
var wifiDisabled = Query.IsWiFiDisabled();
Action.Trace("Query on WifiDisabled is: " + wifiDisabled );
var dialupDisabled = Query.IsDialupDisabled();
Action.Trace("Query on DialupDisabled is: " + dialupDisabled );
//check if there is a wired connection
if (Wired)
172 ZENworks Endpoint Security Management Administration Guide
Set f = fso.CreateFolder(startMenuSenforceFolder)
CreateFolderDemo = f.Path
The order for checking sets the precedence for allowed connections
"Desired Location")
So if
This MUST

Advertisement

Table of Contents
loading

Table of Contents