Windows Tips & Tricks UPDATE, July 3, 2006
Subscribe to Windows IT Pro: https://store.pentontech.com/index.cfm?s=1&promocode=eu205xxL
Make sure your copy of Windows Tips & Tricks UPDATE isn't mistakenly blocked by antispam software! Be sure to add Windows_TipsandTricks_UPDATE@list.windowsitpro.com to your list of allowed senders and contacts.
These advertisers help bring you Windows Tips and Tricks for free
Sponsor: Argent Software
NETWORK TESTING LABS COMPARES ARGENT TO MOM 2005 Network Testing Labs, one of the world's leading independent research companies, concluded that "Argent's suite had a smaller footprint, was more scalable, supported more platforms, had a more responsive and intuitive user interface and gave us more useful reports," the report says. "Argent's suite of monitoring products emerged from our testing with flying colors." Download this FREE Comparison Paper now:
- Q. How can I copy Windows Server 2003 R2 File Server Resource Manager (FSRM) templates between servers?
- Q. How can I change the 60-minute flood setting for Windows Server 2003 R2 File Server Resource Manager (FSRM) templates?
- Q. How can I use Windows Live OneCare to check my system status?
- Q. How can I force a net use command to remember the credentials to use for a server?
- Q. How can I use a script to add email addresses to a distribution group in Active Directory (AD)?
Many things can affect your messaging system's availability, including component failure, power outages, operator errors, and natural disasters. Plan and implement reliable strategies to maintain highly available Exchange Server 2003 messaging systems.
Q. How can I copy Windows Server 2003 R2 File Server Resource Manager (FSRM) templates between servers?
A. Currently, there's no way to use the GUI to copy templates between servers, but you can use command-line tools to export and import templates. For example, to export a specific file-screening template, use the datascrn.exe command-line utility, as the following example shows (use dirquota.exe to export quota templates):
C:\>filescrn template export /file:e:\filescreenmp3.xml /template:"Block MP3"
To import the template, substitute import for export with the same syntax, as this example shows:
C:\>filescrn template import /file:e:\filescreenmp3.xml /template:"Block MP3"Note that you can use the /remote switch to import a template to or from a remote server.
If a file screen operates on nonstandard file groups, you need to export and import them also or the file groups the template references won't exist on the target server. You do this via the "filescrn filegroup" export and import command using the same format as we used to import and export templates.
Q. How can I change the 60-minute flood setting for Windows Server 2003 R2 File Server Resource Manager (FSRM) templates?
A. The 60-minute flood setting limits the system to performing actions associated with a quota or file screen to once an hour no matter how many violations of the quota or file screen occur. The simplest way to modify the setting is to export the template to XML, as explained in the FAQ "How can I copy Windows Server 2003 R2 File Server Resource Manager (FSRM) templates between servers?" (http://www.windowsitpro.com/windowsnt20002003faq/Article/ArticleID/53917/windowsnt20002003faq_53917.html ); modify the RunLimitInterval value in the FileGroupActions section to the number of minutes for flooding, as the figure shows; then import the template with the new run limit in place.
If you set the RunLimitInterval to 0, there will be no suppression of actions, which in the case of email, might result in the user being flooded with violation messages.
Q. How can I use Windows Live OneCare to check my system status?
A. When you use the Windows Live OneCare service, an icon in the notification tray will appear either red (computer is at risk), orange (status fair but requires some actions) or green (good), as the figure shows.
If you double-click the OneCare icon, the main management interface will launch and display any items that you need to address. Or you can trigger manual actions such as an antivirus or spyware scan, as the figure shows.
You can click "View or change settings" in the left pane under "Other Tasks" to configure options such as how often to run the system tune-up; set backup prompts; enable antivirus, antispyware, and firewall functionality; and set logging options. You can find more information about Windows Live OneCare at http://www.windowsonecare.com/ .
Q. How can I force a net use command to remember the credentials to use for a server?
A. Ordinarily, you're prompted for credentials when you access a remote server that's outside of your regular account domain. However, if you use the /savecred switch with the net use command, it will prompt for the credentials to use and store the credentials for any future connection, as the following example shows:
net use * \\savdaldc02\temp /savecred
Q. How can I use a script to add email addresses to a distribution group in Active Directory (AD)?
A. The following script, which you can download at http://www.windowsitpro.com/articles/download/addtodg.zip , will add email addresses to a distribution group. In the script, the first LDAP path is the location where the contacts will be created; you need to change it to a valid path for your environment. The second LDAP path is the distinguished name (DN) of the distribution group to which the contact will be added.
' Check whether all required arguments have been passed. If Wscript.Arguments.Count 0 Then WScript.Echo "Error " & Hex(Err) End If Err.Clear Set grpObj = GetObject("LDAP://cn=HRMailing,dc=dom,dc=com") If Err 0 Then WScript.Echo "Error " & Hex(Err) End If Err.Clear Set contactObj = containerObj.Create("contact","cn=" & strContactToAdd) If Err 0 Then WScript.Echo "Error " & Hex(Err) End If Err.Clear contactObj.mail = strContactToAdd contactObj.mailNickName = strContactToAdd contactObj.SetInfo grpObj.Add(contactObj.AdsPath) grpObj.SetInfo
Run the script by using the following command:
D:\Temp>cscript createcontact.vbs firstname.lastname@example.org
Hot Release (advertisement)
Events and Resources
(A complete Web and live events directory brought to you by Windows IT Pro: http://www.windowsitpro.com/events )
Featured White Paper
(from Windows IT Pro and its partners)
(from Windows IT Pro and its partners)
Save 50% off the Windows IT Pro Master CD! Order now and get portable, high-speed access to the entire Windows IT Pro article database on CD--a searchable library that includes every issue ever published. The newest issue also includes BONUS Windows IT Tips. Order now and save 50%:
Get endless solutions to help you migrate, optimize, administer, back up, recover, and secure your messaging environment. Subscribe to the Exchange & Outlook Administrator newsletter today and save $80:
Here's how to reach us with your comments and questions:
- About the newsletter — email@example.com
- About technical questions — http://www.windowsitpro.com/forums
- About product news — firstname.lastname@example.org
- About your subscription — email@example.com
- About sponsoring UPDATE — firstname.lastname@example.org
This email newsletter is brought to you by Windows IT Pro, the leading publication for IT professionals deploying Windows and related technologies. Subscribe today.