今天发现2012的操作系统远程桌面黑屏了,重启后发现只能看到CMD命令行。感觉是WINDOW的版本变成了无GUI的版本了。windows 2012 R2系统重启后进入系统还是只有CMD命令窗口,没有图形化界面,除了cmd其余的全部是黑的。解决这个方法很简单,不用重装系统,只需cmd里面一条命令即可。在cmd里面输入以下内容,输入完以后按回车键Dism/online/enable-feature/all/featurename:servercore-fullserver/featurename:server-gui-shell/featurename: Server-gui-mgmt按回车键以后什么都不用关,过一会系统就会自动重启,重启完以后进入系统就是图形化界面了。直接再CMD命令行输入上面的dism的相关命令,如:During the execution of the process, there will be a progress bar that automatically goes do
For/F "tokens = *" % G in ('time/t') do set _ time = % G
Set _ time = % _ time :~ 0, 2%-% _ time :~ 3,2%
Endlocal SET _ time = % _ time %
Echo % Date :~ 0, 4%-% Date :~ 5, 2%-% Date :~ 8, 2%-% _ time %
Displayed as 2009-02-17-09-15 after execution (example)
The Windows command line is used to obtain the year-month-day-hour-minute-second, which is often used
14C Machine (x86)3. View PE file dependencies, similar to dependency WalkerDumpbin/dependents Libgcc_s_seh_64-1.dllE:\software\tdm-gcc-64\bin>dumpbin/dependents Libgcc_s_seh_64-1.dllmicrosoft (R) COFF/PE Dumper Version 10.00.40219.01Copyright (C) Microsoft Corporation. All rights reserved. Dump of File Libgcc_s_seh_64-1.dllfile type:dll Image has the following dependencies: KERNEL32.dll Msvcrt.dll Summary 1000. CRT, Edata, Idata, pdata, Rdata, and reloc.
1. telnet to Window server using SSHMost of the methods found online are freesshd or copsshd tools.The way to do this is to download the installation files and install them on the server side:Start and setting as a service after installation is completeTo set the port settings user:Start the server to connect using SSHBut there will be garbled ...2. The second approach is to connect remotely using PowerShell, with two main steps:The first step allows PS remote accessOn the server side:PowerShell
Tags: change oca pass mysq win window Word address nbspNote: If your MySQL is not installed under the C drive, use the command to go to the bin directory in the MySQL installation directory for subsequent operations.Here's how: for example, you install on the D drive. First input D: Enter to enter the D drive, and then enter the CD d:\ your MySQL installation directory \ Bin enter into the MySQL bin directory, you can do the following.Enter the MySQL
Introduction to Windows command line send mail Blat.exe
Download the latest kit and unzip and copy it to the System32 directory on the operating system disk. My environment is c:windowssystem32.
The confirmation file has been copied past:
Blat.dll
Blat.exe
Blat.lib
Batch Command Example:
-----------------Example
In Linux to do timing scripts often use the crontab command to execute the PHP file regularly, in fact, under the Windows environment can also use the command line to execute PHP files, the following to see how to achieve it.
(1) Configure the value of the system variable path. Add the path of your PHP program's execu
1. Project Requirements
Need to invoke another program on the back end and get the return result
2. First version of the environment: Windows
CMDSTR is the command parameter public boolean excutecmd (String cmdstr) {string[] cmd = new string[]{"cmd.exe", "
/C ", cmdstr};
BufferedReader br = null;
String line = null;
Runtime Runt
Reference article: http://www.cnblogs.com/caikehe/archive/2013/01/12/2858017.htmlBatch file contents:Set Path=d:\program Files (x86) \microsoft Visual Studio 10.0\vc\binSet Include=d:\program Files (x86) \microsoft Visual Studio 10.0\vc\includeSet Lib=d:\program Files (x86) \microsoft Visual Studio 10.0\vc\lib?Then copy the corresponding missing file to the appropriate file.One is Mspdb100.dll, put into the bin.One is kernel32.lib, put into Lib.Then, CMD, press into CL Xxx.cppXxx.exe is generate
The command window, enter "Services.msc", enter the input method into Chinese character input, hit "rsync", press ENTER to search, left click to select Automatic, restart can2, to this step after the Windows Rsync Server even start to complete!4. The Linux client installs the Rsyn
in Windows, we need to download the cwRsync tool, which is an rsync for windows version.
The directory structure after the download and installation is similar to the following:
Now we can run rsync in Windows. For example, use the following
Cwrsync Serverwhen installed, the user and password are set to Dianyi, which is the user name and password that two machines use when using rsync to communicate with one another .2, configure the rsync server on this Windows, remote Linux as rsync client to pull files on the Windo
Auth users = Coldstar #同步使用的帐号
Secrets file = Rsyncd.secrets #密码文件
Note:
The format of the Rsyncd.secrets profile is user name: password, such as:
coldstar:123456
That is, a user Coldstar was added with a password of 123456.
To perform synchronization commands on a Linux server:
RSYNC-VZRTOPG--progress--delete Rsync://coldstar@192.168.10.1:52326/test2/root/test2
Then enter the password at t
backup module. In the above example, the password file is/etc/wwwuser. Pass. Use the editor to create this file and enter the user name and password:VI/etc/wwwuser. Pass Enter the following content:Wwwuser: 123456 In this way, a password of 123456 is set for the wwwuser of the backup module www. Note: For security purposes, the attributes of this file must be read only by the owner; otherwise, rsync will refuse to run. We can set its property to 60
Description1. Rsync Service SideSystem: CentOS 5.5IP Address: 192.168.21.160Data storage directory:/data/xuersync2. Cwrsync ClientSystem: Windows Server 2003IP Address: 192.168.21.130Directories synchronized: D:\xuersyncPurpose of implementation:Cwrsync client automatically synchronizes data from the Rsync server/data/xuersync directory to the D:\xuersync directo
Rsync is very simple and convenient to use. If used properly, the operation security can be enhanced. In addition, it can also be used as a security detection tool, without the support of any other software, you can complete the Integrity audit of the file system.
Rsync Step 1: Create an rsync directory in d:, decompress all the stuff in the two compressed files
-file=file Read daemon-access password from FILE--list-Only list the files instead of copying them--bwlimit=kbps Limit i/O Bandwidth; Kbytes per second--Write-batch=fileWritea batched update to FILE--only-Write-batch=file Like--Write-batch butW/o Updating Destination--read-batch=file read a batched update from FILE--protocol=NUM Force a older protocol version to be used--iconv=Convert_spec Request CharSet conversion of filenames-4, --IPv4 prefer IPv4-6, --IPv6 prefer IPv6--version print version
. (This is often seen when Linux is going to Windows.) problem 8: @ ERROR: daemon security issue -- contact adminrsync error: error starting client-server protocol (code 5) at main. c (1530) [sender = 3.0.6] cause: the synchronization directory contains a soft connection file, which requires/etc/rsyncd on the server. conf open use chroot = yes. Pass through the soft connection file. Question 9: rsync: read
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.