Hello,
I have an issue, at my job, (due to the nature of my my job…I am not able to give a lot of details).
Could you please help me…I need to have a Powershell 5.1 script that will:
1). Find all files that have either a .exe.config extension or a .machine.config extension in a VM-Ware VM and where the OS is Windows Server 2016.
2). Search the contents of that file (or each file that is found) to see if it contains:
...
Contents/values within this defaultproxy node/element (the contents/values may or may not be present)
</defaultproxy>
3). If it is found that there are any contents/values inside that node/element… then delete/clear all of those contents/values. Once the contents/values have been deleted/cleared/removed then save the file with the original name in the original location. Then move onto the next file.
-
-
-
- If it is found that there are NO contents/values inside that the node/element (if it is empty or clear) then there is nothing to do… so close the file and move onto the next file.
-
-
I have done a lot of research on how to do this… but I don’t understand either the vague, very little to non-existent documentation/help/ or other information on how to do this.
Thank you,
Papa