Search found 271 matches

by sekou2331
Wed Jan 29, 2020 8:14 am
Forum: Windows PowerShell
Topic: Open LDAP
Replies: 7
Views: 1671

Re: Open LDAP

Ok I think I figured out why I was not connecting. It looks like I needed some type of authentication binding. I wrote it still using C# methods. Is there are more PowerShell way for the below. Also how can I see the data under properties. I am only seeing this {adspath, companyname, mscrmid, cn...}...
by sekou2331
Tue Jan 28, 2020 2:34 pm
Forum: Windows PowerShell
Topic: Open LDAP
Replies: 7
Views: 1671

Re: Open LDAP

Still getting the same error. The login works in C# but will not work in powershell. Really weird. ERROR: Exception calling "FindAll" with "0" argument(s): "The user name or password is incorrect. ERROR: " LDAP_QUery.ps1 (7, 1): ERROR: At Line: 7 char: 1 ERROR: + $searcher.FindAll() ERROR: + ~~~~~~~...
by sekou2331
Tue Jan 28, 2020 12:29 pm
Forum: Windows PowerShell
Topic: Open LDAP
Replies: 7
Views: 1671

Re: Open LDAP

No
by sekou2331
Tue Jan 28, 2020 11:51 am
Forum: Windows PowerShell
Topic: Open LDAP
Replies: 7
Views: 1671

Open LDAP

Hi, I am trying access information in LDAP. I code in C# that was not written by me that seems to do this. I am trying to make a light weight version in powershell. But it is looking like I have to call a lot of C# methods to do so. Was wondering if there is a way to do this. I am using the below bu...
by sekou2331
Wed Nov 20, 2019 8:44 am
Forum: Windows PowerShell
Topic: Workflow and InlineScript
Replies: 10
Views: 4279

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

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

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

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

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

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