All posts by shawn-hyde

Minnesota Web Developer

A little something about everything...

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!

Step by Step install of CentOS7 on Microsoft Hyper-V Server with Linux Integration Services Version 4.0

Step by Step install of CentOS7 on Microsoft Hyper-V Server

  1. Create new VHD Generation 1
  2. Install from iso
  3. Configure network
    • Check, "Automatically connect to this network when it is available"
    • If manual IP allocation configure IPv4 & IPv5 as needed.
  4. Set root password
  5. Finish install

Download and install Linux Integration Services 4.0 from microsoft

  1. Download Linux IC4.0
  2. attach the ISO from HyperV
  3. run the following commands:
    # mount /dev/cdrom /media
    # cd /media
    # ./install.sh
    # reboot
Update Network settings
  1. right click on the virtual machine and click settinsg then expand network adapter select advanced features and note the mac address.
  2. run the following commands:
    # vi /etc/sysconfig/network-scripts/ifcfg-eth0
  3. use "i" to insert text, (esc) to exit and ":wq" to write your changes to make the file look like this:
    TYPE="Ethernet"
    BOOTPROTO=none
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=no
    IPV6INIT=yes
    IPV6_AUTOCONF=yes
    IPV6_DEFROUTE=yes
    IPV6_FAILURE_FATAL=no
    NAME=eth0
    UUID=(leave this as is)
    DEVICE="eth0"
    ONBOOT=yes
    HWADDR=(MAC ADDRESS, This should match what is configured in Hyper-V)
    Networking=yes
    IPADDR=(YOUR SERVER IP)
    PREFIX=30
    GATEWAY=(YOUR DEFAULT GATEWAY)
    DNS1=(PRIMARY DNS SERVER IP)
    DNS2=(SECONDARY DNS SERVER IP)
    IPV6_PEERDNS=yes
    IPV6_PEERROUTES=yes
    IPV6+PRIVACY=no
  4. now restart the network:
    service network restart
Instalation should be complete

Installing webmin on CentOS7 using the CentOS-7-x86_64-Minimal-1511.iso image

Installing webmin on CentOS7

  • Run the following commands:
    # yum update
    Is this ok [y/d/N]: y
    Is this ok [y/d/N]: y
    # cat > /etc/yum.repos.d/webmin.repo << EOF
  • Edit the file as follows:
    [Webmin]
    name=Webmin Distribution Neutral
    #baseurl=http://download.webmin.com/download/yum
    mirrorlist=http://download.webmin.com/download/yum/mirrorlist
    enabled=1
    EOF
  • Now run
    # rpm --import http://www.webmin.com/jcameron-key.asc
  • Install webmin
    # yum install webmin
    Is this ok [y/d/N]: y
  • Now open port 10000 to access webmin, to open for all IP's for example
    # iptables -I INPUT -p tcp --dport 10000 -j ACCEPT
Completed.

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>

Picking a Domain, with SEO in mind.

When starting a business or new website project the first step is always picking a relevant yet easy to remember domain name that is easy also good for marketing. One thing that some do not consider is how the search engines delegate certain domain extensions or Top Level Domains(TLDs).

Everyone knows .com, .net, .org and .edu have been around since the start and are widely used, unfortunately it is also hard to find a good domain that is not being help by domain campers, investors or spammers. In order to deal with this the registry has released a number of domains over the years as well as country specific TLDs. However, many of these countries have opened their own TLD for public use, whether for profit or publicity there is quite the list. Some such as .ws and.co have become very popular leaving search giants in the position to treat them like standard TLDs. Here is a list of domains treated like standard TLDs rather than country or regional specific TLDs for SEO purposes by google.

Country domains treated as standard TLDs

  • .ad
  • .as
  • .bz
  • .cc
  • .cd
  • .co
  • .dj
  • .fm
  • .io
  • .la
  • .me
  • .ms
  • .nu
  • .sc
  • .sr
  • .su
  • .tv
  • .tk
  • .ws
Regional domains treated as standard TLDs

  • .eu
  • .asia
It is important to choose a domain treated as a standard domain or all searches will be locked to the country specific search results.