Apr 27, 2006 This code will check for OS version. If it sees that it is server software it will exit the script. Just put this at the top of your code and the rest won't execute. I would add in code to see if the script has already run by creating a custom registry entry. If the key is present then quit the script. You can use any of the VBScript programs below in ActiveXperts Network Monitor. ('Win32_Product') errReturn = objSoftware.Install. Adobe elements 5 serial number. Checking Installed programs. Vbtab _ & 'Version' For Each objSoftware in colSoftware objTextFile.WriteLine. VBScript - Install program but wait. Microsoft® Windows® 2000 Scripting Guide Knowing the software packages that have been installed on a computer is useful for many reasons. Among other things, this knowledge helps you: • Gain insight into what the computer is used for. A computer that does not have a word processor installed is probably not used for writing memos or other documents. • Ensuring that only licensed software, and only approved software, is in use in your organization. Vbscript Download Windows 7If your organization has decided to standardize on Microsoft Excel, it is very useful, for both support and legal reasons, to know whether anyone has installed a different spreadsheet program on a computer. • Tracking the progress of software deployment projects (for example, the number of people who have installed this new application and the number of people who have not). • Planning for future software needs. These activities cannot be carried out using Group Policy because the Software Installation and Maintenance component does not provide information on the software installed on a computer; it only makes that software available for installation. For example, although the Software Installation and Maintenance component can publish a software package, it provides no way to track which users install that package. This makes it difficult to analyze actual software use or to make projections for future software needs. The WMI Win32_Product class enables you to enumerate the software installed on a computer, provided the software was installed by using the Windows Installer. Selected properties available through the Win32_Product class are shown in Table 8.14. Table 8.14 Win32_Product Properties Property Description Caption Short description of the object. Ms Script EngineDescription Object description. IdentifyingNumber Product identification, such as a serial number on software. InstallLocation Location of the installed product. InstallState Installed state of the product. Values include: -6 -Bad configuration -2 - Invalid argument -1 - Unknown package 1 - Advertised 2 - Absent 6 - Installed Name Commonly used product name. PackageCache Location of the locally cached package for this product. SKUNumber Product SKU (stock-keeping unit) information. Install Vbscript Windows 7Vendor Name of the product's supplier. Version Product version information. Scripting Steps Listing 8.12 contains a script that enumerates the software installed on a computer and then saves the information to a text file. To carry out this task, the script must perform the following steps: • Create an instance of the FileSystem Object. This object will be used to write the retrieved software information to a text file. • Create the text file C: Scripts Software.tsv. • Write the field headers to the text file in tab-separated-values format.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |