Hello Everyone,
I got a requirement to work on AD user details monitoring through SAM. I wrote a script and it is working fine when I am running it on Orion Poller itself locally for a user which is in same domain as my poller server is member of.
When I ran the same on a remote server which is not in the same domain then it is not giving me the details. Though PSSession is enabled though we are getting below error -
*************************************************************************************************************************************************************************************************************************
Errors: ==============================================
Get-ADUser : Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.
At line:2 char:6
+ $B = Get-ADUser -filter {samaccountname -eq $A -and Enabled -eq $True -and Passw ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [Get-ADUser], ADServerDownException
+ FullyQualifiedErrorId : ActiveDirectoryServer:0,Microsoft.ActiveDirectory.Management.Commands.GetADUser
*************************************************************************************************************************************************************************************************************************
Is there any limitation in SAM power shell to run "Get-ADUser" on a remote server in different domain. Because if we are running any other power shell script then it is not showing any error simply giving us desired result also when we are running SAM power shell from its domain Solar winds Orion then it is giving the result. Only cross domain is not working.