Search found 297 matches

by sekou2331
Thu Feb 15, 2018 5:14 pm
Forum: PowerShell
Topic: Parallel Work flow or Jobs
Replies: 4
Views: 1844

Re: Parallel Work flow or Jobs

Ok thanks
by sekou2331
Thu Feb 15, 2018 10:25 am
Forum: PowerShell
Topic: Parallel Work flow or Jobs
Replies: 4
Views: 1844

Re: Parallel Work flow or Jobs

Ok thanks for your help. Also I am not using this in a form. Can you give me an example of how I can make this work with workflow and or jobs?
by sekou2331
Wed Feb 14, 2018 5:58 am
Forum: PowerShell
Topic: Parallel Work flow or Jobs
Replies: 4
Views: 1844

Parallel Work flow or Jobs

I have been working on a multicast script for a while now. I finally got it running but found that after setting it to 20 second receive time it can take up to 20 min depending on how many connections I am trying to access. So I wanted to try running in parallel to see if I can cut the time in half....
by sekou2331
Fri Jan 26, 2018 5:19 am
Forum: PowerShell
Topic: Running .ps1 script remotely
Replies: 8
Views: 5086

Re: Running .ps1 script remotely

It is set in scheduled task. What I am trying to achieve is being able to run it manually anytime needed. So other then it's everyday run I may need to run it during the day. With that being said there are over 100 servers that will be running the script. So I was trying to figure out a way to run i...
by sekou2331
Thu Jan 25, 2018 3:42 pm
Forum: PowerShell
Topic: Running .ps1 script remotely
Replies: 8
Views: 5086

Re: Running .ps1 script remotely

Thanks. I think I will just set the code as a schedule Task and run the below when I need it.


"Invoke-Command -ComputerName computername -scriptblock {Start-ScheduledTask -TaskName "task"}"
by sekou2331
Thu Jan 25, 2018 2:59 pm
Forum: PowerShell
Topic: Running .ps1 script remotely
Replies: 8
Views: 5086

Re: Running .ps1 script remotely

Ok I see what the issue is I think. In the .ps1 file I have a function that is calling a DB and it doesn't seem to like the call. I added the login creds as below and it still doesn't like it. Are there limitation to running scripts remotely when call a DB? function Get-DBData{ [CmdletBinding()] par...
by sekou2331
Thu Jan 25, 2018 1:20 pm
Forum: PowerShell
Topic: Running .ps1 script remotely
Replies: 8
Views: 5086

Re: Running .ps1 script remotely

Ok I see but why is still trying to access via "NT AUTHORITY\ANONYMOUS LOGON" instead of my user login? Exception calling "Open" with "0" argument(s): "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'." + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : Sq...
by sekou2331
Thu Jan 25, 2018 12:43 pm
Forum: PowerShell
Topic: Running .ps1 script remotely
Replies: 8
Views: 5086

Running .ps1 script remotely

I am running the below script and I keep getting the same error. I have full permissions to the server. I also can use use Enter-PSSession to access the server. But I cant seem to run the below script. Also I have access to the path that it is writing to. Basically I can run this script on the serve...
by sekou2331
Wed Jan 17, 2018 2:05 pm
Forum: PowerShell
Topic: Combing 2 objects
Replies: 9
Views: 3191

Re: Combing 2 objects

I think I figured this out. I don't know if this is the powershell way but what I used was a nested foreach on each object. foreach($objA in $objAs){ foreach($objB in $objBs){ if($objA.ComputerName -contains $objB.ComputerName){ [pscustomobject]@{ ComputerName = $objA.ComputerName Soruce = $objA.Sor...
by sekou2331
Wed Jan 17, 2018 8:41 am
Forum: PowerShell
Topic: Combing 2 objects
Replies: 9
Views: 3191

Re: Combing 2 objects

So would I use GetEnumerator() to go though each?