Quantcast
Channel: Microsoft Office 365
Viewing all articles
Browse latest Browse all 17713

Office365 Powershell Cmdlets

$
0
0

Im trying to use Get-Mailboxfolderstatistics cmdlet. It worked for me one day grabbed me all the info I needed out of my domain for testing. However when I removed my Sessions and started over again to re-connect to the client that needs the info I cannot for the life of me get it to work!

I connect via the following commands:

Powershell as Admin

$LiveCred = Get-Credential

Import-Module MSOnline

Connect-MsolService –Credential $LiveCred

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

Import-PSSession $Session

However i only get the Get-MailboxFolder and MailboxFolderPermissions cmdlets. Kinda baffled as to why it would work on one session and not a different one.

User that is being used is a global admin on that...


Viewing all articles
Browse latest Browse all 17713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>