powershell - New-PSSession : Relative URIs are not supported in the creation of > remote sessions -
i found useful script uploading photos on exchange server: :
first error:
new-pssession : relative uris not supported in creation of remote sessions. @ line:110 char:15 + $session = new-pssession -configurationname microsoft.exchange -connectionuri ... +
+ categoryinfo : invalidargument: (mail-pero.appl.campari.priv:uri) [new-pssession], notsupportedexception + fullyqualifiederrorid : createremoterunspacefailed,microsoft.powershell.commands.newpssessioncommand
second error:
the term 'get-mailbox' not recognized name of cmdlet
the script meant exchange2010, make sure have it, not newer, not lower. otherwise have update script. it's hardcoded use 2010 libraries.
also, error said, don't use relative urls.
for urls, use https://yourexchangeuri.com