Preview

Comp230 Week 5

Satisfactory Essays
Open Document
Open Document
1799 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Comp230 Week 5
Student Name | Class | COMP230 | Date | | VBScript Modular Lab Report ' 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 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 objOperatingSystem.Caption & "Version: " & _ objOperatingSystem.Version Next End Sub ' Menu Driven Computer / Network Tests
' This

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Netw310 Week #4

    • 313 Words
    • 2 Pages

    Yes we can, we must follow all the rules prior to being allowed to make the trench, which is getting all the required permits.…

    • 313 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Sample Final Amd2303

    • 783 Words
    • 4 Pages

    CREA Canadian Real Estate Association. CREA puts the average price at which a house was sold in Canada in 2010 at $339,100. Let us assume that the standard deviation of the house prices was $134,216. Suppose you had done a survey of a random selection of 36 house sale prices in 2010 and obtained an average house price of $368,533…

    • 783 Words
    • 4 Pages
    Satisfactory Essays
  • Best Essays

    Cmgt 430 Week 2

    • 1585 Words
    • 7 Pages

    University of Phoenix (2005). Huffman Trucking Service Request SR-ht-001. Materials section. Retrieved February 08, 2011, from https://ecampus.phoenix.edu/secure/aapd/cist/…

    • 1585 Words
    • 7 Pages
    Best Essays
  • Satisfactory Essays

    The core module that provides all of the Windows 7 capability that isn’t language-or edition-specific is called MinWin.…

    • 453 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The lab environment consists of computers connected to a local area network. The computers required for this lab are listed in Table 1-1.…

    • 1996 Words
    • 8 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 1 Problem Set 1

    • 750 Words
    • 3 Pages

    2. The core module that provides all of the Windows 7 capabilities that isn’t language or edition-specific is called Min Win module.…

    • 750 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    and identify the devices on the network and the operating systems and services running on them.…

    • 652 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Xeco 212 Week 1

    • 469 Words
    • 2 Pages

    With all of this in mind I would find principle three the most useful in this process. Rational people think at the margin, this allows for minor changes along my path while allowing me to weigh marginal cost and marginal benefit. Within this principle, I, as the decision maker would only progress toward the purchase if the marginal benefit exceeded the marginal cost. I would evaluate this rationally, doing the best I can to achieve my end objective.…

    • 469 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Chapter 3 Flashcards

    • 519 Words
    • 3 Pages

    What is an XML script that provides the Windows 7 Setup program with the information it needs to perform an unattended installation?…

    • 519 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    Hcs 475 Week 2

    • 1182 Words
    • 5 Pages

    References: McConnell, C. R. (2010). Managing Change. In Management Skills for the New Health Care Supervisor (pp. 401-422). Sudbury, Massachusetts: Jones and Bartlett.…

    • 1182 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    CU235P CT235 - Introduction to Duty of Care in Health, Social Care or CYP's Settings…

    • 512 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Cja234 Week 3

    • 1331 Words
    • 6 Pages

    The Department of Corrections has continuously changed their goals and objectives throughout the history of corrections. The continuous changes to policies have many contributing factors beginning with the Attorney General, Governors, and appointed directors of the incarceration establishments. With changing laws, new problems arising and changing political stand points based on campaign agendas prisons themselves have been forced to adapt. When asked what the objectives of punishment are here in the U.S., my first thought would be that the goal of punishment would be to enforce society’s laws and ensure the public’s safety. Punishment is also used as a deterrent in the hope it will persuade possible future offenders against committing criminal acts. The objectives of punishment vary between the state and the federal objectives on corrections.…

    • 1331 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Hcr220 Week 7 Checkpoint

    • 314 Words
    • 2 Pages

    Write a 250- to 300-word response to the following: Briefly explain causes and solutions for three of the most common billing and coding errors. What effect does the Medicare National Correct Coding Initiative have on the billing and coding process? Explain your answers.…

    • 314 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Comm Week 1

    • 775 Words
    • 4 Pages

    Communication is a social process in which individuals employsymbols to establish and interpret meaning in their environment.(Introducing Communication Theory, Ch.1, p.5, par 1)…

    • 775 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Brightness Controller

    • 470 Words
    • 2 Pages

    #!/usr /bin/env python # -*- coding:utf-8 -*- import wx import subprocess from os import system class BrightnessController(wx. Frame): def debug_true(self): return False def detect_display_devices(self): """Detects available displays""" connected_devs = [] xrandr_output = subprocess.check_output('xrandr -q', shell=True) lines =…

    • 470 Words
    • 2 Pages
    Good Essays