‎08-02-2021 09:56 AM
‎10-19-2021 08:33 AM
Jim Gallott wrote:
I have tested remote powershell successfully from the scanning server to the exchange servers using:
https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-servers-using-remote-powershell?view=exchange-ps
All three connect and I can run Get-mailbox.
I did remote powershell successfully to the preferred domain controller using:
Enter-PSSession -ComputerName <dc_name> –credential <credentials>
Still Exchange won't scan. It does not seem to be the remote powershell that is getting in the way.
‎10-19-2021 03:33 PM
3cardmagictrick wrote:Jim Gallott wrote:
I have tested remote powershell successfully from the scanning server to the exchange servers using:
https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-servers-using-remote-powershell?view=exchange-ps
All three connect and I can run Get-mailbox.
I did remote powershell successfully to the preferred domain controller using:
Enter-PSSession -ComputerName <dc_name> –credential <credentials>
Still Exchange won't scan. It does not seem to be the remote powershell that is getting in the way.
Same here, can connect fine remotely via PowerShell. Does anyone know where the script LANSweeper runs to scan Exchange is located? Or what commands it runs?
Reason I ask is I was hoping to connect manually and run these myself to troubleshoot further.
‎10-20-2021 12:15 AM
Corey Lambert wrote:
Use this switch when testing your remote PowerShell: -UseSSL
example: Enter-PSSession -ComputerName <dc_name> –credential <credentials> -UseSSL
If it fails that is your problem and my above comment will fix it.
I also looked for the script they use to scan Exchange and was unsuccessful in finding it. I was going to try and modify it not to use SSL.3cardmagictrick wrote:Jim Gallott wrote:
I have tested remote powershell successfully from the scanning server to the exchange servers using:
https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-servers-using-remote-powershell?view=exchange-ps
All three connect and I can run Get-mailbox.
I did remote powershell successfully to the preferred domain controller using:
Enter-PSSession -ComputerName <dc_name> –credential <credentials>
Still Exchange won't scan. It does not seem to be the remote powershell that is getting in the way.
Same here, can connect fine remotely via PowerShell. Does anyone know where the script LANSweeper runs to scan Exchange is located? Or what commands it runs?
Reason I ask is I was hoping to connect manually and run these myself to troubleshoot further.
PS C:\Users\USERNAME> Enter-PSSession -ComputerName EXCHANGE SERVER NAME -credential DOMAIN\USERNAME -UseSSL
PowerShell credential request
Enter your credentials.
Password for user DOMAIN\USERNAME: **********
[EXCHANGE SERVER NAME]: PS C:\Users\USERNAME\Documents> Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn
[EXCHANGE SERVER NAME]: PS C:\Users\USERNAME\Documents> Get-Mailbox
Active Directory operation failed on . The supplied credential for 'DOMAIN\USERNAME' is invalid.
+ CategoryInfo : NotSpecified: (:) [], ADInvalidCredentialException
+ FullyQualifiedErrorId : [Server=EXCHANGE SERVER NAME,RequestId=aa150a06-0e4d-4cf3-97f8-dc627c72beb9,TimeStamp=19/10/2021 9:47:15 PM] [FailureCategory=Cmdlet-ADInvalidCredentialException] 476A3E7D
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://EXCHANGE SERVER NAME/PowerShell/ -Authentication Kerberos -Credential $UserCredential
Import-PSSession $Session -DisableNameChecking
Get-Mailbox
‎10-15-2021 10:02 PM
PS C:\WINDOWS\system32> Test-WSMan -ComputerName exchange-server
wsmid : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
ProductVendor : Microsoft Corporation
ProductVersion : OS: 0.0.0 SP: 0.0 Stack: 3.0
PS C:\WINDOWS\system32> Test-WSMan -ComputerName exchange-server -UseSSL
Test-WSMan : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150859046"
Machine="***.COM"><f:Message>WinRM cannot complete the operation. Verify that the specified computer name is
valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled
and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote
computers within the same local subnet. </f:Message></f:WSManFault>
At line:1 char:1
+ Test-WSMan -ComputerName exchange-server -UseSSL
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (exchange-server:String) [Test-WSMan], InvalidOperationException
+ FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.TestWSManCommand
PS C:\Users\administrator.MHA> winrm quickconfig -transport:https
WinRM service is already running on this machine.
WSManFault
Message
ProviderFault
WSManFault
Message = Cannot create a WinRM listener on HTTPS because this machine does not have an appropriate certificate. To be used for SSL, a certificate must have a CN matching the hostname, be appropriate for Server Authentication, and not be expired, revoked, or self-signed.
Error number: -2144108267 0x80338115
Cannot create a WinRM listener on HTTPS because this machine does not have an appropriate certificate. To be used for SSL, a certificate must have a CN matching the hostname, be appropriate for Server Authentication, and not be expired, revoked, or self-signed.
‎10-15-2021 09:05 PM
‎10-15-2021 09:09 PM
Corey Lambert wrote:
Has anyone receive a resolution for this issue? I am having the same issue and have an open case with support. I can perform a remote powershell session to and from my exchange, domain controller, and Lansweeper servers without problems but Lansweeper itself errors out.
‎10-07-2021 03:56 AM
brama wrote:
Hi,
I have an issue with Lansweeper and Exchange scanning, I tried all the troubleshooting steps documented but it is still not working.
Log file (did not use the original host names):
2021-08-02 09:45:10,012 [236] INFO LOGEXCHANGESCANNING DEBUG Executing script failed
2021-08-02 09:45:10,012 [236] INFO LOGEXCHANGESCANNING DEBUG Asset with FQDN 'exchangehost.domain.local' not found in Exchange server list.
2021-08-02 09:45:10,012 [236] INFO LOGEXCHANGESCANNING DEBUG DOMAIN\exchangehost\1 is not found in the domain's Exchange server list
When I try it via the "Scan Test Tool" it does scan the information.
In Lansweeper the hosts are not showing the "Exchange" tab.
Powershell is enabled and set to RemoteSigned, the scanning account is member of domain admins.
Please advice!
‎08-10-2021 01:56 PM
‎10-06-2021 09:23 PM
brama wrote:
We found out that we indeed had some powershell issues.
Still, mailboxes are not scanned, after contact with lansweeper support, it seems to be a bug.
Dev team is working on a fix.
‎09-21-2021 09:09 AM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now