發表文章

目前顯示的是 2024的文章

電腦無回報到WSUS上 強制重新註冊

如果確認已經套了GPO但是電腦並未回報到WSUS (Windows Server update sercive)上的話 請用管理員權限執行以下POWERSHELL net stop wuauserv REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientIdValidation /f REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v PingID /f” REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v AccountDomainSid /f” move %windir%\windowsupdate.log %windir%\windowsupdate.old.log move %windir%\SoftwareDistribution %windir%\SoftwareDistributionold regsvr32 /s atl.dll regsvr32 /s wucltui.dll regsvr32 /s wups.dll regsvr32 /s wuaueng.dll regsvr32 /s wuapi.dll regsvr32 /s msxml3.dll regsvr32 /s mssip32.dll regsvr32 /s initpki.dll regsvr32 /s softpub.dll net start wuauserv wuauclt /resetauthorization /detectnow /reportnow 跑完以後 去WINDOWS UPDATE點更新或檢查 等待跑完再去WSUS上看看是不是已經出現了

啟用sharepoint online,one drive for business的MIP (敏感性標籤)powershell

圖片
 Install-Module Microsoft.Graph -Scope CurrentUser Install-Module Microsoft.Graph.Beta -Scope CurrentUser Connect-MgGraph -Scopes "Directory.ReadWrite.All" #啟用群組支援MIP Get-MgBetaDirectorySettingTemplate $TemplateId = (Get-MgBetaDirectorySettingTemplate | where { $_.DisplayName -eq "Group.Unified" }).Id $Template = Get-MgBetaDirectorySettingTemplate | where -Property Id -Value $TemplateId -EQ $params = @{    templateId = "$TemplateId"    values = @(       @{          name = "UsageGuidelinesUrl"          value = "https://guideline.example.com"       }       @{          name = "EnableMIPLabels"          value = "True"       }    ) } New-MgBetaDirectorySetting -BodyParameter $params $Setting = Get-MgBetaDirectorySetting | where { $_.DisplayName -eq "Group.Unified"} $Setting.Values Update-MgBetaDirect...