How to switch between static IP address and DHCP with PowerShell

How to switch between static IP address and DHCP with PowerShell

Starting with Windows Server 2012, you can now handle directly the IP configuration with PowerShell cmdlets. However, despite the way to go from a DHCP IP address to a static IP address is not easy to find, if you know it, it is pretty easy to understand. Please be aware that you will disconnect yourself … Continue reading How to switch between static IP address and DHCP with PowerShell

[Solved] PowerShell run as Administrator doesn’t find the program

[Solved] PowerShell run as Administrator doesn’t find the program

Sometimes on a Windows 2012 R2 server, you can get this error message This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel. The solution Click on the shortcut without the Run … Continue reading [Solved] PowerShell run as Administrator doesn’t find the program

[Solved] New-VM : Failed to add device ‘Synthetic Disk Drive’

[Solved] New-VM : Failed to add device ‘Synthetic Disk Drive’

When you try to create a new VM with PowerShell you may get the following error: New-VM : Failed to add device 'Synthetic Disk Drive'. Cannot attach storage media to the controller because the specified location is in use. The reason The error means that the controller (and not the disk) is already used by … Continue reading [Solved] New-VM : Failed to add device ‘Synthetic Disk Drive’

[Solved] Authentication error function not supported

The problem You can get this error while trying to open an RDP session. An authentication error has occurred. The function requested is not supported The reason This is due to a combination of three factors: You activated NLA on your target computer The target computer is not patched for CVE-2018-0886 You enforced the Force … Continue reading [Solved] Authentication error function not supported

[Solved] Skype cmdlet Active Directory error -2147016672

[Solved] Skype cmdlet Active Directory error -2147016672

Context and error This error happens when you use Skype For Business cmdlets in a remote PSSession. Active Directory error "-2147016672" occurred while searching for domain controllers in domain "mydomain.com": "An operations error occurred. " + CategoryInfo : NotSpecified: (:) [Get-CsConferencingPolicy], ADTransientException + FullyQualifiedErrorId : Microsoft.Rtc.Management.ADConnect.ADTransientException,Microsoft.Rtc.Management.Internal.GetConferencingPolicyCmdlet It is due to a double hop issue. Resolution … Continue reading [Solved] Skype cmdlet Active Directory error -2147016672