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