0 votes

Hi Support,
I would like to run a program on a remote server. I'm trying the follow:

Import-Module Adaxes 

Enter-PSSession-ComputerName S254-020ada1 

'C: \ Program Files (x86) \ Schemus \ schemusc.exe-config Burkhalter' 

Unfortunately this does not work.

Can you help me there?

by (700 points)

1 Answer

0 votes
by (216k points)

Hello,

Try the following PowerShell line:

Invoke-Command -ComputerName S254-020ada1 -ScriptBlock {& "C:\Program Files (x86)\Schemus\schemusc.exe" -config Burkhalter} 

Also, don't forget to configure the computer that you are connecting to accept remote PowerShell commands. For this purpose:

  1. Launch Windows PowerShell as Administrator (right-click it in the Start menu and select Run as Administrator).

  2. Execute the following line:

     Enable-PSRemoting -Force

Related questions

0 votes
1 answer

Hello, I have a small question about executing custom commands remotely with powershell. We are now using Adaxes custom commands through orchestrator with remote ... /$UserAD_DN", $NULL, $NULL, 0) $UserAD.ExecuteCustomCommand($command_example) Kr, Serge

asked Oct 12, 2015 by kerremansserge (470 points)
0 votes
1 answer

Hi, I followed this example: https://www.adaxes.com/sdk/IAdmTop6.html, but because the Custom Command is disabled, I get the following error message: System.Management.Automation ... if I enable the Custom Command. I am using Adaxes 2018.2 Best Regards Martin

asked Feb 19, 2020 by Martin (150 points)
0 votes
1 answer

How can I execute a Business Rule through PowerShell? I have a Business Rule that fires when a User is created. I have a custom field on the User that can be updated though ... based on the value in this custom field, when the User is updated. Is it possible?

asked Feb 10, 2014 by sdavidson (730 points)
0 votes
1 answer

I have a scheduled task that runs a custom command that itself has multiple custom commands that run in a specific timed order. I would like the scheduler to run that top level ... , but Command B and C will wait for Command A to finish. Is this possible?

asked Jul 23 by DA-symplr (100 points)
0 votes
1 answer

I have a scheduled task that runs the following PowerShell script. $user = New-AdmUser -Server $domain -AdaxesService localhost -Path $workdayDn -ChangePasswordAtLogon $true -PassThru - ... ) over all objects. I'm stumped! Any help would be super appreciated.

asked Sep 5 by emeisner (100 points)
3,549 questions
3,240 answers
8,232 comments
547,814 users