Find my Exchange 2010 version with the help of PowerShell
MWahl | May 9, 2012 | 1:37 pmGet-ExchangeServer | select name, admindisplayversion | ft -AutoSize
Get-ExchangeServer | select name, admindisplayversion | ft -AutoSize
I wrote an article on deploying an IIS 6 Reverse Proxy several months ago using managed Fusion. This article will discuss using the built in IIS 7.5 rewrite functions to deploy a reverse proxy.
Prerequisites
From the IIS 7.5 web server, download the following.
Reverse Proxy functionality is disabled by default, so you must begin by enabling it.
The Rules (web.config from the root of the rewrite site)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webserver>
<rewrite>
<rules>
<clear />
<rule name="rule1" stopProcessing="true">
<match url="abc/123/qsc" />
<conditions logicalGrouping="MatchAny" trackAllCaptures="false">
<add input="{HTTP_REFERER}" pattern="^http://www.thenetworkadministrator.net.*$" />
<add input="{HTTP_REFERER}" pattern=http://a.thenetworkadministrator.net/1 />
<add input="{HTTP_REFERER}" pattern=http://b.thenetworkadministrator.net/2 />
<add input="{HTTP_REFERER}" pattern=http://c.thenetworkadministrator.net/3 />
<add input="{HTTP_REFERER}" pattern=http://d.thenetworkadministrator.net/4 />
</conditions>
<action type="Rewrite" url=http://backendserver/urlname />
</rule>
<rule name="RequestBlockingRule1" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{URL}" pattern="*/abc/123/qsc*" />
</conditions>
<action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." statusDescription="You do not have permission to view this directory or page using the credentials that you supplied." />
</rule>
<rule name="rule2">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="a.thenetworkadministrator.net" />
</conditions>
<action type="Rewrite" url=http://backendserver/urlname/{R:1} />
</rule>
</rules>
</rewrite>
<defaultDocument>
<files>
<clear />
<add value="default.aspx" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
One other suggestion is to make extensive use of Fiddler 2, this will help you out with troubleshooting various issues.
New-ManagementRole -name "Mail Recipients Custom" -Parent "Mail Recipients"
Get-managementRoleEntry "Mail Recipients Custom\*" | where { $_.Name –ne "Set-User"} | Remove-ManagementRoleEntry
Set-ManagementRoleEntry "Mail Recipients Custom\Set-User" -Parameters Identity,Title,Department
Get-managementRoleEntry "Mail Recipients\Get-*" | Add-ManagementRoleEntry -Role "Mail Recipients Custom"
New-ManagementRoleAssignment -name "test" -Role "Mail Recipients Custom" –user UserName
new-managementroleassignment -role "View-Only Recipients" –user UserName
https://ServerName.DomainName.com/ecp , Manage My Organization, My Organization, Mailboxes, search mailboxes.
Patching SharePoint is a two-step process. The updated binaries are first installed and then psconfig must be run to update the SharePoint databases. PSconfig no longer runs automatically after an update is installed. The SharePoint binary files are updated with the patch but the databases are not automatically upgraded. SharePoint runs in a compatibility mode that still allows the sites to function with the older version databases.
You can also run the following commands to determine if you need to complete the update process with PSCONFIG:
If the result of this command is True, then you need to complete the steps below. If the result is False then no further action is needed, if you are encountering similar events the cause will most likely not be resolved by the following steps.
In order to update the SharePoint databases, you must manually run the PSconfig utility. To run the utility:
1. Open an Administrative command prompt.
2. Change directory to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN
3. Run PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures
Note: The Companyweb site will be inaccessible while the command is running. It is best to run the command after business hours. The amount of time the command takes to run will vary on the size of the database and the speed of the machine. On a reference machine with 8 logical processors, 32GB of RAM and a 2GB content database, the command took approximately 5 minutes to execute.
Don’t forget the apply the Cumulative update packages for Microsoft SharePoint Server 2010 after installing service pack 1.
http://support.microsoft.com/default.aspx?scid=kb;EN-US;2536599
First configure DB Mail, http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/
Run this query
EXEC master.dbo.xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent', N'UseDatabaseMail', N'REG_DWORD', 1
Download iperf-2.0.5-cygwin
From a local client computer open a command prompt and run this command, C:\temp\iperf-2.0.5-cygwin\iperf.exe -c 123.333.222.1 -P 10
From a remote server open a command prompt and run this command,
C:\Users\infoshare>C:\tmp\iperf-2.0.5-cygwin\iperf.exe -s -P 10
————————————————————
Server listening on TCP port 5001
TCP window size: 64.0 KByte (default)
Remember, you may need to open port 5001 inbound in your local software firewall and or in the hardware firewall.
As we now have instances which can be booted from EBS (hurray for that), you’re root is also increased to 30gb. But sometimes this still isn’t enough. Here is how you can increase your root partition drive using the AWS Console.
Right click it and select [Create Snapshot from this volume].
Export SSL Certificate from IIS
Here is a link for a tutorial on how to export your certificate
http://www.digicert.com/ssl-support/pfx-import-export-iis-7.htm
Now you should have your pfx file.
Convert the PFX file to PEM format
Next you will need to convert the PFX file to a valid pem format for the ELB. In order to do this you will need the utility OpenSSL.
If you don’t have OpenSSL installed. You will need to. You can download the version (32 bit or 64 bit) you need below:
http://www.slproweb.com/products/Win32OpenSSL.html
There is a great post online that already explains how to do this which can be found here
http://www.petefreitag.com/item/16.cfm
For the ease of reading and to explain a bit futher I took the commands from the link above and insert them here as well.
First thing you need to do is open the windows command prompt and get to the directory where openssl is (if you did not put it in your PATH)
Command 1
# Export the private key file from the pfx file
openssl pkcs12 -in filename.pfx -nocerts -out key.pem
it will prompt you for an Import Password. I entered in the one I created when I exported the cert from IIS
Command 2
# Export the certificate file from the pfx file
openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
it will prompt you for an Import Password: I entered in the one I created when I exported the cert from IIS.
Then it will prompt you for a PEM passphrase. Enter one if you’d like, then confirm it
Command 3
# This removes the passphrase from the private key so Apache won’t
# prompt you for your passphase when it starts
openssl rsa -in key.pem -out server.key
It will prompt for a pem passphrase. This would be the passphrase you created after command number 1 (if you did)
Upload the PEM format SSL into the Elastic Load balancer
Now it’s time to take the files you created from openssl and copy and paste them into the Elastic Load Balancer. I just uploaded it via the AWS Console Management UI. However they do have api tools as well you can do this with.
I configured the following on the ELB:
When prompted for the certificate keys do the following:
Note: I did not put anything into the certificate chain
Finish configuring the rest of your Elastic Load Balancer
In my case I wanted to go from version 3.9 to 3.13
From the appliance console type these two commands.
apt-get update
apt-get install opsview
http://www.youtube.com/watch?v=BHATeW3CcgE
I read recently AppAssure was named Bronze Backup and Disaster Recovery Product of the Year by Storage Magazine. Replay 4 provides recovery from a server disruption. Replay 4 is a server-based, disk imaging solution that automatically and continuously snapshots your entire Windows application server.
Replay 4 products including Replay for Windows, Replay for Exchange, Replay for SQL, Replay for Hyper-V, and VMware ESX.
