Here is how using Powershell you can copy the members of an Active Directory group from one group to another.
That is all.
Monday, December 23, 2013
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
AQS: http://technet.microsoft.com/en-us/library/bb232132.aspx#
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 |
| Attachments | attachment:annualreport.pptx | Messages 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. |
| Cc | cc:paul shen | Messages with Paul Shen in the Cc field. |
| cc:pauls | ||
| cc:pauls@contoso.com | ||
| From | from:bharat suneja | Messages sent by Bharat Suneja. |
| from:bsuneja | ||
| from:bsuneja@contoso.com | ||
| Keywords in retention policy | retentionpolicy:business critical | Messages that have the Business Critical retention tag applied. |
| Date when messages expire according to policy | expires:4/1/2010 | Messages that expire on April 1, 2010. |
| Sent | sent:yesterday | All messages sent yesterday. |
| Subject | Subject:"patent filing" | All messages where the phrase "patent filing" appears in the Subject field. |
| To | to:"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
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
[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.
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))
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
Subscribe to:
Posts (Atom)
