Devolution ADSync Powershell Commands

Devolution ADSync Powershell Commands

avatar

Does anyone know if there is a powershell command to force sync your console with the AD? Basically, I am trying to put a standardization in place where when we build a new machine or decommission it and delete a machine from AD - I would like to sync the console at the end of my script. Please let me know!
Thanks!

All Comments (5)

avatar

Hello,


You say "sync your console"... We have an AD Sync and an AD Console.

If you mean what I think you mean, you need to use an AD Synchronizer and regularly call it using the command line.

Entry Types > Synchronizer > Active Directory, but keep the Synchronize automatically option unchecked.

then grab the shortcut from the Advanced tab and schedule it with your preferred tool

Maurice

avatar

Thank you for your prompt response. My apologies for not being so clear in the initial question.
So, basically when we build a new server with our build script (powershell), we would like to add this new build server to the devolution console and when we decommission a server from the environment, we would like to delete it from the devolution console. We have scripts setup for building and decommissioning a server from our environment.
I basically, would like to add few more commands to our powershell scripts where it would add the new built server to the devolution console and delete the server name from the console once we decommission a server. Please let me know if there is any cmdlets that I can use to accomplish this task.
Thanks!

avatar

Our synchronizers have all the code for duplicates handling as well as deletions. If you use powershell you'll need to handle this yourself.


You must use New-RDMsession to create new sessions and Remove-RDMsession to delete them.

The current library is a snapin, which some say it too old a technology, we have a module under way to improve our cmdlets. For instructions on loading the snapin, please consult PowerShell Scripting

Best regards,

Maurice

avatar

Wonderful - Thanks, Maurice. I think we both are on the same page now. I was looking at remove-rdmsession cmdlet and it seems like it require a GUID for a server name to be deleted from the console. Where would I get that guid info from? I would also need to retrieve that information with a cmdlet for a server which is currently in the console before deleting it with powershell script. What cmdlet will provide me that information?


Please let me know!


Thanks!

avatar

Hi Team,

while trying to import PSModule for RDM getting below error:


PS C:\Users\dl-dvls-svc> Import-Module “${env:ProgramFiles(x86)}\Devolutions\Remote Desktop Manager\RemoteDesktopManager
.PowerShellModule.dll”
Import-Module : The specified module 'C:\Program Files (x86)\Devolutions\Remote Desktop
Manager\RemoteDesktopManager.PowerShellModule.dll' was not loaded because no valid module file was found in any module
directory.
At line:1 char:1
+ Import-Module “${env:ProgramFiles(x86)}\Devolutions\Remote Desktop Manager\Remot ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (C:\Program File...ShellModule.dll:String) [Import-Module], FileNot
FoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand