News:

Brought to you NINE-T Co.,ltd.

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - New User

#1
1. ก่อนอื่น ทำการเปิดอนุญาติให้รัน powershell script ที่ดาวน์โหลดจากภายนอกก่อน ด้วยคำสั่ง
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

2. เข้าไปยัง folder ที่ต้องการจะเก็บ VSSTester.ps1 เช่น c:\scripts และ พิมพ์คำสั่ง
git clone https://github.com/microsoft/CSS-Exchange.git

หมายเหตุ: ท่านที่ยังไม่ได้ติดตั้ง git ดาวน์โหลดและติดตั้งได้ที่ https://git-scm.com/install/windows

3. เข้าไปใน c:\scripts\CSS-Exchange\VSSTester จาก Exchange Powershell และพิมพ์

.\VSSTester.ps1 -DiskShadow -VolumesToBackup "D:\" -ExposeSnapshotsOnDriveLetters M

โดย D:\ คือ drive ที่เก็บ Exchange Log และ Database file ส่วน M คือ ชื่อ drive ที่ไม่มีตัวตนในระบบ ซึ่งท่านอาจจะใช้ X, Y ก็ได้เช่นกัน

4. ทำการเช็คคำขอในการ truncate ที่ส่งไปยัง Exchange
Get-WinEvent -FilterHashtable @{
    LogName = 'Application'
    ProviderName = 'MSExchangeRepl'
    ID = 2046
    StartTime = (Get-Date).AddHours(-3)
} | Format-List TimeCreated, Message
#2
บางครั้ง หากท่าน ทำการ inplace upgrade แล้วทำไม่ได้ เนื่องจาก error ท่านอาจจะทำการเช็ค installation files ของ windows ว่ามีไฟล์ที่เสียหายบ้างหรือไม่ ด้วยวิธีการดังนี้

1. เช็คว่าไฟล์ปกติหรือปล่าว
DISM /Online /Cleanup-Image /RestoreHealth

2. หากมีความผิดพลาดทำการ mount iso ของ windows server version ที่ท่านใช้อยู่เข้าไป
DISM /Get-WimInfo /WimFile:D:\sources\install.wim

3. ดูค่า index ของ windows server version ให้ตรงกับที่ใช้เช่น Windows Server 2016 Standard (Desktop Experiences)

DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:2 /LimitAccess

4. หลังจากนั้นพิมพ์ เพื่อตรวจสอบอีกครั้ง
sfc /scannow

และทำการ In-place upgrade ได้เลย


**** ข้อแนะนำเพิ่มคือ ขณะทำการ inplace upgrade เลือก installation เป็น local เพื่อไม่ให้ระบบเช็คและดึงอัพเกรดจากเน็ต ****
#3
ทดสอบว่าจะอัพเกรดได้หรือไม่
/usr/share/pve-manager/migrations/pve-cephx-rotate-service-keys

ทำการเช็คการอัพเกรด แต่ยังไม่ได้ทำจริง
/usr/share/pve-manager/migrations/pve-cephx-rotate-service-keys --rotate-cluster-keys

ทำการเช็คการอัพเกรด จริง
/usr/share/pve-manager/migrations/pve-cephx-rotate-service-keys --rotate-cluster-keys --apply

ทำการรีวิวการอัพเกรด client keys
/usr/share/pve-manager/migrations/pve-cephx-rotate-service-keys --rotate-all-storage-keys --rotate-admin-key

/usr/share/pve-manager/migrations/pve-cephx-rotate-service-keys --rotate-all-storage-keys --rotate-admin-key --apply

ทำการรีเฟรช key

/usr/share/pve-manager/migrations/pve-cephx-rotate-service-keys--apply --confirm-all-clients-refreshed --restrict-ciphers
#4
Exchange 2016,2019 และ SE จะล่มภายใน 24 และต้อง restart กลับมา ทั้งนี้เพราะว่า Windows Server patch จาก Microsoft ที่ออกมาเมื่อวันที่ 13 ต.ค. วิธีแก้ไข คือการพิมพ์
reg add "HKLM\SOFTWARE\Microsoft\Rpc" /v EpmapSavedContextCap /t REG_DWORD /d 65536 /f

เพื่อแก้ปัญหา
บทความอ้างอิงการแก้ไขปัญหาจาก Microsoft โดยตรงคือ https://techcommunity.microsoft.com/blog/exchange/exchange-servers-may-become-unstable-after-installation-of-october-2026-windows-/4565382
#5
Windows Defender / Force Activation of Defender
October 26, 2026, 03:08:38 PM
New-Item `
  -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection" `
  -Force

