Posts

Index Usage

 SELECT  i.name AS IndexName,             OBJECT_NAME(i.object_id) AS TableName,               i.type_desc AS IndexType,               s.user_seeks,               s.user_scans,               s.user_lookups,               s.user_updates,               s.last_user_seek,               s.last_user_scan,               s.last_user_lookup,               s.last_user_update FROM  sys.indexes AS i JOIN  sys.dm_db_index_usage_stats AS s  ON i.object_id = s.object_id  AND i.index_id = s.index_id WHERE  OBJECTPROPERTY(i.object_id, 'IsUserTable') = 1         ...

Nas backup Hyper-V

 Step as  - Go to command prompt as Administrator - > winrm quickconfig - Enable Remote Access  - Allow Firewall 5985 Port

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

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

Cisco Command

Show Port-Channel Status  # show etherchannel summary

Transaction

BEGIN TRANSACTION BEGIN TRY      [statement]       COMMIT END TRY BEGIN CATCH      ROLLBACK END CATCH

Test Radius

 For all schemes than “PAP” it is recommended to test it via CLI:           # diagnose  test  authserver  radius           <server_name> <chap | pap | mschap | mschap2> <username> <password> For example:           # diagnose  test  authserver  radius "Radius Profile" mschap2 radiususer1 P@$$w0rd1           authenticate 'radiususer1' against 'mschap2' succeeded, server=primary assigned_rad_session_id=457812022 session_timeout=0 secs idle_timeout=0 secs!  Group membership(s) - radiusgroup

Installation and Run Node.JS on IIS

 Web Server Requirement IIS URL Rewrite Node.js IISNode for IIS server.js var express = require('express'); var app = express(); app.get('/', function (req, res) {     res.send('Express is working on IISNode!'); });  app.listen(process.env.PORT); web.config <configuration>     <system.webServer>         <handlers>             <add name="iisnode" path="server.js" verb="*" modules="iisnode" />         </handlers>         <rewrite>             <rules>                 <rule name="sendToNode">                     <match url="/*" ...

Room Screen Meeting of Connect Package

Step for Google G Suite. 1. Create Workspace of google cloud and Enable Google Calendar API Service. 2. Create Service account and  Enable Google Calendar API Service. 3. Generate JSON file. 4. Add Service on Condeco Connect and upload JSON File then set Key Passphrase. 5. Add API Client Access on G Suite but using Unique ID from Service Account (2) 6. Add resources on G Suite which got email format for each room on Condeco Connect (Room Mailbox) Step for Microsoft Office 365 1. Create Resource of O365 which you got email and password. 2. Add Service on Condeco Connect.

Events data collection failure issue

Hyper-V Host :: Allow firewall "Remote Event Log Management" and "Com+ Network Access"

Powershell Command

Test Connection with Computer #Test-NetConnection -ComputerName MyComputer -Port 135 Check Count of Bad Password dsquery * -filter "(&(objectCategory=User)(objectClass=Person)(sAMAccountName=%username%))" -attr givenName sn badPwdCount View Account Locked Search-ADAccount –LockedOut

Attach file limit of MS Outlook

Go to Regedit Go to  Outlook 2010: HKEY_CURRENT_USER\­Software\­Microsoft\­Office\­14.0\­Outlook\­Preferences. Outlook 2013: HKEY_CURRENT_USER\­Software\­Microsoft\­Office\­15.0\­Outlook\­Preferences. Outlook 2016: HKEY_CURRENT_USER\­Software\­Microsoft\­Office\­16.0\­Outlook\­Preferences. click Edit > New > DWORD (32-bit) Value  then  rename the value to "MaximumAttachMentSize."  Add a size limit  (in kilobytes). 0 is no limit.

Grandstream GXP1628 have been Lock

Grandstream GXP1628 ขึ้นรูปกุญแจ Lock ไม่รู้ว่าเกิดขึ้นได้อย่างไรเป็นบางเครื่องเท่านั้น หา IP ของเครื่อง IP Phone ให้ได้ก่อนว่าได้ IP อะไร โดยที่อาจดูที่ DHCP Server จาก Mac Address ของตัวเครื่องเอง เข้าไปที่ Browser แล้วเข้าไปที่ IP ข้างต้น เข้าไปที่เมนู Maintenance > Security Settings > Security Enable STAR Key Keypad Locking ให้เลือกเป็น Yes Password to Lock/Unlock ให้กำหนดเป็นอะไรก็ได้เช่น 1234  กด Save and Apply ไปที่ IP Phone ให้กด * ค้างไว้ประมาณ 4 วินาที ให้ทำการใส่ Password ที่กำหนดไว้เช่น 1234 และกด OK และ IP Phone จะปลดล็อคให้เป็นที่เรียบร้อย กลับไปที่หน้าเว็บอีกครั้งให้ทำการกำหนดค่าดังนี้ Enable STAR Key Keypad Locking ให้เลือกเป็น Yes กด Save and Apply เสร็จสิ้นกระบวนการ 

HP Switching - Add New OUI List

system-view [sw]  voice vlan mac-address c074-ad00-0000 mask ffff-ff00-0000 description GrandStream IP Phone

Repair and cleanup of the Backup Exec database

Go to the  C:\Program Files\Veritas\Backup Exec\  directory (  default location ), and double-click on  BEUtility.exe  to run it. Repair Database Rebuilding Database Indices Compacting Database Aging Database Checking Database Consistency

SQL Query Monitor

SELECT s.session_id, r.status, r.blocking_session_id 'Blk by', r.wait_type, wait_resource, r.wait_time / (1000 * 60) 'Wait M', r.cpu_time, r.logical_reads, r.reads, r.writes, r.total_elapsed_time / (1000 * 60) 'Elaps M', Substring(st.TEXT,(r.statement_start_offset / 2) + 1, ((CASE r.statement_end_offset   WHEN -1 THEN Datalength(st.TEXT) ELSE r.statement_end_offset   END - r.statement_start_offset) / 2) + 1) AS statement_text, Coalesce(Quotename(Db_name(st.dbid)) + N'.' + Quotename(Object_schema_name(st.objectid, st.dbid)) + N'.' + Quotename(Object_name(st.objectid, st.dbid)), '') AS command_text, r.command, s.login_name, s.host_name, s.program_name, s.last_request_end_time, s.login_time, r.open_transaction_count FROM sys.dm_exec_sessions AS s JOIN sys.dm_exec_requests AS r ON r.session_id = s.session_id CROSS APPLY sys.Dm_exec_sql_text(r.sql_handle) AS st WHERE r.session_id != @@SPID ORDER BY r.cpu_time de...