Menu

Virtual Geek

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

Stuffs from real IT system ADMINISTRATORS world and my LAB

Terraform for_each loop on map example

This article is a second part of a post Hashicorp Terraform dynamic block for_each loop with example, In earlier script I used dynamic block with using for_each loop. In This script I will use same for_each loop without any block inside resource, instead I am using each.value to get the looped information. This is how the below script looks like and it is smaller and easier one than the dynamic …

Read more

Resovled issue with PowerShell - Trust relationship Rejoin computers in domain without restart

While working with The trust relationship between this workstation and the primary domain failed issue on Windows Servers, I used PowerShell cmdlet Test-ComputerSecureChannel and cmd command netdom to resolve the broken AD computer account trust relationship without reboot. Apart from these commands there is one more PowerShell cmdlet is available and can be used to fix broken trust computer …

Read more

PowerShell fix repair The trust relationship between this workstation and the primary domain failed

This is the issue I have always seen with Windows Server Administrator. They face below issue a lot in their day to day activities while logging with their domain account. When they login with local account it was successful. The cause of this issue is simple, whenever computer joins into domain there is a computer account created in the Active Directory. This computer (devices) has  password whic…

Read more

Install Ansible AWX Tower on Ubuntu Linux OS

AWX is a one of the great devops and orchestration tool for deployment and configuration management. With Ansible AWX Tower you can unify and regulate your LAB Dev IT organization with a graphic dashboard, RBAC (role-based access control) , job scheduling, integrated announcements and graphical inventory administration and management. Effortlessly insert Ansible AWX Tower into current tools and pr…

Read more

PowerShell save export data to XML file

I wanted to create XML file using PowerShell and PowerShell offers different ways to create XML file in different formats, with PowerShell you can create and generate different types of XML format. One of the simple way I shown in this article PowerShell Create XML document with XmlWriter .net object

Export-Clixml

In the below example the Export-Clixml cmdlet generates a Common Languag…

Read more

Step by Step Install Ansible on Ubuntu OS

Although I had already written a few articles on How to install Ansible on Linux for vSphere configuration and Using Ansible for Managing VMware vsphere Infrastructure, this blog relates to different OS. I switched my lab Linux OS from CentOS to Ubuntu and Here are the step by step procedure to install Ansible on Ubuntu server. Before starting installation, make sure you update the OS with b…

Read more

PowerShell Create XML document with XmlWriter .net object

XML stands for eXtensible Markup Language it was designed to store and transport data and to be both human- and machine-readable. I wanted to create a simple readable XML files using PowerShell for few of the projects. There are native cmdlets (Export-CliXML and ConvertTo-XML) available in the Powershell to create XML file, but the data format in the xml file was generating the format I was loo…

Read more

Powershell Create new file if not exist, if exist Rename file

This small PowerShell script helps to create a new file inside the folder if file does not exist, if file exists rename it with the date and times. This logic I always use in my scripts when I want to implement logs system for my script. When the file is renamed (While creating new file) it adds date and time to old file name. This way you can have proper logging mechanism for few of my scripts.…

Read more

PowerShell XML OperationStopped: No coercion operator is defined between types 'System.Object&' and 'System.Object'

While working with XML files using Powershell, I imported XML file and started exploring data inside XML. On the left hand side I have opened XML file in notepad. XML has nested objects. While accessing the nested data (Address) inside XML table I was receiving error OperationStopped: No coercion operator is defined between types 'System.Object&' and 'System.Object'. Although it is objects inside…

Read more

Hashicorp Terraform dynamic block for_each loop with example

I use Terraform IAC (Infrastructure as a code) a lot to design Azure resources, While deploying Azure Resource NSG (Network Security Group), I was defining multiple roles inside NSG, Roles were mentioned inside the main.tf code script file. I wanted roles values to be moved to variables inside variable.tf file, so it can be manage better and I can reduce the code inside main.tf file for bette…

Read more

View older posts »

Page Views

5909158

it works, thanks :)

Any Versions where its not parameter based but reads from HostIP.txt and gives results to Report.csv?

Thanks for the walkthrough. Worked well :)

I had the same problem in my lab after a spontaneous (forced) shut down. You led me in the right direction. I already had a static IP address, so I just ran through the wizard and did not change anything. This still fixed the issue for me.
Hypervisor: vCenter 7.0

Follow me on Blogarama