While working on one of the automation project I wanted to assign tags and tag category on VMware clusters using Powershell, It is easy task when done using PowerCLI module but the requirement was not to use PowerCLI module instead make use of vSphere vCenter Rest API.
Blog posts : "powershell"
Powershell Find application window state minimized or maximized
While working on one of the small freelance project there was a requirement to find whether launched application/process is minimized or maximized (For example when I open Microsoft excel what is the state whether it is minimized or maximized). This value of window state you can easily get with UIAu…
Configure Dell iDrac9 Rest API with Powershell
After writing 2 articles related on HPE ILO rest api, I had to automate Dell iDRAC9 systems using powershell. Dell iDRAC9 rest API is based on Redfish resources. HPE ILO5 also uses redfish for APIs but the resources and parameter usage are somewhat totally different, So I wrote Dell iDRAC codes fr…
Powershell Configure ILO5 using Restful API
This is second part of PowerShell HPE ILO4 Rest API automation examples. In earlier part I shown how to use Rest API on ILO version 4. But the same API didn't work on ILO5 for me, After verifying document for ILO5, I found it uses RedFish rest api.
What is Redfish?
DMTF's Redfish® is a sta…
PowerShell HPE ILO4 Rest API automation examples
Using Microsoft PowerShell to consume and automate any Restful API is very easy. In my earlier article I showed how to automate VMware product to automation rest api - Powershell Using vRealize Log Insight Rest API. In this article I am using HPE ILO4 Rest API to write automation scripts and how …
Powershell Using vRealize Log Insight Rest API
I had an assignment to automate vRLI (VMware vRealize Log Insight) using Powershell as well as Ansible. Here in this article I am showing how to use Microsoft Powershell to automate vRLI configurations. The best part about vRLI is, it provides Rest API which you can easily consume with any scripting…
PowerCLI Get-VMhost The operation on computer failed The WinRM client cannot process the request
I frequently get error winrm client cannot process the request while running few VMware PowerCLI commands for example: Get-VM, Get-VMhost etc. The complete error is highlighted as below in the Red, This generally happens due to duplicate cmdlet name in the another module.
Import-Module VMw…
Powershell New-Object Retrieving the COM class factory for component with CLSID 80040154 Class not registered (Exception from HRESULT 0x80040154 (REGDB_E_CLASSNOTREG))
I was trying to use PowerShell object InternetExplorer.Application for automation purpose, While running my Powershell scripts on my VMs, I was receiving below error. To troubleshoot further I tested other Microsoft object for example: Excel.Application and Outlook.Application. Still I was recei…
Step by Step guide to push your first project to github.com
Part 1 Git version control integration in Visual Studio Code
Part 2 Git master branch source control integration in Visual Studio Code
Part 3 Git clone version control integration in Visual Studio Code
I have already wrote few articles on how to use git earlier, but they where completely …
Powershell Write-Eventlog The source name test does not exist on computer localhost
I was writing one GUI program on Microsoft Powershell, One of the requirement was logs (Information, Warnings and Errors) must be written under Event Log - Event Viewer, So troubleshooting or information viewing for program operations is easy and everything is logged properly. To fulfill the task th…
PowerShell Invoke-WebRequest The underlying connection was closed: Could not establish trust relationship for the SSL TLS secure channel.
I face below error frequently whenever try to automate a website running self signed or invalid certificate, Here is my lab vCenter server for demo which is using self signed SSL certificate. This causes my script to fail whenever using Invoke-WebRequest to automate website. You can trust the cer…
PowerShell Invoke-WebRequest The request was aborted Could not create SSL TLS secure channel
I was testing automating few banking websites to check uptime, Invoke-WebRequest is use to access webiste, using this command I wrote a script to access bank website with PowerShell commands, but while executing scripts it was failing to access web site and showing below error.
Invoke-We…
Powercli Get vCenter assigned licenses report
This is a second part of earlier written article Powercli Get vCenter licenses information, that script will help to collect all the added VMware licenses but doesn't show which system is utilizing the license. Here in this script it helps you to get report of assigned licences information. Using …
PowerShell Convert MAC address to Link-Local IPv6 address
I received one query on one of the chat group I am part of asking if there is a way to convert MAC physical address to Link-Local IPV6 address using PowerShell, Infact I had worked on the same kind project of migrating from IPv4 to IPv6 and already written it long bank. Lets see what is the formula …
Powercli Get vCenter licenses information
Recently I was testing vCenter and Esxi 7 - vSphere suite for my new project, I periodically ask my subordinate team to review and collect the licenses information to know and forecast licensing needs. To use this script first I fill and run information accordingly. (Temporarily remove/unload Hyper-…
Powershell Azure Az module Install-Package cannot convert value 2.0.0-preview to type system.version
While installing/upgrading Azure PowerShell az module I faced below error. I was using Powershell Desktop Version 5.1 and it by default comes with Windows 10 OS. I cannot install PowerShell Core (another application) due to restrictions. So thought of using whatever I have on my received laptop.
How to sign PowerShell ps1 scripts
By reading the article subject first question rose to the mind why you should sign PowerShell scripts? The answer is whenever we download powershell script or we receive it from another users, The digital signature allows the user to confirm the validity of the certificate used to sign the script.…
Creating an internal PowerShell module repository
I was at client location and online Microsoft PSGallery was blocked as per company security policy, They wanted to only allow to use local respository which will only have tested and verified PowerShell modules. For this we suggested to configure a solution local PowerShell repository. In the Micros…
Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send
I was setting up a local on premises PSRepository server for collaboration purpose between my team also future planning is to limit users downloading modules from only from in-house PowerShell repositories. Local repository was setup but while publishing module on the repository I was getting below …
Get-PSRepository WARNING Unable to find module repositories
I was at one of my client's location and setting up PowerShell enviroment. I was trying to download few PowerShell modules from online PSGallery with below commands, while received the errors. After trying find and install PowerShell module with required parameters, in both the error outputs it was …
Blog Search
Page Views
11417905
Archive
- April 2024 (5)
- November 2023 (1)
- September 2023 (6)
- July 2023 (15)
- June 2023 (5)
- May 2023 (9)
- April 2023 (4)
- March 2023 (7)
- February 2023 (1)
- January 2023 (1)
Comments
-
MaasMarch 9, 2024 02:13AM
-
bazsFebruary 22, 2024 07:48PM
-
February 22, 2024 12:36AM
-
February 20, 2024 06:13PM
-
debbyFebruary 19, 2024 07:51PM