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 (215k 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 (50 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

Hello, I am having trouble updating adaxes custom attributes when creating a new user with the powershell module, would running the New-AdmUser also ... -EmployeeID $EmployeeID -MobilePhone $MobilePhone -OtherAttributes @{adm-CustomAttributeText1 = $title }

asked May 11, 2020 by bbartlett (20 points)
0 votes
1 answer

Hello again! I've built a script to make a few Security Roles. I need to set the read permission to OUs in the script and I think I'm having an issue. I went into ... . Did I get the wrong GUID or am I doing something wrong in the script? Thanks again!

asked Nov 18, 2015 by drew.tittle (810 points)
2,738 questions
2,473 answers
6,471 comments
1,359,284 users