author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Wed, 20 Feb 2013 09:48:07 +0200 | |
changeset 1468 | d3fc6b0b884e |
parent 1334 | 9bf0d5a1f0cf |
child 1500 | fc0212fe5080 |
permissions | -rw-r--r-- |
940 | 1 |
.. -*- coding: utf-8; -*- |
1334
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1203
diff
changeset
|
2 |
.. include:: HEADER.rst |
940 | 3 |
|
4 |
============= |
|
5 |
Windows OS. |
|
6 |
============= |
|
7 |
.. contents:: |
|
8 |
||
9 |
Determining windows version. |
|
10 |
============================ |
|
11 |
||
12 |
Run winver.exe: <Win> + R winver <RET>. |
|
13 |
||
14 |
Or type: <Win> + <Break>. |
|
15 |
||
16 |
Under cmd.exe use built-in command ver. |
|
17 |
||
18 |
For Win 2000 and upper check registry key:: |
|
19 |
||
20 |
cmd> reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentVersion |
|
21 |
||
22 |
To check 32/64-bit OS use PROCESSOR_ARCHITECTURE env var (it has such values: |
|
23 |
x86, AMD64, IA64). |
|
24 |
||
1160
1e36e3b98d35
Full info about Windows edition available from this .vbs
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1116
diff
changeset
|
25 |
Full info about Windows edition available from this .vbs:: |
1e36e3b98d35
Full info about Windows edition available from this .vbs
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1116
diff
changeset
|
26 |
|
1e36e3b98d35
Full info about Windows edition available from this .vbs
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1116
diff
changeset
|
27 |
cmd> slmgr -dli |
1e36e3b98d35
Full info about Windows edition available from this .vbs
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1116
diff
changeset
|
28 |
|
940 | 29 |
Windows update. |
30 |
=============== |
|
31 |
||
32 |
To find updates and drivers visit (подлинность Windows not checked): |
|
33 |
||
34 |
http://catalog.update.microsoft.com/ |
|
35 |
||
36 |
You can search driver by keywords from Device Manager like:: |
|
37 |
||
38 |
VEN_10DE DEV_0247 |
|
39 |
VID_22B8 PID_2A62 |
|
40 |
||
41 |
Also you can find updates on: |
|
42 |
||
43 |
http://www.microsoft.com/downloads/ru-ru/default.aspx |
|
44 |
||
1163
a2cb3ae7117d
Updates that reset pirate copy of Windows
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1162
diff
changeset
|
45 |
Updates that reset pirate copy of Windows: КВ971033. |
a2cb3ae7117d
Updates that reset pirate copy of Windows
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1162
diff
changeset
|
46 |
|
940 | 47 |
Check system files integrity. |
48 |
============================= |
|
49 |
:: |
|
50 |
||
51 |
cmd> sfc /Scannow |
|
52 |
||
53 |
To complete repair you may need original installation CD (you can mount it |
|
54 |
from .iso image for example with DemonTools). |
|
55 |
||
56 |
Works for Windows 2000, Windows XP, Windows 2003. |
|
57 |
||
58 |
See |
|
59 |
||
60 |
http://support.microsoft.com/kb/222471/ |
|
61 |
http://support.microsoft.com/kb/310747/ru |
|
62 |
||
63 |
Repair boot. |
|
64 |
============ |
|
65 |
||
66 |
If you only damage boot sector of master or system partition boot from Windows |
|
67 |
XP installation CD, enter to recovery console and run: |
|
68 |
||
69 |
cmd> fixboot |
|
70 |
cmd> fixmbr |
|
71 |
||
72 |
See |
|
73 |
||
74 |
http://support.microsoft.com/kb/307654/ru |
|
75 |
||
76 |
Automatically connect to shared resource. |
|
77 |
========================================= |
|
78 |
||
79 |
Add to autorun such .bat file: |
|
80 |
||
81 |
net use x: \\server\share /user:username password |
|
82 |
||
83 |
See |
|
84 |
||
85 |
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx |
|
86 |
||
1161
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
87 |
Activate Windows. |
940 | 88 |
================= |
89 |
||
1161
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
90 |
Activate Windows from command line:: |
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
91 |
|
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
92 |
cmd> slmgr -ipk YGR45-THIS9-WONT5–0WORK-D7667 |
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
93 |
|
1162
f5c42c3804d6
Reset the evaluation period/licensing status and activation state of the
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1161
diff
changeset
|
94 |
Reset the evaluation period/licensing status and activation state of the |
f5c42c3804d6
Reset the evaluation period/licensing status and activation state of the
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1161
diff
changeset
|
95 |
machine:: |
f5c42c3804d6
Reset the evaluation period/licensing status and activation state of the
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1161
diff
changeset
|
96 |
|
f5c42c3804d6
Reset the evaluation period/licensing status and activation state of the
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1161
diff
changeset
|
97 |
cmd> slmgr -rearm |
f5c42c3804d6
Reset the evaluation period/licensing status and activation state of the
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1161
diff
changeset
|
98 |
|
1161
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
99 |
See: |
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
100 |
|
940 | 101 |
http://www.microsoft.com/genuine/selfhelp/XPPkuinst.aspx?sGuid=bab9e103-6365-44dd-9337-93f0cd9dd4b7&displaylang=en |
102 |
Windows Product Key Update Tool Instructions |
|
103 |
||
104 |
Activate Windows XP. |
|
105 |
-------------------- |
|
106 |
||
107 |
Replace %WINDIR%/system32/winlogon.exe with valid in Safe Mode and run Windows Product Key Update |
|
108 |
Tool. |
|
109 |
||
110 |
Windows images. |
|
111 |
=============== |
|
112 |
||
113 |
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2fcde6ce-b5fb-4488-8c50-fe22559d164e |
|
114 |
Windows XP Service Pack 3 - ISO-9660 CD Image File |
|
115 |
||
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
116 |
Access to Samba from Vista/7. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
117 |
============================= |
940 | 118 |
|
119 |
By default, you cannot authenticate and share files to and from Mac OS X or |
|
120 |
Linux Samba due to a well known authentication method turned off by default. |
|
121 |
To enable this, |
|
122 |
||
123 |
Only for Windows Vista Ultimate/Business/Enterprise Editions. |
|
124 |
------------------------------------------------------------- |
|
125 |
||
126 |
Goto Start->Run and open gpedit.msc or secpol.msc |
|
127 |
||
128 |
Select Continue on the User Account Control prompt. This will launch the Group |
|
129 |
Policy Object Editor for the Local Computer Policy. |
|
130 |
||
131 |
In the Group Policy Object Editor, expand: |
|
132 |
||
133 |
-> Computer Configuration |
|
134 |
-> Windows Settings |
|
135 |
-> Security Settings |
|
136 |
-> Local Policies |
|
137 |
-> Security Options |
|
138 |
||
139 |
Open the "Network security: LAN Manager authentication level" policy and |
|
140 |
change the Security Setting to: |
|
141 |
||
142 |
Send LM & NTLM - use NTLMv2 session security if negotiated |
|
143 |
||
144 |
Windows Vista Home Edition. |
|
145 |
--------------------------- |
|
146 |
||
147 |
Since Windows Vista Home Edition does not feature the Group Policy Editor, you |
|
148 |
may do the following to enable this feature: |
|
149 |
||
150 |
Goto Start->Run-> and type regedit. |
|
151 |
||
152 |
Select Continue on the User Account Control prompt. |
|
153 |
||
154 |
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa |
|
155 |
||
156 |
Create the following DWORD value (if it doesn't exist): LmCompatibilityLevel |
|
157 |
||
158 |
And set its value to: 1 |
|
159 |
||
160 |
Map dir to disk. |
|
161 |
================ |
|
162 |
||
163 |
To create:: |
|
164 |
||
165 |
cmd> subst [to-disk: [from-disk:]path] |
|
166 |
||
167 |
To remove:: |
|
168 |
||
169 |
cmd> subst disk: /d |
|
170 |
||
171 |
Standard scripts. |
|
172 |
================= |
|
173 |
||
174 |
compmgmt.msc - Computer management |
|
175 |
devmgmt.msc - Device manager |
|
176 |
diskmgmt.msc - Disk management |
|
177 |
dfrg.msc - Disk defrag |
|
178 |
eventvwr.msc - Event viewer |
|
179 |
fsmgmt.msc - Shared folders |
|
180 |
gpedit.msc - Group policies |
|
181 |
lusrmgr.msc - Local users and groups |
|
182 |
perfmon.msc - Performance monitor |
|
183 |
rsop.msc - Resultant set of policies |
|
184 |
secpol.msc - Local security settings |
|
185 |
services.msc - Various Services |
|
186 |
msconfig - System Configuration Utility |
|
187 |
regedit - Registry Editor |
|
188 |
msinfo32 - System Information |
|
189 |
sysedit - System Configuration Editor |
|
190 |
win.ini - windows loading information(also system.ini) |
|
191 |
winver - Shows current version of windows |
|
192 |
mailto: - Opens default email client |
|
193 |
command - Opens command prompt |
|
194 |
||
195 |
appwiz.cpl - Add & Remove Programs |
|
196 |
timedate.cpl - Date/Time Properties |
|
197 |
desk.cpl - Display Properties |
|
198 |
inetcpl.cpl - Internet Options |
|
199 |
mmsys.cpl - Sound Settings |
|
200 |
sysdm.cpl - System Properties |
|
201 |
password.cpl - Password Options |
|
202 |
main.cpl - Mouse and Keyboard Options |
|
203 |
control fonts - Fonts Folder |
|
204 |
control printers Printers Folder |
|
205 |
||
997 | 206 |
'.cpl' scripts can be run from command line as: |
996
bc510bb02ba6
.msc and .cpl run from command line.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
995
diff
changeset
|
207 |
|
bc510bb02ba6
.msc and .cpl run from command line.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
995
diff
changeset
|
208 |
cmd> Rundll32 Shell32.dll,Control_RunDLL |
bc510bb02ba6
.msc and .cpl run from command line.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
995
diff
changeset
|
209 |
cmd> Rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,0 |
bc510bb02ba6
.msc and .cpl run from command line.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
995
diff
changeset
|
210 |
|
940 | 211 |
Path. |
212 |
===== |
|
213 |
||
214 |
Max path length. |
|
215 |
---------------- |
|
216 |
||
217 |
260 chars. Use MAX_PATH macros from 'windows.h'. |
|
218 |
||
219 |
Allowed characters. |
|
220 |
------------------- |
|
221 |
||
222 |
Not allowed: |
|
223 |
* characters from 0 to 31 |
|
224 |
* < (less than) |
|
225 |
* > (greater than) |
|
226 |
* : (colon) |
|
227 |
* " (double quote) |
|
228 |
* / (forward slash) |
|
229 |
* \ (backslash) |
|
230 |
* | (vertical bar or pipe) |
|
231 |
* ? (question mark) |
|
232 |
* * (asterisk) |
|
233 |
||
234 |
http://msdn.microsoft.com/en-us/library/aa365247.aspx |
|
235 |
Naming Files, Paths, and Namespaces |
|
236 |
||
237 |
Memory. |
|
238 |
======= |
|
239 |
||
240 |
http://msdn.microsoft.com/en-us/library/ff542275%28v=VS.85%29.aspx |
|
241 |
Boot Parameters to Configure DEP and PAE |
|
242 |
||
243 |
PAE. |
|
244 |
---- |
|
245 |
||
246 |
All 32-bit Windows XP support only 4 GiB RAM. To enable PAE (Physical Address |
|
247 |
Extension) edit 'c:\boot.ini', add option '/pae': |
|
248 |
||
249 |
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="MS Windows XP Prof" /fastdetect /pae |
|
250 |
||
251 |
http://msdn.microsoft.com/en-us/library/ff557168%28v=VS.85%29.aspx |
|
252 |
/pae option |
|
253 |
http://www.microsoft.com/whdc/system/platform/server/pae/paedrv.mspx |
|
254 |
PAE support |
|
255 |
||
256 |
NX. |
|
257 |
--- |
|
258 |
||
259 |
NX (no execute) in Windows realised in Data Execution Prevention (DEP) |
|
260 |
technology. |
|
261 |
||
262 |
On 64-bit processes, DEP is enabled by default and cannot be disabled. For |
|
263 |
32-bit Windows DEP is supported in Windows Server 2003 with SP1, Windows XP |
|
264 |
with SP2, Windows Vista, and later versions of Windows. |
|
265 |
||
266 |
To enable NX on 32-bit Windows edit 'c:\boot.ini', add option |
|
267 |
'/noexecute=...' (alwayson/optout/optin/alwaysoff):: |
|
268 |
||
269 |
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="MS Windows XP Prof" /fastdetect /noexecute=alwayson |
|
270 |
||
271 |
To see current DEP status run:: |
|
272 |
||
273 |
cmd> wmic OS Get DataExecutionPrevention_Available |
|
274 |
cmd> wmic OS Get DataExecutionPrevention_SupportPolicy |
|
275 |
cmd> wmic OS Get DataExecutionPrevention_Drivers |
|
276 |
||
277 |
http://msdn.microsoft.com/en-us/library/ff557134%28VS.85%29.aspx |
|
278 |
/noexecute parameter |
|
279 |
http://support.microsoft.com/kb/912923 |
|
280 |
How to determine that hardware DEP is available and configured on your computer |
|
281 |
||
1116
140ed8e4da7f
Windows XP Service Pack 3 - ISO-9660 CD Image File
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1082
diff
changeset
|
282 |
Windows ISO images. |
140ed8e4da7f
Windows XP Service Pack 3 - ISO-9660 CD Image File
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1082
diff
changeset
|
283 |
=================== |
140ed8e4da7f
Windows XP Service Pack 3 - ISO-9660 CD Image File
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1082
diff
changeset
|
284 |
|
140ed8e4da7f
Windows XP Service Pack 3 - ISO-9660 CD Image File
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1082
diff
changeset
|
285 |
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=25129 |
140ed8e4da7f
Windows XP Service Pack 3 - ISO-9660 CD Image File
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1082
diff
changeset
|
286 |
Windows XP Service Pack 3 - ISO-9660 CD Image File |
140ed8e4da7f
Windows XP Service Pack 3 - ISO-9660 CD Image File
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1082
diff
changeset
|
287 |
|
940 | 288 |
Life cycle. |
289 |
=========== |
|
290 |
||
291 |
http://www.microsoft.com/windows/support/endofsupport.mspx |
|
292 |
End of support for Windows 98, Windows Me, and Windows XP Service Pack 1 |
|
293 |
http://www.microsoft.com/windows/lifecycle/servicepacks.mspx |
|
294 |
Windows Service Pack Road Map |
|
295 |
http://www.microsoft.com/windows/lifecycle/default.mspx |
|
296 |
Windows Life-Cycle Policy |
|
297 |
http://support.microsoft.com/gp/lifeselect |
|
298 |
Life-Cycle Policy by product |
|
299 |
||
300 |
NTFS junction points. |
|
301 |
===================== |
|
302 |
||
303 |
To craete use 'junction.exe' from Mark Russinovich or 'linkd.exe' from |
|
304 |
Microsoft Windows 2000 Resource Kit. |
|
305 |
||
306 |
'junction.exe' included with Sysinternals suite. |
|
307 |
||
308 |
cmd> md c:\Program-Files |
|
309 |
cmd> junction c:\Program-Files "c:\Program Files" |
|
310 |
||
311 |
http://technet.microsoft.com/en-gb/sysinternals/bb896768.aspx |
|
312 |
Junction v1.05, Published: July 24, 2007 |
|
313 |
http://support.microsoft.com/?kbid=205524 |
|
314 |
How to create and manipulate NTFS junction points |
|
315 |
http://en.wikipedia.org/wiki/NTFS_junction_point |
|
951 | 316 |
NTFS junction point |
940 | 317 |
|
318 |
Microsoft Windows 2000 Resource Kit. |
|
319 |
==================================== |
|
320 |
||
321 |
http://support.microsoft.com/kb/927229 |
|
322 |
Windows 2000 Resource Kit Tools for administrative tasks |
|
323 |
separate tools downloads |
|
324 |
||
325 |
Microsoft security tools. |
|
326 |
========================= |
|
327 |
||
328 |
http://www.microsoft.com/downloads/details.aspx?FamilyID=CD057D9D-86B9-4E35-9733-7ACB0B2A3CA1&displayLang=en |
|
329 |
||
330 |
http://www.microsoft.com/downloads/details.aspx?FamilyID=B1E76BBE-71DF-41E8-8B52-C871D012BA78&displayLang=en |
|
331 |
Microsoft Baseline Security Analyzer 2.1.1 (for IT |
|
332 |
Professionals) |
|
333 |
||
334 |
http://www.microsoft.com/downloads/en/confirmation.aspx?familyId=4a2346ac-b772-4d40-a750-9046542f343d&displayLang=en |
|
335 |
Enhanced Mitigation Evaluation Toolkit |
|
336 |
||
337 |
http://blogs.technet.com/b/srd/archive/2009/10/27/announcing-the-release-of-the-enhanced-mitigation-evaluation-toolkit.aspx |
|
338 |
Announcing the release of the Enhanced Mitigation Evaluation |
|
339 |
Toolkit (old version 1.0) |
|
340 |
||
341 |
http://blogs.technet.com/b/srd/archive/2010/07/28/announcing-the-upcoming-release-of-emet-v2.aspx |
|
342 |
||
343 |
Enable/Disabling UAC. |
|
344 |
===================== |
|
345 |
||
346 |
To disable UAC on the computer, you must be able to log on with or provide the |
|
347 |
credentials of a member of the local Administrators group. |
|
348 |
||
349 |
Starting with Windows 7, UAC is disabled by following these steps: |
|
350 |
||
351 |
1. On the Start menu, type "UAC" and then click Change User Account settings. |
|
352 |
2. Move the slide bar to the bottom (Never Notify) and then click OK. |
|
353 |
||
354 |
On Windows Vista and Windows Server 2008, UAC is disabled by following these steps: |
|
355 |
||
356 |
1. Start Control Panel and double-click User Accounts. |
|
357 |
2. In the User Accounts tasks window, click Turn User Account Control on or off. |
|
358 |
3. Clear the Use User Account Control (UAC) to help protect your computer check box, and then click OK. |
|
359 |
||
360 |
http://windows.microsoft.com/en-US/windows-vista/Turn-User-Account-Control-on-or-off |
|
361 |
Turn User Account Control on or off |
|
362 |
||
363 |
Fix file association. |
|
364 |
===================== |
|
365 |
||
366 |
Check current association:: |
|
367 |
||
368 |
$ cmd /c assoc | grep -i "^\.mp3" |
|
369 |
.mp3=mp3file |
|
370 |
||
371 |
Get list of all available commands:: |
|
372 |
||
373 |
$ cmd /c ftype |
|
374 |
... |
|
375 |
AIMP.mp3="C:\Program Files\AIMP2\AIMP2.exe" "%1" |
|
376 |
... |
|
377 |
||
378 |
and select one on them:: |
|
379 |
||
380 |
$ cmd /c assoc .mp3=AIMP.mp3 |
|
381 |
||
382 |
Clean up Windows system directories. |
|
383 |
==================================== |
|
384 |
||
385 |
You can safely remove SP restore files:: |
|
386 |
||
387 |
%Systemroot%\$NtServicePackUninstall$ |
|
388 |
||
389 |
Also check such directories:: |
|
390 |
||
391 |
%SYSTEMDRIVE%\Program Files\Common Files |
|
392 |
%SYSTEMDRIVE%\Documents and Settings\USER\Application Data |
|
393 |
%SYSTEMDRIVE%\Documents and Settings\USER\Local Settings |
|
394 |
||
395 |
http://support.microsoft.com/kb/290402 |
|
396 |
HOW TO: Remove the Service Pack Restore Files and Folders in Windows |
|
397 |
||
398 |
Windows services from command line. |
|
399 |
=================================== |
|
400 |
||
401 |
List of all running services. |
|
402 |
----------------------------- |
|
403 |
:: |
|
404 |
||
405 |
cmd> net start |
|
406 |
||
407 |
Start service. |
|
408 |
-------------- |
|
409 |
:: |
|
410 |
||
411 |
cmd> net start NAME |
|
412 |
||
413 |
Stop service. |
|
414 |
------------- |
|
415 |
:: |
|
416 |
||
417 |
cmd> net stop NAME |
|
418 |
||
419 |
Schedule Tasks in Windows. |
|
420 |
========================== |
|
421 |
||
422 |
List registered of task. |
|
423 |
------------------------ |
|
424 |
:: |
|
425 |
||
426 |
$ schtasks /query |
|
427 |
||
428 |
Create task. |
|
429 |
------------ |
|
430 |
:: |
|
431 |
||
432 |
$ schtasks /create /tn %TASK_NAME% /ru %ROOT% /sc daily /st 23:00:00 /tr "rundll32.exe user32.dll,LockWorkStation" |
|
433 |
||
434 |
/sc can be one of:: |
|
435 |
||
436 |
MINUTE HOURLY DAILY WEEKLY MONTHLY ONCE ONSTART ONLOGON ONIDLE |
|
437 |
||
438 |
Delete task. |
|
439 |
------------ |
|
440 |
:: |
|
441 |
||
442 |
schtasks /delete /tn %TASK_NAME% /f |
|
443 |
||
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
444 |
Change NTFS permission. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
445 |
======================= |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
446 |
|
1071
d06823550de7
takeown /r /f %file%
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1043
diff
changeset
|
447 |
http://support.microsoft.com/kb/919240 |
d06823550de7
takeown /r /f %file%
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1043
diff
changeset
|
448 |
The Icacls.exe utility is available for Windows Server 2003 with |
d06823550de7
takeown /r /f %file%
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1043
diff
changeset
|
449 |
Service Pack 2 |
d06823550de7
takeown /r /f %file%
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1043
diff
changeset
|
450 |
|
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
451 |
Change NTFS permission with 'icacls'. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
452 |
------------------------------------- |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
453 |
|
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
454 |
'icacls' allow option: |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
455 |
|
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
456 |
* /c - Continues the operation despite any file errors. Error messages will |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
457 |
still be displayed. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
458 |
* /t - Performs the operation on all specified files in the current directory |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
459 |
and its subdirectories. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
460 |
* /l - Performs the operation on a symbolic link versus its destination. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
461 |
* /q - Suppresses success messages. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
462 |
|
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
463 |
Recursively change the owner of all matching files to the specified user:: |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
464 |
|
1043 | 465 |
cmd> icacls %dir% /setowner %user% /t /c |
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
466 |
|
1071
d06823550de7
takeown /r /f %file%
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1043
diff
changeset
|
467 |
or simply:: |
d06823550de7
takeown /r /f %file%
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1043
diff
changeset
|
468 |
|
d06823550de7
takeown /r /f %file%
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1043
diff
changeset
|
469 |
cmd> takeown /r /f %file% |
d06823550de7
takeown /r /f %file%
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1043
diff
changeset
|
470 |
|
993
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
471 |
Recursively grand full access for everyone:: |
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
472 |
|
995 | 473 |
cmd> icacls %dir% /t /grant:r %user%:(f) |
994 | 474 |
cmd> icacls %dir% /t /grant:r *S-1-1-0:(f) |
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
475 |
|
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
476 |
Well-known security identifiers (SID). |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
477 |
====================================== |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
478 |
|
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
479 |
S-1-0-0 |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
480 |
Null SID. A group with no members. This is often used when a SID |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
481 |
value is not known. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
482 |
S-1-1-0 |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
483 |
World/Everyone. A group that includes all users. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
484 |
S-1-3-0 |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
485 |
Creator Owner ID. A security identifier to be replaced by the |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
486 |
security identifier of the user who created a new object. This |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
487 |
SID is used in inheritable ACEs. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
488 |
S-1-3-1 |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
489 |
Creator Group ID. A security identifier to be replaced by the |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
490 |
primary-group SID of the user who created a new object. Use this |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
491 |
SID in inheritable ACEs. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
492 |
S-1-5-6 |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
493 |
Service. A group that includes all security principals that have |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
494 |
logged on as a service. Membership is controlled by the |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
495 |
operating system. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
496 |
S-1-5-7 |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
497 |
Anonymous. A group that includes all users that have logged on |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
498 |
anonymously. Membership is controlled by the operating system. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
499 |
S-1-5-32-544 |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
500 |
Administrators group. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
501 |
S-1-5-32-545 |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
502 |
Users group. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
503 |
S-1-5-32-546 |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
504 |
Guests. By default, the only member is the Guest account. The |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
505 |
Guests group allows occasional or one-time users to log on with |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
506 |
limited privileges to a computer's built-in Guest account. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
507 |
S-1-5-32-547 |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
508 |
Power Users. Power users can create local users and groups; |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
509 |
modify and delete accounts that they have created; and remove |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
510 |
users from the Power Users, Users, and Guests groups. Power |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
511 |
users also can install programs; create, manage, and delete |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
512 |
local printers; and create and delete file shares. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
513 |
|
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
514 |
http://msdn.microsoft.com/en-us/library/aa379649.aspx |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
515 |
Well-known SIDs |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
516 |
http://support.microsoft.com/kb/243330 |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
517 |
Хорошо известные идентификаторы безопасности в операционных |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
518 |
системах Windows |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
519 |
http://en.wikipedia.org/wiki/Security_Identifier |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
520 |
Security Identifier |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
521 |
|
993
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
522 |
Converting SID to names and inside out. |
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
523 |
======================================= |
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
524 |
|
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
525 |
Use 'PsGetSid' utility from Sysinternals:: |
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
526 |
|
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
527 |
cmd> PsGetSid S-1-3-0 |
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
528 |
cmd> PsGetSid "\NULL SID" |
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
529 |
|
999
dc74e11a1686
Gathering info about Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
997
diff
changeset
|
530 |
Gathering info about Windows. |
dc74e11a1686
Gathering info about Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
997
diff
changeset
|
531 |
============================= |
dc74e11a1686
Gathering info about Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
997
diff
changeset
|
532 |
:: |
dc74e11a1686
Gathering info about Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
997
diff
changeset
|
533 |
|
dc74e11a1686
Gathering info about Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
997
diff
changeset
|
534 |
cmd> systeminfo |
dc74e11a1686
Gathering info about Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
997
diff
changeset
|
535 |
|
1203
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
536 |
From ``Win+R``:: |
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
537 |
|
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
538 |
helpctr.exe -mode hcp://system/sysinfo/msinfo.xml |
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
539 |
|
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
540 |
or by:: |
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
541 |
|
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
542 |
cmd> %SystemRoot%\pchealth\helpctr\binaries\helpctr.exe -mode hcp://system/sysinfo/msinfo.xml |
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
543 |
|
1082
ffb3f274b8fe
Automatically logon to Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1071
diff
changeset
|
544 |
Automatically logon to Windows. |
ffb3f274b8fe
Automatically logon to Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1071
diff
changeset
|
545 |
=============================== |
ffb3f274b8fe
Automatically logon to Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1071
diff
changeset
|
546 |
:: |
ffb3f274b8fe
Automatically logon to Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1071
diff
changeset
|
547 |
|
ffb3f274b8fe
Automatically logon to Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1071
diff
changeset
|
548 |
cmd# control userpasswords2 |
ffb3f274b8fe
Automatically logon to Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1071
diff
changeset
|
549 |
|
1147 | 550 |
Format drive. |
551 |
============= |
|
1082
ffb3f274b8fe
Automatically logon to Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1071
diff
changeset
|
552 |
|
1147 | 553 |
Replace with own disk letter:: |
554 |
||
555 |
cmd# format E: /q /fs:ntfs |
|
556 |
||
1148 | 557 |
See: |
558 |
||
559 |
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/format.mspx |
|
560 |
Formats the disk in the specified volume to accept Windows |
|
561 |
files. |
|
562 |