Tag Archives: 2010

Search exchange message tracking log for a particular subject

If you want to search Exchange log for a particular subject, or just a bite of it, you can search witch this commands.

This will also export it to a nice CSV files.

Get-MessageTrackingLog -resultsize unlimited | Where-object {$_.MessageSubject -like "*Kenneth Dalbjerg"} | select-object timestamp,Sender,@{l="Recipients";e={$_.Recipients -join " "}},messageSubject | export-csv c:\KennethDalbjerg.csv

Exchange 2010 Relay

New-ReceiveConnector -Name RelayConnector -usage Custom -Bindings ’192.168.1.10:25′ -fqdn server.domain.com -RemoteIPRanges 192.168.1.20 -server MYEXCHANGESERVER -permissiongroups ExchangeServers -AuthMechanism ‘TLS, ExternalAuthoritative’

The easist way is just to run this command in powershell:

Where:
192.168.1.10:25 is the IP address of the Exchange server
192.168.1.20 is the ip of the clients how need access to relay
server.domain.com is you exchange server FQDN
MYEXCHANGESERVER is you exchange server hostname

Exchange 2010, powershell full access and send-as permission

To get a CSV file, from you exchange with full access and send as permission, from all you mailboxes run these commands:

Full Access

Get-Mailbox | Get-MailboxPermission | where {$_.user.tostring() -ne “NT AUTHORITY\SELF” -and $_.IsInherited -eq $false} | Select Identity,User,@{Name=’Access Rights’;Expression={[string]::join(‘, ‘, $_.AccessRights)}} | Export-Csv -NoTypeInformation c:\mailboxpermissions.csv

Send As

Get-Mailbox | Get-ADPermission | where { ($_.ExtendedRights -like “*Send-As*”) -and ($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”) } | Select Identity, User, Deny | Export-CSVc:\sendas.csv

Windows 7 / Office 2010 get serial key from registry

For personale use only, use this programs:

http://kennethdalbjerg.dk/wp-content/uploads/2012/02/siw-setup.exe

With this programs you can get the Serial key from you installed Windows 7 or Office 2010:

http://kennethdalbjerg.dk/wp-content/uploads/2012/02/produkey.zip

The product is code by:

ProduKey v1.53
Copyright (c) 2005 – 2011 Nir Sofer
Web Site: http://www.nirsoft.net/utils/product_cd_key_viewer.html

It can get the serial for this products:

* Microsoft Windows 98/ME
* Microsoft Windows 2000
* Microsoft Windows NT
* Microsoft Windows XP
* Microsoft Windows Vista
* Microsoft Windows Server 2003
* Microsoft Windows 7 (Works only for some of the Windows 7 versions,
see the known problems section)
* Microsoft Office 2000 (Only ProductID is displayed)
* Microsoft Office 2003
* Microsoft Office 2007
* Microsoft Office 2010
* Microsoft SQL Server 2000
* Microsoft SQL Server 2005
* Microsoft Exchange Server 2000
* Microsoft Exchange Server 2003

 

Known Problems
==============

* When running produkey.exe, Some Antivirus programs displays an alert
and/or block you from running it. Click here to read more about false
alerts in Antivirus programs
* For some Windows 7/2008 licenses, the product key is not stored in
the Registry, and thus ProduKey cannot retrieve them. In these cases,
ProduKey will display ‘Product key was not found’ in the product key
column.
* If you bought your computer with installed operating system, you may
find the Windows product key appeared in ProduKey utility is different
from the product key on your Windows CD. This problem is mostly
reported with Dell computers.
* From unknown reason, the product key of Visual Stuido .NET is written
in the Registry as Office XP product…
* In old versions of Office (Office 2000 and below), the ‘Product Key’
value is not available.