Search found 262 matches

by sekou2331
Wed Oct 31, 2018 1:30 pm
Forum: Windows PowerShell
Topic: Access Database
Replies: 6
Views: 511

Re: Access Database

Thanks. I can now read but I am trying to write and I am getting this error. ERROR: Error formatting a string: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.. PowershellAddDB.ps1 (93, 3): ERROR: At Line: 93 char: 3 ERROR: + $sql = "INSERT INTO t...
by sekou2331
Wed Oct 31, 2018 9:36 am
Forum: Windows PowerShell
Topic: Access Database
Replies: 6
Views: 511

Access Database

Hi, I have a Ms Access DB that I want to read from and insert in to. I need to insert an array of objects into DB. I was able to run the code below to read certain Fields but is not all the data in the Field. I need to be able to read everything from the feilds and insert into all the Fields. $adOpe...
by sekou2331
Thu Sep 13, 2018 2:32 pm
Forum: Windows PowerShell
Topic: Adding and Removing permissions from shared folder
Replies: 3
Views: 464

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

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

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

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

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

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

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

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"}"