Author Archives: administrator

Remote desktop connection error Windows Server 2012 – CredSSP CVE-2018-0886

error Remote desktop

วิธีแก้ ไขให้ Remost ได้

  • Run gpedit.msc
  • Computer Configuration -> Administrative Templates -> System -> Credentials Delegation -> Encryption Oracle Remediation

Change it to Enable and in Protection level, change back to Vulnerable.

ตามภาพ

 

เสร็จแล้ว ก็ Remote desktop  ดูอีกที  ใช้งานได้แน่นอน

Windows Logoff/Shutdown/Restart ผ่าน Command Line

การ Logoff ผ่าน Command Line

ผู้ใช้สามารถใช้คำสั่ง shutdown พร้อมพารามิเตอร์ -l เพื่อ Logoff ดังนี้

1
shutdown -l

การ Shutdown ผ่าน Command Line

ผู้ใช้สามารถใช้คำสั่ง shutdown พร้อมพารามิเตอร์ -s เพื่อ Logoff ดังนี้

1
shutdown -s

การ Restart ผ่าน Command Line

Continue reading

Ubuntu Linux restart network interface

To restart network interface, enter:
sudo /etc/init.d/networking restart
To stop and start use the following option (do not run them over remote ssh session as you will get disconnected):
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start

Debian/Ubuntu Linux with systemd, run:
$ sudo systemctl restart networking

mysql Port 3306 Ubuntu server all ip connet

configuration file in the terminal,

I fixed this by changing bind-address 127.0.0.1 to bind-address 0.0.0.0 in /etc/mysql/mysql.conf.d/mysqld.cnf,  (so that MySQL listens on all ports).

sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
 bind-address 127.0.0.1 to bind-address 0.0.0.0

save file   exit and restart mysql 

/etc/init.d/mysql restart 

OK Work  

command xcopy

xcopy c:\ d:\ /h/i/c/k/e/r/y

Use the above command. It will definitely work.

In this command data will be copied from c:\ to D:\, even folders and system files as well. Here’s what the flags do:

  • /h copies hidden and system files also
  • /i if destination does not exist and copying more than one file, assume that destination must be a directory
  • /c continue copying even if error occurs
  • /k copies attributes
  • /e copies directories and subdirectories, including empty ones
  • /r overwrites read-only files
  • /y suppress prompting to confirm whether you want to overwrite a file

You can see a list of flags by running xcopy /?.

Juniper request system storage cleanup (SRX Series)

user login CLI

 

user@host> request system storage cleanup

Note: You can issue the request system storage cleanup dry-run command to review the list of files that can be deleted with the request system storage cleanup command, without actually deleting the files.

Note:

On SRX Series devices, the /var hierarchy is hosted in a separate partition (instead of the root partition). If Junos OS installation fails as a result of insufficient space:

  • Use the request system storage cleanup command to delete temporary files.
  • Delete any user-created files in both the root partition and under the /var hierarchy.