Preview

Comp230 Wk 5 Lab

Satisfactory Essays
Open Document
Open Document
411 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Comp230 Wk 5 Lab
VBScript Modular Lab Report

Copy your Mod1_PCTests.vbs program from NotePad++ and paste it into the space provided below. Any portion of the script that will not fit should be continued in the textbox on the next page.

' Menu Driven Computer / Network Tests
' This VBScript program is run using the PC_Tests.cmd Batch Script
Set args = WScript.Arguments
WScript.Echo vbCrLf

Select Case args.Item(0) Case "1" Call System_Information Case "2" Call System_Memory_Size Case "3" Call OS_Version Case "4" Call Printers_Status case "5" Call Logical_HDD_Information case Else WScript.Echo chr(7) & chr(7) & "Error, Choices are 1..5 or x!!!"
End Select

Sub System_Information Set WshShell = WScript.CreateObject("WScript.Shell") WScript.Echo "The computer name is ............ " & _ WshShell.ExpandEnvironmentStrings("%COMPUTERNAME%") WScript.Echo "The Num of CPUs is .............. " & _ WshShell.ExpandEnvironmentStrings("%NUMBER_OF_PROCESSORS%") WScript.Echo "The Processor Architecture is ... " & _ WshShell.ExpandEnvironmentStrings("%PROCESSOR_ARCHITECTURE%")
End Sub

Sub System_Memory_Size strComputer = "." Set objWMIService = GetObject _ ("winmgmts:\\" & strComputer & "\root\CIMV2") Set colComputer = objWMIService.ExecQuery _ ("Select * from Win32_ComputerSystem") For Each objComputer in colComputer intRamMB = int((objComputer.TotalPhysicalMemory) /1048576)+1 Wscript.Echo "System Name ...... " & objComputer.Name _ & vbCrLf & "Total RAM ........ " & intRamMB & " MBytes." Next
End Sub

Sub OS_Version strComputer = "." Set objWMIService = GetObject _ ("winmgmts:\\" & strComputer & "\root\CIMV2") Set colOperatingSystems = objWMIService.ExecQuery _ ("Select * from Win32_OperatingSystem") WScript.Echo "The Operating System Detected is Shown Below:" & vbCrLf For Each objOperatingSystem in colOperatingSystems WScript.Echo

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Nt1310 Unit 3 Lab

    • 91 Words
    • 1 Page

    Transfer the uniformly weighted crushed tablets into a beaker and add 100cm3 of dilute sulfuric acid to the beaker.…

    • 91 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 4 Lab

    • 370 Words
    • 2 Pages

    Read the paper “Post–Green Revolution Trends in Yield Potential of Temperate Maize in the North-Central United States” by Duvick and Cassman (In Blackboard – Seed Technology folder).…

    • 370 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    NT1210 Lab 1

    • 319 Words
    • 4 Pages

    1. It is important to know how many system words will fit in a primary storage device on a computer so you know how big of a storage unit you have. The more system words that will fit in a primary storage device, the more memory you have on your computer.…

    • 319 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT2640 Lab 7 SC

    • 2232 Words
    • 17 Pages

    I thought it would have been the same ip address but it is showing the loopback loop. R1 will apparently choose the highest Ip address on a loopback interface…

    • 2232 Words
    • 17 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 6 Lab

    • 140 Words
    • 1 Page

    1.) Test for viscosity: Since DNA molecules are long strands that anneal to each other, they can be very viscous in liquid if they're at a high enough concentration. If I notice the sample sticking together while pipetting it, I'll often know that I have a lot of DNA in the sample.…

    • 140 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Netw 310 Lab #1

    • 257 Words
    • 2 Pages

    1. There are three patterns outlined on the screen. Which one of these is identifying the noise floor?…

    • 257 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT2670 Lab 5

    • 88 Words
    • 1 Page

    2. No you need to configure the URL and path for the media you want to show.…

    • 88 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    NT1230 Lab 10

    • 1546 Words
    • 8 Pages

    12. Take a screen shot showing of the Event Viewer console, showing the Critical & Warning custom view by pressing Alt+ Prt Scr, and then paste the resulting image into the Lab10_worksheet file in the page provided by pressing Ctrl + V.…

    • 1546 Words
    • 8 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT1230 Lab 4

    • 56 Words
    • 1 Page

    1. What tasks can you perform in the J.Adams Properties dialog box that you could not perform in the User Accounts control panel?…

    • 56 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Netw320 wk4lab

    • 1084 Words
    • 4 Pages

    1. On the Results Browser, make sure you are on Current Project so you have both sets of results. Expand DB Query and Select DB Query Response Time (sec). Hit the Show button. Zoom into the last half portion of the graph for better granularity and to avoid start up oscillation time to stabilize. Copy and label this graph to your lab report and answer the following:…

    • 1084 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT1210 Lab 1

    • 30 Words
    • 1 Page

    NT1210 Lab 1.3 Caleb Waldemar 12/9/2014 Exercise 1.3.1 Byte 1=25, Byte 2= 233 Exercise 1.3.2 Byte 1 and 2= 6633 Exercise 1.3.3 120 MB= 125829120 Bytes Exercise 1.3.4 16GB and word size of 32 bits. Number of words= 536870912 Exercise 1.3.5 Binary 110110^ 2= Hexadecimal 36 Exercise 1.3.6…

    • 30 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 3 Lab

    • 2577 Words
    • 11 Pages

    The bright field microscope is best known to students and is most likely to be found in a classroom. Visible light is focused through a specimen by a condenser lens, then is passed through two more lenses placed at both ends of a light-tight tube. The latter two lenses each magnify the image. Limitations to what can be seen in bright field microscopy are not so much related to magnification as they are to resolution, illumination, and contrast. Resolution can be improved using oil immersion lenses.…

    • 2577 Words
    • 11 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Lab 1

    • 918 Words
    • 4 Pages

    * The greater the distance between receptors and stimulus the lesser sensitive are the stimulus. The smaller area, the more sensitive.…

    • 918 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Lab 4.1

    • 666 Words
    • 3 Pages

    4.2.4 Explain that non-disjunction can lead to changes in chromosome number, illustrated by reference to Down…

    • 666 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    IS3445 Lab 7

    • 371 Words
    • 2 Pages

    Yes, although such tools like these would automatically find security flaws with high degree of confidence that what it found was a flaw.…

    • 371 Words
    • 2 Pages
    Satisfactory Essays

Related Topics