Archive for the ‘Batch file’ Category

One or more activex controls could not be displayed in Outlook

2008-03-28

Windows XP SP, Outlook 2003

User was getting error message “One or more activex controls could not be displayed…”.

It is 2 ways to resolve this issue.

1) Check checkbox for “Use Microsoft Office Word 2003 to edit messages” in Outlook’s Tool >> Options >> Mail Format

2)If you don’t want to use Word.

Go to

C:\Documents and Settings\user_name\Application Data\Microsoft\Signatures

Make sure you make a copy of the *.htm signature.

Open htm signature in notepad.

Search for tag <object>.

Delete everything between <object></object> tags, including tags.

Save document. The problem is solved.

Additional resources:

Microsoft Outlook 2003
Microsoft Outlook 2007



MSI Switches

2008-01-19

Switch  Parameters                                Description
————————————————————————–
/i      Package|ProductCode                       Installs or configures a
                                                  product.

/f      [p|o|e|d|c|a|u|m|s|v]Package|ProductCode  Repairs a product.

                                                  p – Reinstalls a
                                                  product only if a
                                                  file is missing.

                                                  o – Reinstalls a
                                                  product if a file
                                                  is missing or if an
                                                  older version of a file
                                                  is installed.

                                                  e – Reinstalls a
                                                  product if a file
                                                  is missing or an equal
                                                  or older version of a
                                                  file is installed.

                                                  d – Reinstalls a
                                                  product if a file
                                                  is missing or a
                                                  different
                                                  version of a file is
                                                  installed.

                                                  c – Reinstalls a
                                                  product if a file
                                                  is missing or the stored
                                                  checksum value does not
                                                  match the calculated
                                                  value.

                                                  a – Forces all files to
                                                  be reinstalled.

                                                  u – Rewrites all
                                                  required user-
                                                  specific registry
                                                  entries.

                                                  m – Rewrites all
                                                  required
                                                  computer-specific
                                                  registry entries.

                                                  s – Overwrites all
                                                  existing shortcuts.

                                                  v – Runs from the source
                                                  file and re-caches the
                                                  local package.

/a   Package                                      Administrative
                                                  installation option.
                                                  Installs a product on
                                                  the network.

/x   Package|ProductCode                          Uninstalls a product.

/j   [u|m]Package                                 Advertises a product.
     or [u|m]Package /t Transform List            The property values used
     or[u|m]Package /g LanguageID                 on the command line are
                                                  ignored.

                                                  u – Advertises a product
                                                  to the current user.

                                                  m – Advertises a product
                                                  to all users.

                                                  g – Language ID.

                                                  t – Applies a transform
                                                  list to an advertised
                                                  package.

/l      [i|w|e|a|r|u|c|m|p|v|+|!]Logfile          Specifies the log
                                                  file path and
                                                  indicates the flags
                                                  to be logged.

                                                  i – Status messages.

                                                  w – Non-fatal warnings.

                                                  e – All error messages.

                                                  a – Startup of actions.

                                                  r – Action-specific
                                                  records

                                                  u – User requests.

                                                  c – Initial User
                                                  Interface (UI)
                                                  parameters

                                                  m – Out-of-memory.

                                                  p – Terminal properties.

                                                  v – Verbose output.

                                                  + – Appends to the
                                                  existing file.

                                                  ! – Clears each line in
                                                  the log file.

                                                  “*” – Wildcard.
                                                  Logs all information,
                                                  but the use of the v
                                                  option is not included.
                                                  To include the v option,
                                                  type “/l*v.”

/p   Patch/Package                                Applies a patch. To
                                                  apply a patch to an
                                                  installed Administrator
                                                  image, type the
                                                  following options:

                                                  /p [PatchPackage]
                                                  /a [Package]

/q   n|b|r|f                                      Sets the UI level.

                                                  q , qn – No UI.

                                                  qb – Basic UI.

                                                  qr – Reduced UI. A modal
                                                  dialog box is displayed
                                                  at the end of the
                                                  installation.

                                                  qf – Full UI. A modal
                                                  dialog box is displayed
                                                  at the end of the
                                                  installation.

                                                  qn+ – No UI. However, a
                                                  modal dialog box is
                                                  displayed at the end of
                                                  the installation.

                                                  qb+ – Basic UI. A modal
                                                  dialog box is displayed
                                                  at the end of the
                                                  installation. If you
                                                  cancel the installation,
                                                  a modal dialog box is
                                                  not displayed.

                                                  qb- – Basic UI with no
                                                  modal dialog boxes.
                                                  The “/qb+-” switch
                                                  is not a supported UI
                                                  level.

/y   module                                       Calls the system
                                                  Application Programming
                                                  Interface (API)
                                                  DllRegisterServer, which
                                                  registers modules that
                                                  are typed on the
                                                  command line (for
                                                  example, “msiexec /y
                                                  my_file.dll”).

                                                  This option is only used
                                                  for registry information
                                                  that cannot be added
                                                  using the registry
                                                  tables of the .msi file.

/z   module                                       Calls the system API
                                                  DllUnRegisterServer,
                                                  to unregister modules
                                                  that are typed on the
                                                  command line (for
                                                  example, “msiexec /z
                                                  my_file.dll”).

                                                  This option is only used
                                                  for registry information
                                                  that cannot be removed
                                                  using the registry
                                                  tables of the .msi file.

Get current working directory in bat file

2008-01-02

echo %CD% would display current working directory in cmd prompt.

Defrag with reboot – batch file

2007-12-16

Platform tested:

Windows XP and 2003 

cd %windir%\system32
defrag C: -f
shutdown.exe -s -t 5