New-ItemProperty `
  -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection" `
  -Name ForceDefenderPassiveMode `
  -PropertyType DWord `
  -Value 0 `
  -Force


ค้นหาว่ามี antivirus เหลืออยู่มั๊ย
Get-ItemProperty `
  "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*", `
  "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*" `
  -ErrorAction SilentlyContinue |
Where-Object {
    $_.DisplayName -match 'antivirus|anti-virus|endpoint|security|Panda|ESET|McAfee|Norton|Avast|AVG|Sophos|Trend Micro|Bitdefender|Kaspersky'
} |
Select-Object DisplayName, DisplayVersion, Publisher

Get-CimInstance Win32_Service |
Where-Object {
    "$($_.Name) $($_.DisplayName) $($_.PathName)" -match
    'Panda|PSAN|antivirus|anti-virus|ESET|McAfee|Norton|Avast|AVG|Sophos|Trend Micro|Bitdefender|Kaspersky'
} |
Select-Object Name, DisplayName, State, StartMode, PathName |
Format-List

Get-ItemProperty `
  "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*", `
  "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*" `
  -ErrorAction SilentlyContinue |
Where-Object {
    $_.DisplayName -match 'Panda'
} |
Format-List DisplayName, DisplayVersion, Publisher,
            UninstallString, QuietUninstallString,
            PSChildName
#6
สำหรับ ขนาดของ mailbox database นั้นจะถูกจำกัดไว้ที่เพียง 1TB (1024GB) สำหรับ Standard Edition
แต่อย่างไร ท่านสามารถแก้ไขค่าดังกล่าว ได้ใน registry แต่อย่างไรก็ตาม ทาง Microsoft แนะนำว่า ไม่ควรแก้เกิน 2048GB หรือ 2TB ต่อ mailbox database file

และ จำนวน mailbox database file จะจำกัดไว้ที่ 5 files

สำหรับท่านที่ต้องการจะแก้ไขค่าดังกล่าว ทำได้โดยแก้ registry โดยเข้าไปที่
1. เช็คว่า GUID ของ mailbox database file ที่ต้องการแก้มีตัวเลขว่าอะไร

Get-MailboxDatabase -Identity Mailbox01| Ft Name, GUID

2 ทำการแก้ไข registry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\<ชื่อ server>\Private-<GUID ที่แสดงไว้ตามข้อ 1>

3. สร้าง key ใหม่แบบ DWORD โดยมีชื่อว่า
Database Size Limit in GB

4. ทำการเพิ่มขนาดเป็นที่ต้องการเช่น 2TB => 2048 และเลือก Base เป็น Decimal

5. ทำการ restart MSExchangeID

get-service MSExchangeIS| restart-service

#7
สำหรับ MS Exchange SE นั้นหลายคนอาจจะใส่ key ผ่าน UI แล้วขึ้นว่า invalid แต่ไม่เป็นไร ท่านสามารถใช้ powershell ได้เลยแค่พิมพ์
Set-ExchangeServer <ServerName> -ProductKey <ProductKey>

หลังจากนั้น restart services ดังนี้

Restart-Service MSExchangeIS
Restart-Service MSExchangeServiceHost
#8
https://wasabi-cloud.in.th/review/mapping-wasabi-hot-cloud-storage-as-a-local-drive-using-cloudberry-drive/

คุณสามารถมี mapped drive ใน windows ที่เป็น S3 เช่น Wasabi Hot Cloud Storage ได้ง่ายๆ เลย
#9
Remote Access Software / Check Strong SID
October 08, 2026, 09:52:10 AM
วิธีการเช็คว่า มีการใช้ Strong Mapping หรือปล่าว ใน Windows Server


$certs = Get-ChildItem Cert:\LocalMachine\My
foreach ($cert in $certs) {
    $sidExtension = $cert.Extensions | Where-Object { $_.Oid.Value -eq "1.3.6.1.4.1.311.25.2" }
    [PSCustomObject]@{
            Thumbprint = $cert.Thumbprint
            Subject    = $cert.Subject
            HasStrongSID = [bool]$sidExtension
    }
}
#10
https://software.avesta.co.th/acronis/cyber-protect-edition-comparison/

เป็นตารางชัดเจน สำหรับการเปรียบเทียบคุณสมบัติแต่ละ Edition ของ Acronis
#11
RustDesk / การทำ self-hosted RustDesk
October 01, 2026, 06:27:43 PM
สำหรับหลายท่านที่กำลังใช้งาน free remote desktop solution เช่น RustDesk ที่กำลังมาแรง เพราะว่าตอนนี้หลายๆ ค่ายที่เคยฟรีนั้นเริ่มจะเก็บเงินกันหมดแล้ว เพราะฉะนั้น ท่านที่ยังไม่อยากลงทุนเยอะกับซอฟต์แวร์ประเภทดังกล่าว ก็ควรจะหาทางเลือกใหม่ แต่การใช้งาน RustDesk โดยปกตินั้น ท่านอาจจะพบว่า graphic หรือการแสดงผลนั้นไม่ค่อยดีเท่าไหร่ ภาพช้า ดีเลย์ นั่นก็เพราะว่า ข้อมูลมันจะไปผ่าน relay server ในยุโรปเป็นหลัก เพราะฉะนั้น เพื่อให้ท่านได้ใช้งานได้เร็วขึ้น จึงควรจะสร้าง relay server เองเลย ที่เรียกว่า self-hosted เราไปเริ่มกันเลย

ก่อนอื่นต้องบอกว่า วันนี้เราติดตั้ง ทั้ง hbbs และ hbbr บน debian 13
1. ก่อนอื่นเลย สลับเป็นไปใช้ root ด้วยคำสั่ง su root เลยเพื่อไม่ต้องพิมพ์ sudo หลายครั้ง และทำการติดตั้ง package ที่จำเป็น และ ดาวน์โหลด public key สำหรับ docker.com
su root
apt update
apt install ca-certificates curl gnupg -y
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg


2. เพิ่ม repository ของ docker
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

3. ติดตั้ง docker
apt update
apt install docker-ce docker-ce-cli

4. เช็คสถานะการทำงานของ docker และขอให้แน่ใจว่า active อยู่
systemctl status docker

5. สร้าง directory สำหรับการเก็บข้อมูล
mkdir -p /opt/rustdesk
cd /opt/rustdesk

6. สร้าง compose.yaml
nano /opt/rustdesk/compose.yaml
และ ใส่ content ดังนี้
services:
  hbbs:
    image: rustdesk/rustdesk-server:latest
    container_name: hbbs
    command: hbbs
    network_mode: host
    volumes:
      - ./data:/root
    restart: unless-stopped
    depends_on:
      - hbbr

  hbbr:
    image: rustdesk/rustdesk-server:latest
    container_name: hbbr
    command: hbbr
    network_mode: host
    volumes:
      - ./data:/root
    restart: unless-stopped



7. รัน docker container
cd /opt/rustdesk
docker compose up -d

8. อย่าลืมอนุญาต หรือ ทำการ forward port ใน firewall หากท่านใช้ private ip ด้วย port ดังนี้
TCP : 21115-21119
UDP : 21116

9. เมื่อรันแล้ว ให้ท่านเช็คไฟล์ ใน /opt/rustdesk/data ดูที่ไฟล์ id_ed25519.pub
และ copy content นั้นไปใส่ใน rustdesk client
#12
วิธีการติดตั้ง Administrative Template for Microsoft Office บน Domain Controller

1. ทำการดาวน์โหลดจาก
https://www.microsoft.com/en-us/download/details.aspx?id=49030

2. หลังจากนั้นทำการเปิดโปรแกรมมา ระบบจะขยายไฟล์ เลือก folder เช่น
c:\temp\policies

3. เข้าไปยัง folders นั้นและ มองหาไฟล์ .admx ซึ่งจะอยู่ใน folder admx ให้ copy มาทั้งหมดพร้อมกับ folder ชื่อว่า en-us
นำไปวางใน
\\yourdomain.com\SYSVOL\yourdomain.com\Policies\PolicyDefinitions
หมายเหตุ: folder PolicyDefinitions นั้นปกติ จะไม่มีอยู่ ให้ท่านสร้างเพิ่มเองก่อนนำไฟล์ไปวาง
#13
จาก
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Outlook\Security

ถ้าไม่มี key : Security ให้เรา add ได้เลย
แล้วเพิ่ม DWORD (32-bit)
ตั้งชื่อว่า: AuthenticationService
ตั้งค่าเป็น: "a" (hexadecimal) หรือ 10 (decimal)
#14
Wire and Wireless Communications / Unifi OS Server
September 10, 2026, 05:25:52 PM
Unifi OS Server นั้นเป็นระบบจัดการ อุปกรณ์ใหม่ล่าสุด ต่อจาก Unifi Network Server จากค่าย Ubiquity สำหรับผู้ที่ใช้ Unifi Network Server เดิมอยู่นั้น สามารถพิจารณาเปลี่ยน ไปยังซอฟต์แวร์ตัวใหม่นี้ได้เลย
#15
สำหรับวิธีการอัพเกรด Unifi Server Appliance บน Ubuntu นั้นง่ายมากเลยครับ เพียงแค่ใช้ script สำเร็จรูปเท่านั้น

sudo apt-get update && sudo apt-get install ca-certificates curl -y


curl -sO https://get.glennr.nl/unifi/update/unifi-update.sh && bash unifi-update.sh