Browsing "Windows XP"

How can I send an email message from within a VBScript script?

If you have Microsoft IIS with SMTP installed on a server, you can use the following code to send a basic email message from within a script:

Set objMessage = CreateObject(“CDO.Message”)
objMessage.Subject = “Subject”
objMessage.Sender = “ali@alibutt.com”
objMessage.To = “you@yourself.com”
objMessage.TextBody = “test mail”
objMessage.Send

When you run OneNote 2003 on a Terminal Server client, the colors for menus and tabs are made of colored dots and crosshatches?

The subject appearance, often called pixilated, occurs if the client display is set for 256 colors (8-bit), because OneNote 2003 is optimized for a 16-bit color depth, or greater.

NOTE: OneNote 2003 menus and tabs use gradients to shade one color into another, and gradients cannot be displayed at an 8-bit color depth.

To workaround this issue, increase the color resolution of the Terminal Server client:

1. Open the Remote Desktop Connection item from Start / All Programs / Accessories / Communications.
2. Type the computer name or IP address of the Terminal Server into Computer.
3. Press Options to expand the connection window.
4. Select the Display tab.
5. Select a color resolution of 16-bit or higher.
6. Press Connect and log on to the Terminal Server session.

May 7, 2005 - General, Windows XP    8 Comments

Moving the Flag Status Column in Outlook 2003’s Mail Folder View

The new follow-up flags for Microsoft Office Outlook 2003 messages appear on the right side of a mail folder view, instead of on the left side with the other icons, such as the icon for attachments. Is there a way to move the Flag Status column to the left side of the mail folder view?

As you’ve probably noticed, the Flag Status column is a special column with its own functionality. If you right-click it, you don’t see the typical context menu with the Open, Print, Reply, and other commands but rather a menu containing the six flag colors and commands for Flag Complete, Add Reminder, Clear Flag, and Set Default Flag. Another special characteristic of the Flag Status column is that you can’t drag the column heading right or left to reposition it in the view.

It is possible to relocate the Flag Status column, but you’ll lose the context menu with its flag commands. That menu is available only when the Flag Status column appears in its special position on the right.

To reposition the Flag Status column, you need to remove it from the view first, then restore it in the desired position. To remove the Flag Status column, choose View, Arrange By, Current View, Customize Current View, then click Fields. In the Fields dialog box, select Flag Status, then click Remove. Click OK once to return to the Customize View dialog box. To restore the column in its new location, click Fields again. In the Fields dialog box, drag Flag Status from the Available Fields list into the Show these fields in this order list, positioning it as you want it to appear in the view.

How can I configure the Windows Server 2003 Service Pack 1 (SP1) Windows Firewall from a command line?

Windows 2003 SP1 improves the Netsh command to let you specify the “firewall” argument to access the firewall configuration. Netsh lets you

* configure the default state of Windows Firewall (Off, On, On with no exceptions)
* configure which exceptions should be enabled, including the scope of each exception and whether exceptions are enabled on all interfaces or per-interface
* configure logging options
* configure the Internet Control Message Protocol (ICMP) handling options
* manage the exceptions list

For example, to enable the firewall, use the command

netsh firewall set opmode enable

May 1, 2005 - General, Scripting, Windows XP    1 Comment

How can I use group policy to prevent the screen saver from activating while I am watching a video?

To prevent this behavior, disable the Allow Screen Saver group policy at User Configuration / Administrative Templates / Windows Components / Windows Media Player / Playback.

The Allow Screen Saver explain text contains:

Enables a screen saver to interrupt playback.

This policy displays a screen saver during playback of digital media according to the options selected on the Screen Saver tab in the Display Properties dialog box in Control Panel. The Allow screen saver during playback check box on the Player tab in the Player is selected and is not available.

When this policy is disabled, a screen saver does not interrupt playback even if users have selected a screen saver. The Allow screen saver during playback check box is cleared and is not available.

When this policy is not configured, users can change the setting for the Allow screen saver during playback check box.

Apr 20, 2005 - General, Windows XP    2 Comments

When you visit the Windows Update Web site from Windows XP, you receive ‘0x800C0002 initialization error’?

The subject behavior occurs if the Identserver Value Name informs Windows Update that the Iuident.cab file is not located on your current computer.

To resolve this behavior:

1. Open a CMD.EXE window.

2. Type the following command and press Enter:

REG DELETE HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateIUControl /V Identserver /F

2. Close the CMD.EXE window.

When I connect a client to a Windows Server 2000 or later Terminal Services server, how can I tell the client to connect via a nonstandard port?

Typically, when you connect to a Windows-based terminal server, you connect to port 3389. However, if someone has changed the listening port on the terminal server (by changing the value of the HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-TcpPortNumber subkey), you need to tell the client to connect to the new port. To do so, add a colon and the new port number after the server name, as this example shows:

TServer:3389

Windows Update hangs when you attempt to download and install updates?

This behavior can be the result incorrect DCOM settings.
Windows XP
1. Open a CMD.EXE window, type dcomcnfg, and press Enter.
2. Expand Component Services.
3. Expand Computers.
4. Right-click My Computer in the right-hand pane and press Properties.
5. Select the COM Security tab.
6. Press Edit Limits under Access Permissions.
7. If the Everyone group is not listed with allow local and remote access, press Add, press Advanced, and press Find Now. Select Everyone and press OK. Check the Allow for Local Access and Remote Access. Press Apply
8. Press OK until only Component Services is open and close it.
9. Type the following commands, pressing Enter after each line:

regsvr32 /s Msscript.ocx
regsvr32 /s Dispex.dll
regsvr32 /s Vbscript.dll
regsvr32 /s Scrrun.dll

Windows 2000
1. Open a CMD.EXE window, type dcomcnfg, and press Enter.
2. Select the Default Security tab.
3. Press Edit Default under Default Access Permissions.
4. In the Registry Value Permissions window, if Everyone is not listed, press Add, select Everyone and press Add. Select Allow Access in the Type of Access drop-down box and press OK and OK and Apply.
5. Press OK.
6. Type the following commands, pressing Enter after each line:

regsvr32 /s Msscript.ocx
regsvr32 /s Dispex.dll
regsvr32 /s Vbscript.dll
regsvr32 /s Scrrun.dll

Mar 31, 2005 - General, Windows XP    No Comments

How can I prevent Internet Explorer from prompting users to save User Names and Passwords?

To prevent Internet Explorer from prompting users to save User Names and Passwords, you can enable the Do not allow AutoComplete to save passwords Group Policy at User Configuration Administrative Templates Windows Components Internet Explorer.

When you enable this policy, it disables the automatic completion of user names and passwords in forms on Web pages, and prevents users from being prompted to save passwords. The User Names and Passwords on Forms and Prompt Me to Save Passwords check boxes are dimmed on the AutoComplete dialog of the Internet Options / Content tab.

Mar 31, 2005 - General, Scripting, Windows XP    No Comments

How can I use a script to determine the number of processors in a machine?

You can use a Windows Management Instrumentation (WMI) script to easily ascertain the number of processors on a machine. To do so, use these VBScript commands in a script file:

Set oShell = WScript.CreateObject(“WScript.Shell”)
Set oEnv = oShell.Environment(“SYSTEM”)
WScript.Echo oEnv(“NUMBER_OF_PROCESSORS”)

Related Posts Plugin for WordPress, Blogger...