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