Tech Tip: Create WSH scripts/Manage Mac share permissions

Windows 2000 Professional: Create WSH scripts

Windows Script Host (WSH) provides a framework for executing scripts written in JavaScript or Visual Basic. WSH scripts are an extremely useful tool for administering computers and performing repetitive tasks. They can perform some fairly complex tasks, including display messages on screen, map network drives, connect printers, modify registry keys, read and modify environment variables, and retrieve information on hardware via Windows Management Interface (WMI).

If you're familiar with JavaScript or Visual Basic, creating and using WSH scripts isn't that difficult.

Follow these steps to try this example:

  1. Open Notepad and enter: WScript.Echo("My first WSH script!")
  2. Name the file Myscript.vbs, and save it.
  3. Browse to the folder where the file resides, and double-click the file. Windows will display a message box with the text specified in the script.

While this basic example may not be very useful, it illustrates how easy it can be to create a script. The Microsoft Developer Network Web site offers an extensive explanation of WSH, tutorials on writing scripts, and related topics.

Windows 2000 Server: Manage Mac share permissions

Windows 2000 Server includes File Services for Macintosh (FSM) to enable Windows servers to host shares for Macintosh users. These shares enable Macintosh users to share files, but more than that, they enable file sharing between Windows and Macintosh users. You can add FSM from the Add Or Remove Programs applet in Control Panel.

Unlike NTFS permissions, Macintosh permissions apply to a volume or folder, but not to individual files. However, FSM takes into account any NTFS permissions set on a file in a Macintosh volume and applies the more restrictive of the two (NTFS or Mac) when the permissions don't coincide.

Because permissions aren't identical, Windows 2000 must translate between Windows 2000 file permissions and Macintosh permissions. The Windows Read permission coincides with the See Folders, See Files Macintosh permission; Windows' Write and Delete permissions correspond with Macintosh's Make Changes permission.

In addition to using NTFS and Macintosh permissions to secure folders in an FSM share, you can also apply a volume password. Macintosh users must then specify the volume password along with their username and password in order to connect to and use the share. Volume passwords don't apply to Windows clients that access the share.

If you decide to secure FSM volumes with volume shares, keep in mind that you can't assign a volume password when you create the share; you must assign the password afterward. Also remember that the volume password is case-sensitive.

Editor's Picks

Free Newsletters, In your Inbox