Reminder: To make the unexpected happen, back up the Sam file first.
1. First go to the registry, locate the Sam file, the location is Hkey_local_machine\sam\sam, by default, all the subkeys below the Sam are hidden, right-click Sam, and select
Conditions for continuing and terminating loops
Do-while () will be executed before you can make sure that the loop executes at least once.
Copy Code code as follows:
PS c:powershell> do {$n =read-host} while ($n-ne 0)
10
100
The switch is a multiple-branch keyword, but it can be used for loop processing because the switch supports collections in PowerShell. Here are two examples.The first converts a foreach loop into a switch loop:
Copy Code code as follows:
Netcmd.bat
Copy Code code as follows:
#windows常用网络命令
#查看本地网卡接口信息Ipconfig/all
#ping (often used to test network connectivity)Ping www.baidu.com
#路由相关
#1. View the routing table (where 0.0.0.0 records are the default route
1, start the lower left corner of the taskbar in the Server Manager, select "Storage"-> "Disk Management";
2, on the blank partition, the right key to select "New Simple Volume";
3, start the New Simple Volume wizard, select "Next";
4, set
1. The system patch hits the latest
2. No vulnerable software, such as Serv-u,radmin,pcanywhere and other such software and web site procedures
3. The fewer things on the server, the better, the remote control with only 3389 of the absolute
PowerShell shortcuts and Cmd,linux in the shell, are more like.
Alt+f7 The history of the Purge command
PgUp PGDN Displays the first and last command of the current session
Enter to execute the current command
End moves the cursor to the ends of
Under Windows 2000/xp/vista, press the SHIFT key 5 times to open the glue, run the Sethc.exe, and open it in the login interface. This is reminiscent of Windows screensaver, after replacing the program with Cmd.exe, you can open the shell.
Although the title of this article is Pjblog security settings, in fact, for any Web site procedures are applicable,
Flexibility is OK.
The following is the text:
First, set the directory security for Pjblog in IIS. It is recommended that you first
Copy Code code as follows:
Microsoft Windows [version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and SETTINGS\ADMINISTRATOR>CD C:\Program files\apache Software Foun
Dation\apache2.2\bin
C:\Program Files\apache
Introduction Nginx is a very lightweight HTTP server written by the Russians, Nginx, which is pronounced "engine X", is a high-performance http and reverse proxy server, but also a IMAP/POP3/SMTP proxy server.
Second, location grammatical grammar:
To achieve 301 page jump before you need to make changes to the Apache configuration such as
Apache does not open the Mod_rewrite module by default,
1, will
Copy Code code as follows:
#LoadModule Rewrite_module
The security of the server is very important, especially by hackers to claim, here refers to the use of the web for the right to claim, the web is generally used to network SERVICE account number, and registry changes, so we change the part of the
Integration Command List 1Function: Automatically backs up the database and creates a backup folder by date.
Copy Code code as follows:
@echo off
Echo Performs a backup task
ECHO is stopping the database ...
Echo is stopping the
Using Bat_to_exe_converter to convert the bat to Exe, download: http://www.jb51.net/softs/21398.html, there is also a spin-off benefit, unable to view the bat file source code.
Using Srvinstw.exe to register the EXE as a system service, download:
DescriptionNC is non client meaning, the non-client area mainly includes the title bar, the status bar, toolbars and borders and other areas, currently wxwidgets just provides evt_nc_paint only a non-client area of the event, in MFC, there are also
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.