Search found 260 matches

by sekou2331
Thu Sep 13, 2018 2:32 pm
Forum: Windows PowerShell
Topic: Adding and Removing permissions from shared folder
Replies: 3
Views: 288

Re: Adding and Removing permissions from shared folder

Ok what I am truly asking is this the right route for changing permissions on a shared folder?
by sekou2331
Thu Sep 13, 2018 5:33 am
Forum: Windows PowerShell
Topic: Adding and Removing permissions from shared folder
Replies: 3
Views: 288

Adding and Removing permissions from shared folder

I am trying to find the equivalent to the below in powershell. I see that there is a cmdlet called Get-ACL but I dont see a modifying cmdlet. for /f %%a in (servers.txt) do ( icacls \\%%a\folder /remove:g Everyone icacls \\%%a\folder\logs /remove:g Everyone icacls \\%%a\folder\logs /remove:g user ic...
by sekou2331
Mon Apr 09, 2018 6:46 am
Forum: Windows PowerShell
Topic: Tail and parse log file
Replies: 1
Views: 552

Tail and parse log file

Hi, I am trying to parse while tailing a log file and output it to another file. I tried both of the codes below. For the first script it seems to be not working. it looks like it is stopping the log file. As for the second it is not checking continuously. Is there a better way of doing this or am I...
by sekou2331
Thu Feb 15, 2018 5:14 pm
Forum: Windows PowerShell
Topic: Parallel Work flow or Jobs
Replies: 4
Views: 793

Re: Parallel Work flow or Jobs

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

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: Windows PowerShell
Topic: Parallel Work flow or Jobs
Replies: 4
Views: 793

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: Windows PowerShell
Topic: Running .ps1 script remotely
Replies: 8
Views: 2030

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: Windows PowerShell
Topic: Running .ps1 script remotely
Replies: 8
Views: 2030

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: Windows PowerShell
Topic: Running .ps1 script remotely
Replies: 8
Views: 2030

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: Windows PowerShell
Topic: Running .ps1 script remotely
Replies: 8
Views: 2030

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