-
Hello all, I hope somebody will give me a help with this. I need to make a Powershell script that receives 2 XML files (source and destination) as parameter and based on what is on one file, it updates the second one. I don’t know what can be on the “source” XML, so the script needs...
-
Can anybody help me to comment or uncomment data using powershell. Actually I have a very big XML file where a lots of data are commented, I need to comment out these data using powershell. At the same time I need to make some data commented using powershell. Appreciate your help on it.
-
Hello I have an Infopath Doc that is stored as XML on our SP farm, I am trying to access certain information in the infopath form to assign as a variable for use in creating folder structures and websites. That is not too hard when dealing with clearly named elements in the xml doc, however on large...
-
Hi Tobias, Thank you for the quick response, and I am sorry for not giving enough information. Here is the complete XML doc, you will notice there are 2 sections called Proxy Layer, each layer is associated with a different URL. I am new to PS and I have never dealt with XML but this is alot of fun Thank...
-
Hi, inspired by recent blog entries I was trying to create an XML configuration file for a powershell script. Goal: store the last date&time the script was successfully run and other run-time related information. solution idea: <?xml version="1.0" encoding="utf-8"?> <config>...
-
Hello everyone I am exploring xml and am trying to write nested XML elements like this <r> <c1> <c2></c2> </c1> </r> In other words, I was trying to write a root element with a child and sub child element. First I tried this: [xml]$a = '<r></r>'...
-
hello I have a problem I have a file that generates a long list of data, every 3 lines is 1 chunk og data e.g 1..3 line = data chunk 1 4..6 line = data chunk 2 ... .. . 51..54 line data chunk x ect….. I run a do until but I cant get it to work proberly $XmpPrep = @( Get-Content C:\pstmp\RAW\xmlprep...
-
Hi I am trying to add a field to the selectedFields node in the applicationhost.config file using the following $hashProperties = @{id="Client-IP"; sourceName="Client-IP"; sourceType="requestHeader"; category="Default"; logHeaderName="cs(Client-IP)";...
-
I have a routine in powershell that queries the index usage stats. The query runs for each database on the server and pumps out an xml snippet. I'm trying to get all of the results in one xml file. All of the code works except for the piece that appends nodes to an existing xml file. I've tried...
-
So this is my XML report from NMAP: <? xml version="1.0" encoding="utf-8" ?> < nmaprun scanner =" nmap " args =" nmap -F --script=smb-os-discovery --script=nbstat -oX c:\\NMAP\\Temp2\\result3.xml 1.1.1.1 " start =" 1327070530 " startstr ="...