Exchange Shell
2 TopicsFailed to Connect to Exchange Shell from Powershell [PSSession]
Hi All, I was trying to connect powershell to echangeshell, but I got this error, does anyone know how to fix this? $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://<ServerFQDN>/PowerShell/ -Authentication Kerberos -Credential $UserCredential and I got a response error: New-PSSession : [http://<ServerFQDN>/PowerShell/] Connecting to remote server <ServerFQDN> failed with the following error 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. For more information, see the_Remote_Troubleshooting Help topic. At line:1 char:12 + $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri h ... +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +CategoryInfo : OpenError: (System.manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException +FullyQualitifiedErrorId : WinRMOperationTimeout,PSSessionOpenFailed3.3KViews0likes3CommentsRemove-MgUserMailFolder not working because of invalid ID
Hello, I've been asked to delete an Outlook folder called Promo across the whole enterprise. Get-MgUserMailFolder -UserId email address removed for privacy reasons -All shows all Outlook folders for me and Promo is in there. Remove-MgUserMailFolder -MailFolderId Promo-UserId mailto:email address removed for privacy reasons returns the error Remove-MgUserMailFolder : Id is malformed GET /users/email address removed for privacy reasons/mailFolders/Promo ==>I get the following error error": { "code": "ErrorInvalidIdMalformed", "message": "Id is malformed.", How can I remove a folder named "Promo" across the enterprise using Remove-MgUserMailFolder -MailFolderId Promo-UserId mailto:email address removed for privacy reasons Many thanks,Solved1.1KViews0likes2Comments