Search found 262 matches

by sekou2331
Thu Nov 30, 2017 6:00 am
Forum: Windows PowerShell
Topic: not using NT\Authority
Replies: 4
Views: 807

Re: not using NT\Authority

Just to let you know after reading a little I tried the below and it installed but after looking at the event viewer it was not installed by the user I wanted it to be installed by. function Test-Creds($item, $username, $password){ $wmi = [string]::Format("\\{0}\ROOT\CIMV2:Win32_Product",$item) $pro...
by sekou2331
Thu Nov 30, 2017 5:14 am
Forum: Windows PowerShell
Topic: not using NT\Authority
Replies: 4
Views: 807

not using NT\Authority

I don't really know where this question should be asked but i will start here since it is not really a GUI question even though I am using a GUI. So I have a GUI project that is very big that uses the line below and other lines that access remote computers. So my first question is there a way to sta...
by sekou2331
Mon Nov 27, 2017 7:22 am
Forum: Windows PowerShell
Topic: Powershell create multicast listener
Replies: 12
Views: 2505

Re: Powershell create multicast listener

First I want to thank everyone for there help. I figured this out and thought I would share the script just in case anyone wants to do the same thing. My only issue is making it time out if no data is present. function Multicast-Listen([int]$Port, [string]$IPMCastAddress, [string]$IPLocalAddress){ #...
by sekou2331
Mon Nov 20, 2017 1:41 pm
Forum: Windows PowerShell
Topic: Powershell create multicast listener
Replies: 12
Views: 2505

Re: Powershell create multicast listener

Ok so I changed the code to work with Powershell version 4. Is it suppose to outputing gibberish? I think the encoding is incorrect. function StartListener{ Param( [Parameter(Mandatory)] $IPAddress, [Parameter(Mandatory)] $Port ) $client = New-Object System.Net.Sockets.UdpClient $client.ExclusiveAdd...
by sekou2331
Mon Nov 20, 2017 11:01 am
Forum: Windows PowerShell
Topic: Powershell create multicast listener
Replies: 12
Views: 2505

Re: Powershell create multicast listener

Looking at this I am getting the error below. Also was looking into this and I wanted to know how would i force a interface. I see the MulticastOption looks to be the way to have a specific interface subscribe to a specific multicast group Method invocation failed because [System.Net.Sockets.UdpClie...
by sekou2331
Thu Nov 16, 2017 4:56 pm
Forum: Windows PowerShell
Topic: Powershell create multicast listener
Replies: 12
Views: 2505

Re: Powershell create multicast listener

Are you saying there is no way of writing this in powershell?
by sekou2331
Thu Nov 16, 2017 4:21 pm
Forum: Windows PowerShell
Topic: Powershell create multicast listener
Replies: 12
Views: 2505

Powershell create multicast listener

I am looking for a way to test various multicast groups on windows server. Is there a way to write a powershell script to bind to a specific interface and attempt to consume data from a udp source? Right now I am using something called mdump.exe but it is not working and I am looking to write an alt...
by sekou2331
Wed Nov 01, 2017 5:09 am
Forum: Windows PowerShell
Topic: Running a script for allotted amount of time or needed data.
Replies: 8
Views: 1165

Re: Running a script for allotted amount of time or needed data.

Looking into it looks like it doesn't work. It creates the file but there is no data in file. Also reading about jobs the wait option brings back the terminal but job is still running.

Code: Select all

$job = Start-Job -ScriptBlock { Get-Process }
Receive-Job -Job $job | Out-File results.txt
by sekou2331
Tue Oct 31, 2017 1:38 pm
Forum: Windows PowerShell
Topic: Running a script for allotted amount of time or needed data.
Replies: 8
Views: 1165

Re: Running a script for allotted amount of time or needed data.

How would i collect the data into a file. I tried the below but the file doesn't appear.

Code: Select all

start-job {gci c:\ -Recurse | Set-Content .\outtext.txt} | Wait-Job -Timeout 10
by sekou2331
Tue Oct 31, 2017 12:49 pm
Forum: Windows PowerShell
Topic: Running a script for allotted amount of time or needed data.
Replies: 8
Views: 1165

Re: Running a script for allotted amount of time or needed data.

Ok how would I go about doing what I originally asked.