Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Can ClearScada.Client.dll be used from PowerShell Core?

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • Can ClearScada.Client.dll be used from PowerShell Core?
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
sbeadle
Kirk sbeadle Kirk
307
AndrewScott
Admiral AndrewScott
96
BevanWeiss
Spock BevanWeiss
90
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
36
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure Geo SCADA Expert Forum
Solved
_Experimentalist_
Ensign _Experimentalist_
Ensign

Posted: ‎2024-05-23 05:52 AM

0 Likes
5
895
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-05-23 05:52 AM

Can ClearScada.Client.dll be used from PowerShell Core?

Hi

 

I have a script that allows me to query the Geo SCADA Expert database from Windows Powershell 5.1 and it works fine. When I use the same script with in PowerShell Core 7.4.1 the ClearScada.Client.ServerNode Connect method throws a ClearScada.Client.CommunicationsException when the request timeout expires. I have shortened this request timeout to 15 seconds in the code sample to help speed up the investigation. The exception thrown is not giving me much to go on but I have a sneaking suspicion it is to do with NLog in Geo SCADA Expert.

 

Here is a short script that will replicate the error:

 

 

Import-Module 'C:\Program Files (x86)\Schneider Electric\ClearSCADA\ClearScada.Client.dll'

Clear-Host

$hostName = "127.0.0.1"
$system = "Local"
$clientName = "PS-Client"
# Get username from user, enter accepts default offered which is the logged on user name
if (($username = Read-Host -Prompt "Username [$env:USERNAME]") -eq "") {$username= "$env:USERNAME"} 
$password = Read-Host -AsSecureString -Prompt $("Enter Password for {0}" -f $system)

try
{
    try
    {
        $node = [ClearScada.Client.ServerNode]::new([ClearScada.Client.ConnectionType]::Standard, $hostName, 5481)
        $node.RequestTimeout=150000000 # 15 Seconds
        # Version 6.84
        $serverInterface = $node.Connect($clientName, $false) #  Returns [ClearScada.Client.Advanced.IServer]

        if($password.Length -Eq 0)
        {
            "No password was entered"
        }
        else
        {
            try
            {
                "Logging on . . ."
                $serverInterface.LogOn($username, $password)
                
                if($serverInterface.IsLoggedOn)
                {
                    "Logged in successfully, logging off . . ."
                    $serverInterface.LogOff()
                    "Logged off, disposing . . ."
                    $serverInterface.Dispose()
                    "Disposed, finished"
                }
                else
                {
                    "Login failed"
                }
            }
            catch
            {
                throw
            }
        }	
    }
    catch
    {
        "`r`n{0}:" -f $_.FullyQualifiedErrorId
        $_.Exception | Where-Object {$_.MemberType -ne 'Method'} | Format-List
    }
}
catch
{
    Write-Host "An unhandled exception occurred:"
    $msg = "`t{0}" -f $_.Exception.Message
    Write-Host $msg
    Write-Host ''
}

 

PowerShell ISE and Windows PowerShell are a dying breed and PowerShell Core is where it's all going so I would love to resolve this.

 

Anyone have any idea how to fix it?

 

I Am Running

Not working

PowerShell Core 7.4.1 in Visual Studio Code 1.89.1

Working

Windows PowerShell Desktop 5.1.14393.6343 in PowerShell ISE

 

Both on Windows Server 2016 Version 1607 (OS Build 14393.6897)

 

Geo SCADA Expert Version 6.84.8218.1

Labels
  • Labels:
  • SCADA
  • Scripting
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
_Experimentalist_
Ensign _Experimentalist_
Ensign

Posted: ‎2024-05-28 04:25 AM

1 Like
0
839
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-05-28 04:25 AM

If I use the ClearScada.Client.dll from Geo SCADA Expert 6.86.8863.1 in my Import-Module statement I can successfully logon and query from my  6.84.8218.1 database.

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 5
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
Lt. Commander

Posted: ‎2024-05-23 08:05 PM

0 Likes
1
872
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-05-23 08:05 PM

Looks like PowerShell Core 7.4 is using .NET 8, the ClearSCADA.Client.DLL needs .NET 4.8. Some more discussion at https://community.se.com/t5/EcoStruxure-Geo-SCADA-Expert/FYI-Applications-built-on-Net-Core-worked-w... I've not heard of any recent changes to the supported .NET versions

Reply

Link copied. Please paste this link to share this article on your social media post.

_Experimentalist_
Ensign _Experimentalist_
Ensign

Posted: ‎2024-05-24 04:12 AM

In response to AdamWoodlandToo
0 Likes
0
844
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-05-24 04:12 AM

Hi Adam, thanks for that, not what i really wanted to hear but thanks all the same. That link didn't work but hopefully this one will:

FYI Applications built on Net Core worked with Geo SCADA 2019 

Reply

Link copied. Please paste this link to share this article on your social media post.

_Experimentalist_
Ensign _Experimentalist_
Ensign

Posted: ‎2024-05-28 04:25 AM

1 Like
0
840
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-05-28 04:25 AM

If I use the ClearScada.Client.dll from Geo SCADA Expert 6.86.8863.1 in my Import-Module statement I can successfully logon and query from my  6.84.8218.1 database.

Reply

Link copied. Please paste this link to share this article on your social media post.

AdamWoodlandToo
Lt. Commander AdamWoodlandToo
Lt. Commander

Posted: ‎2024-06-02 03:35 PM

0 Likes
1
783
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-02 03:35 PM

Ooh, that's good to know, maybe they have updated the supported frameworks in Geo SCADA 2023

Reply

Link copied. Please paste this link to share this article on your social media post.

AndrewScott
Admiral AndrewScott
Admiral

Posted: ‎2024-06-03 03:04 AM

In response to AdamWoodlandToo
0 Likes
0
779
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-03 03:04 AM

This bug (CSUP-13435) has been fixed in the March 2024 releases of GSE 2022 (6.85.8853) and GSE 2023 (6.86.8863) onward, but was mistakenly missed from the release notes. The fix was tested with .NET Framework 4.8 and .NET 7.

 

Officially only .NET Framework 4.8 is supported by Geo SCADA 2023 (and earlier versions).


Andrew Scott, R&D Principal Technologist, AVEVA
Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of