0 votes

I'm currently running a SQL SPROC from within powershell, getting a value, and attempting to assign that value to an AD attribute. Everything goes fine getting the value, but when I call this line:

>Set-AdmUser -Identity %username% -attribute "$value"

I'm informed that the Set-AdmUser cmdlet is not recognized. Which is bizarre, because I'm running this from a PS command in Adaxes.

When I launch PS on the server and load the Adaxes module, that command runs just fine. So I'm not sure what I'm doing wrong here, and I'd like to avoid calling PS from within PS to load the module and run the command.

Thanks!

by (50 points)

1 Answer

0 votes
by (233k points)
selected by
Best answer

Hello,

The thing is that Adaxes uses PowerShell v.2.0. To use Set-AdmUser cmdlet in PS command in Adaxes you need to add the following line into the beginning of the script:

Import-Module Adaxes
0

Dangit - I thought the Adaxes module was automatically imported. That did the trick.
Thanks!

Related questions

0 votes
1 answer

Is Set-AdmUser supposed to trigger a User Update Business rule? I have a business rule that is supposed to run after a user is updated, but it doesnt appear that ... to Set-AdmUser, that it triggers the business rule afterwards. Is this working as intended?

asked Dec 12, 2014 by chazlander (120 points)
0 votes
1 answer

Hello, I'm attempting to automate a part of our user creation/modification process and I've created a script that works on the Adaxes server in PowerShell but when I ... ? The Quest Powershell commands are installed on the Adaxes server as well. Thank you!

asked May 20, 2014 by mmackay (50 points)
0 votes
1 answer

We have just installed Adaxes for testing in our environment which has on-premise AD with Office 365 (no on-prem Exchange). Our use deprovisioning is comprised of two ... wrong, or does Adaxes not operate in a wholly Office 365 environment in this regard?

asked Sep 30, 2020 by jamiew (50 points)
0 votes
1 answer

Is it possible to call execution of Adaxes custom command via SPML?

asked Oct 16, 2019 by Dmytro.Rudyi (850 points)
0 votes
1 answer

Hi, Can I use a PS script to call Adaxes with a list of users or computer and run through it? For example, PS script checks for users NotLoggedOnFor 30 days and sends this list to Adaxes to disable accounts.

asked Sep 6, 2011 by minhe (60 points)
2,880 questions
2,600 answers
6,751 comments
117,148 users