Friday, 26 March 2021

Command line to list users in a Windows Active Directory group?


The ability to administer and maintain up-to-date user lists and groups is critical to the security of an organization.

Using the GUI

There are a number of different ways to determine which groups a user belongs to. First, you can take the GUI approach:

1.     Go to “Active Directory Users and Computers”.

2.     Click on “Users” or the folder that contains the user account.

3.     Right click on the user account and click “Properties.”

4.     Click “Member of” tab.

Using the Command Line 

gpresult /V

You’ll get output that looks like this (I’ve truncated it to only include the group info):



  





Another command line to export to an output file

dsquery group -name ‘groupname’ | dsget group -members | dsget user -display >> outputfilename.txt


How do I check my mailbox database mount status?

Quick Exchange (on-prem)  Tips:


How do I check my mailbox database mount status?

Get-MailboxDatabase with the -status

Shell to create a user mailbox

New-Mailbox -Alias onPrem1 -Name "Test onprem1" -FirstName onPrem -LastName onprem1 -DisplayName "Test onprem1" -UserPrincipalName onprem1@yourdomain.com -Password (ConvertTo-SecureString -String 'P@ssw0rd' -AsPlainText -Force)

Shell to create a existing user mailbox

Enable-Mailbox estherv@yourdomain.com -Database UsersMailboxDatabase

Enable-Mailbox ktadmin@yourdomain.com -Database MDB1

check results:

Get-Mailbox -Database MDB1


License Issue M365 E3 to E5 Resolved and Next Step

We had enough trouble when swapped license between E3 to E5.

M365 license (means Enterprise Mobility + Security E5 & Office 365 E5) and feature selection is important.

Following issues were reported when license step up was carried out from E3 to E5:

We had users (a few frontrunners) complaining that they get product deactivated message and sign-in issues when we moved them from E3 to E5 group.



 

Resulting in failure to sign in.



Reactivate message remains

However, the aforesaid issue can be easily resolved by selecting the license feature ‘Microsoft 365 Apps for enterprise’ to ‘ON’ from office admin portal


 



‘Microsoft 365 Apps for enterprise’ to ‘ON’

Samsung Galaxy device Crashing Apps?

This happened to me on 24th March 2021. When I opened my navigation WAZE app and Outlook app, at first glance I was pondering why they closed abruptly and thought what went wrong. A quick investigation made me realize that a lot of Galaxy smartphone and tablet users as well were complaining about apps crashing on their devices. This issue is not just limited to Samsung’s devices. It is a widespread issue that is affecting a lot of Android users globally since 24th of March 2021. 

If you are one among them, then you are at the right blog with a remediation plan and fix those app crashes using a simple solution.

Don't worry, it took less than 5 mins. for me to fix my Samsung Galaxy Note 10+ Android phone.

The issue is related to a system component called Android System WebView. Google released a buggy update to the component via the Play Store, which resulted in app crashes for many users. If you are facing the same issue on your Samsung Galaxy smartphone or tablet, you should try to check the Play Store and update the Android System WebView app (version 89.0.04389.105).

If you can’t spot the update, you can fix it by uninstalling the latest update to the Android System WebView. You can navigate to Settings » Apps >> Android System WebView and tap on it and uninstall updates.

If you are on a device running Android 9, you can do the following:

  1. Navigate to Settings » Apps
  2. Tap on the three dots on the top right corner of the screen.
  3. Now tap on Show system apps.
  4. Now find Android System WebView and tap on it.
  5. Now select Uninstall updates.

Alternatively, you can also try to uninstall the update to Android System WebView directly from the Play Store.

Wednesday, 13 January 2021

OneDrive Full: Corporate Level Issue






Key Points:

Approaching SharePoint Site Storage Limit

Get access to user files from office admin portal

Storage Metrics

Delete all versions

In our Org we had allocated 150GB OneDrive space out of 5TB for all staff due to SOE constraints. However, one employee (Mr X, x.xyz)  has complained that he got a notification saying 'Approaching SharePoint Site Storage Limit'. After initial investigation we found that  his drive is full 100%. But it looks like it is not. We have attached a screenshot of a file 'Archive Aug16.pst which shows 92.4GB size but the actual size of that file is just 3.43GB (screenshot attached for ref.).

We identified and remediated this issue by following the below steps: 

Manage Site Owners if you as an owner doesn’t have access to the user profile

https://yourorg365-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/home

note: change yourorg365 to actual domain

more features > user profiles > open > manage user profiles > search user > manage site collection owners > add your name

Get access to files from office admin portal user

However, if you have retention policy applied then user won’t be able to delete these files after OneDrive becomes full

So, go to the compliance portal https://compliance.microsoft.com/?rfr=AdminCenter

Click Compliance

Show all >> information governance > retention > click ‘org defined retention - 7 years’ > Applies to content in these locations > Edit (OneDrive account) > OneDrive accounts > Exclude accounts > Click Exclude accounts > enter OneDrive URL https://yourorg365-my.sharepoint.com/personal/x_xyz_yourorg_com  and click done > Save

note: change yourorg365 to actual domain and x_xyz to actual user defined in your AD

Access user profile using office admin account

URL https://yourorg365-my.sharepoint.com/personal/x_xyz_yourorg_com

Click the settings icon 


 (seen at top right corner before your signed in account profile icon) and then click OneDrive Settings > Click More Settings > and under ‘Features and Storage’ click ‘Storage Metrics’

Select the file to be deleted under Site Settings > Storage Metrics > site collection and click ‘Version history’ (seen on right side of the selected file) and ten Delete All Versions. So in this scenario if you have 1GB single file, your OneDrive will show 35GB utilized because of 35 versions.

In fact we had approx.. 35 versions of the file in question.

Actual file shows 3.43 GB at the user end

At site collection storage metrics the same file shows over 92GB because of multiple versions of the same file (in our case we had over 32 versions)

Once you delete all versions you should also clean deleted files from recycle bin to see your OneDrive freeing up space.

site settings > Apps > Recycle Bin