0 votes

I have a need to have a remote server run Adaxes PowerShell commands, but I keep getting "No Adaxes services found on <servername>."

I've tried targeting the Adaxes server with Invoke-Command with -AdaxesService localhost, but I get "No Adaxes services found on 'localhost'".

If I log directly into that server and run the same PowerShell command with -AdaxesService localhost, it works fine. How do I get it to work remotely?

by (190 points)

1 Answer

0 votes
by (289k points)

Hello,

If you mean Adaxes cmdlets (e.g. Get-AdmUser), using the -AdsaxesService and -Server parameters should work fine. You just need to set the -AdaxesService one to an actual service, not localhost. If it is about different commands, you need to log on to the server and run the commands there. Alternatively, you can connect to the service in your script and then execute the required commands. For the latter, the following article will be helpful: https://adaxes.com/sdk/WritingAdsiScripts.

Related questions

0 votes
1 answer

Hello, I'm trying to execute a custom command through a Powershell script, but I'm struggling to pass multiple values to an AD Object Picker parameter. ... , $NULL, $NULL, 0) $obj.ExecuteCustomCommand($command.CommandID, $commandArguments) Thanks in advance!

asked Nov 24, 2021 by KelseaIT (320 points)
0 votes
1 answer

I've modified the script here https://www.adaxes.com/script-repository/import-users-to-be-deprovisioned-s3.htm to do bulk deprovisioning of accounts via a .csv file. It ... share and folder. Why is this throwing this error? They path works in file explorer.

asked Mar 26, 2021 by johnsonua (390 points)
0 votes
1 answer

Hi there, i've a custom command with multiple powershell scripts (for clearance reasons). If for example the frist script produces an error i Write an Error but the next ... tried with an simple exit 1; I only Write-Errors on issues. Kind regards, Constantin

asked Jul 23, 2021 by Constey (190 points)
0 votes
1 answer

Hi all, Am trying to convert a mailbox from a user box to a shared box in O365. Have been for the past few weeks even. The ... account the method points at - http://www.adaxes.com/sdk/?ExecuteScriptContextClass.html#executescriptcontext_getoffice365credential

asked Feb 24, 2020 by TheLexicon (200 points)
0 votes
1 answer

I am having an issue running a powershell script through Adaxes. I am trying to have this run as a business rule when ... $optoffice.DisabledServicePlans = "ONEDRIVESTANDARD" Set-MsolUserLicense -UserPrincipalName %userPrincipalName% -LicenseOptions $optOffice

asked Mar 2, 2015 by malsobrook (50 points)
3,548 questions
3,239 answers
8,232 comments
547,814 users