Preview

Week 3 Ilab

Satisfactory Essays
Open Document
Open Document
367 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Week 3 Ilab
Student Name | | Class | | Date | | VBScript Network Shares Lab Key

' VBScript: NetShareServer.vbs
' Written by: Student Name
' Date: Today's Date
' Class: COMP230
' Professor: Professor Name
' ==============================================
Set fso = CreateObject("Scripting.FileSystemObject")
Set fileServ = GetObject("WinNT://vlab-PC1/LanmanServer,FileService")

'On Error Resume Next fso.CreateFolder("C:\Public") fso.CopyFile "C:\Windows\Cursors\w*.*","C:\Public"

WScript.Echo vbCrLf & "Current Network Shares"
For Each sh In fileServ WScript.Echo sh.name
Next

Set share = fileServ.Create("FileShare", "PublicData") share.Path = "C:\Public" share.MaxUserCount = 10 share.SetInfo WScript.Echo vbCrLf & "New Network Shares"
For Each sh In fileServ WScript.Echo sh.name
Next

WScript.Echo vbCrLf & "\\vlab-PC1\PublicData Share will be Available for 60 Seconds!!"
WScript.Sleep(60000)

fileServ.Delete "FileShare","PublicData" fso.DeleteFolder "C:\Public",True

WScript.Echo vbCrLf & "End of Program"
In the space provided below, copy and paste your NetShareServer.vbs Program Code:

cscript NetShareServer.vbs
Process started >>>
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Current Network Shares
Users

New Network Shares
PublicData
Users

\\vlab-PC1\PublicData Share will be Available for 60 Seconds!!

End of Program
<<< Process finished.
In the space provided below, copy and paste the RUN of your NetShareServer.vbs program:

' VBScript: NetShareClient.vbs
' Written by: Student Name
' Date: Today's Date
' Class: COMP230
' Professor: Professor Name
' ==============================================
Set fso = CreateObject("Scripting.FileSystemObject")
Set networkObj = WScript.CreateObject("WScript.Network")

networkObj.MapNetworkDrive "X:","\\vlab-PC1\PublicData"
Set folder = fso.GetFolder("X:\")
Set files = folder.Files
WScript.Echo vbCrLf
WScript.Echo "Contents of Mapped

You May Also Find These Documents Helpful

  • Satisfactory Essays

    It321 Week 1

    • 640 Words
    • 3 Pages

    A long distance switch routes traffic through the long distance network. The types of interfaces that terminate on a long distance switch are intermachine trunks (ITMT’s); they can also connect to databases that are used to validate calling card calls.…

    • 640 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    ROCKTHEAGESLLC

    • 3552 Words
    • 41 Pages

    . . . . . . . . . . . . . . . . . . . .…

    • 3552 Words
    • 41 Pages
    Good Essays
  • Satisfactory Essays

    ………….. ……… ………… ……… …………. ……… ………….…

    • 868 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Nt1330 Unit 6 Lab Report

    • 1088 Words
    • 5 Pages

    1. Create a new user called fileShare with password of p@ssw0rd. Set the account so it does not have to change the password as shown below:…

    • 1088 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Week 2

    • 3075 Words
    • 13 Pages

    PROCEDURE: The patient was placed in the supine position on the operating room table, where her right hand and…

    • 3075 Words
    • 13 Pages
    Good Essays
  • Good Essays

    Nt1310 Unit 3 Quiz

    • 6337 Words
    • 26 Pages

    - - - - - - - - - - - - - - - - - - - - - - - - - - -…

    • 6337 Words
    • 26 Pages
    Good Essays
  • Powerful Essays

    Comp230-Intro to Scripting

    • 12553 Words
    • 51 Pages

    The NETSH commands that will set the IP address of the interface name NIC to a DHCP is ________.…

    • 12553 Words
    • 51 Pages
    Powerful Essays
  • Satisfactory Essays

    Comp230 Week 5

    • 1799 Words
    • 8 Pages

    strComputer = ". " Set objWMIService = GetObject _ ("winmgmts:\\" & strComputer & "\root\CIMV2") Set colOperatingSystems = objWMIService.…

    • 1799 Words
    • 8 Pages
    Satisfactory Essays
  • Powerful Essays

    bloomberg cheatsheet

    • 13256 Words
    • 68 Pages
    • 13256 Words
    • 68 Pages
    Powerful Essays
  • Satisfactory Essays

    Comp230 W2 Ilab

    • 1120 Words
    • 5 Pages

    StdOut. WriteLine("Your Age is " & vbTab & vbTab & ageStr) WScript. StdOut. WriteLine(vbCrlf & "You Age in 10 years is ......" & ageStr10 & vbCrlf) WScript. StdOut.…

    • 1120 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week 4

    • 262 Words
    • 2 Pages

    Macro is designed for the do-it-yourselfer. The software program is ranked among the most useful tools of Microsoft programs. They took a task that would have been executed manually and made it automatic for many computer tasks. This can be from a simple task of creating spreadsheets or worksheets to a very complex task of exporting journal entries in an Excel program into an accounting package and the creating reports in Word. What makes Macros so great tis that in a lot of cases you don’t need to be an expert to set it up? You need to invest a little of time to learn the language they are written it…

    • 262 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    • • • • • • • • • •  • • •  • •…

    • 4569 Words
    • 19 Pages
    Powerful Essays
  • Satisfactory Essays

    week 3 discuss

    • 399 Words
    • 2 Pages

    > All societies are based on beliefs, the strongest of which are religious in one form or another. Even the American Indians could be described as religious in their beliefs of rain dances and war songs of the past. Most cultures are deeply rooted in the past; it is the history of all life that makes people who they are. Plainchant serves as the music of Catholicism, Baptist hymns, Buddhist temple chants, Eastern Indian monophonic music, even New Orleans death march all serve as sacred music to the people that perform them. In whatever form, it is not just the sacred chants that prevail but also the stories that they tell and the message that they send.…

    • 399 Words
    • 2 Pages
    Satisfactory Essays
  • Best Essays

    Macbeth Desires

    • 3412 Words
    • 14 Pages

    . . . . . . . . . . . . . . . . . . . . .…

    • 3412 Words
    • 14 Pages
    Best Essays
  • Satisfactory Essays

    Week 2

    • 336 Words
    • 2 Pages

    * Discuss what you learned, what could be applicable to your workplace or personal life, and how your knowledge has increased as a result of what you experienced through the learning activities in the previous week.…

    • 336 Words
    • 2 Pages
    Satisfactory Essays

Related Topics