Elsinore

User Forum

www.screenconnect.com
Welcome Guest Search | Active Topics | Log In | Register

Tag as favorite
Reporting on Sessions
Guest
#1 Posted : Tuesday, July 05, 2011 12:25:19 PM
Rank: Guest
Joined: 4/9/2010
Posts: 328
Has anyone figured out how to create a report that will allow you to see when all ScreenConnect sessions have been opened by who so you can determine how much ScreenConnect is being used by your technicians? I can go onto the server and look at all of the log files, however I need some way to take all of those and put them in a spreadsheet or some other format so I can sort based on the tech, day, length of session, etc.
Jake Morgan
#2 Posted : Tuesday, July 05, 2011 9:09:55 PM
Rank: Administration
Joined: 4/9/2010
Posts: 871
Here is a powershell script (also attached) that may get you there:

Code:
Add-Type -Path (Get-Item "..\Bin\Elsinore.ScreenConnect.Core.dll").FullName
Add-Type -Path (Get-Item "..\Bin\Elsinore.ScreenConnect.Server.dll").FullName

$serializer = New-Object System.Xml.Serialization.XmlSerializer([Elsinore.ScreenConnect.Session])
$sessionSummaries = @()

foreach ($sessionFile in Get-ChildItem("Session"))
{
    $stream = [System.IO.File]::OpenRead($sessionFile.FullName)
    $session = $serializer.Deserialize($stream)
    $sessionSummary = New-Object Elsinore.ScreenConnect.SessionSummary
    $sessionSummary.RefreshFromSession($session)
    $sessionSummaries = $sessionSummaries + $sessionSummary
}

$sessionSummaries | Export-Csv -Path "report.csv"


Put it in your App_Data directory. Right click "Run with Power Shell" to run it. Then open the report.csv output in Excel. Create a Pivot Table to group by technician or anything else. The column PreviousConnectedDuration has the time connected. I had to go to "Number Format" for that column, select Time, then choose to format in hh:mm:ss format.
File Attachment(s):
report.ps1 (1kb) downloaded 50 time(s).
AlbuquerqueCSA
#3 Posted : Friday, September 23, 2011 6:58:42 PM
Rank: Newbie
Joined: 9/23/2011
Posts: 3
Location: Albuquerque, NM
Hello,
I wanted to thank you for the time that you have put in on creating this report file... However I am having problems with it... It is not outputting anything. I have it in the App_Data folder, Running it in power shell. But I am not getting any output files. Any help would be great!
Jake Morgan
#4 Posted : Friday, September 23, 2011 8:09:34 PM
Rank: Administration
Joined: 4/9/2010
Posts: 871
Is there any output at all?

It will save a file called report.csv in the App_Data folder. Are you sure that file isn't there? You can modify the script if you want to output to stdout or another file.
AlbuquerqueCSA
#5 Posted : Tuesday, September 27, 2011 5:22:43 PM
Rank: Newbie
Joined: 9/23/2011
Posts: 3
Location: Albuquerque, NM
I am not getting any output at all.. I think i need to change the folders read/write properties... but that doesnt make since either since SC makes the log files in the folder without a problem.
jessy5765
#6 Posted : Friday, December 16, 2011 7:25:31 PM
Rank: Advanced Member
Joined: 1/24/2011
Posts: 52
Location: PA
After Quite a bit of troubleshooting on this issue (thank you Jeff for showing me), I have discovered that you need to unrestrict your PS from running un-signed Scripts. Open up PowerShell and run this.

Code:
Set-ExecutionPolicy Unrestricted


Hit Enter and then Voila!!!! It works.

@DevTeam: Is there a way you guys can sign this somehow that it works without doing this for other people? might help in the future.

Jessy Marker
JRM Computer Services
Founder of CareWare For Kids
jessy5765
#7 Posted : Friday, December 16, 2011 8:03:56 PM
Rank: Advanced Member
Joined: 1/24/2011
Posts: 52
Location: PA
Here is what I have received from that script, after cleaning up a few of the un-needed collums. This is pretty close to what we need. However something that is kinda confusing.

