To copy a file to multiple computers first create a txt file with all the computer names in it. Place the file you want to copy in an accessible location for all the machines. Run the following command:
for /f %a in (pclist.txt) do copy /y \\server\share\file.txt \\%a\c$\
This "should" copy the file to the machines listed assuming you have remote access.
Friday, December 27, 2013
Thursday, December 19, 2013
Exchange dynamic distribution groups based on security groups.
To create an exchange dynamic distribution group based on security group this can be done through powershell. The command specifies where to create the dynamic distribution group and what group the users will be a member of to pull the addresses from.
The group name is “Dyn_universal” the security group is dyn_test, so any user in the OU test that is a member of dyn_test will get mail sent to the distribution group.
New-DynamicDistributionGroup "Dyn_universal" -Alias "Dyn_universal" -OrganizationalUnit "OU=Test,DC=mydomain,DC=local" -RecipientFilter "MemberOfGroup -eq 'CN=dyn_test,OU=test,DC=mydomain,DC=local'"
Tuesday, November 5, 2013
Unable to send pictures from phones through exchange
With the following command you can change the value (in this case 10MB):
C:\Windows\System32\inetsrv\appcmd.exe set config -section:system.webServer/serverRuntime /uploadReadAheadSize:"10485760" /commit:apphost
C:\Windows\System32\inetsrv\appcmd.exe set config "Default Web Site" -section:system.webServer/serverRuntime /uploadReadAheadSize:"10485760" /commit:apphost
restart IISAdmin service.....
Tuesday, September 17, 2013
Remove .local from exchange web settings
1.Start the Exchange Management Shell.
2.Modify the Autodiscover URL in the Service Connection Point. The Service Connection Point is stored in the Active Directory directory service. To modify this URL, type the following command and then press ENTER:
Set-ClientAccessServer -Identity CAS_Server_Name -AutodiscoverServiceInternalUri https://mail.contoso.com/autodiscover/autodiscover.xml
3.Modify the InternalUrl attribute of the EWS. To do this, type the following command, and then press ENTER:
Set-WebServicesVirtualDirectory -Identity "CAS_Server_Name\EWS (Default Web Site)"
-InternalUrl https://mail.contoso.com/ews/exchange.asmx
4.Modify the InternalUrl attribute for Web-based Offline Address Book distribution. To do this, type the following command, and then press ENTER:
Set-OABVirtualDirectory -Identity "CAS_Server_name\oab (Default Web Site)"
-InternalUrl https://mail.contoso.com/oab
5.Open IIS Manager.
6.Expand the local computer, and then expand Application Pools.
7.Right-click MSExchangeAutodiscoverAppPool, and then click Recycle.
Wednesday, August 28, 2013
Exchange 2010 bug not removing mailboxes after migration to an new database
While moving mailboxes from one database to another the move request finishes with a warning:
Warning: Failed to clean up the source mailbox after the move.
Error details: MapiExceptionUnexpectedMailboxState: Unable to delete mailbox. (hr=0x80004005, ec=2634)
You will see the mailbox is disconnected but won't delete. To remove the mailbox use exchange powershell and enter these commands:
$aa=Get-MailboxStatistics -Database Mailbox database name| where {$_.DisconnectReason -eq “SoftDeleted”}
$aa | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted}
Wednesday, August 14, 2013
Limit Exchange 2010 memory use
ADSIedit.msc
Select known naming context and pick Configuration
Configuration-Services-MS Exchange-ORG NAME-Admin groups-ADMIN GROUP-Servers-SERVERNAME-Info Store
Right click the info store and choose properties and scroll down to find msExchESEParamCacheSizeMax and msExchESEParamCacheSizeMin
1GB is 32768, multiply that by the number of GB you want for min and max. Example
4GB min 32768
8GB max 262144
This is different than exchange 2007
1gb is 131072
Friday, August 9, 2013
Enabe mailbox auditing Exchange 2010
Set-Mailbox -Identity User2 -AuditEnabled $true
Then configure what you want to audit:
Set-Mailbox -Identity user2 -AuditAdmin copy,MoveToDeletedItems,move,update,folderbind,messagebind -AuditOwner Update,Move,MoveToDeletedItems,SoftDelete,HardDelete -AuditDelegate Update,MoveToDeletedItems,SoftDelete,HardDelete,SendAs,Create -AuditEnabled $true
Then use exchange control panel to search the logs:
https://yourmail.server.com/ecp
Subscribe to:
Posts (Atom)