thub.users.profile.tabs.comments.personalized


Thanks it works fine but i am not getting Managedby, description information when i get execute in onprem. it works fine in online.
i am getting for managedby as Microsoft.Exchange.Data.Directory.ADMultiValuedProperty`1[Microsoft.Exchange.Data.Directory.ADObjectId]

$groups = Get-DistributionGroup -ResultSize Unlimited
$Data = @()

foreach($group in $groups){
$Data += Get-DistributionGroup $group.name | select DisplayName,PrimarySMTPAddress,Description,managedby
}
$Data | Export-Csv C:\temp\list1 -NoTypeInformation

i am able to connect to teams and SharePoint but i am getting error connecting to exchange online PowerShell module.

Connect-ExchangeOnline -UserPrincipalName myuser@mydomain.com

New-ExoPSSession : Create Powershell Session is failed using OAuth
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.5\netFramework\ExchangeOnlineManagement.psm1:475 char:30
+ ... PSSession = New-ExoPSSession -ExchangeEnvironmentName $ExchangeEnviro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-ExoPSSession], Exception
+ FullyQualifiedErrorId : System.Exception,Microsoft.Exchange.Management.ExoPowershellSnapin.NewExoPSSession

==============================================================================================
I am also getting below error. i am not sure where is version 1.4.7 used.

Install-Module -Name PowerShellGet -Force -AllowClobber
WARNING: The version '1.4.7' of module 'PackageManagement' is currently in use. Retry the operation after closing the applications.

Thanks alot
one last question if i just create a service account without mailbox i.e just create account in onprem AD and use onprem relay i.e m.mydomain.com on port 587 will it work, is mailbox required for onprem relay.

if my user wants to use onprem relay m.mydomain.com on port 587 does the service account still require exchange license as we create remote mailboxes. we dont have onprem mailboxes.

lets say if i have version 2 or version 3, if i update to .Net 5.0 then will it work? i.e .Net 2 or .Net 3 will it get updated to .Net 5.0

there are other users in the teams site who are not facing issue only one user is facing issue.
if i use the below url will it cause any issue to other users

https://contoso.sharepoint.com/_layouts/15/people.aspx/membershipGroupId=0

i think this rule will work for me , but how do i create outlook rule pointing to secondary email address, the users who send email to the secondary email address are external users.

i have used the below syntax to get appgroupname

Get-RdsAppGroup -TenantName mytenant -HostPoolName MYPOOL-5

When i executed the below syntax, i am getting output but not the wvd name.

Get-RdsAppGroupUser -TenantName "mytenant" -HostPoolName MYPOOL-5 "myappgroup" -UserprincipalName user1@contoso.com

If i need to create wvd how do i create from powershell

Do png format support?

Will the below syntax doesn't work to block one drive access to a particular user

$AdminSiteURL = "https://contoso-admin.sharepoint.com"
$OneDriveSiteURL = "https://contoso-my.sharepoint.com/personal/Mick_Reed_contoso_com"
Connect-SPOService -Url $AdminSiteURL –Credential (Get-Credential)
Get-SPOSite -Identity $OneDriveSiteURL | Set-SPOSite -LockState NoAccess

To block the onedrive access to the user i will use the below commands

$AdminSiteURL = "https://contoso-admin.sharepoint.com"
$OneDriveSiteURL = "https://contoso-my.sharepoint.com/personal/FN_LN_contoso_com"
Connect-SPOService -Url $AdminSiteURL –Credential (Get-Credential)
Get-SPOSite -Identity $OneDriveSiteURL | Set-SPOSite -LockState NoAccess

  1. If i need to enable back what should be the syntax.

  2. If i need to completely block the user from accessing sharepoint(i.e onedrive, teamsite or anything related to SharePoint), it is possible to do so.


yes the account has impersonation rights

I will try the below syntax and see if it works but i doubt

New-ComplianceSearch -Name "user1_search" -ExchangeLocation user1@contoso.com -ContentMatchQuery '"Received:08/18/2020 00:00..08/20/2020 23:59" AND from:"anon@user " AND Subject:"Test've Test-abcdef msggg"'
start-compliancesearch " user1_search "

My csv file is in below format, i have tried modifying the syntax i am getting other errors not sure what is wrong
Name,SearchName
user1@contoso.com,user1_search

$mailboxes = Import-Csv C:/temp/mailboxes.csv
ForEach ($Mailbox in $Mailboxes){
New-ComplianceSearch -Name $mailbox.SearchName -ExchangeLocation $mailbox.Name -ContentMatchQuery '(Received:08/18/2020 00:00..08/20/2020 23:59) AND (Subject:"Test've Test-abcdef msggg") AND (From:"anon@user ")'
Start-ComplianceSearch -Identity $mailbox.name
}

i am getting below error

At C:\script.ps1:3 char:233
+ ... anon@user ")'
+ ~~~
The string is missing the terminator: ".
At C:\script.ps1:2 char:33
+ ForEach ($Mailbox in $Mailboxes){
+ ~
Missing closing '}' in statement block.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString