Quick Tips

A little something about everything

internet marketing and website development made simple..

How to quickly export a mailbox from exchange 2013 in .pst format, main or archive mailbox

Quick step by step of how to export a mailbox directly from exchange 2013 ECP/EAC.

  1. Be sure you have a share setup and ready to export to
    • This will require access to the server directly if you have not already done so. So \\SERVERNAME\SHARE for example.
  2. Login to your SERVER via ECP
    • Select Permissions
    • Double click(Edit) "Recipient Management"
      • Select + under "Roles" and choose "Mailbox Import Export"
      • Select + under "Members" and choose the user you want to be able to manage mailbox exports with.
      • Click "Save"
    • Click "Recipents"
      • Chose the mailbox/user you wish to export to .pst 
      • Choose "∙∙∙" then select "Export to PST File"
      • Choose the type of export, main mailbox or archive then choose next
      • Enter the share you wish to export to ie \\SERVERNAME\SHARE\mailbox(archive).pst
      • Choose if you want a notification once its done.
  3. Once its complete the PST file will be in the share.
Thats it your done!

simple Show/Hide content or multiple Div's using only javascript and CSS

Simple script to show and hide multiple div's

Example:

Spotlight 1, Spotlight 2, Spotlight 3

Spotlight 1 content

Spotlight 2 content

Spotlight 3 content

The code:
<script language="javascript">
function getElementsByClass( searchClass, domNode, tagName) {
	if (domNode == null) domNode = document;
	if (tagName == null) tagName = '*';
	var el = new Array();
	var tags = domNode.getElementsByTagName(tagName);
	var tcl = " "+searchClass+" ";
	for(i=0,j=0; i<tags.length; i++) {
		var test = " " + tags[i].className + " ";
		if (test.indexOf(tcl) != -1)
			el[j++] = tags[i];
	}
	return el;
}
function ShowHide(bioname) {
	var bios = getElementsByClass('bio');
	for(i=0; i<bios.length; i++)
		bios[i].style.display = 'none';
	document.getElementById(bioname).style.display='block';
}
</script>
<style>
#bio2,#bio3 {
	display: none;
}
</style>
<p>Simple script to show and hide multiple div's</p><p>Example:</p>
<p>
<a href="#" onclick="ShowHide('bio1');">Spotlight 1</a>,
<a href="#" onclick="ShowHide('bio2');">Spotlight 2</a>,
<a href="#" onclick="ShowHide('bio3');">Spotlight 3</a></p>
<div id="bio1" class="bio" style="width:400px;margin:10px;padding:10px;border:1px solid #000;box-shadow: 0 0 5px #000;"><h4 style="color:#000;">Spotlight 1 content</h4> </div> <div id="bio2" class="bio" style="width:400px;margin:10px;padding:10px;border:1px solid #f00;box-shadow: 0 0 5px #f00;"><h4 style="color:#f00;">Spotlight 2 content</h4> </div> <div id="bio3" class="bio" style="width:400px;margin:10px;padding:10px;border:1px solid #0f0;box-shadow: 0 0 5px #0f0;"><h4 style="color:#0f0;">Spotlight 3 content</h4> </div>

Performance, Private Memory Limit and Virtual Memory Limit

Private memory limit uses your system RAM, where the Virtual Memory limit will use Disk drive space. In most cases it is best to only set a private memory limit to prevent degradation to system performance if an application starts to use excessive amount of memory. Many .Net application will use large amount of virtual memory(Drive Space).

 

How to limit IP assignments to a guest OS and setup IP security using ACLs on Hyper-V Server

Limiting the use of IPs by each Guest OS is an important step in securing your network from accidental or intentional abuse of IP resources. 

You can limit IPs in Hyper-V 2012 using ACL rules much like any router or managed switch would provide via ACLs.

No Gui is currently available to manage ACLs so you will need to open Windows Powershell if you are in GUI mode. Lets assume you have VM named "Poject1" and you would like to limit this client/gues VM so they can only use 10.0.0.75 as an IP address.

 

Here are the commands:

 Add-VMNetworkAdapterAcl -VMName Project1 -LocalIPAddress 10.0.0.75 -Direction Both -Action Allow

 Add-VMNetworkAdapterAcl -VMName Project1 -LocalIPAddress any -Direction Both -Action Deny

That is it, your done.

 

Now you can check the rules with:

 Get-VMNetworkAdapterAcl -VMName Project1

 

or you can remove the rules using:

 Remove-VMNetworkAdapterAcl -VMName Project1 -LocalIPAddress 10.0.0.75 -Direction Both -Action Allow

 Remove-VMNetworkAdapterAcl -VMName Project1 -LocalIPAddress any -Direction Both -Action Deny