Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Groups in Office365

$
0
0

Hello,

 

I have a AD connect to office 365 with DirSync, perfectly synchronized(Users,Groups...).

Also, inoffice365I createdgroupsdirectly from the platform (No connect with my domain) and when i try get the all groups(Domain + office365 ) not works....

 

My code is

The first  step I connnect to my office 365

$Office365Credentials=Get-Credential 

$Session=New-PSSession-ConfigurationNameMicrosoft.Exchange-ConnectionUrihttps://ps.outlook.com/powershell-Credential$Office365credentials-AuthenticationBasic–AllowRedirection

Import-PSSession$Session-AllowClobber

and in the next step I get the groups

$objDistributionGroups= Get-Group

when I try todisplay this variableonly seedomain groupsbut notcreated in office365.

 

ispossible to seeonlythe groups created in office365?

 

thanks

 


Viewing all articles
Browse latest Browse all 6937

Latest Images

Trending Articles



Latest Images