Element K Network Connections
For this lab, we will need to connect to vlab-PC1 and vlab-PC2. The computer vlab-PC1 is the computer on the left side while vlab-PC2 is on the right. If you leave the cursor on the PC icon for a few seconds, a tool-tip message will appear indicating the hostname of the PC. Open vlab-PC1 and login as Administrator with the password password. Return to the network and open vlab-PC2 and login as Administrator with the password password.
Note: All captures must be text only—DO NOT capture the NotePad++ application window or the command prompt window. Use copy and paste of text only.
Task 1: NetShareServer.vbs Program on vlab-PC1
* On vlab-PC1, open NotePad++ and from the File menu, select New.
* Create a Programmer Header that includes the name of your VBScript file, your name, the date, the class, and the name of your professor. Each of these VBScript comment lines begin with a (‘) character.
* From the File menu, select Save. Save your program as NetShareServer.vbs in the C:\Scripts folder as shown below.
* Define the Scripting.FileSystemObject fso that provides control of local folders and files. The “WinNT://hostname/LanmanServer,FileService object fileServ allows us to create and manage network shares similar to the NET SHARE commands we discussed last week.
Note: When you create the fileServ object, the hostname value vlab-PC1 must match the hostname of the computer acting as the server. If you don’t know your Windows hostname, open a Windows CLI and execute the hostname command.
Task 2: Create a Folder and Copy Files to