Working with XML files in PowerShell
Let’s say we have an xml configuration file for our PowerShell script and we want to read / update the information in it: And this is the script for reading / updating the contents...
Let’s say we have an xml configuration file for our PowerShell script and we want to read / update the information in it: And this is the script for reading / updating the contents...
In the previous post we saw how to convert a string to the DateTime format. Now we want to have a string from an actual DateTime object: .AddDays, .AddHours etc.:
Easily convert a string to datetime format: Another useful post for reverse converting: DateTime to string.