Tag: powershell

  • How to configure an IP address in the Windows Server

    The article covers multiple ways to configure IP addresses in the Windows Server. By default, all connected interfaces try to get an IP address via DHCP. Configuring IP address via GUI The fastest way to open IP configuration settings is to right-click on the Start, then click on Run. In the opened window type ncpa.cpl…

  • How to enable System Assigned Managed Identity for Azure VM

    Sometimes you need to provide access to the script that runs on the Azure VM but don’t want to store credentials anywhere in the VM. The best choice is to assign a Managed Identity to the VM and provide this identity access to a resource. System-assigned Managed Identity is the easiest way to provide access…

  • How to install Windows Update via Powershell

    There is a popular opinion that Windows management means working with GUI. Using a mouse is mandatory. It was true a long time ago but now you can do anything in Windows if you use Powershell. Let’s take a look at Windows Update installation via Powershell. 1. Install PSWindowsUpdate module (one-time operation): 2. Afterward it…

  • Install-Module -Name VMware.PowerCLI throws PackageManagement\Install-Package : Authenticode issuer

    Recently I tried to install VMware PowerCLI for scripting some tasks for ESXi but got this error. Get-Modules doesn’t show anything. That was strange. I checked the Powershell Modules folder and found that on this host was an old installation. I have deleted all folders and re-checked if the operation was successful. Afterward, I retried…

  • How to update ssl certificate for RD Gateway via powershell

    Recently, I tried to find a way to update the automatic certificate for the RD Gateway service. Unfortunately, there are no ready-to-use cmdlets (no idea why Microsoft didn’t write them). In this case, I used Get-CimInstance and Invoke-CimMethod commands to achieve the goal. The code below updates the certificate and restarts the service. Don’t forget…