CAMP
CAMP copied to clipboard
Module is not connecting without WinRM Basic Auth Enabled
Due to security configuration (Group Policy) Customer of mine has WinRM Basic Authentication disabled on all machines. Therefore using this module throws an error:
06/07/2023 10:23:26 Connecting to Exchange Online (Modern Module)..
06/07/2023 10:23:34 Connecting to Security & Compliance Center
Error:06/07/2023 10:23:34 There was an issue in connecting to Security & Compliance Center. Please try running the tool again after some time.
Error:06/07/2023 10:23:34 There was an issue in running the tool. Please try running the tool again after some time.
the solution to that would be a switch or parameter to allow the PreRelease module of Exchange Online Management (currently 3.2.0-preview4) and connect the IPPS Session with the parameter:
Connect-IPPSSession -UserPrincipalName $userName -ConnectionUri $ConnectionUri -ErrorAction:SilentlyContinue -WarningAction:SilentlyContinue -UseRPSSession:$false
See - https://github.com/OfficeDev/CAMP/blob/1fad7ef9511ea3eacfe75be4eead212a499ce290/CAMP.psm1#L134
See - https://github.com/OfficeDev/CAMP/blob/1fad7ef9511ea3eacfe75be4eead212a499ce290/CAMP.psm1#LL137C12-L137C153
Would it be possible to extend the module for this function?
BG Christoph