0 votes

Are there any tips/documentation on managing a Windows Essentials domain with o365 integration using Adaxes?

I believe I need to run a PS command to link the accounts in the essentials dashboard, to connect it to o365:

$username = "******"
$password = "********"
$secstr = New-Object -TypeName System.Security.SecureString
$password.ToCharArray() | ForEach-Object {$secstr.AppendChar($_)}
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $secstr
Invoke-Command -ComputerName <ipaddress> -ScriptBlock {& Set-O365AssignedUser -LocalAccountName "%firstname%.%lastname%" -O365AccountUPN "%firstname%.%lastname%@domainname.com"} -credential $cred

But i am having trouble getting it to run remotely. Anyone else doing this?

TIA

by (540 points)
0

Hello Jason,

Could you be more specific on what exactly you need to achieve?

If you want to manage your Windows Essentials domain with Adaxes, you just need to register it. For details, have a look at the following help article: https://www.adaxes.com/help/?HowDoI.Man ... omain.html. For information on how to manage and automate Office 365 tasks using Adaxes, have a look at the following tutorial: https://www.adaxes.com/tutorials_Active ... ice365.htm.

0

Sorry, finally getting back to this one. There is a component of the windows essentials dashboard (and the Essentials server experience, if installed) that links the local AD account with the o365 cloud account. There is a PS script that can do this, but I was having trouble with it. I got it to work using winrm to run the remote command, I learned it is very time sensitive. Sometimes the PS to link the account runs before the account is propagated in the o365 side side, meaning it sometimes completes and sometimes doesn't. It seem that extending the business rule run time in Adaxes with a sleep command (like Start-Sleep -s 250), helps improve the likelihood of it running without error, but if set too high then Adaxes times out with an error.
I am thinking that a separate custom command my be needed that can be run manually X number of minutes after a new user is created.

1 Answer

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

Hello Jason,

It seem that extending the business rule run time in Adaxes with a sleep command (like Start-Sleep -s 250), helps improve the likelihood of it running without error, but if set too high then Adaxes times out with an error.

You can try increasing the timeout for running PowerShell scripts. For details, see https://www.adaxes.com/help/?ManageBusi ... meout.html.

I am thinking that a separate custom command my be needed that can be run manually X number of minutes after a new user is created.

Yes, this will work. There is no possibility to postpone executing a Custom Command in Business Rules.

Related questions

0 votes
1 answer

Hi, I'd like to install the admin console on my Windows 10 22H2 Azure Joined computer. Product Version = 3.16.21515.0 2023.2 I get the following error when I run ... install Softerra Adaxes 2023.2, this computer must be a member of an Active Direcoty Domain. I

asked Jul 13, 2023 by KevC (60 points)
0 votes
1 answer

Hello! We're using Duo for MFA on Windows 10 logins and understand this creates a new credential provider in Windows along side Adaxes' Password Self Service (PSS) credential ... 2FA with a Auth app or SMS code along with questions/answers. Thank you, Kyle

asked Feb 8, 2022 by KyleCascade (20 points)
0 votes
1 answer

Hi there, we are already successfully using the password self service via webinterface for our ad domain users. In addition to this are we in the testing phase of the password ... has the same problem and maybe can report how they solved it. Thanks in advance.

asked Oct 27, 2021 by khess (20 points)
0 votes
1 answer

We're looking to migrate our Adaxes console to a new VM/Server, and we'd like to use Server 2022, and we want to verify that it will work before we stand the server up. Our current one is Windows Server 2016.

asked Oct 7, 2021 by JButler (50 points)
0 votes
1 answer

Hello, We are currently allowing users to submit requests for new user accounts within the domain. By default, the logon name is being formatted as %firstname%.%lastname% However this ... pre-Windows-2000 user logon name. Is there a way to work around this?

asked Dec 11, 2020 by sirslimjim (480 points)
3,326 questions
3,026 answers
7,727 comments
544,679 users