Powershell

Powershell – Start-Process Credential error

With Windows Powershell, we are able to start a process as another user, with the command Start-Process Credential parameter. But in some conditions, you will get this error: The system cannot find the file specifiedor The Directory name is invalid.

Start-Process Credential The file cannot find the file

Start-Process Credential The file cannot find the file

The error occurs only if the parameter Credential is set. If not, Internet Explorer is starting. Let’s see how to resolve this issue.

Continue reading

Share
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

Share
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

Share
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

Share
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

Share
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

Share
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

Share
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

Share
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

Share