Wednesday, November 21, 2012

PowerShell Script to Search Distribution List Members Mailboxes

Here is a powershell script to search the mailboxes of a specified distribution list. I would run it from the Exchange Management Shell so you have access to all the Exchange cmdlets.



Link to Search-Malbox Cmdlet documentation
http://technet.microsoft.com/en-us/library/dd298173(v=exchg.141).aspx

Exchange Search keywords

Property Example Search results 
Attachmentsattachment:annualreport.pptxMessages that have an attachment named annualreport.pptx. The use of attachment:annualreport or attachment:annual* returns the same results as using the full name of the attachment.
Cccc:paul shenMessages with Paul Shen in the Cc field.
cc:pauls
cc:pauls@contoso.com
Fromfrom:bharat sunejaMessages sent by Bharat Suneja.
from:bsuneja
from:bsuneja@contoso.com
Keywords in retention policyretentionpolicy:business criticalMessages that have the Business Critical retention tag applied.
Date when messages expire according to policyexpires:4/1/2010Messages that expire on April 1, 2010.
Sentsent:yesterdayAll messages sent yesterday.
SubjectSubject:"patent filing"All messages where the phrase "patent filing" appears in the Subject field. 
Toto:"ben smith"Messages that have Ben Smith in the To field.
to:bsmith
to:besmith@contoso.com

AQS: http://technet.microsoft.com/en-us/library/bb232132.aspx#

Thursday, November 8, 2012

Disable USB Power Save

Need to disable USB Power Save?



Well here is a registry setting that will disable the ability for the computer to turn off the device to save power.

[HKLM\System\CurrentControlSet\Services\USB]
DisableSelectiveSuspend=1

Wednesday, November 7, 2012

Add or remove Common Desktop Items



Here are the registry locations and Guids for hiding common Microsoft Windows Desktop Items:
All the Entries are Dwords a value of 1 hides the item a value of 0 showes it.

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\
HideDesktopIcons\ClassicStartMenu]

Computer = {20D04FE0-3AEA-1069-A2D8-08002B30309D}
Personal folder = {59031a47-3f72-44a7-89c5-5595fe6b30ee}
Control Panel = {5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}
NetWork = {F02C1A0D-BE21-4350-88B0-7367FC96EF3C}
Recycle Bin = {645FF040-5081-101B-9F08-00AA002F954E}
Libraries = {031E4825-7B94-4dc3-B131-E946B44C8DD5}

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\
HideDesktopIcons\NewStartPanel]

Computer = {20D04FE0-3AEA-1069-A2D8-08002B30309D}
Personal folder = {59031a47-3f72-44a7-89c5-5595fe6b30ee}
Control Panel = {5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}
NetWork = {F02C1A0D-BE21-4350-88B0-7367FC96EF3C}
Recycle Bin = {645FF040-5081-101B-9F08-00AA002F954E}
Libraries = {031E4825-7B94-4dc3-B131-E946B44C8DD5}

While there are no builtin GPO's to control these folders you can use GroupPolicy Preferences to minipulate.

Thanks to Henny Louwers over at http://hlouwers.wordpress.com/2010/07/24/show-hide-desktop-items-windows-2008-r2-windows-7-by-means-of-registry-and-microsoft-group-policy-preferences/ for the CLSID and Registry paths.

You can find a full list of CLSID's for windows 7 here http://www.sevenforums.com/tutorials/110919-clsid-key-list-windows-7-a.html

Tuesday, October 30, 2012

Disable / Remove Network Explorer in Windows Explorer

Looking for a way in Windows 7 to remove the Network Explorer in Windows Exporer? Here is a great Registy setting that can be deployed or set in your master image

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum]
"{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}"=dword:00000001

I deployed this using a group policy preference but this blog post has an adm that can be imported create a GPO.

Thanks to this Blog Post


Another nice guide on how to remove the Network Icon from Windows Explorer on a Win7 Device can be found here

http://www.sevenforums.com/tutorials/39699-network-add-remove-navigation-pane.html

Thursday, September 27, 2012

This Operation has been canceled due to restrictions in effect on this computer. Please contact your system administrator.

The Outlook Error “This Operation has been canceled due to restrictions in effect on this computer. Please contact your system administrator." seen when trying to open a link within an email can be resolved by doing the following

1.Close Outlook.
2.Open Internet explorer go to Tools > Internet Options > Programs Tab > Click Make Default to set IE as the default browser
3.Then from with in Internet Options go to the Advanced Tab then Click Restore Advanced Settings.
4. Test to see if the issue is resolved.

If the above does not resolve the issue run the following from a command Prompt to update a registry value setting it back to the default value.

reg add HKCR\.html\ /d htmlfile /f

Wednesday, August 29, 2012

Adding Photos to the GAL

Importing a Photo in to AD using Powershell. The Photo will then be shown in Outlook, SharePoint and others that take advantage of this.

The photo data is stored in the thumbnailPhoto Attribute. this attribute is replicated so it is important to keep the image size releivley small 96 X 96 is a good size and runs about 10k depending jpeg quality. If you are Excahnge 2010SP1 the attribute is added during the Schema prep. if you are not on Exchange 2010 SP 1 here is a ELHO Blog on how to add the Attribute to the AD Schema.

http://blogs.technet.com/b/exchange/archive/2010/03/10/gal-photos-in-exchange-2010-and-outlook-2010.aspx

The following PS CmdLet will import the photo.

Import-RecipientDataProperty -Identity -Picture -FileData ([Byte[]]$(Get-Content -path -Encoding Byte -ReadCount 0))

Tuesday, May 15, 2012

Monday, February 27, 2012

How To Hide/Remove the Windows Search Toolbar From the XP Taskbar

As a part of our late rollout of windows search 4.0 to our windows xp clients it was necessary to
remove the search toolbar from taskbar. Below you will find my results and hope that it helps
anyone in the same boat.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Desktop Search\DS] "ShowStartSearchBand"=dword:00000000

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\DesktopSearch]
"DB"=dword:00000001

I found the above in a post on this fourm.
http://social.msdn.microsoft.com/Forums/en-US/windowsdesktopsearchdevelopment/thread/2a0e1cd0-4a0f-4fb0-a819-9e57c8e905e9

Saturday, January 7, 2012

Stop Outlook 2010 from moving emails to junk

Looking for a way to stop emails that are securely relayed anonymously off your internal receive connector from being caught by outlook 2010 junk filter?

The MS Exchange Team sheds some light on the issue here.

So a little history on my issue. I currently have a receive connector configured to allow anonymous email to be relayed with in our organization, to allow servers and such to send out notifications.  we have had speratic issue with emails from our onbase servers being caught by outlook 2010's junk mail filters.
My first attempt to correct this issue as to add our domain to Outlooks safe sender list, but that had no effect as exchange would remove the entry after applying it. next I added the ms-exch-bypass-anti-spam permission to the anonymous user on for my receive connector and for awhile that worked. Recently though, we have started to have the issue resurface. After reading this post by the Exchange team I have learned that ms-exch-bypass-anti-spam only bypasses exchanges spam filters not Outlooks. At the recomendation of Microsoft I will be installing the anti-spam filters on our hub transport servers and add the IP's of our internal server to the safe list to have the actual spam score set to -1 to prevent the message from going into Outlooks junk filter.

-Till Next Time