Script to set internal and external URLs on all of your Exchange Virtual Directories at once

I will not take the credit for this But really nice scripts.

Copy this to a text file, save it with a .ps1 extension, and then open it and run it from the Exchange Management Shell ( ./.ps1 )

#ChangeAutodiscoverPath.ps1
#Changing InternalURL Path
$urlpath = Read-Host “Type Internal Client Access FQDN starting with http:// or https://”
Set-AutodiscoverVirtualDirectory -Identity * –internalurl “$urlpath/autodiscover/autodiscover.xml”
Set-ClientAccessServer –Identity * –AutodiscoverServiceInternalUri “$urlpath/autodiscover/autodiscover.xml”
Set-webservicesvirtualdirectory -Identity * –internalurl “$urlpath/ews/exchange.asmx”
Set-oabvirtualdirectory –Identity * –internalurl “$urlpath/oab”
Set-owavirtualdirectory –Identity * –internalurl “$urlpath/owa”
Set-ecpvirtualdirectory –Identity * –internalurl “$urlpath/ecp”
Set-ActiveSyncVirtualDirectory -Identity * -InternalUrl “$urlpath/Microsoft-Server-ActiveSync”
#Changing ExternalURL Path
$urlpath2 = Read-Host “Type External Client Access FQDN starting with http:// or https://”
Set-AutodiscoverVirtualDirectory -Identity * –externalurl “$urlpath2/autodiscover/autodiscover.xml”
Set-ClientAccessServer –Identity * –AutodiscoverServiceInternalUri “$urlpath2/autodiscover/autodiscover.xml”
Set-webservicesvirtualdirectory –Identity * –externalurl “$urlpath2/ews/exchange.asmx”
Set-oabvirtualdirectory –Identity * –externalurl “$urlpath2/oab”
Set-owavirtualdirectory –Identity * –externalurl “$urlpath2/owa”
Set-ecpvirtualdirectory –Identity * –externalurl “$urlpath2/ecp”
Set-ActiveSyncVirtualDirectory -Identity * -ExternalUrl “$urlpath/Microsoft-Server-ActiveSync”
#get commands to doublecheck the config
get-AutodiscoverVirtualDirectory | fl identity,internalurl, externalurl
get-ClientAccessServer | fl identity,AutodiscoverServiceInternalUri
get-webservicesvirtualdirectory | fl identity,internalurl,externalurl
get-oabvirtualdirectory | fl identity,internalurl,externalurl
get-owavirtualdirectory | fl identity,internalurl,externalurl
get-ecpvirtualdirectory | fl identity,internalurl,externalurl
get-ActiveSyncVirtualDirectory | fl identity,internalurl,externalurl

Reference : http://www.seanlabrie.com/2011/script-to-set-internal-and-external-urls-on-all-of-your-exchange-virtual-directories-at-once/

Moving EC2 Instance from one account to another

When you move the EC2 instance from one account to another you can follow this procedure it’s working fine, except for one details.

https://aws.amazon.com/premiumsupport/knowledge-center/account-transfer-ec2-instance/

After Creating the snapshot, when you log into the target location and you try to create an Instance from the AMI, you need to be in the same region as the source to access the snapshot.

To validate your region look at the top right corner, on the right of you account Name the region is there. Be Sure the Region is the same for the source and the destination!

Polycom – VoIP – Asterix – Sonicwall – Cisco Swiches – Phones unRegistered or disconnected

Hi,

Troubleshooting note for a situation (a brand new installation) but the VoIP phone got disconnected randomly.

Equipments :

  • Phone Polycom
  • PBX : asterisk
  • Switches : Cisco SG-300
  • Sonicwall Soho (TZ Series)

Let’s start with the switch. Cisco have a feature enabled by default called : “Green Ethernet” if you have a non managed switch. Simply : Trash it. Purchase a switch : Netgear GS105E-200NAS

For Managed switch, there’s a more simple solution, turn off the Green Ethernet and the 802.3 Energy Saving

Sg300

Sonicwall

In the Firewall Rules, OpenUP the port : 5000 up to 5500 UDP, 10000-20000 UDP and TCP – Any to Any (Incoming)

In the VoIP Section :

Check Enable Consistent Nat and Check Enable SIP Transformation and 

VoIPSonic

The MOST IMPORTANT is this setting :

Disable the DPI Setting :

In the Firewall, Advanced, Connections switch the option to Maximum SPI connection (DPI Services Disabled)

DPI

After those changes you need to Reboot the Sonicwall appliance.

Monitor the phones and they should stay connected “forever”.

JF

 

Office 365 PowerShell Connection

Hi,
Please run this in a powershell administratif

Import-Module MSOnline
$O365Cred = Get-Credential
$O365Session = New-PSSession –ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365Cred -Authentication Basic -AllowRedirection
Import-PSSession $O365Session -AllowClobber
Connect-MsolService –Credential $O365Cred

Use 365 Administrator Credential

F11 Key on Mac

Hi,

I will not take the credit for the solution, but if you want you F11 Key work normally on a Mac (usefull when you install ESXi or remote console on server)….

In Settings, Mission Control, UnBind the F11 / F12 Key to nothing

Source : http://apple.stackexchange.com/questions/110525/how-do-i-get-f11-and-f12-to-behave-like-normal-function-keys

 

Disable Winmail.dat on 365

Hi,

For people using 365 and send a lot of email to Mac people. Mac users can received email with attachment winmail.dat but they can’t open it.

This behavior occur when user within Outlook send email in a RTF format.

To force a conversion from RTF to HTML, connect to Office 365 with PowerShell (check on my blog for the login information).

Then run the following
Set-RemoteDomain Default -TNEFEnabled $false

The command will convert the RTF to HTML to all domains.

PPTP / IPSEC / SSTP Unable to set Split Tunneling in Windows 10

Hi,

After setting up your SSTP connection in Windows 10, by default, the Use Remote Default Gateway on Remote Network is checked. So all your traffic, with pass over the VPN and this can slow down your Internet Traffic.

By default in Windows 10 if you try to change your Adapter Options, After you right Clic on your SSTP connection, Properties, Networking, TCP/IP V4, and Properties.. Nothing Happen!

To workaround this :

Open a PowerShell as Administrator

Type : Get-VpnConnection

Take note of the Name

Type : Set-VpnConnection -Name “NamePreviouslyNoted” -SplitTunneling $True

This will enable the Split Tunneling .

J

Windows 10 – One Drive Business 365 Sign In Button not working

After a brand new install of Windows 10, I try to sync my Office 365 Business Documents with my box, when I click the Sync Button, the Office 365 Log In Box prompt. I entered my credential and the sign in button is “stuck” nothing append.

To fix this you need first to kill in the Windows Tray the One Drive Business Icon and exist the apps.

Go to Control Panel, Internet Options, Security, Trusted Sites.

Add : https://365account-my.sharepoint.com and https://365account.sharepoint.com

Replace the “365account” with your current 365 Sharepoint URL.

Close the IE Option, Re-try the sync button with the credential and you will be good to go.

JF

P2V migration slow VConverter

Hi,

I found a really great KB for P2V migration with Vconverter. I found 2 very interresting settings :

1 – Turn off SSL

2 – if you have more than one disk not Raid, but logical disk : use data connection per task settings.

For more detail and how to:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2071014

Cheers,