Archivo

Archivo para la categoría ‘English Articles’

Hide an Office365 user from Global Address List (GAL) via Powershell

miércoles, 9 de enero de 2013 Sin comentarios

Spain__Flag-679

logo-powershell

Today we´ll see how to hide a user from the Global Address List (GAL from now on) in Office365 with the user of Poershell.

We all know that it´s possible to hide a Distribution Group or a Security Group from the GAL, but that option is not available for new and existing mailboxes and users via GUI (Graphical User Interface), but it´s possibe with the user of Powershell. So lets see how to do it:

hide_group

The first thing will be to prepare our environment if we already don´t have it to connect with Microsoft Online Services.

Then we must log on to our Office365 subscription with admin credentials using powershell, and run the following command:

 Set-Mailbox -Identity user@contoso.com -HiddenFromAddressListsEnabled $true

Once it finishes, the user will be hidden from the GAL :)

Fast and easy! until next post.

Disable password expiration on Office365 accounts

martes, 8 de enero de 2013 Sin comentarios

Spain__Flag-679

 

Before beginning this post, i must say that this is only possible via powershell, so we must have our environment ready for office365, if you don´t have it, click here to get it done..

If you alredy have the envornment ready for it, then proceed with the following code:

  • $LiveCred = Get-Credential (Get credentials to log on our office365 subscription)
  • $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection (configure the type of session)
  • Import-PSSession $Session (import the session from the server)
  • Connect-MsolService (connect to Online services and input one more time our admin credentials)
  • Get-MsolUser -UserPrincipalName user@contoso.com | Set-MsolUser -PasswordNeverExpires $true (specify that the user user@contoso.com to never expire his password)

If we want to apply for all users created, then run the following commands:

  • Get-MsolUser | Set-MsolUser -PasswordNeverExpires $true
  • Get-MsolUser | Select UserPrincipalName, PasswordNeverExpires

Hope it helps someone.

How to append a disclaimer in Exchange Online

domingo, 6 de enero de 2013 Sin comentarios

Cambiar-idioma-esp

On this post, i´ll explain how to configure a disclaimer on our Exchange Online subscription.

Even though you can configure it as part of the signature in our Outlook, this tutorial is specially good for companies with many pcs and users on one or more sites.

It´s good to say that this procedure covers all that an outlook signature can´t, i.e, mobile devices like BlackBerry, Android, Windows Phone, IPhone, etc… that have the Exchange account configured, when sending e-mails, automatically append the disclaimer, and don´t write it every time we configure each one of our devices (including OWA).

It´s precise to remark before you continue reading this article, that the options we´ll be using, will only be available on E1, E2, E3, E4 and Exchange Online Plan 1 subscriptions. If we have an Office365 P1, we wont have those options available because that feature is not available on small and mid-sized company plans.

Once cleared this off, lets proceed creating our disclaimer on our Office365 environment.

  • First of all, access the administration portal http://portal.microsoftonline.com , using the admin credentials.
  • Once inside, go to «Manage» just under «Exchange» on the center area.
  • It will open the Exchange Administration console of our company, then click where it says «Mail Control«
  • Then go on and click on the button where it says «New«, in order to create a new rule.
  • It will open a new windows where we can choose conditions, actions and set the name of the rule. We´ll begin setting the condition «If: the recipient is…» and select «Outside the Organization«.
  • Then select the action to take if the condition is made. On our case we will select «Apply a disclaimer to the message» and «Append a Disclaimer».
  • Click on «Enter Text» and write the text we want to appear on the disclaimer
  • Then on Select One and «ignore«.
  • Indicate a name to the rule i.e: «Disclaimer» and with all this, we have our disclaimer configured. Besides we still have to do something else to avoid a disclaimer nesting within a conversation, so lets click on the text where it says «More Options» to enable the exceptions.
  • On this area, select the option «Except if…: the subject or the body…» and select the option «the subject contains one of this words…«
  • A new window will open, where we can add the following words (including the «:») «Re:» y «Fw:» to avoid appending any disclaimer on answers and forwards.
  • Accept and Save the rule, and from this moment we will have our disclaimer working.

Add an image as a signature inside OWA on Exchange Online

sábado, 5 de enero de 2013 Sin comentarios

Cambiar-idioma-esp

In this post i will teach you how to insert an image to use as a signature inside OWA on Exchange Online, so lets begin:

