Pages

Tuesday, July 28, 2026

Loại trừ User khỏi Dynamic Distribution List bằng CustomAttribute15

## Loại trừ User khỏi Dynamic Distribution List bằng CustomAttribute15

### 1. Kết nối Exchange Online

```powershell
Install-Module ExchangeOnlineManagement -Scope CurrentUser
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline
```

Friday, July 3, 2026

Copy group từ user A qua User B

$SourceUser = "user.source"
$TargetUser = "user.target"

Get-ADPrincipalGroupMembership $SourceUser |
Where-Object {$_.Name -ne "Domain Users"} |
ForEach-Object {
    Add-ADGroupMember -Identity $_.Name -Members $TargetUser
}

Friday, May 15, 2026

Xóa email trên Exchange Online


1. https://purview.microsoft.com/ tạo content search, để kiểm tra


2. Kết nối bằng PowerShell để thực hiện Purge

Các lệnh thường dùng
Connect-IPPSSession -EnableSearchOnlySession
Get-ComplianceSearch -Identity "XOAMAIL"
New-ComplianceSearchAction -SearchName "XOAMAIL" -Purge -PurgeType HardDelete
Get-ComplianceSearchAction | Where-Object {$_.SearchName -eq "XOAMAIL"}

Saturday, January 3, 2026

Tổng hợp các câu lệnh tối ưu ổ đĩa C

1. Dọn rác
Chạy bằng cmd quyền Administrator

cleanmgr
powercfg -h off
dism /online /cleanup-image /StartComponentCleanup
compact /CompactOS:always
del /s /q C:\Windows\Temp\*
del /s /q %temp%\*

2.Xóa profile không dùng, vào Run / SystemPropertiesAdvanced  /User Profiles / Settting

Thursday, November 13, 2025

Nguồn Type C của laptop

Nguồn Type C của laptop, hay còn gọi là cổng USB Type C, là một chuẩn kết nối đa năng, hỗ trợ cả truyền tải dữ liệu, sạc điện và xuất tín hiệu video/audio. Cổng này được thiết kế để thay thế các chuẩn cổng truyền thống như USB-A, USB-B, và thậm chí c

Wednesday, March 26, 2025

Onedrive share cho user bị lỗi không có quyền truy cấp.


Vào link bên dưới, xóa user và share lại.


https://tenant-my.sharepoint.com/personal/thien_nguyen_domain_vn/_layouts/15/people.aspx?
MembershipGroupId=0

Tuesday, November 12, 2024

How to add & upload bulk users in Office 365 distribution group


 File Security-Group-Members.csv



1.  Connect-ExchangeOnline

2. Import-Csv C:\temp\Security-Group-Members.csv | ForEach {Add-DistributionGroupMember -Identity "AllStaffTest1@unicons.vn" -Member $_.Name}

Tuesday, April 16, 2024

Thay đổi Đối tượng User thành Đối tượng inetOrgPerson (hoặc Ngược lại) trong Active Directory

Example 1
The following example demonstrates how to convert the user object, SaraDavis, to an inetOrgPerson object:
Set-ADUser SaraDavis -Add @{objectClass='inetOrgPerson'}

Example 2
The following example demonstrates how to convert the inetOrgPerson object, SaraDavis, to a user object.
Set-ADUser SaraDavis -Remove @{objectClass='inetOrgPerson'}

Thursday, March 28, 2024

Free pdf editor

Free pdf editor
https://www.pdfgear.com/?utm_source=kevin&utm_medium=youtube

Friday, January 26, 2024

Download Apps O365

https://portal.office.com/account/?ref=MeControl#installs

Wednesday, January 24, 2024

Set Outlook Offline

Set Outlook Offline
Sub SetOfflineMode()
Dim appOutlook
Dim blnIsOffline

On Error Resume Next
Set appOutlook = CreateObject("Outlook.Application")

  If Err.Number = 0 Then
     blnIsOffline = appOutlook.Session.Offline
   If Not blnIsOffline Then
     appOutlook.ActiveExplorer.CommandBars.ExecuteMso ("ToggleOnline")
   End If
  Else
  End If
If Not (appOutlook Is Nothing) Then Set appOutlook = Nothing
End Sub

Monday, January 22, 2024

Unlock user admin Forescout

fstool unlock_console_user admin

Friday, December 8, 2023

MAXHUB Share Software

Link download 

https://www.maxhub.com/en/screen_share/

Monday, September 25, 2023

Adding a shared network drive as a Trusted Location

1) Open start menu and look for Internet Options
2) Go to Security
3) Trusted Sites
4) Sites
5) Untick Require server verification (https:) for all sites in this zone
6) Add the drive (you can add just the mapped drive letter, and it will convert it to UNC, or just the ip of the host)

In excel if it doesn't work also check that in the Trust Center and make sure network locations are authorized and that macro security level is set to at least have a notification that you will be able to accept.

Friday, September 15, 2023

Unban 1 IP - Gỡ IP ra khỏi fail2ban

Unban 1 IP

1. Kiểm tra IP có bị chặn không.

iptables -v -L -n



2. Gỡ IP ra khỏi danh sánh
fail2ban-client set  asterisk-cpbx unbanip 10.10.6.65



Monday, September 11, 2023

Xóa mail box trên cloud

Xóa mail box trên cloud

Get-User user@domain.com | Select name,*Recipient*

Set-User user@domain.com -PermanentlyClearPreviousMailboxInfo -confirm:$false

Wednesday, August 30, 2023

Fix lỗi ổ đĩa không tương thích Unverified trên thiết bị NAS Synology


Fix lỗi ổ đĩa không tương thích Unverified  trên thiết bị Nas Synology

Monday, August 28, 2023

Microsoft Office Outlook Exchange Error 80090016 After a System Board Replacement

Symptoms

You receive the following error, "Your computer's Trusted Platform Module has malfunctioned. If this error persists, contact your system administrator with error code 80090016" after a system board replacement.

Friday, June 30, 2023

Cách xem Logging trong router Cisco

                                      LOGGING TRONG ROUTER CISCO VÀ TÙY CHỈNH

LOG trong router CISCO có thể lưu dưới 1 số dạng hay gặp:

  • Loại 1: Log bắn ra màn hình putty, secureCRT khi cắm dây console vào – Console log, mặc định console log sẽ hiện đầy đủ các loại sự kiện, event trong router. Ví dụ:


 Loại 2: Log lưu trong bộ nhớ Ram chỉ được khoảng vài chục message mới nhất – Buffer logging (show logging để xem)

Monday, January 30, 2023

How to hide/unhide/delete all named ranges in Excel?

A. Xoa NamesRange

1. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and paste the following code in the Module Window.

Sub ShowNames()
'Update 20140318
Dim xName As Name
For Each xName In Application.ActiveWorkbook.Names
    xName.Visible = True
Next
End Sub

//