Quantcast
Viewing all articles
Browse latest Browse all 2

Do you have a PowerShell or Batch script that can remove all nodes from XML files, except the ones specified in an array variable?

We do not supply scripts on request.  Please read the following links for more info.  You can search for numerous articles that will tell you how to use PowerShell with XML. 

Once you learn PowerShell and XML you can use the following Commands to design and write your script:
Get-Content
-notin
[xm[]

Enumerate the nodes and compare them with the array value\s then remove.

Please carefully review the following links to set your expectation for posting in technical forums.

Learning to script properly with PowerShell


\_(ツ)_/




Viewing all articles
Browse latest Browse all 2

Trending Articles