Powershell

Powershell – Get Public IP

Today I write a quick tips 🙂 Sometime, we need to know the external public IP address for a computer using Powershell. This can be done easily with a Web Service of ipify.org.

Powershell Public IP

Powershell Public IP

(Invoke-WebRequest -uri "https://api.ipify.org/").Content

More

You can get more information about ipify.org here

Microsoft Office

Office – Force Add-ins activation by GPO

When you install plugins / Add-in for Microsoft Office, this add-in could be automatically disabled by Office depends on the ressouces needed, time to load, etc. This feature could be great, but sometime, this add-in must be enabled all the time. Fortunately, Group Policy can forces the Add-ins activation. Moreover, we can allow the user to change it or not.

Office Add-ins Activation

Office Add-ins Activation

Let’s see how to do that with an example: The Symantec Enterprise Vault Add-in:

Continue reading

Windows10-logo

Windows 10 – Enable Automatic TimeZone

During the deployment of Windows 10 in a multi countries company, you will be facing an issue with the laptops moving regularly from one country to another. The Windows 10 Automatic Timezone service is not enabled by default during the installation.

This means that the laptops will always keep the time from its origin country and it will not change the hours automatically based on the current country.

In fact, you need to configure it using Group Policy Object (GPO).

Windows 10 Automatic Timezone

Windows 10 Automatic Timezone

Let’s see how to configure it and how the users can see and interact with this service. Continue reading

Windows10-logo

Windows 10 – How to remove OneDrive shortcut

Since Windows 10, OneDrive is an built-in application. But hopefully, for enterprise administrator, you can disable this functionality with Group Policy (GPO). But even disabled, the OneDrive shortcut in the start menu still exists.

OneDrive shortcut in start menu

OneDrive shortcut in start menu

Let’s see how to remove this shortcut easily with Group Policy Preference (GPP):

Continue reading

WindowsServer

Server 2016 – How to display Defender GUI

With Windows Server 2016, Microsoft integrated the Microsoft Defender service into the operating system. This built-in antivirus is now running constantly but it does not have the Defender GUI installed by default. If you want to activate the graphical user interface on the server, this can be done using Windows Server Manager or Powershell cmdlet.

Windows Defender GUI

Windows Defender GUI

Let’s see how to activate or disable the Windows Defender Graphical interface:

Continue reading

Office 365

Office 365 – How to migrate contacts from Exchange

During an Office 365 migration from an Exchange on-premises, it can be usefull to migrate contacts information. For some reasons, if you can not do a Active Directory synchronization, contacts information needs to be imported manually.

You can easily do that by running two scripts, one in your Exchange environnement which creates an csv file, and the other into the Office 365 Powershell.

Continue reading

Exchange-1

Exchange – Disable access for a mailbox

Sometimes, it can be usefull to disable access to the Exchange server for a specific mailbox. For exemple, in order to forbid Outlook Web App (Outlook on the Web for Exchange 2016) but you do not want to disable the user account. Or you can prestage the mailbox and only allow access to a specific date/ time.

This can also be used during a migration to another mail system: when the user is migrated, you can disable all access to force the user on the new messaging system. And prevent any email sent by the old Exchange.

Exchange Disable access

Exchange Disable access

Let’s see how to disable all access for a mailbox using ECP or Exchange Powershell:

Continue reading

Powershell

Powershell – Testing a Port with Test-NetConnection

Since Windows 8.1 and Windows Server 2012 R2, Microsoft released Powershell 4. A new cmdlet can be use to troubleshoot network connections issues : Test-NetConnection.

With Windows version older than Windows 8.1, you must install the Telnet client to test if a specific port is open on a remote host. Now, we have a built-in tool!

Test-NetConnection with google

Test-NetConnection with google

Let’s see how to use this cmdlet:

Continue reading

Office 365

Office 365 – Import Regional Configuration

During an Office 365 migration, it can be useful to set the regional configuration before the user logon the first time.

Specify the regional setting prevents the user to register the language and time zone again. Moreover, when you want to import PST files into the new office 365 Mailbox, default folders must have the same name. Otherwise you will get two folders for each default folder, like inbox, Sent, Drafts…

Regional configuration

Regional configuration

This modification can be done using the Office 365 Exchange cmdlet or we can use a powershell script. Let’s see how to do that.

Continue reading