0 votes

Hello!

Is it possible to create a custom command (or something else) that starts a program with parameters on the executing users computer?

Like "Start RDP Session" which then starts mstsc.exe /v:%cn% on the executing users computer?

by (960 points)

1 Answer

0 votes
by (216k points)

Hello,

Currently, there is no functionality for this in Adaxes. There is a workaround however, but it is rather tricky.

You can create a Home Page Action on your Web Interface that would allow your users to select a computer. Then, when the user selects a computer, he will be returned to the Home Page. After that, the user needs to click another Home Page Action that will create an RDP session with that computer. If you want to implement this solution, we can provide you with more details.

0

Ok.

Is it possible to generate a .cmd file for download? Then if you click the custom command "Start RDP Session", it generates a .cmd file for download.

If this is not possible, please provide your solution

0

Hello,

I'm sorry, however the solution that I was thinking of is not currently possible. I relied on certain functionality that will be available after the new release. The thing is that starting from the new release, when you create a Home Page Action that contains a link to a specific URL, value references (like %name%, %samAccountName% or %department%) will be resolved. However, the release that is currently available on our site does not yet contain this functionality. This causes a major issue to the solution because it is impossible provide a link that will be specific for the user who launched the Home Page Action. I suggest that you wait for the new release that will be available by the end of this month to be able to implement a solution for this case.

Sorry for the inconvenience.

0

Ok..

$path = "C:\inetpub\wwwroot\Download\%cn%.bat"
$ip = [System.Net.Dns]::GetHostAddresses("%dNSHostName%") | foreach {echo $_.IPAddressToString }
$url = "http://adaxes:8080/%cn%.bat"

New-Item -Path $path -ItemType file -Force
Add-Content -Encoding Ascii -Path $path -value "mstsc.exe /v:$ip"

$webClient = New-Object "System.Net.WebClient"
$webClient.Headers.Add("user-agent", "PowerShell Script")
$result = $webClient.DownloadString($url)

$Context.LogMessage("$result", "Information")

This script generate the file, then retrieves it and prints it in the execution log. Is there no way to make this trigger a download of the file instead of printing it to the log?

That would be a great feature to add :)

0

Well, the solution that we were thinking of to suggest was almost exactly the same thing. The thing is that mstsc.exe supports opening RDP files. An RDP contains settings for a Remote Desktop connection session, including the Remote Desktop Session Host name. So, it would be possible to generate such an RDP file with a PowerShell script and then provide a link to that file using a Home Page Action. However, the latter is currently impossible because we cannot provide a link that would be specific to the user who launched the Home Page Action. So, now we can link all users to a single RDP file that will be the same for all your users. That is going to be a mess if, for example, two or more users try to create an RDP session simultaneously or almost simultaneously.

In the next version, it will be possible to provide a link to a file with a path that includes the username of the user who launches the Home Page Action.

0

Quick question about the next version, will it support Windows Server 2012 and Exchange Server 2013?

0

Hello,

Yes, Adaxes 2013.1 will fully support Windows Server 2012 and Exchange Server 2013.

Related questions

0 votes
1 answer

I'd like to limit users from being able to login to the Web interface. In other words, if a user opens multiple browsers or tabs, can I prevent them from being able to login to each tab/browser and starting multiple sessions? Thanks!

asked Apr 10 by cewilson (140 points)
0 votes
1 answer

I am trying to trigger processing outside of Active Directory when an account is created based on the source user account that was used. Does Adaxes store the source account anywhere?

asked Oct 9, 2023 by jnordell (20 points)
0 votes
1 answer

We are migrating away from on-premises AD toward cloud-only. Currently we are in a hybrid configuration with both on-premises AD and Azure AD. We are preparing to eliminate on-premise ... run Adaxes on a Azure vm server with only Azure AD an no on-premise AD.

asked Oct 6, 2023 by kevinleaverton (20 points)
0 votes
1 answer

A little bit of context: There are 3 departments that share 1 Active Directory. Now each department has its own OU. I would like to have an email sent when a user is ... if this is possible without Powershell? If not, is there a pre-existing script for this?

asked Oct 3, 2023 by Cas (150 points)
0 votes
1 answer

Hello! Is it possible to have 2 instances of Adaxes on separate servers without sharing configuration under 1 license, if total amount of users is below the license limitation? Thank you, Dmytro

asked May 25, 2023 by Dmytro.Rudyi (920 points)
3,346 questions
3,047 answers
7,782 comments
544,991 users