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 (303k 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

What is the process if any that adaxes recommends for installing windows updates? Our current setup - 1 - App server - Adaxes console is installed with Adaxes Backend ... . The next update window is approaching and we would like some direction if possible.

asked 6 days ago by ADuser (140 points)
0 votes
1 answer

Is Windows server 2025 officially supported? When trying to install the latest version on it, Windows throws up the error "This app can't run on your PC"

asked May 28 by pmawson (20 points)
0 votes
1 answer

Hi, we have switched to Windows LAPS and will save the password in Intune only Is there a way to display this via Adaxes UI? Thank you

asked Feb 28 by boris (570 points)
0 votes
0 answers

We have followed your instructions to set up the password self service and we got it to work on windows 10 but the link does not show up on windows 11. is there something we can do to get the link to show up?

asked May 1, 2024 by rechevarria (40 points)
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)
3,708 questions
3,390 answers
8,566 comments
549,819 users