Code Script

Home | Scripts | Tutorials | Disclaimer | Sitemap | Contact

   Add Remove Windows Vista Components

Vbscript / Operating System / Add Remove Windows Vista Components

Add remove Windows Vista components using "ocsetup" which replaces "sysocmgr" used for Windows XP and Server 2003. The usage of "ocsetup" is shown below:

ocsetup.exe [/?] [/h] [/help] component [/log:file] [/norestart] [/passive] [/quiet] [/unattendfile:file] [/uninstall] [/x: parameter]

Example usage.

ocsetup MSMQ-Server /quiet
ocsetup /unattendfile:c:\unattend.xml

Example answer file used with the unattendfile switch.

<?xml version="1.0"?>
    <package action="configure">
      <assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.0.5722.0" language="neutral" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS"/>
      <selection name="MSMQ-Multicast" state="true"/>
      <selection name="MSMQ-Server" state="true"/>
      <selection name="MSMQ-HTTP" state="true"/>
      <selection name="MSMQ-Triggers" state="true"/>
      <selection name="MSMQ-ADIntegration" state="true"/>
      <selection name="MSMQ-DCOMProxy" state="true"/>
      <selection name="MSMQ-RoutingServices" state="true"/>
      <selection name="MSMQ-DownlevelClient" state="true"/>


Please note that a disclaimer applies to any code on this page.
  Go Back
  Print Page

- Links
- Reference
- Script Editors
- Tutorials
- Vbscript
     - Active Directory
     - Exchange
     - Files And Folders
     - General
     - Ms Office
     - Operating System
          - Add Remove Windows Server 2003 Components
          - Add Remove Windows Vista Components
          - Add Remove Windows Xp Components
          - Autologon And Runonce
          - Change Display Resolution
          - Change Location I386 Setup Files
          - Change Offline Folder Cache Location
          - Dell Bios Set Boot Device Order
          - Dell Bios Set Configuration Settings
          - Dell Bios View Configuration Settings
          - Dell Bios View Device Boot Order
          - Disable Vista User Account Control
          - Enumerate Cd Drives
          - Enumerate Computer Drives
          - Enumerate Disk Volumes
          - Enumerate Registry Keys
          - Flush Remote Dns Cache
          - Get Machine Hardware Model
          - Read Registry Key
          - Rename Computer
          - Rename Dell Machine By Service Tag
          - Set Internet Explorer Homepage
          - Set Random Desktop Wallpaper On Startup
          - Start And Stop A Service
          - Windows Login Timer
     - Processes And Services
     - Text Processing
     - User Interaction
     - Web Servers