Go and check out course on Udemy for PowerShell:
https://www.udemy.com/course/powershe...
****************************************************************************************
In this lesson, you will be learning about POWERSHELL.
Title: Microsoft PowerShell for Beginners - XML FILE
PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and the associated scripting language. Initially a Windows component only, known as Windows PowerShell, it was made open-source and cross-platform on 18 August 2016 with the introduction of PowerShell Core.[5] The former is built on the .NET Framework, the latter on .NET Core.
$path ="D:\Deployment Scripts for Qatar\Reports.xml\Filwer.xml"
$xml =New-Object XML
$xml.Load($path)
$nodes = $xml.SelectNodes("/Reports/Report[@id='Test3']")
foreach($node in $nodes){
$node.SetAttribute("color", "Black")
}
$utf8WithoutBom = New-Object System.Text.UTF8Encoding($false)
$sw =New-Object System.IO.StreamWriter($path, $false, $utf8WithoutBom)
$xml.Save($sw)
$sw.close()
=======================================================
If you have any questions, please post them. Don't forget to comment, like, rate and subscribe
=====================================================
Batch file programming tutorial // CREATE BATCH FILE // Batch Scripting Part-1 -- • Batch file programming tutorial // CREATE ...