In order to do so, we will need to make some workarounds to beat the system, because Microsoft doesn´t support officially or at least in a clear way this feature.

  • The first thing will be pick our image or logo (my contact info in my case including my company logos as a single image) and upload it to any web server (i upload it inside a folder named «signatures» hanging out the root folder of my website).
  • The second thing will be, open the url where the image is located inside any web browser (including the whole http:// stuff, in example: http://www.myweb.com/signatures/mylogo.jpg)
  • Right Click on the displayed image in click on «Copy»
  • Access our OWA (https://portal.microsoftonline.com) and click on where it says «Outlook«.
  • Click on «options» and then on «see all options«
  • Then on «Settings» and where it says «E-Mail Signature», type the preceding text (i.e: «Cheers:» , «Sincerely yours»…) and then paste the previously copied image using the combination keys (Ctrl+v). Note that there´s no button labeled «paste» and that the context menu doesn´t work neither inside the signature area…
  • And finally just mark the checkbox where it says «Automatically include my signature on messages I send» and then click on «Save» at the bottom of the page.

 

 

From now on, all the outgoing messages sent using OWA, will be sent with the desired signature including the image ;).

Office365 Administration with Powershell

viernes, 4 de enero de 2013 Sin comentarios

Cambiar-idioma-esp

On this post, i´ll explain what we need to connect and administrate Office365 with powershell.

The first thing we will do is download and install Powershell if we don´t already have it.

The second thing will be to download and install the Microsoft Online Services Sign In Assistant (it says beta but it´s the last versión you need to install)

The third thing will be to download and install the Office365 Cmdlets (we will need it for running Online Services commands). for 32bits and for 64bits depending on the OS you have.

  • The next thing we´ll do is check that we have the environment correctly configured in order to run sequences for Office365:
    • Start PowerShell as Administrator.
    • Run the command «Get-ExecutionPolicy» and we will get a value, if the obtained value is NOT equal to «Remote Signed» we will have to change it using the command «Set-ExecutionPolicy RemoteSigned» (this way we indicate to the system that all scripts we run, must be signed by a trusted publisher)
    • Start a Command line as Admin (cmd) and run the following commands:
      • net start winrm
      • winrm get winrm/config/client/auth
      • winrm set winrm/config/client/auth @{Basic=»true»}
  • Once the environment is installed and checked, start Powershell as Admin and run the following commands:
    • $LiveCred = Get-Credential  (Get the Office365 Administration credentials of our subscription)

    • $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection (here we pass the introduced credentials to the Session variable in order to be used on our Office365 subscription via powershell)
    • Import-PSSession $Session (and finally import the session from the server, in order to work on it).

Once it´s all done, we can start working and do all the modifications we want over our Office365 subscription, like creating a shared mailbox, assign permissions over a mailbox and much more…

To get an idea of the commands you can use on this environment for Office365, here´s a list fo the available Cmdlets, nut the best thing we can do is investigate using the command Get-Help <command> ;).

Installing Hyper-V under VMWare 8 and 9

jueves, 3 de enero de 2013 Sin comentarios

 

Cambiar-idioma-esp

How to nest a type1 VM (Hardware based assisted virtualization) inside a type2 VM (Software based assisted virtualization)?. When we try to install a Windows Server 2008 R2 or a Windows Server 2012 VM, and select the Hyper-V Rol, or even try to install Hyper-V Server 2012 on a VMWare VM, the system will tell us that is not possible because the processor is not compatible with virtualization or that we need to enable it on the BIOS.

In fact, if we try to do it with a VM inside Hyper-V, it will tell us that is not possible because the environment is already being executed inside a VM. In other words, VM nesting is not supported.

This is the situation that we´re facing. Besides, drilling, i´ve found a new feature inside VMWare Workstation 8 and 9, that allows us to Virtualize the CPU Virtualization Technology.

I´ll be explaining how to take advantadge of this feature in order to get the environment running in the next lines.

So let´s begin explaining what do we need this for… Well really, i don´t know you guys, but i´m not willing to spend lots of money on new hardware in order to test out the new technologies that come out, and so on to continue my learning path at home or at work, and even less, dedicate a whole server to install hyper-v and test it out. So what we´ll do, will allow us to build our own lab.

· First of all, we need to have a machine capable of CPU Virtualization via hardware, and a good amount of RAM memory (i recommend at least 8GB) ;)

· Install VMware 8 o 9 on our machine.

· Create a VM with the custom option

· Select the hardware compatibility on VMware 8 or 9 if you have that versión.

·Select the option «I will install the operating System Later».

·Select the Guest Operating System, in this case we´ll select Microsoft Windows and the «Windows Server 2008 R2 x64» versión.

·Assign the CPU and RAM configuration as we like.

·Before finishing the wizard, click on «Customize Hardware», to add another Network Card, because of the requirements of Hyper-V (also is a good choice if we want to do NIC Teaming), and select the checkbox that states «Virtualize Intel-VT…» on the Processors tab.

·Finish the wizard and before starting the new VM, we´ll edit the VM config file (.vmx,file located on the folder where the VM is stored) with the notepad, and add the following line at the end of the file:

hypervisor.cpuid.v0 = «FALSE»

 

·Once it´s done, proceed to start up the VM and install our Windows 2008 R2 X64 (or whatever) and add the de Hyper-V role following the wizard…

Hope it helps someone :)