| 119 |
ghuddy |
1 |
========================================================================
|
|
|
2 |
|
|
|
3 |
Windows Scripting Host
|
|
|
4 |
Setup For IIS
|
|
|
5 |
|
|
|
6 |
========================================================================
|
|
|
7 |
|
|
|
8 |
#1 PROBLEM: Loading your settings failed.
|
|
|
9 |
This problem will appear on the first run of cscript.exe from IIS asp using Wscript.Shell object.
|
|
|
10 |
|
|
|
11 |
Basically, cscript.exe needs to create some registry keys and it does not have permissions.
|
|
|
12 |
To fix this problem use regedt32 to allow WRITE access to HKEY_USERS\.Default\Software\Microsoft
|
|
|
13 |
If the problem persists, use regmon from the web to check where does problem occurs.
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
------------------------------------------------------------------------
|
|
|
17 |
#2 PROBLEM: SSH key
|
|
|
18 |
To aquire a key all you need to do is run the plink command the first time and accept the key.
|
|
|
19 |
e.g. plink -ssh -pw <password> root@<hostname> <command e.g. ls>
|
|
|
20 |
This will generate a key in [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys]
|
|
|
21 |
|
|
|
22 |
Copy it to default user. See example below.
|
|
|
23 |
[HKEY_USERS\.DEFAULT\Software\SimonTatham\PuTTY\SshHostKeys]
|
|
|
24 |
"rsa@22:newhostname"="newkeyhere"
|
|
|
25 |
|
|
|
26 |
------------------------------------------------------------------------
|