Posts

VPN and Change Password

  Login to laptop using cached, old password. Connect via VPN. Open Command Prompt Type 'runas /user:<DOMAIN>\<USERNAME> cmd' Enter new password. Close both Command Prompts. Wait a few minutes. Shortly after, you should get the notification area pop-up with the set of keys icon with notice " Windows Needs Your Current Credentials Please lock this computer, then unlock it using your most recent password or smart card ". Locked the computer. Unlock with new password. Done.

การต่อนำข้อมูลหลายๆแถวมาต่อกันให้เหลือแถวเดียว

Synnex STRING_AGG ( expression, separator ) [ <order_clause> ] <order_clause> ::=        WITHIN GROUP ( ORDER BY <order_by_expression_list> [ ASC | DESC ] ) Example select receipt_id, STRING_AGG(receipt_item,',') within group (order by receipt_line asc) from table_receipt group by receipt_id

Index List (Last Modify)

 select STATS_DATE(so.object_id, index_id) StatsDate , si.name IndexName , schema_name(so.schema_id) + N'.' + so.Name TableName , so.object_id, si.index_id from sys.indexes si inner join sys.tables so on so.object_id = si.object_id order by 1 desc

Show Port Error

     เพื่อใช้ในการตรวจสอบว่าที่ SAN Switch มีอาการ Error บ้างไหม มันจำทำให้ Server ที่เชื่อมต่อกับ SAN Switch มีอาการช้าลงได้ ดูตรง crc err, link fail ควรต้องเป็น 0 ตลอด SANSWITCH:admin> porterrshow อ้างอิง Command ของ HP San Switch 

ความหมาย

 Volt = แรงดัน  Amp = กระแส Volt x Amp = Watt อัตรากินไฟต่อชั่วโมง 19.5 x 3.34 = 65.13 Watt (adaptor ติดมากับเครื่อง) ค่า Amp ของ adaptor ทั่วไปมักมีให้เลือกหลายค่า  กรณี Amp น้อยกว่า ชาร์ตช้า หรือ ชาร์ตไม่เข้าเลย กรณี Amp มากกว่า จะชาร์ตเร็ว แต่ระวังถ้ามากกว่าเยอะๆ จะทำให้แบตจะบวมและเสียเร็วขึ้น

User ไม่ได้ใส่ Password ผิด แต่โดน Locked Account

 Please check this step Go to regedit HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SecurityManager\CapabilityClasses\AllCachedCapabilities All Capability SIDs begin at  S-1-15-3 . If no, Delete this user and re-create again.

Windows Command (CMD)

View User Information net user 4700678 /domain