Search found 267 matches

by sekou2331
Wed Nov 20, 2019 8:44 am
Forum: Windows PowerShell
Topic: Workflow and InlineScript
Replies: 10
Views: 251

Re: Workflow and InlineScript

This works Thanks! Sorry about the formatting. Quick question. If I put the server name in a file and use GC it looks like workflow does not run parallel. Is there a way to pass a file full over servers into memory and then hand it to the workflow function. Because I am thinking that GC is handing t...
by sekou2331
Wed Nov 20, 2019 7:14 am
Forum: Windows PowerShell
Topic: Workflow and InlineScript
Replies: 10
Views: 251

Re: Workflow and InlineScript

Hi for the first example I am getting this error: ERROR: C:\Python27\python.exe: can't open file 'GroupMain': [Errno 2] No such file or directory ERROR: + CategoryInfo : NotSpecified: (C:\Python27\pyt...le or directory:String) [], RemoteException ERROR: + FullyQualifiedErrorId : NativeCommandError E...
by sekou2331
Tue Nov 19, 2019 4:46 pm
Forum: Windows PowerShell
Topic: Workflow and InlineScript
Replies: 10
Views: 251

Re: Workflow and InlineScript

Ok how do I get the inlinescript to use using twice?
by sekou2331
Tue Nov 19, 2019 3:16 pm
Forum: Windows PowerShell
Topic: Workflow and InlineScript
Replies: 10
Views: 251

Workflow and InlineScript

Hi, I am trying to use workflow to run a python script on different machines. I am doing this because each run takes a long time to complete so I need to run it parallel. I am using the script below. It works if I write out the path but I need to be able to check the path before using it. So I am us...
by sekou2331
Tue Jan 15, 2019 2:09 pm
Forum: Windows PowerShell
Topic: Get-NetAdapterHardwareInfo
Replies: 1
Views: 940

Get-NetAdapterHardwareInfo

I want to run Get-NetAdapterHardwareInfo accross multiple machines remotely but it seems like it doesnt have the ablity to do so. I am trying to out find which numa is being used for each network card. Is there anyway script wise to run this over 100 machines? Get-NetAdapterHardwareInfo | ?{ $_.Name...
by sekou2331
Wed Oct 31, 2018 1:30 pm
Forum: Windows PowerShell
Topic: Access Database
Replies: 6
Views: 1384

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

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

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

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

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