author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Wed, 17 Mar 2010 15:24:36 +0200 | |
changeset 347 | 8ae88e9dd05d |
parent 324 | 5dfdb1a97f34 |
child 360 | ddf042e3a518 |
permissions | -rw-r--r-- |
33 | 1 |
-*- outline -*- |
2 |
||
315
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
3 |
* Determining windows version. |
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
4 |
|
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
5 |
Run winver.exe: <Win> + R winver <RET>. |
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
6 |
|
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
7 |
Or type: <Win> + <Break>. |
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
8 |
|
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
9 |
Under cmd.exe use built-in command ver. |
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
10 |
|
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
11 |
For Win 2000 and upper check registry key: |
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
12 |
|
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
13 |
cmd> reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentVersion |
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
14 |
|
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
15 |
To check 32/64-bit OS use PROCESSOR_ARCHITECTURE env var (it has such values: |
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
16 |
x86, AMD64, IA64). |
dd4cb03b6b46
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
308
diff
changeset
|
17 |
|
178 | 18 |
* XP. |
19 |
||
290
8bab7e733eb0
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
178
diff
changeset
|
20 |
** Check system files integrity. |
178 | 21 |
|
22 |
cmd> sfc /Scannow |
|
23 |
||
290
8bab7e733eb0
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
178
diff
changeset
|
24 |
To complete repair you may need original installation CD (you can mount it |
8bab7e733eb0
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
178
diff
changeset
|
25 |
from .iso image for example with DemonTools). |
8bab7e733eb0
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
178
diff
changeset
|
26 |
|
8bab7e733eb0
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
178
diff
changeset
|
27 |
Works for Windows 2000, Windows XP, Windows 2003. |
178 | 28 |
|
29 |
See |
|
30 |
||
31 |
http://support.microsoft.com/kb/222471/ |
|
32 |
http://support.microsoft.com/kb/310747/ru |
|
33 |
||
291 | 34 |
** Repair boot. |
35 |
||
36 |
If you only damage boot sector of master or system partition boot from Windows |
|
37 |
XP installation CD, enter to recovery console and run: |
|
38 |
||
39 |
cmd> fixboot |
|
40 |
cmd> fixmbr |
|
41 |
||
42 |
See |
|
43 |
||
44 |
http://support.microsoft.com/kb/307654/ru |
|
45 |
||
292
45eb835dde51
Automatically connect to shared resource.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
291
diff
changeset
|
46 |
** Automatically connect to shared resource. |
45eb835dde51
Automatically connect to shared resource.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
291
diff
changeset
|
47 |
|
45eb835dde51
Automatically connect to shared resource.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
291
diff
changeset
|
48 |
Add to autorun such .bat file: |
45eb835dde51
Automatically connect to shared resource.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
291
diff
changeset
|
49 |
|
45eb835dde51
Automatically connect to shared resource.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
291
diff
changeset
|
50 |
net use x: \\server\share /user:username password |
45eb835dde51
Automatically connect to shared resource.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
291
diff
changeset
|
51 |
|
45eb835dde51
Automatically connect to shared resource.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
291
diff
changeset
|
52 |
See |
45eb835dde51
Automatically connect to shared resource.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
291
diff
changeset
|
53 |
|
45eb835dde51
Automatically connect to shared resource.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
291
diff
changeset
|
54 |
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx |
45eb835dde51
Automatically connect to shared resource.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
291
diff
changeset
|
55 |
|
316 | 56 |
** Activate windows. |
57 |
||
58 |
http://www.microsoft.com/genuine/selfhelp/XPPkuinst.aspx?sGuid=bab9e103-6365-44dd-9337-93f0cd9dd4b7&displaylang=en |
|
59 |
Windows Product Key Update Tool Instructions |
|
60 |
||
178 | 61 |
* Vista |
62 |
||
63 |
** Samba. |
|
33 | 64 |
|
65 |
By default, you cannot authenticate and share files to and from Mac OS X or |
|
66 |
Linux Samba due to a well known authentication method turned off by default. |
|
67 |
To enable this, |
|
68 |
||
178 | 69 |
*** Only for Windows Vista Ultimate/Business/Enterprise Editions. |
33 | 70 |
|
178 | 71 |
Goto Start->Run and open gpedit.msc or secpol.msc |
33 | 72 |
|
73 |
Select Continue on the User Account Control prompt. This will launch the Group |
|
74 |
Policy Object Editor for the Local Computer Policy. |
|
75 |
||
76 |
In the Group Policy Object Editor, expand: |
|
77 |
||
78 |
-> Computer Configuration |
|
79 |
-> Windows Settings |
|
80 |
-> Security Settings |
|
81 |
-> Local Policies |
|
82 |
-> Security Options |
|
83 |
||
178 | 84 |
Open the "Network security: LAN Manager authentication level" policy and |
34 | 85 |
change the Security Setting to: |
33 | 86 |
|
87 |
Send LM & NTLM - use NTLMv2 session security if negotiated |
|
88 |
||
178 | 89 |
*** Windows Vista Home Edition. |
33 | 90 |
|
91 |
Since Windows Vista Home Edition does not feature the Group Policy Editor, you |
|
92 |
may do the following to enable this feature: |
|
93 |
||
178 | 94 |
Goto Start->Run-> and type regedit. |
33 | 95 |
|
96 |
Select Continue on the User Account Control prompt. |
|
97 |
||
98 |
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa |
|
99 |
||
178 | 100 |
Create the following DWORD value (if it doesn't exist): LmCompatibilityLevel |
33 | 101 |
|
102 |
And set its value to: 1 |
|
317
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
103 |
|
307 | 104 |
* Map dir to disk. |
105 |
||
308 | 106 |
To create: |
107 |
||
108 |
cmd> subst [to-disk: [from-disk:]path] |
|
109 |
||
110 |
To remove: |
|
111 |
||
112 |
cmd> subst disk: /d |
|
318 | 113 |
|
317
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
114 |
* CMD. |
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
115 |
|
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
116 |
** How run cmd on 64-bit OS. |
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
117 |
|
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
118 |
From 64-bit process: |
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
119 |
|
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
120 |
%windir%\System32\cmd.exe (for 64-bit) |
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
121 |
%windir%\SysWOW64\cmd.exe (for 32-bit) |
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
122 |
|
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
123 |
From 32-bit process: |
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
124 |
|
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
125 |
%windir%\System32\cmd.exe (for 32-bit) |
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
126 |
%windir%\Sysnative\cmd.exe (for 64-bit) |
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
127 |
|
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
128 |
http://msdn.microsoft.com/en-us/library/aa384187%28VS.85%29.aspx |
c9d11ccc0953
How run cmd on 64-bit OS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
316
diff
changeset
|
129 |
File System Redirector |
322 | 130 |
|
131 |
* Standard scripts. |
|
132 |
||
133 |
compmgmt.msc - Computer management |
|
134 |
devmgmt.msc - Device manager |
|
135 |
diskmgmt.msc - Disk management |
|
136 |
dfrg.msc - Disk defrag |
|
137 |
eventvwr.msc - Event viewer |
|
138 |
fsmgmt.msc - Shared folders |
|
139 |
gpedit.msc - Group policies |
|
140 |
lusrmgr.msc - Local users and groups |
|
141 |
perfmon.msc - Performance monitor |
|
142 |
rsop.msc - Resultant set of policies |
|
143 |
secpol.msc - Local security settings |
|
144 |
services.msc - Various Services |
|
145 |
msconfig - System Configuration Utility |
|
146 |
regedit - Registry Editor |
|
147 |
msinfo32 - System Information |
|
148 |
sysedit - System Configuration Editor |
|
149 |
win.ini - windows loading information(also system.ini) |
|
150 |
winver - Shows current version of windows |
|
151 |
mailto: - Opens default email client |
|
152 |
command - Opens command prompt |
|
153 |
||
154 |
appwiz.cpl - Add & Remove Programs |
|
155 |
timedate.cpl - Date/Time Properties |
|
156 |
desk.cpl - Display Properties |
|
157 |
inetcpl.cpl - Internet Options |
|
158 |
mmsys.cpl - Sound Settings |
|
159 |
sysdm.cpl - System Properties |
|
160 |
password.cpl - Password Options |
|
161 |
main.cpl - Mouse and Keyboard Options |
|
162 |
control fonts - Fonts Folder |
|
163 |
control printers Printers Folder |