Search found 282 matches

by sekou2331
Tue Jul 07, 2020 7:44 am
Forum: PowerShell
Topic: .net remote install
Replies: 12
Views: 2277

Re: .net remote install

Have a quick question how can I not make the not path static? I tried the using: but it seems to not work. Invoke-Command does not see the path. $path = 'C:\classInstalls\ndp48-x86-x64-allos-enu.exe' Invoke-Command -ComputerName $computerName -ArgumentList "/q /norestart" -ScriptBlock { Start-Proces...
by sekou2331
Mon Jul 06, 2020 10:40 am
Forum: PowerShell
Topic: .net remote install
Replies: 12
Views: 2277

Re: .net remote install

Ok figured out that this script actually works. Needs a restart to be fully install. Just added restart and registry check for the version. lol realized that I have norestart arg and needed to remove it.
by sekou2331
Wed Jul 01, 2020 4:28 pm
Forum: PowerShell
Topic: .net remote install
Replies: 12
Views: 2277

Re: .net remote install

This is the .net installer. Why would it not work? will it be better I guess to put in a bat file. Hate to do that but will if have to.
by sekou2331
Wed Jul 01, 2020 4:21 pm
Forum: PowerShell
Topic: .net remote install
Replies: 12
Views: 2277

Re: .net remote install

That's the thing I am not getting an error. It just run and comes back . I even tried to run it locally and I just get the below as well with Passthru. No errors at all weird. Invoke-Command -ArgumentList "/q /norestart" -ScriptBlock {Start-Process -FilePath 'C:\tmp\ndp48-x86-x64-allos-enu.exe' -Arg...
by sekou2331
Wed Jul 01, 2020 3:49 pm
Forum: PowerShell
Topic: .net remote install
Replies: 12
Views: 2277

.net remote install

This may have been answered already but cant seem to find on this forum. I am trying to install .net 4.8 to remote machines. I am using the below but it seems like it is not working. The funny thing I am not getting error at all it is just not working. I have used this command for other process runs...
by sekou2331
Wed May 20, 2020 8:16 am
Forum: PowerShell
Topic: XML Merge
Replies: 14
Views: 2302

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: 2302

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: 2302

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: 2302

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: 2302

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...