How to map .html to asp.dll (IIS7 & IIS 7.5)

There is some bug on IIS 7.5 where the setting on IIS handler mapping not able to function well when it need to edit the existing hander to  use other executable module.  It not a known bug but it do happen based on my testing.

IIS7.5

But we can try do the setting on backend.

CAUTION: Make Sure you have backup all the copy of the file that you edit.

1) go into the C:\Windows\System32\inetsrv\config directory and edit the fileapplicationHost.config (you will need to do this in administrator mode, or do it from a different computer networking over to that server, otherwise Windows will protect that file and won’t allow you to change it.)

2) Scroll all the way to the bottom and look for the section that corresponds to your web site <location path=”Your Web Site”>

3) Change/edit the code block to add in the HANDLERS and HTM map below

<location path="Your Web Site"> 
<system.webServer>
<asp appAllowClientDebug="true" scriptErrorSentToBrowser="true" /> 
<handlers> 
<add name="htm" path="*.htm" verb="*" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" /> 
</handlers> 
</system.webServer> 
</location>

4) Save it and restart IIS. Bingo.

Microsoft command-line FTP client

ftp-click

To connect to another computer using FTP at the MS-DOS prompt, command line, type FTP and press enter.

 

open ftp.domain.com

 

Insert Username and Password.

Then you will able to use the command as below.

! - Runs the specified command on the local computer
? - Displays descriptions for ftp commands
append - Appends a local file to a file on the remote computer
ascii - Sets the file transfer type to ASCII, the default
bell - Toggles a bell to ring after each file transfer command is completed (default = OFF)
binary - Sets the file transfer type to binary
bye - Ends the FTP session and exits ftp
cd - Changes the working directory on the remote computer
close - Ends the FTP session and returns to the command interpreter
debug - Toggles debugging (default = OFF)
delete - Deletes a single file on a remote computer
dir - Displays a list of a remote directory's files and subdirectories
disconnect - Disconnects from the remote computer, retaining the ftp prompt
get - Copies a single remote file to the local computer
glob - Toggles filename globbing (wildcard characters) (default = ON)
hash - Toggles hash-sign (#) printing for each data block transferred (default = OFF)
help - Displays descriptions for ftp commands
lcd - Changes the working directory on the local computer
literal - Sends arguments, verbatim, to the remote FTP server
ls - Displays an abbreviated list of a remote directory's files and subdirectories
mdelete - Deletes one or more files on a remote computer
mdir - Displays a list of a remote directory's files and subdirectories
mget - Copies one or more remote files to the local computer
mkdir - Creates a remote directory
mls - Displays an abbreviated list of a remote directory's files and subdirectories
mput - Copies one or more local files to the remote computer
open - Connects to the specified FTP server
prompt - Toggles prompting (default = ON)
put - Copies a single local file to the remote computer
pwd - Displays the current directory on the remote computer (literally, "print working directory")
quit - Ends the FTP session with the remote computer and exits ftp (same as "bye")
quote - Sends arguments, verbatim, to the remote FTP server (same as "literal")
recv - Copies a remote file to the local computer
remotehelp - Displays help for remote commands
rename - Renames remote files
rmdir - Deletes a remote directory
send - Copies a local file to the remote computer (same as "put")
status - Displays the current status of FTP connections
trace - Toggles packet tracing (default = OFF)
type - Sets or displays the file transfer type (default = ASCII)
user - Specifes a user to the remote computer
verbose - Toggles verbose mode (default = ON)

How to disable the shutdown/reboot privilege for RDP user

Shutdown

This is the step to disable the shutdown/restart/suspend/hibernate options in the start menu.

(1) Open the Local Group Policy Editor by Start > Run > Enter gpedit.msc
(2) Go to User Configuration > Administrative Templates/ Start Menu and Taskbar
(3) Enable “Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands”

reboot01

Done

But How to add some RDP user to allow reboot, here is the step

(1) Log in with administrative rights
(2) Start > Run > Enter secpol.msc (Security Policy Editor).
(3) Go to Local Policy > User Right Assignment
(4) Locate the “Shut down the system” , you can see the user that have privilege on it. Just right click > properties , then you can add the user on it.

reboot02

How to reset MSSQL admin password

(1) Open command prompt with the administrator

(2) This command will list all the MSSQL in your server

 osql -L

(3) By this command you’ll connect to MSSQL server using administrator account

osql -S servername -E

(4)To change sa password you should execute the following query

sp_password NULL,'new_password','sa'
go

How to Disable Chkdsk

Chkdsk(Chkdsk.exe) is a command-line tool that checks volumes for problems. For Linux, Chkdsk is called FSCK.

To disable automatic disk checking at Windows startup through registry,

(1) open regisry interface by “regedit” on runas

(2) go to the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

(3) In the right hand panel, double click BootExecute.

The default value of the key is autocheck autochk *

* means every drive is checked for consistency. Just add /K:C at the end before *. /K switch will disable autocheck on C: drive at Windows startup. So the final value should look like this:

autocheck autochk /k:C *

(4) If you want to add more drives, the key should look like this: (disabling C and D drives)

autocheck autochk /k:C /k:D *