20251121

Authenticator 'Your Screen Lock has changed' Loop

Here's a much simpler solution.


Open the MS Authenticator app and click on your account.

Look for a menu item that says Re-enable Phone Sign-In and click it.

On the next screen, click the link to sign in with a password. Do NOT click the Send Notification button or you will experience the loop that the OP refers to.

20250802

FWD: 上層收拾下屬的十大權術

 1、卡脖之困

領導有資源分配權,可輕易為難下屬,不給予應有的支持,為其工作設置障礙。如此略施小計,便能讓下屬的工作舉步維艱。就如同演員上台,卻發現行頭不齊、設備故障,十分尷尬。
2、揪小辮子
抓住下屬的一點小錯誤,故意放大,借題發揮,上綱上線,然后借機處罰。下屬可能為了盡快過關、翻篇,而委曲求全,檢討、認罰,即便有的指責并不合理也忍了下來。然而,下屬越是退讓,領導越會對其進行心理打擊,增加精神壓力,直至其懷疑人生。

20250516

Protect the sytem with 4 dimensions (conditional access)

 https://learn.microsoft.com/en-us/entra/identity/conditional-access/plan-conditional-access




20250506

香港山路錦標賽(短距離) 試路分享

 比賽日5月25日,相信當天會比今日更加熱,比賽限時只有7小時,如果一心只用郊遊模式黎玩,鐵定超時!一小時最少都要行到5KM距離(12分PACE,包括上山),所以如果上山太慢,平路落山等等都要追返時間!

賽道頭20KM都係以古道石砌路為主,比較多凹凸不平,控制好其實都可以跑到,但絕對要小心坳柴。第一個大攀升位,起步由大美篤上山到春風亭至橫七古道,攀升340M,第二大攀升位,烏蛟騰經媽騰古道上到亞媽芴,攀升180M,呢兩段都算係多樹蔭,穩定住步伐就可以一口氣上到頂。小攀升位就仲有荔枝窩村上梅子林,攀升100M,全程水泥斜路。
第三大攀升位由20KM後開始,苗三石澗上環湖徑,1KM攀升200M,呢一段開始就變成少樹蔭,基本上可以講係暴曬路段,尤其比賽日起步時間8:30推算,到達呢一段既時間會係正午左右,今日我地2點半開始上山都感覺熱力難當,環湖徑之上仲有最少6個山頭上落,幾十攀升左右但全部都係急上急落。

總結:唔可以玩得太HEA,亦要帶夠水/補給飲品,天氣絕對係呢個比賽最大既敵人







20250416

OneDrive Usage Reports for a specific Department in Microsoft 365

 # Connect to SharePoint Online

Connect-SPOService -Url "https://xxxxxx-admin.sharepoint.com"


# Connect to Microsoft Graph (for department filtering)

Connect-MgGraph -Scopes "User.Read.All"


# Get all users where department contains "*"

$UsersInLangDept = Get-MgUser -All -Property Id, UserPrincipalName, Department | 

                   Where-Object { $_.Department -like "*XYZ*" }



# Get their OneDrive sites

$UsersInLangDept | ForEach-Object {

    # Convert UPN to correct URL format

    $OneDriveUrl = "https://xxxxx-my.sharepoint.com/personal/$($_.UserPrincipalName.Replace("@","_").Replace(".","_"))"



# Get OneDrive site (silently skip errors if no site exists)

    Get-SPOSite -Identity $OneDriveUrl -ErrorAction SilentlyContinue | 

    Select-Object Title, Owner, Department, StorageUsageCurrent

} | Export-Csv "D:\temp\OneDriveUsage_XYZ.csv" -NoTypeInformation


Write-Host "Exported to D:\temp\OneDriveUsage_XYZ.csv"

Related Posts Plugin for WordPress, Blogger...