Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Stuffs from real IT system ADMINISTRATORS world and my LAB

Connect-AzureAD: One or more errors occurred. Could not load type 'System.Security.Cryptography.SHA256Cng'

While working on AzureAD (Azure Active Directory) with PowerShell module I was received below errors and my scripts where failing. I updated AzureAD module with Update-Module command to latest one but it was still throwing errors. After few testing I checked PowerShell version, it was latest PowerShell Core version 7.1.3 and found AzureAD module is not compatible with it.

Microsoft azuread import-module system.security.cryptography.sha256Cng connect-Azuread $psversiontable psversion assembly system.core publickeytoken error occurred .png

❯ Import-…

Read more

Use Key Vault secret identifier url to get the secret value using Powershell

While working on Azure Key Vault I had the requirment to extract the secret value from Azure key vault Secret Identifier ID. 

Working With Azure Key Vault Using Azure PowerShell and AzureCLI

You can find Secret Identifier by going to Azure Key vaults, select key vault >> Secrets Name >> Current Version. Url looks like {vaultBaseUrl}/secrets/{secret-name}/{secret-version}

Microsoft Azure key vaults secrets keys certificates access policies current version secret identifier set activation expiration date powershell azurecli.png

I am fo…

Read more

Working With Azure Key Vault Using Azure PowerShell and AzureCLI

This is second part of Create key vault and secrets with access policies in Microsoft Azure, In the this article I will use Powershell and Azure CLI to create and configure Azure Key Vault resource service. Azure Key Vault is a cloud service that provides a secure store for secrets. You can securely store keys, passwords, certificates, and other secrets. In the first example In the first example…

Read more

Create key vault and secrets with access policies in Microsoft Azure

Azure Key Vault is a cloud service used to manage keys, secrets, and certificates. Key Vault eliminates the need for developers to store security information in their code. It allows you to centralize the storage of your application secrets which greatly reduces the chances that secrets may be leaked. Key Vault also allows you to securely store secrets and keys backed by Hardware Security Modules …

Read more

Creating a new user in Azure AD using oneliner PowerShell and Azure CLI

I was testing few Labs on Microsoft Azure active directory and wanted to create few Azure AD users for testing purpose. I have already installed az powershell module, In the below script when you supply password it has to be in securestring format. 

How to switch to other Azure AD tenant using PowerShell and Azure CLI
Powershell Azure Az module Install-Package cannot convert value 2.0.0-pre…

Read more

How to switch to other Azure AD tenant using PowerShell and Azure CLI

This is small guide shows how you can switch or change Azure Active Directory tenant using Powershell and Azure CLI. Before The first step I will show from portal how to switch or change to another domain in Azure active directory. Once you login into portal.azure.com either go into menu and select Azure Active Direcory from list or search for the same in search bar and click on it.

Microsoft Azure active directory all resources portal azure  virtual networks storage accounts virtual machines load balancers azure database sql change directory switch .png

There a…

Read more

Backup VMware vCenter server using SMB protocol

While working on my previous tasks Patching update VMware vCenter Server Appliance from a zipped update bundle Web server, there was a constant need to always take backup of vCenter server appliance before doing any update/upgrade or maintenance activity (This is also a good practice to always take backup of your systems). This way one can ensure incase of any non fixable critical issues one can …

Read more

Patching update VMware vCenter Server Appliance from a zipped update bundle Web server

I have patched/updated vCenter server multiple times using ISO file in the past and wrote blog - Patching the vCenter Server Appliance VCSA. but whenever updating/patching vCenter server, I had to maintain ISO file repository, but I wanted to have centralized system and automated way from where I can update vCenter servers in my farm from web server. In my design I chose to use a web based vCen…

Read more

Install an SSL-TLS Certificate In Microsoft IIS web server

After Install and Configure IIS Web Server on Windows Server I wanted to add SSL/TLS certificate on web site on IIS web server, These are the step by step procedure to add certificate, Open Server Manager on windows server, from Tools click Internet Information Services (IIS) Manager

Microsoft windows server IIS web server Internet information services manager tools server manager add ssl tls certificate edit binding

In the IIS Manager click on the server and then go to Server Certificates and Open feature from Acti…

Read more

VMware vCenter server Error no healthy upstream

After completing VMware vCenter server appliance (vcsa) installation and configuration, when tested vCenter UI url https://vcenter:443/ui, I was receiving below error. I restarted vCenter server vcsa multiple times, checked if DNS entries (A host record and PTR pointer record) exists in DNS server for vCenter server, but this error didn't go away. 

no healty upstream

VMware vsphere vcenter server 7 vcsa no healthy upstream https vpxd bug vcenter server bug vcenter server appliance network settings.png

To resolve the …

Read more

View older posts »

Page Views

4933909

How can I add a column to the report that shows the name we gave the license(s)?

Thanks

esto se hace dentro de la maquina virtual windows server 2016?

This code would not work on PowerShell Core. It was written on and for PowerShell running on Windows. These calls in PS on Windows use Internet Explorer libraries to parse the HTML. There is no such function on PowerShell Core

Hello,
regarding to Andreas post, I would also need an extension to that really nice script.
Is it possible to see also the list of users, which are members to the appropriate group?

Thanks
Sven

Question, when attempting to use this with a registry path Control Panel\TimeDate under the CurrentUser hive it fails because of the space between the words Control and Panel. I tried using single or double quotes and it doesn't work. Any thoughts?

Follow me on Blogarama