Time Connected for session, Host, session activity, Invitation type are all what we need. Two questions:

1. Whats up with those times? ( issue on our end?)
2. Why is there so many “coded” Host’s. What does that mean.


I would post a photo or something but cant seem to with this interface. lol. so here is what I am getting. Things is Bold are points of Interest as to what and why they arent working.

ConnectedDuration LastConnectedEventTime Tag Host
0:00:00 1/1/0001 12:00:00 AM AJS-NB-1.JRMComputers.Home Lj3zdVwo2dSIPkFm/fv4frnu1Qc=
0:00:00 1/1/0001 12:00:00 AM OWNER-PC.JRMComputers.Client p245CCDpFwTJs1+MX7bh2ih2ih0=
29:37.8 1/1/0001 12:00:00 AM Gary Righino jmarker
10:14.9 1/1/0001 12:00:00 AM Gary Righino jmarker

Jessy Marker
JRM Computer Services
Founder of CareWare For Kids
Jake Morgan
#8 Posted : Friday, December 16, 2011 8:26:28 PM
Rank: Administration
Joined: 4/9/2010
Posts: 871
Sorry about the signing thing. I did that a long time ago to my machine. I can't believe they expect a script to be signed. Scripts are supposed to be easy. Signing defeats the purpose!

Anyway, that date is the last time it was connected, if it is still connected. 1/1/0001 is the min value, which means they aren't still connected. If they are still connected, the time between that time and the current time is not included in the ConnectedDuration. I would just wack that column if you're using it for reporting.

The weird value in the "Host" is for unattended sessions of version 2.2 or earlier (I think). It shouldn't have a value for 2.3 or 2.4 clients. You should upgrade your unattended clients.
jessy5765
#9 Posted : Friday, December 16, 2011 8:34:01 PM
Rank: Advanced Member
Joined: 1/24/2011
Posts: 52
Location: PA
Is there a way to Wipe the Logs clean so that I can start fresh? As well to get an actuall Time connected to client Collumn?

Jessy Marker
JRM Computer Services
Founder of CareWare For Kids
Jake Morgan
#10 Posted : Friday, December 16, 2011 9:07:11 PM
Rank: Administration
Joined: 4/9/2010
Posts: 871
You can just delete files from your Session directory. That'll wipe it clean. The ConnectedDuration should give you what you need for time connected to client.
jessy5765
#11 Posted : Friday, December 16, 2011 9:35:29 PM
Rank: Advanced Member
Joined: 1/24/2011
Posts: 52
Location: PA
I meant the initial Connection time. Such as. I connected to the Client: 12/15/2011 3:45 PM, and Total ConnectedDuration: 02:13:23

That is what we were looking for. Thank you for the info on clearing out the sessions. Also is there an FAQ on how to lower the timeout on Unattended Clients? We want it to be like 5 min.

Jessy Marker
JRM Computer Services
Founder of CareWare For Kids
JeffBower
#12 Posted : Monday, December 19, 2011 9:41:47 PM
Rank: Member
Joined: 5/14/2010
Posts: 17
Location: Chicago
I know the answer to that one, its in this help article toward the bottom its a line in the webconfig file: http://help.screenconnect.com/HOWTO-0007.ashx
jthoeny
#13 Posted : Friday, February 03, 2012 10:09:34 AM
Rank: Newbie
Joined: 2/3/2012
Posts: 7
Location: Switzerland
Hi

