Search found 297 matches

by sekou2331
Wed May 20, 2020 8:16 am
Forum: PowerShell
Topic: XML Merge
Replies: 14
Views: 2846

Re: XML Merge

Ok dont know how else to explain it or show it to you. But thank you for your advice on the iteration. Think I have an idea of how I am going to do this. Will post this my results. Thank you for the help.
by sekou2331
Wed May 20, 2020 7:39 am
Forum: PowerShell
Topic: XML Merge
Replies: 14
Views: 2846

Re: XML Merge

I added the files and what I want them to look like just a small example below. I just want to add anything that is new in the new file and merge it with the old file. But i want o also check the inner text. The Get-ChildNodes function gets the elements. But it looks like you are saying i need to it...
by sekou2331
Wed May 20, 2020 6:16 am
Forum: PowerShell
Topic: XML Merge
Replies: 14
Views: 2846

Re: XML Merge

Below is an example of what both XML files will look like. <?xml version="1.0" encoding="utf-8"?> <Settings> <Elements1>Text</Elements1> <Elements2>Text</Elements2> <Elements3>Text</Elements3> <Elements4>Text</Elements4> <Elements5>Text</Elements5> <Elements6>Text</Elements6> <Elements7> <InnerEleme...
by sekou2331
Wed May 20, 2020 5:42 am
Forum: PowerShell
Topic: XML Merge
Replies: 14
Views: 2846

Re: XML Merge

In my script given I am getting the elements that are in both files and checking if they are the same then I will check the inner text. I have a function calling function because each function is responsible for one thing. As for the merge I am not to clear on your question but I just need to i gues...
by sekou2331
Tue May 19, 2020 10:32 pm
Forum: PowerShell
Topic: XML Merge
Replies: 14
Views: 2846

Re: XML Merge

So what I am doing right now taking old.xml and comparing it to new.xml 1. Whatever XML Elements that are the same between the two files keep 2. If not the same XML Elements with the same text content only keep the XML Elements with the text content that are in old.xml 3. Lastly Any new XML Elements...
by sekou2331
Tue May 19, 2020 9:25 pm
Forum: PowerShell
Topic: XML Merge
Replies: 14
Views: 2846

XML Merge

I am trying to merge two xml's. I wanted to know the best way to do this. I want to overwrite anything that is the same from one file to the other. Does Powershell have any Tool or module that does this?
by sekou2331
Wed Jan 29, 2020 8:14 am
Forum: PowerShell
Topic: Open LDAP
Replies: 7
Views: 2669

Re: Open LDAP

Ok I think I figured out why I was not connecting. It looks like I needed some type of authentication binding. I wrote it still using C# methods. Is there are more PowerShell way for the below. Also how can I see the data under properties. I am only seeing this {adspath, companyname, mscrmid, cn...}...
by sekou2331
Tue Jan 28, 2020 2:34 pm
Forum: PowerShell
Topic: Open LDAP
Replies: 7
Views: 2669

Re: Open LDAP

Still getting the same error. The login works in C# but will not work in powershell. Really weird. ERROR: Exception calling "FindAll" with "0" argument(s): "The user name or password is incorrect. ERROR: " LDAP_QUery.ps1 (7, 1): ERROR: At Line: 7 char: 1 ERROR: + $searcher.FindAll() ERROR: + ~~~~~~~...
by sekou2331
Tue Jan 28, 2020 12:29 pm
Forum: PowerShell
Topic: Open LDAP
Replies: 7
Views: 2669

Re: Open LDAP

No
by sekou2331
Tue Jan 28, 2020 11:51 am
Forum: PowerShell
Topic: Open LDAP
Replies: 7
Views: 2669

Open LDAP

Hi, I am trying access information in LDAP. I code in C# that was not written by me that seems to do this. I am trying to make a light weight version in powershell. But it is looking like I have to call a lot of C# methods to do so. Was wondering if there is a way to do this. I am using the below bu...