I have created an other PowerShell Script, which suited my needs more that the one in this topic:
Code:
$stream = [System.IO.StreamWriter] "report.csv"
$da = "`""
foreach ($sessionFile in Get-ChildItem("Session"))
{
    $xml = [xml](get-content $sessionFile.FullName)
    $gDiff = 0.0
    $hDiff = 0.0
    $createdSession = "Never"
        $xml.session.Event | foreach {
                $tTime = $_.Time
        if ($_.EventType -eq "CreatedSession") {
            $createdSession = [datetime]$_.Time
        }
                if ($_.ProcessType -eq "Host") {
            switch ($_.EventType) {
                "Connected" {
                    $hostConnected = $tTime
                }
                "Disconnected"   {
                    $tDiff = [datetime]$tTime - [datetime]$hostConnected
                    $hDiff = $hDiff + $tDiff.TotalMinutes
                }
            }
        } elseif ($_.ProcessType -eq "Guest") {
            switch ($_.EventType) {
                "Connected" {
                    $guestConnected = $tTime
                }
                "Disconnected"   {
                    $tDiff = [datetime]$tTime - [datetime]$guestConnected
                    $gDiff = $gDiff + $tDiff.TotalMinutes
                }
            }
        }
    }
    if (($hDiff+$gDiff) -ne 0.0) {
        $created = $createdSession.ToString("u")
        $created = $created -replace ".$"
        $line = $da + $created + "`";`""
            $line = $line + $xml.session.host + "`";`""
            $line = $line + $xml.session.InvitationType + "`";`""
            $line = $line + $xml.session.Tag + "`";`""
        $line = $line + $hDiff + "`";`""
        $line = $line + $gDiff + $da
        [array]$lines += $line
    }
}
[Array]::Sort([array]$lines)
[Array]::Reverse([array]$lines)
$stream.WriteLine("`"Created`";`"User`";`"Type`";`"Code`";`"Minutes Host`";`"Minutes Guest`"")
foreach($line in $lines) {
    $stream.WriteLine($line)
}
$stream.close()

It goes through all the logfiles and calculates the times the host and the guest was connected to the session.

Now, I would like to call this script, using something like ActiveXObject("WScript.Shell") every time a session is ended by using the "End" button or closing a host window. Can someone help me with this?

A even more preferred alternative would be a additional page with statistics like the output of my script. The page should be visible only after logging in.




jthoeny
#14 Posted : Wednesday, February 08, 2012 7:44:42 AM
Rank: Newbie
Joined: 2/3/2012
Posts: 7
Location: Switzerland
Hi all

I have come to a "final" version. It writes an xml File and stores all the processed session files in a folder named Archive. So it doesn’t have to read through the same file twice :-)

Code:
if (!(test-path -path "Archiv")) { new-item "Archiv" -type directory}
$towrite = $false
[array]$logItems = @()
foreach ($sessionFile in Get-ChildItem("Session"))
{
    $xml = [xml](get-content $sessionFile.FullName)
    [timespan]$gDiff = 0
    [timespan]$hDiff = 0
    $endedSession = "Never"
        $xml.session.Event | foreach {
                $tTime = $_.Time
        if ($_.EventType -eq "EndedSession") {
            $endedSession = [datetime]$_.Time
        }
                if ($_.ProcessType -eq "Host") {
            switch ($_.EventType) {
                "Connected" {
                    $hostConnected = $tTime
                }
                "Disconnected"   {
                    $tDiff = [datetime]$tTime - [datetime]$hostConnected
                    $hDiff = $hDiff + $tDiff
                }
            }
        } elseif ($_.ProcessType -eq "Guest") {
            switch ($_.EventType) {
                "Connected" {
                    $guestConnected = $tTime
                }
                "Disconnected"   {
                    $tDiff = [datetime]$tTime - [datetime]$guestConnected
                    $gDiff = $gDiff + $tDiff
                }
            }
        }
    }
    if (($endedSession -ne "Never") -and ($hDiff+$gDiff) -ne 0.0) {
        $ended = $endedSession.ToString("u")
        $ended = $ended -replace ".$"
        [array]$logItem = $ended
            $logItem += $xml.session.host
            $logItem += $xml.session.InvitationType
            $logItem += $xml.session.Tag
        $logItem += $([string]::Format("{0:d2}:{1:d2}:{2:d2}", $hDiff.hours, $hDiff.minutes, $hDiff.seconds))
        $logItem += $([string]::Format("{0:d2}:{1:d2}:{2:d2}", $gDiff.hours, $gDiff.minutes, $gDiff.seconds))
        $logItems += ,$logItem
        Move-Item $sessionFile.FullName "Archiv"
        $towrite = $true
    }
}
if ($logitems.GetUpperBound(0) -gt 0) {
    $logItems = $logItems | sort-object @{Expression={$_[0]}; Ascending=$false}
}




if (-not $towrite) {
    return
}


$wsettings = New-Object system.Xml.XmlWriterSettings 
$wsettings.Indent = $true 
$wsettings.OmitXmlDeclaration = $false 
$wsettings.NewLineOnAttributes = $true 

$writer = [system.xml.XmlWriter]::Create("sessions.xml", $wsettings)
$writer.WriteStartElement("Sessions")

foreach($logItem in $logItems) {
    $writer.WriteStartElement("Session")
    $writer.WriteElementString("ended", $logItem[0])
    $writer.WriteElementString("user", $logItem[1])
    $writer.WriteElementString("type", $logItem[2])
    $writer.WriteElementString("code", $logItem[3])
    $writer.WriteElementString("minuteshost", $logItem[4])
    $writer.WriteElementString("minutesguest", $logItem[5])
    $writer.WriteEndElement()
}


$rerror = $false
$rsettings = new-object System.Xml.XmlReaderSettings
$rsettings.CloseInput = $true
$rsettings.IgnoreWhitespace = $true
try {
    $reader = [System.Xml.XmlReader]::Create("archiv.xml", $settings)
}
catch {
    $rerror = $true
}

if ($rerror) {
    $writer.WriteEndElement()
} else {
    $reader.ReadStartElement("Sessions")

    while (!$reader.EOF) {
        $writer.WriteNode($reader, $false)
    }
    $reader.Close()
}


$writer.Flush()
$writer.Close()

copy-item "sessions.xml" "archiv.xml"




In the next post, I will give a possibility to access the collected statistics from the client side.

I run this script using the scheduler every 5 minutes. I would rather like to run the script every time a session is "Disconnected", but I didn't figured out how to achieve this. If anybody can help me in this, you're welcome :-)

jthoeny
#15 Posted : Wednesday, February 08, 2012 7:58:11 AM
Rank: Newbie
Joined: 2/3/2012
Posts: 7
Location: Switzerland
Hi all

Ijn order to see the collected statistic data, you can add a custom page, in my case Statistic.aspx:
Code:
<%@ Page MasterPageFile="~/Default.master" %>
<%@ Import Namespace="System.Data" %>

<script runat="server">
    sub Page_Load
        dim permissionEntries = Permissions.GetEntriesForUser()
        Permissions.AssertPermission(new PermissionRequest(), permissionEntries, false)
        if Not Page.IsPostBack then
          dim mysessions=New DataSet
          mysessions.ReadXml(MapPath("App_Data\\sessions.xml"))
          sessions.DataSource=mysessions
          sessions.DataBind()
        end if
    end sub
</script>




<asp:Content runat="server" ContentPlaceHolderID="Main">

<asp:Repeater id="sessions" runat="server">

<HeaderTemplate>
<table border="1" width="100%" id="Statistics">
<thead>
<tr>
<th>Ended</th>
<th>User</th>
<th>Type</th>
<th>Code</th>
<th>Minutes Host</th>
<th>Minutes Guest</th>
</tr>
</thead>
</HeaderTemplate>

<ItemTemplate>
<tr>
<td><%#Container.DataItem("ended")%></td>
<td><%#Container.DataItem("user")%></td>
<td><%#Container.DataItem("type")%></td>
<td><%#Container.DataItem("code")%></td>
<td><%#Container.DataItem("minuteshost")%></td>
<td><%#Container.DataItem("minutesguest")%></td>
</tr>
</ItemTemplate>

<FooterTemplate>
</table>
</FooterTemplate>

</asp:Repeater>
<script type="text/javascript" language="javascript" src="/js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="/js/jquery.dataTables.js"></script>
<script type="text/javascript" charset="utf-8">

    $(document).ready(function() {
        var oTable = $('#Statistics').dataTable({
            "iDisplayLength": 25 });
     oTable.fnSort( [ [0,'desc'] ] );
    } );
</script>
</asp:Content>

Please note last last few <script> lines. I have added the code from http://datatables.net/. This enables the user to search and sort the statistic table.

You can add this Page to web.config:
Code:
  <urlMappings enabled="true">
   <add url="~/Guest" mappedUrl="~/Guest.aspx" />
   <add url="~/Host" mappedUrl="~/Host.aspx" />
   <add url="~/Statistik" mappedUrl="~/Statistic.aspx" />
   <add url="~/Administration" mappedUrl="~/Administration.aspx" />
   <add url="~/Login" mappedUrl="~/Login.aspx" />
  </urlMappings>

and Default.master:
Code:

        if (this.Page.User.Identity.IsAuthenticated)
        {
            linkContainerControls.Add(new HyperLink() { NavigateUrl = ServerConstants.GuestPageUrl, Text = Resources.Default.LinkPanel_GuestLinkText });
            linkContainerControls.Add(new HyperLink() { NavigateUrl = ServerConstants.HostPageUrl, Text = Resources.Default.LinkPanel_HostLinkText });
            // Start Anpassung JTH
            linkContainerControls.Add(new HyperLink() { NavigateUrl = "/Statistik", Text = "Statistik" });
            // End Anpassung JTH

If you don't want to have the navigation jump around, you have to add some lines to the resx file:
Code:
  <data name="LinkPanel.HelpLink.Host.aspx" xml:space="preserve">
    <value>http://help.screenconnect.com/</value>
  </data>
  <data name="LinkPanel.HelpLink.Statistic.aspx" xml:space="preserve">
    <value>http://help.screenconnect.com/</value>
  </data>


Jake Morgan
#16 Posted : Thursday, February 09, 2012 4:25:22 PM
Rank: Administration
Joined: 4/9/2010
Posts: 871
That's pretty neat.
bwidlund
#17 Posted : Wednesday, February 22, 2012 4:12:38 PM
Rank: Newbie
Joined: 2/22/2012
Posts: 3
This is great. I am looking for a little more and I am sure you can help. I like the statistic page and I am looking to add a few features to this.

1) A drop down menu for filtering a single user.
2) a calendar to filter specific from and to dates.
3) this page only to show when an administrator logs in.

jthoeny
#18 Posted : Wednesday, March 14, 2012 8:20:03 AM
Rank: Newbie
Joined: 2/3/2012
Posts: 7
Location: Switzerland
Hi bwidlund

Thake a look at datatable.net, which I have included above. You can do all what you want with this.

Kind Regards Juerg
jessy5765
#19 Posted : Friday, April 06, 2012 4:39:15 PM
Rank: Advanced Member
Joined: 1/24/2011
Posts: 52
Location: PA
I have everything in place and doublechecked it all. I copied everything from all the files. However I just get the Runtime Error page. Unfortunatly I use Host headers so I cant browse using localhost to see what the error is. And when i try to enter the show errors code in the web.config it locks up the Screenconnect services and stops them.

Help Please!

Jessy Marker
JRM Computer Services
Founder of CareWare For Kids
cobash
#20 Posted : Friday, April 06, 2012 7:47:26 PM
Rank: Member
Joined: 12/10/2011
Posts: 19
Did your powershell script run ok? If I would try to access the statistics page before I ran the PS script I would get the same error. Make sure to run it from the App_Data folder and it should create an Archive folder, archive.xml and sessions.xml.
neilpcq
#21 Posted : Wednesday, April 11, 2012 2:20:54 PM
Rank: Member
Joined: 12/15/2011
Posts: 16
Location: Mid Wales
jthoeny wrote:
Hi all

I have come to a "final" version. It writes an xml File and stores all the processed session files in a folder named Archive. So it doesn’t have to read through the same file twice :-)

Code:
if (!(test-path -path "Archiv")) { new-item "Archiv" -type directory}
$towrite = $false
[array]$logItems = @()
foreach ($sessionFile in Get-ChildItem("Session"))
{
    $xml = [xml](get-content $sessionFile.FullName)
    [timespan]$gDiff = 0
    [timespan]$hDiff = 0
    $endedSession = "Never"
        $xml.session.Event | foreach {
                $tTime = $_.Time
        if ($_.EventType -eq "EndedSession") {
            $endedSession = [datetime]$_.Time
        }
                if ($_.ProcessType -eq "Host") {
            switch ($_.EventType) {
                "Connected" {
                    $hostConnected = $tTime
                }
                "Disconnected"   {
                    $tDiff = [datetime]$tTime - [datetime]$hostConnected
                    $hDiff = $hDiff + $tDiff
                }
            }
        } elseif ($_.ProcessType -eq "Guest") {
            switch ($_.EventType) {
                "Connected" {
                    $guestConnected = $tTime
                }
                "Disconnected"   {
                    $tDiff = [datetime]$tTime - [datetime]$guestConnected
                    $gDiff = $gDiff + $tDiff
                }
            }
        }
    }
    if (($endedSession -ne "Never") -and ($hDiff+$gDiff) -ne 0.0) {
        $ended = $endedSession.ToString("u")
        $ended = $ended -replace ".$"
        [array]$logItem = $ended
            $logItem += $xml.session.host
            $logItem += $xml.session.InvitationType
            $logItem += $xml.session.Tag
        $logItem += $([string]::Format("{0:d2}:{1:d2}:{2:d2}", $hDiff.hours, $hDiff.minutes, $hDiff.seconds))
        $logItem += $([string]::Format("{0:d2}:{1:d2}:{2:d2}", $gDiff.hours, $gDiff.minutes, $gDiff.seconds))
        $logItems += ,$logItem
        Move-Item $sessionFile.FullName "Archiv"
        $towrite = $true
    }
}
if ($logitems.GetUpperBound(0) -gt 0) {
    $logItems = $logItems | sort-object @{Expression={$_[0]}; Ascending=$false}
}




if (-not $towrite) {
    return
}


$wsettings = New-Object system.Xml.XmlWriterSettings 
$wsettings.Indent = $true 
$wsettings.OmitXmlDeclaration = $false 
$wsettings.NewLineOnAttributes = $true 

$writer = [system.xml.XmlWriter]::Create("sessions.xml", $wsettings)
$writer.WriteStartElement("Sessions")

foreach($logItem in $logItems) {
    $writer.WriteStartElement("Session")
    $writer.WriteElementString("ended", $logItem[0])
    $writer.WriteElementString("user", $logItem[1])
    $writer.WriteElementString("type", $logItem[2])
    $writer.WriteElementString("code", $logItem[3])
    $writer.WriteElementString("minuteshost", $logItem[4])
    $writer.WriteElementString("minutesguest", $logItem[5])
    $writer.WriteEndElement()
}


$rerror = $false
$rsettings = new-object System.Xml.XmlReaderSettings
$rsettings.CloseInput = $true
$rsettings.IgnoreWhitespace = $true
try {
    $reader = [System.Xml.XmlReader]::Create("archiv.xml", $settings)
}
catch {
    $rerror = $true
}

if ($rerror) {
    $writer.WriteEndElement()
} else {
    $reader.ReadStartElement("Sessions")

    while (!$reader.EOF) {
        $writer.WriteNode($reader, $false)
    }
    $reader.Close()
}


$writer.Flush()
$writer.Close()

copy-item "sessions.xml" "archiv.xml"








Hi,

I've got the simple script working and giving me a csv file but would like to use the full script to give better resaults but i'm getting an error and no output file. It does Archieve some files

Error:-
Copy-Item : Cannot find path 'C:\Program Files (x86)\ScreenConnect\App_Data\sessions.xml' because it does not exist.
At C:\Program Files (x86)\ScreenConnect\App_Data\Full.ps1:109 char:10
+ copy-item <<<< "sessions.xml" "archiv.xml"
+ CategoryInfo : ObjectNotFound: (C:\Program File...ta\sessions.xml:String) [Copy-Item], ItemNotFoundExce
ption
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand


Hope you can help.

Also would be nice to see a sessions log option with in screenconnect instead of running scripts :)

*EDIT
I ran it for a 2nd time don't get an errors but still no output file and the files aren't being archieved.
jessy5765
#22 Posted : Thursday, April 12, 2012 9:17:47 PM
Rank: Advanced Member
Joined: 1/24/2011
Posts: 52
Location: PA
Yeah I am getting this too, it seems that cobash found out that if you dont have the "disconnected" event in your log files. It will not work. I do not know why this happens.

Jessy Marker
JRM Computer Services
Founder of CareWare For Kids
neilpcq
#23 Posted : Wednesday, April 18, 2012 2:17:02 PM
Rank: Member
Joined: 12/15/2011
Posts: 16
Location: Mid Wales
jessy5765 wrote:
Yeah I am getting this too, it seems that cobash found out that if you dont have the "disconnected" event in your log files. It will not work. I do not know why this happens.


OK thanks for the info.

Will run the simple one and try and get info from it.


(hmmmm might see if my PHD of a brother knows PowerShell programming :))
kerwin
#24 Posted : Friday, April 27, 2012 4:18:24 PM
Rank: Newbie
Joined: 4/27/2012
Posts: 1
After running the first script, I get a time format like this for sessions:

LastConnectedEventTime
1/1/0001 12:00:00 AM

What's wrong? Thanks
neilpcq
#25 Posted : Monday, April 30, 2012 12:38:46 PM
Rank: Member
Joined: 12/15/2011
Posts: 16
Location: Mid Wales
If anyone is interested i have a windows app/program in development that might do a better job than what the basic script does
i.e. give connection duration, start stop dates times, Tag names. Archieve files that have been processed.

Will post some Beta's up when testing. Might be something the screenconnect team might intergrate at a later stage :) hint hint :)
jessy5765
#26 Posted : Monday, April 30, 2012 3:50:23 PM
Rank: Advanced Member
Joined: 1/24/2011
Posts: 52
Location: PA
kerwin wrote:
After running the first script, I get a time format like this for sessions:

LastConnectedEventTime
1/1/0001 12:00:00 AM

What's wrong? Thanks


The reason you are getting this is probably the same reason i did. Are you using unattended sessions - if so are they up to date? Older client versions do not pull the data correctly. Try updating everything to the latest 2.4 versions and try again. :)

Jessy Marker
JRM Computer Services
Founder of CareWare For Kids
jessy5765
#27 Posted : Monday, April 30, 2012 3:52:51 PM
Rank: Advanced Member
Joined: 1/24/2011
Posts: 52
Location: PA
neilpcq wrote:
If anyone is interested i have a windows app/program in development that might do a better job than what the basic script does
i.e. give connection duration, start stop dates times, Tag names. Archieve files that have been processed.

Will post some Beta's up when testing. Might be something the screenconnect team might intergrate at a later stage :) hint hint :)


.... fortunately SC's newest version 2.5 will have this built in and include back-end video monitoring of whats going on. So kinda at this point I would say SC has heard us yet again and is giving us what we want. :)
Feel free to build it though. :)

Jessy Marker
JRM Computer Services
Founder of CareWare For Kids
neilpcq
#28 Posted : Tuesday, May 01, 2012 11:09:46 AM
Rank: Member
Joined: 12/15/2011
Posts: 16
Location: Mid Wales
jessy5765 wrote:
neilpcq wrote:
If anyone is interested i have a windows app/program in development that might do a better job than what the basic script does
i.e. give connection duration, start stop dates times, Tag names. Archieve files that have been processed.

Will post some Beta's up when testing. Might be something the screenconnect team might intergrate at a later stage :) hint hint :)


.... fortunately SC's newest version 2.5 will have this built in and include back-end video monitoring of whats going on. So kinda at this point I would say SC has heard us yet again and is giving us what we want. :)
Feel free to build it though. :)


OK, beaten to it lol

When is 2.5 Due?
bwidlund
#29 Posted : Tuesday, May 01, 2012 9:02:24 PM
Rank: Newbie
Joined: 2/22/2012
Posts: 3
Has anybody had any issues with this with version 2.4 on Windows Server 2008? I am not able to run the script completely. It will create the archive file but not the sessions nor the archiv xml files. The web page for statistic will not display anything also. Did I miss something when I upgraded from 2.3 to 2.4.
Users browsing this topic
Guest
Tag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.