author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 09 Feb 2019 14:45:49 +0200 | |
changeset 2353 | 5d8b32fea523 |
parent 2310 | c3baf557ff0c |
child 2456 | b7e46ea06927 |
permissions | -rw-r--r-- |
940 | 1 |
.. -*- coding: utf-8; -*- |
2 |
||
3 |
============= |
|
4 |
Windows OS. |
|
5 |
============= |
|
6 |
.. contents:: |
|
1905
fba288d59662
Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1894
diff
changeset
|
7 |
:local: |
940 | 8 |
|
2155
4b9b0535b24d
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2154
diff
changeset
|
9 |
Determining windows version |
4b9b0535b24d
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2154
diff
changeset
|
10 |
=========================== |
4b9b0535b24d
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2154
diff
changeset
|
11 |
|
4b9b0535b24d
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2154
diff
changeset
|
12 |
To show GUI dialog with Windows build/version information type:: |
940 | 13 |
|
2155
4b9b0535b24d
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2154
diff
changeset
|
14 |
<Win+R> winver <Enter> |
4b9b0535b24d
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2154
diff
changeset
|
15 |
<Win+Break> |
940 | 16 |
|
2155
4b9b0535b24d
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2154
diff
changeset
|
17 |
or run:: |
940 | 18 |
|
2155
4b9b0535b24d
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2154
diff
changeset
|
19 |
cmd> winver |
4b9b0535b24d
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2154
diff
changeset
|
20 |
|
4b9b0535b24d
Determining windows version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2154
diff
changeset
|
21 |
``cmd`` has built-in command ``ver``. |
940 | 22 |
|
23 |
For Win 2000 and upper check registry key:: |
|
24 |
||
25 |
cmd> reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentVersion |
|
26 |
||
27 |
To check 32/64-bit OS use PROCESSOR_ARCHITECTURE env var (it has such values: |
|
28 |
x86, AMD64, IA64). |
|
29 |
||
1160
1e36e3b98d35
Full info about Windows edition available from this .vbs
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1116
diff
changeset
|
30 |
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
|
31 |
|
1e36e3b98d35
Full info about Windows edition available from this .vbs
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1116
diff
changeset
|
32 |
cmd> slmgr -dli |
1e36e3b98d35
Full info about Windows edition available from this .vbs
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1116
diff
changeset
|
33 |
|
1541 | 34 |
Windows history. |
35 |
================ |
|
36 |
||
2273
e68f69def33e
Windows 10 release information. Table with schedules.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
37 |
https://www.microsoft.com/en-us/itpro/windows-10/release-information |
e68f69def33e
Windows 10 release information. Table with schedules.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
38 |
Windows 10 release information. Table with schedules. |
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
39 |
http://windows.microsoft.com/en-us/windows/history |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
40 |
A history of Windows |
1541 | 41 |
|
2154
707a2132331e
List of installed updates with full information.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2151
diff
changeset
|
42 |
Windows update |
707a2132331e
List of installed updates with full information.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2151
diff
changeset
|
43 |
============== |
940 | 44 |
|
45 |
To find updates and drivers visit (подлинность Windows not checked): |
|
46 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
47 |
* http://catalog.update.microsoft.com/ |
940 | 48 |
|
49 |
You can search driver by keywords from Device Manager like:: |
|
50 |
||
51 |
VEN_10DE DEV_0247 |
|
52 |
VID_22B8 PID_2A62 |
|
53 |
||
1965
2ddf10980e8f
expand FILE.cab -F:* c:\tmp\dir
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
54 |
After obtaining ``.cab`` file for driver unpack files:: |
2ddf10980e8f
expand FILE.cab -F:* c:\tmp\dir
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
55 |
|
2ddf10980e8f
expand FILE.cab -F:* c:\tmp\dir
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
56 |
cmd> expand FILE.cab -F:* c:\tmp\dir |
2ddf10980e8f
expand FILE.cab -F:* c:\tmp\dir
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
57 |
|
2ddf10980e8f
expand FILE.cab -F:* c:\tmp\dir
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
58 |
and use that directory in "Update driver" dialog. |
2ddf10980e8f
expand FILE.cab -F:* c:\tmp\dir
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
59 |
|
940 | 60 |
Also you can find updates on: |
61 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
62 |
* http://www.microsoft.com/downloads/ru-ru/default.aspx |
940 | 63 |
|
1163
a2cb3ae7117d
Updates that reset pirate copy of Windows
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1162
diff
changeset
|
64 |
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
|
65 |
|
2154
707a2132331e
List of installed updates with full information.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2151
diff
changeset
|
66 |
List of installed updates with full information:: |
1500
fc0212fe5080
List of installed updates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
67 |
|
fc0212fe5080
List of installed updates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
68 |
cmd> wmic qfe |
2154
707a2132331e
List of installed updates with full information.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2151
diff
changeset
|
69 |
power# get-hotfix |
707a2132331e
List of installed updates with full information.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2151
diff
changeset
|
70 |
|
707a2132331e
List of installed updates with full information.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2151
diff
changeset
|
71 |
List only hotfix id:: |
707a2132331e
List of installed updates with full information.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2151
diff
changeset
|
72 |
|
707a2132331e
List of installed updates with full information.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2151
diff
changeset
|
73 |
cmd> wmic qfe get hotfixid |
707a2132331e
List of installed updates with full information.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2151
diff
changeset
|
74 |
power# get-hotfix -id KB...,KB... |
1500
fc0212fe5080
List of installed updates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
75 |
|
1965
2ddf10980e8f
expand FILE.cab -F:* c:\tmp\dir
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
76 |
http://catalog.update.microsoft.com/v7/site/faqgeneric.aspx |
2ddf10980e8f
expand FILE.cab -F:* c:\tmp\dir
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
77 |
Microsoft Update Catalog FAQ |
2ddf10980e8f
expand FILE.cab -F:* c:\tmp\dir
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
78 |
https://support.microsoft.com/en-us/kb/323166 |
2ddf10980e8f
expand FILE.cab -F:* c:\tmp\dir
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
79 |
How to download updates that include drivers and hotfixes from the Windows |
2ddf10980e8f
expand FILE.cab -F:* c:\tmp\dir
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
80 |
Update Catalog. |
2ddf10980e8f
expand FILE.cab -F:* c:\tmp\dir
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
81 |
|
2310
c3baf557ff0c
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2273
diff
changeset
|
82 |
Check system files integrity |
c3baf557ff0c
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2273
diff
changeset
|
83 |
============================ |
c3baf557ff0c
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2273
diff
changeset
|
84 |
|
c3baf557ff0c
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2273
diff
changeset
|
85 |
Run check with (utility is available starting from Windows 2000):: |
940 | 86 |
|
87 |
cmd> sfc /Scannow |
|
88 |
||
2310
c3baf557ff0c
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2273
diff
changeset
|
89 |
Look to ``c:/Windows/Logs/CBS/CBS.log`` for errors and warnings. |
c3baf557ff0c
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2273
diff
changeset
|
90 |
|
c3baf557ff0c
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2273
diff
changeset
|
91 |
To repair run:: |
940 | 92 |
|
2310
c3baf557ff0c
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2273
diff
changeset
|
93 |
dism /Online /Cleanup-image /Scanhealth |
c3baf557ff0c
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2273
diff
changeset
|
94 |
dism /Online /Cleanup-Image /RestoreHealth |
c3baf557ff0c
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2273
diff
changeset
|
95 |
|
c3baf557ff0c
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2273
diff
changeset
|
96 |
If Windows Update is broken you can provide path:: |
c3baf557ff0c
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2273
diff
changeset
|
97 |
|
c3baf557ff0c
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2273
diff
changeset
|
98 |
dism /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess |
940 | 99 |
|
1505
8f63432518d2
Check system files integrity.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1500
diff
changeset
|
100 |
See: |
940 | 101 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
102 |
* http://support.microsoft.com/kb/929833 |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
103 |
* http://support.microsoft.com/kb/222471 |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
104 |
* http://support.microsoft.com/kb/310747/ru |
940 | 105 |
|
106 |
Repair boot. |
|
107 |
============ |
|
108 |
||
109 |
If you only damage boot sector of master or system partition boot from Windows |
|
1827 | 110 |
XP installation CD, enter to recovery console and run:: |
940 | 111 |
|
112 |
cmd> fixboot |
|
113 |
cmd> fixmbr |
|
114 |
||
1827 | 115 |
See: |
940 | 116 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
117 |
* http://support.microsoft.com/kb/307654/ru |
940 | 118 |
|
119 |
Automatically connect to shared resource. |
|
120 |
========================================= |
|
121 |
||
1827 | 122 |
Add to autorun such .bat file:: |
940 | 123 |
|
124 |
net use x: \\server\share /user:username password |
|
125 |
||
1827 | 126 |
See: |
940 | 127 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
128 |
* http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx |
940 | 129 |
|
1161
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
130 |
Activate Windows. |
940 | 131 |
================= |
132 |
||
1161
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
133 |
Activate Windows from command line:: |
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
134 |
|
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
135 |
cmd> slmgr -ipk YGR45-THIS9-WONT5–0WORK-D7667 |
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
136 |
|
1162
f5c42c3804d6
Reset the evaluation period/licensing status and activation state of the
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1161
diff
changeset
|
137 |
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
|
138 |
machine:: |
f5c42c3804d6
Reset the evaluation period/licensing status and activation state of the
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1161
diff
changeset
|
139 |
|
f5c42c3804d6
Reset the evaluation period/licensing status and activation state of the
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1161
diff
changeset
|
140 |
cmd> slmgr -rearm |
f5c42c3804d6
Reset the evaluation period/licensing status and activation state of the
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1161
diff
changeset
|
141 |
|
1751 | 142 |
Check activation:: |
143 |
||
144 |
cmd> slmgr /xpr |
|
145 |
||
1161
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
146 |
See: |
4b6c690eef22
Activate Windows from command line
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1160
diff
changeset
|
147 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
148 |
http://www.microsoft.com/genuine/selfhelp/XPPkuinst.aspx?sGuid=bab9e103-6365-44dd-9337-93f0cd9dd4b7&displaylang=en |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
149 |
Windows Product Key Update Tool Instructions |
940 | 150 |
|
151 |
Activate Windows XP. |
|
152 |
-------------------- |
|
153 |
||
154 |
Replace %WINDIR%/system32/winlogon.exe with valid in Safe Mode and run Windows Product Key Update |
|
155 |
Tool. |
|
156 |
||
157 |
Windows images. |
|
158 |
=============== |
|
159 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
160 |
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2fcde6ce-b5fb-4488-8c50-fe22559d164e |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
161 |
Windows XP Service Pack 3 - ISO-9660 CD Image File |
940 | 162 |
|
1803 | 163 |
hosts file. |
164 |
=========== |
|
165 |
||
166 |
Edit ``%windir%/system32/Drivers/etc/hosts``. Under Windows 7/8/10 you need to |
|
167 |
run editor with "Run as administrator". |
|
168 |
||
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
169 |
Access to Samba from Vista/7. |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
170 |
============================= |
940 | 171 |
|
172 |
By default, you cannot authenticate and share files to and from Mac OS X or |
|
173 |
Linux Samba due to a well known authentication method turned off by default. |
|
174 |
To enable this, |
|
175 |
||
176 |
Only for Windows Vista Ultimate/Business/Enterprise Editions. |
|
177 |
------------------------------------------------------------- |
|
178 |
||
179 |
Goto Start->Run and open gpedit.msc or secpol.msc |
|
180 |
||
181 |
Select Continue on the User Account Control prompt. This will launch the Group |
|
182 |
Policy Object Editor for the Local Computer Policy. |
|
183 |
||
184 |
In the Group Policy Object Editor, expand: |
|
185 |
||
186 |
-> Computer Configuration |
|
187 |
-> Windows Settings |
|
188 |
-> Security Settings |
|
189 |
-> Local Policies |
|
190 |
-> Security Options |
|
191 |
||
192 |
Open the "Network security: LAN Manager authentication level" policy and |
|
193 |
change the Security Setting to: |
|
194 |
||
195 |
Send LM & NTLM - use NTLMv2 session security if negotiated |
|
196 |
||
197 |
Windows Vista Home Edition. |
|
198 |
--------------------------- |
|
199 |
||
200 |
Since Windows Vista Home Edition does not feature the Group Policy Editor, you |
|
201 |
may do the following to enable this feature: |
|
202 |
||
203 |
Goto Start->Run-> and type regedit. |
|
204 |
||
205 |
Select Continue on the User Account Control prompt. |
|
206 |
||
207 |
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa |
|
208 |
||
209 |
Create the following DWORD value (if it doesn't exist): LmCompatibilityLevel |
|
210 |
||
211 |
And set its value to: 1 |
|
212 |
||
213 |
Map dir to disk. |
|
214 |
================ |
|
215 |
||
216 |
To create:: |
|
217 |
||
218 |
cmd> subst [to-disk: [from-disk:]path] |
|
219 |
||
220 |
To remove:: |
|
221 |
||
222 |
cmd> subst disk: /d |
|
223 |
||
224 |
Standard scripts. |
|
225 |
================= |
|
226 |
||
2099
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
227 |
:``msconfig``: System Configuration Utility, you can disable services registered |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
228 |
at boot. |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
229 |
:``regedit``: Registry Editor. |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
230 |
:``services.msc``: Service management. |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
231 |
:``compmgmt.msc``: Computer management. |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
232 |
:``devmgmt.msc``: Device manager. |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
233 |
:``diskmgmt.msc``: Disk management. |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
234 |
:``msinfo32``: System Information. |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
235 |
:``perfmon.msc``: Performance monitor. |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
236 |
|
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
237 |
These scripts can be invoked via ``Win+R``:: |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
238 |
|
940 | 239 |
dfrg.msc - Disk defrag |
240 |
eventvwr.msc - Event viewer |
|
241 |
fsmgmt.msc - Shared folders |
|
242 |
gpedit.msc - Group policies |
|
243 |
lusrmgr.msc - Local users and groups |
|
244 |
secpol.msc - Local security settings |
|
245 |
win.ini - windows loading information(also system.ini) |
|
246 |
winver - Shows current version of windows |
|
247 |
command - Opens command prompt |
|
2099
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
248 |
control fonts - Fonts Folder |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
249 |
control printers - Printers Folder |
940 | 250 |
|
251 |
appwiz.cpl - Add & Remove Programs |
|
252 |
timedate.cpl - Date/Time Properties |
|
253 |
desk.cpl - Display Properties |
|
254 |
inetcpl.cpl - Internet Options |
|
255 |
mmsys.cpl - Sound Settings |
|
256 |
sysdm.cpl - System Properties |
|
257 |
password.cpl - Password Options |
|
258 |
main.cpl - Mouse and Keyboard Options |
|
259 |
||
2099
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
260 |
``.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
|
261 |
|
bc510bb02ba6
.msc and .cpl run from command line.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
995
diff
changeset
|
262 |
cmd> Rundll32 Shell32.dll,Control_RunDLL |
bc510bb02ba6
.msc and .cpl run from command line.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
995
diff
changeset
|
263 |
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
|
264 |
|
2099
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
265 |
Path |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
266 |
==== |
940 | 267 |
|
2099
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
268 |
Max path length |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
269 |
--------------- |
940 | 270 |
|
271 |
260 chars. Use MAX_PATH macros from 'windows.h'. |
|
272 |
||
2099
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
273 |
Allowed characters |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
274 |
------------------ |
940 | 275 |
|
276 |
Not allowed: |
|
2099
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
277 |
* characters from 0 to 31 |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
278 |
* ``<`` (less than) |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
279 |
* ``>`` (greater than) |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
280 |
* ``:`` (colon) |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
281 |
* ``"`` (double quote) |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
282 |
* ``/`` (forward slash) |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
283 |
* ``\`` (backslash) |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
284 |
* ``|`` (vertical bar or pipe) |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
285 |
* ``?`` (question mark) |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
286 |
* ``*`` (asterisk) |
940 | 287 |
|
2099
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
288 |
http://msdn.microsoft.com/en-us/library/aa365247.aspx |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
289 |
Naming Files, Paths, and Namespaces. |
940 | 290 |
|
2099
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
291 |
Memory |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
292 |
====== |
940 | 293 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
294 |
http://msdn.microsoft.com/en-us/library/ff542275%28v=VS.85%29.aspx |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
295 |
Boot Parameters to Configure DEP and PAE |
940 | 296 |
|
2099
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
297 |
PAE |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
298 |
--- |
940 | 299 |
|
300 |
All 32-bit Windows XP support only 4 GiB RAM. To enable PAE (Physical Address |
|
2099
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
301 |
Extension) edit ``c:\boot.ini``, add option ``/pae``:: |
940 | 302 |
|
303 |
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="MS Windows XP Prof" /fastdetect /pae |
|
304 |
||
2099
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
305 |
http://msdn.microsoft.com/en-us/library/ff557168.aspx |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
306 |
``/pae`` option. |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
307 |
http://www.microsoft.com/whdc/system/platform/server/pae/paedrv.mspx |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
308 |
PAE support. |
940 | 309 |
|
2099
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
310 |
NX |
582907ac30d1
Improve RST formatting. Remove deprecated utilities.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1965
diff
changeset
|
311 |
-- |
940 | 312 |
|
313 |
NX (no execute) in Windows realised in Data Execution Prevention (DEP) |
|
314 |
technology. |
|
315 |
||
316 |
On 64-bit processes, DEP is enabled by default and cannot be disabled. For |
|
317 |
32-bit Windows DEP is supported in Windows Server 2003 with SP1, Windows XP |
|
318 |
with SP2, Windows Vista, and later versions of Windows. |
|
319 |
||
320 |
To enable NX on 32-bit Windows edit 'c:\boot.ini', add option |
|
321 |
'/noexecute=...' (alwayson/optout/optin/alwaysoff):: |
|
322 |
||
323 |
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="MS Windows XP Prof" /fastdetect /noexecute=alwayson |
|
324 |
||
325 |
To see current DEP status run:: |
|
326 |
||
327 |
cmd> wmic OS Get DataExecutionPrevention_Available |
|
328 |
cmd> wmic OS Get DataExecutionPrevention_SupportPolicy |
|
329 |
cmd> wmic OS Get DataExecutionPrevention_Drivers |
|
330 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
331 |
http://msdn.microsoft.com/en-us/library/ff557134%28VS.85%29.aspx |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
332 |
/noexecute parameter |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
333 |
http://support.microsoft.com/kb/912923 |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
334 |
How to determine that hardware DEP is available and configured on your computer |
940 | 335 |
|
1116
140ed8e4da7f
Windows XP Service Pack 3 - ISO-9660 CD Image File
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1082
diff
changeset
|
336 |
Windows ISO images. |
140ed8e4da7f
Windows XP Service Pack 3 - ISO-9660 CD Image File
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1082
diff
changeset
|
337 |
=================== |
140ed8e4da7f
Windows XP Service Pack 3 - ISO-9660 CD Image File
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1082
diff
changeset
|
338 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
339 |
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=25129 |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
340 |
Windows XP Service Pack 3 - ISO-9660 CD Image File |
1116
140ed8e4da7f
Windows XP Service Pack 3 - ISO-9660 CD Image File
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1082
diff
changeset
|
341 |
|
940 | 342 |
Life cycle. |
343 |
=========== |
|
344 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
345 |
http://www.microsoft.com/windows/lifecycle/servicepacks.mspx |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
346 |
Windows Service Pack Road Map |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
347 |
http://www.microsoft.com/windows/lifecycle/default.mspx |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
348 |
Windows Life-Cycle Policy |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
349 |
http://support.microsoft.com/gp/lifeselect |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
350 |
Life-Cycle Policy by product |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
351 |
http://support.microsoft.com/lifecycle/search |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
352 |
Microsoft Product Lifecycle Search. Type product name into |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
353 |
search box (like "Windows 95", "Windows XP", "Windows Server |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
354 |
2003", etc)! |
940 | 355 |
|
356 |
NTFS junction points. |
|
357 |
===================== |
|
358 |
||
359 |
To craete use 'junction.exe' from Mark Russinovich or 'linkd.exe' from |
|
360 |
Microsoft Windows 2000 Resource Kit. |
|
361 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
362 |
'junction.exe' included with Sysinternals suite:: |
940 | 363 |
|
364 |
cmd> md c:\Program-Files |
|
365 |
cmd> junction c:\Program-Files "c:\Program Files" |
|
366 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
367 |
http://technet.microsoft.com/en-gb/sysinternals/bb896768.aspx |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
368 |
Junction v1.05, Published: July 24, 2007 |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
369 |
http://support.microsoft.com/?kbid=205524 |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
370 |
How to create and manipulate NTFS junction points |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
371 |
http://en.wikipedia.org/wiki/NTFS_junction_point |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
372 |
NTFS junction point |
940 | 373 |
|
374 |
Microsoft Windows 2000 Resource Kit. |
|
375 |
==================================== |
|
376 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
377 |
http://support.microsoft.com/kb/927229 |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
378 |
Windows 2000 Resource Kit Tools for administrative tasks |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
379 |
separate tools downloads |
940 | 380 |
|
381 |
Microsoft security tools. |
|
382 |
========================= |
|
383 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
384 |
http://www.microsoft.com/downloads/details.aspx?FamilyID=CD057D9D-86B9-4E35-9733-7ACB0B2A3CA1&displayLang=en |
940 | 385 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
386 |
http://www.microsoft.com/downloads/details.aspx?FamilyID=B1E76BBE-71DF-41E8-8B52-C871D012BA78&displayLang=en |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
387 |
Microsoft Baseline Security Analyzer 2.1.1 (for IT |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
388 |
Professionals) |
940 | 389 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
390 |
http://www.microsoft.com/downloads/en/confirmation.aspx?familyId=4a2346ac-b772-4d40-a750-9046542f343d&displayLang=en |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
391 |
Enhanced Mitigation Evaluation Toolkit |
940 | 392 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
393 |
http://blogs.technet.com/b/srd/archive/2009/10/27/announcing-the-release-of-the-enhanced-mitigation-evaluation-toolkit.aspx |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
394 |
Announcing the release of the Enhanced Mitigation Evaluation |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
395 |
Toolkit (old version 1.0) |
940 | 396 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
397 |
http://blogs.technet.com/b/srd/archive/2010/07/28/announcing-the-upcoming-release-of-emet-v2.aspx |
940 | 398 |
|
399 |
Enable/Disabling UAC. |
|
400 |
===================== |
|
401 |
||
402 |
To disable UAC on the computer, you must be able to log on with or provide the |
|
403 |
credentials of a member of the local Administrators group. |
|
404 |
||
405 |
Starting with Windows 7, UAC is disabled by following these steps: |
|
406 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
407 |
1. On the Start menu, type "UAC" and then click Change User Account settings. |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
408 |
2. Move the slide bar to the bottom (Never Notify) and then click OK. |
940 | 409 |
|
410 |
On Windows Vista and Windows Server 2008, UAC is disabled by following these steps: |
|
411 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
412 |
1. Start Control Panel and double-click User Accounts. |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
413 |
2. In the User Accounts tasks window, click Turn User Account Control on or off. |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
414 |
3. Clear the Use User Account Control (UAC) to help protect your computer check box, and then click OK. |
940 | 415 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
416 |
http://windows.microsoft.com/en-US/windows-vista/Turn-User-Account-Control-on-or-off |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
417 |
Turn User Account Control on or off |
940 | 418 |
|
419 |
Fix file association. |
|
420 |
===================== |
|
421 |
||
422 |
Check current association:: |
|
423 |
||
424 |
$ cmd /c assoc | grep -i "^\.mp3" |
|
425 |
.mp3=mp3file |
|
426 |
||
427 |
Get list of all available commands:: |
|
428 |
||
429 |
$ cmd /c ftype |
|
430 |
... |
|
431 |
AIMP.mp3="C:\Program Files\AIMP2\AIMP2.exe" "%1" |
|
432 |
... |
|
433 |
||
434 |
and select one on them:: |
|
435 |
||
436 |
$ cmd /c assoc .mp3=AIMP.mp3 |
|
437 |
||
2213
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
438 |
Clean up Windows system directories |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
439 |
=================================== |
940 | 440 |
|
1507
6439bd05d09a
Automating Disk Cleanup Tool in Windows
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1506
diff
changeset
|
441 |
Run ``cleanmgr.exe``. |
6439bd05d09a
Automating Disk Cleanup Tool in Windows
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1506
diff
changeset
|
442 |
|
2213
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
443 |
Disable hibernation:: |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
444 |
|
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
445 |
powercfg /hibernate off |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
446 |
|
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
447 |
On Windows 10 use compaction (compressing Windows bloatware). It frees about 2 GiB:: |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
448 |
|
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
449 |
Compact.exe /CompactOS:always |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
450 |
|
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
451 |
Clean up WinSXS directory (from admin permission):: |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
452 |
|
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
453 |
DISM /online /Cleanup-Image /SpSuperseded |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
454 |
DISM /online /Cleanup-Image /StartComponentCleanup /ResetBase |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
455 |
|
940 | 456 |
You can safely remove SP restore files:: |
457 |
||
458 |
%Systemroot%\$NtServicePackUninstall$ |
|
459 |
||
460 |
Also check such directories:: |
|
461 |
||
462 |
%SYSTEMDRIVE%\Program Files\Common Files |
|
463 |
%SYSTEMDRIVE%\Documents and Settings\USER\Application Data |
|
464 |
%SYSTEMDRIVE%\Documents and Settings\USER\Local Settings |
|
465 |
||
2213
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
466 |
http://support.microsoft.com/kb/290402 |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
467 |
HOW TO: Remove the Service Pack Restore Files and Folders in Windows |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
468 |
http://support.microsoft.com/kb/253597 |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
469 |
Automating Disk Cleanup Tool in Windows |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
470 |
https://support.microsoft.com/en-us/help/17421/windows-free-up-drive-space |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
471 |
Tips to free up drive space on your PC. |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
472 |
https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
473 |
Clean Up the WinSxS Folder. |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
474 |
https://support.microsoft.com/en-us/help/2795190/how-to-address-disk-space-issues-that-are-caused-by-a-large-windows-co |
0ba47cfd796b
Clean up Windows system directories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2212
diff
changeset
|
475 |
How to address disk space issues that are caused by a large Windows component store (WinSxS) directory. |
940 | 476 |
|
2148
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
477 |
Schedule Tasks in Windows |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
478 |
========================= |
940 | 479 |
|
2148
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
480 |
List registered of task:: |
940 | 481 |
|
482 |
$ schtasks /query |
|
483 |
||
2148
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
484 |
Create task:: |
940 | 485 |
|
486 |
$ schtasks /create /tn %TASK_NAME% /ru %ROOT% /sc daily /st 23:00:00 /tr "rundll32.exe user32.dll,LockWorkStation" |
|
487 |
||
2148
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
488 |
``/sc`` can be one of:: |
940 | 489 |
|
490 |
MINUTE HOURLY DAILY WEEKLY MONTHLY ONCE ONSTART ONLOGON ONIDLE |
|
491 |
||
2148
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
492 |
Delete task:: |
940 | 493 |
|
494 |
schtasks /delete /tn %TASK_NAME% /f |
|
495 |
||
2131
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
496 |
Change NTFS permissions |
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
497 |
======================= |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
498 |
|
2131
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
499 |
``icacls`` allow option: |
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
500 |
|
2131
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
501 |
* ``/c`` - Continues the operation despite any file errors. Error messages will |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
502 |
still be displayed. |
2167 | 503 |
* ``/t`` - Apply recursively. |
2131
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
504 |
* ``/l`` - Performs the operation on a symbolic link versus its destination. |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
505 |
* ``/q`` - Suppresses success messages. |
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
506 |
|
2189
345cc428daf4
Fix RST syntax error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2186
diff
changeset
|
507 |
Permissions description: |
2167 | 508 |
|
509 |
* ``f`` - full control |
|
510 |
* ``CI`` = Container Inherit - This flag indicates that subordinate containers will |
|
511 |
inherit this ACE. |
|
512 |
* ``OI`` = Object Inherit - This flag indicates that subordinate files will inherit |
|
513 |
the ACE. |
|
514 |
||
515 |
To review current permissions:: |
|
516 |
||
517 |
cmd> icacls %dir% /t |
|
518 |
||
519 |
.. note:: To get brief view of permissions use ``AccessEnum`` utility from |
|
520 |
Sysinternals. |
|
521 |
||
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
522 |
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
|
523 |
|
1043 | 524 |
cmd> icacls %dir% /setowner %user% /t /c |
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
525 |
|
1071
d06823550de7
takeown /r /f %file%
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1043
diff
changeset
|
526 |
or simply:: |
d06823550de7
takeown /r /f %file%
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1043
diff
changeset
|
527 |
|
d06823550de7
takeown /r /f %file%
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1043
diff
changeset
|
528 |
cmd> takeown /r /f %file% |
d06823550de7
takeown /r /f %file%
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1043
diff
changeset
|
529 |
|
2167 | 530 |
.. note:: Sometimes you don't have enough permssion to change permission. Run |
531 |
commands from administrator shell. |
|
532 |
||
993
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
533 |
Recursively grand full access for everyone:: |
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
534 |
|
995 | 535 |
cmd> icacls %dir% /t /grant:r %user%:(f) |
994 | 536 |
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
|
537 |
|
2212 | 538 |
Somtimes it fail due to permission inheritance, try to strip them:: |
2167 | 539 |
|
540 |
cmd> icacls %dir% /inheritance:r /t /grant:r %user%:(f) |
|
541 |
||
2131
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
542 |
Remove all permissons from file (first reset to inherited, then remove inherited):: |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
543 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
544 |
cmd> icacls %FILE% /reset |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
545 |
cmd> icacls %FILE% /inheritance:r |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
546 |
|
2174 | 547 |
Read file attributes:: |
548 |
||
549 |
cmd> attrib %FILE% |
|
550 |
||
551 |
Set/remove attributes (``/s`` - recursive):: |
|
552 |
||
553 |
cmd> attrib +r -h %DIR% /s |
|
554 |
||
2167 | 555 |
https://technet.microsoft.com/en-us/library/cc753525.aspx |
556 |
Icacls. |
|
2131
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
557 |
http://support.microsoft.com/kb/919240 |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
558 |
The ``Icacls.exe`` utility is available for Windows Server 2003 with Service Pack 2. |
2167 | 559 |
https://technet.microsoft.com/en-us/library/2009.07.geekofalltrades.aspx |
560 |
Geek of all Trades Setting Permissions from the Command Line. |
|
2174 | 561 |
https://technet.microsoft.com/en-us/library/bb490868.aspx |
562 |
Attrib utility. |
|
2131
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
563 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
564 |
User management |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
565 |
=============== |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
566 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
567 |
List available users:: |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
568 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
569 |
cmd> net user |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
570 |
cmd> wmic useraccount list brief |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
571 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
572 |
List available groups:: |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
573 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
574 |
cmd> net localgroup |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
575 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
576 |
List available users in group:: |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
577 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
578 |
cmd> net localgroup %GROUP% |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
579 |
cmd> net localgroup Administrators |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
580 |
cmd> net localgroup Users |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
581 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
582 |
Current logged user:: |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
583 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
584 |
cmd> whoami |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
585 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
586 |
Create new user by supplying password argument:: |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
587 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
588 |
cmd> net user /ADD %USER% %PASS% |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
589 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
590 |
Create new user by entering password in prompt:: |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
591 |
|
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
592 |
cmd> net user /ADD %USER% * |
a8885a695eab
User management. Remove all permissons from file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2099
diff
changeset
|
593 |
|
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
594 |
Well-known security identifiers (SID). |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
595 |
====================================== |
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
596 |
|
2148
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
597 |
Pring SIDs of groups:: |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
598 |
|
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
599 |
cmd> whoami /groups |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
600 |
|
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
601 |
Print current user SID:: |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
602 |
|
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
603 |
cmd> whoami /user |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
604 |
|
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
605 |
Get name from SID:: |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
606 |
|
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
607 |
cmd> PsGetsid.exe S-1-0-0 |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
608 |
|
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
609 |
Get SID from name:: |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
610 |
|
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
611 |
cmd> PsGetsid.exe "NT AUTHORITY\System" |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
612 |
cmd> PsGetsid.exe "NT AUTHORITY\LocalService" |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
613 |
|
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
614 |
Well known users/groups: |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
615 |
|
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
616 |
``S-1-0-0`` |
2186
b3653de0f03e
Added some well known SIDs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2174
diff
changeset
|
617 |
Nobody. A group with no members. This is often used when a SID |
2148
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
618 |
value is not known. |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
619 |
``S-1-1-0`` |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
620 |
World/Everyone. A group that includes all users. |
2186
b3653de0f03e
Added some well known SIDs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2174
diff
changeset
|
621 |
``S-1-2-0`` |
b3653de0f03e
Added some well known SIDs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2174
diff
changeset
|
622 |
Local. A group that includes all users who have logged on locally. |
b3653de0f03e
Added some well known SIDs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2174
diff
changeset
|
623 |
``S-1-2-1`` |
b3653de0f03e
Added some well known SIDs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2174
diff
changeset
|
624 |
Console Logon. A group that includes users who are logged on to the physical |
b3653de0f03e
Added some well known SIDs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2174
diff
changeset
|
625 |
console. |
2148
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
626 |
``S-1-3-0`` |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
627 |
Creator Owner ID. A security identifier to be replaced by the |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
628 |
security identifier of the user who created a new object. This |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
629 |
SID is used in inheritable ACEs. |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
630 |
``S-1-3-1`` |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
631 |
Creator Group ID. A security identifier to be replaced by the |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
632 |
primary-group SID of the user who created a new object. Use this |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
633 |
SID in inheritable ACEs. |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
634 |
``S-1-5-6`` |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
635 |
Service. A group that includes all security principals that have |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
636 |
logged on as a service. Membership is controlled by the |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
637 |
operating system. |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
638 |
``S-1-5-7`` |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
639 |
Anonymous. A group that includes all users that have logged on |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
640 |
anonymously. Membership is controlled by the operating system. |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
641 |
``S-1-5-18`` |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
642 |
``NT AUTHORITY\SYSTEM`` |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
643 |
``S-1-5-19`` |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
644 |
``NT AUTHORITY\LocalService`` |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
645 |
``S-1-5-32-544`` |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
646 |
Administrators group. |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
647 |
``S-1-5-32-545`` |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
648 |
Users group. |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
649 |
``S-1-5-32-546`` |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
650 |
Guests. By default, the only member is the Guest account. The |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
651 |
Guests group allows occasional or one-time users to log on with |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
652 |
limited privileges to a computer's built-in Guest account. |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
653 |
``S-1-5-32-547`` |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
654 |
Power Users. Power users can create local users and groups; |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
655 |
modify and delete accounts that they have created; and remove |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
656 |
users from the Power Users, Users, and Guests groups. Power |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
657 |
users also can install programs; create, manage, and delete |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
658 |
local printers; and create and delete file shares. |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
659 |
|
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
660 |
See: |
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
661 |
|
2132 | 662 |
https://msdn.microsoft.com/en-us/library/aa379649.aspx |
663 |
Well-known SIDs |
|
664 |
https://support.microsoft.com/en-us/help/243330/ |
|
665 |
Well-known security identifiers in Windows operating systems. |
|
2148
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
666 |
https://msdn.microsoft.com/en-us/library/ms686005.aspx |
8588bb3cd896
Schedule Tasks in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2132
diff
changeset
|
667 |
Service User Accounts. |
2132 | 668 |
http://en.wikipedia.org/wiki/Security_Identifier |
669 |
Security Identifier |
|
992
3f8b5c0ba822
Change NTFS permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
951
diff
changeset
|
670 |
|
993
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
671 |
Converting SID to names and inside out. |
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
672 |
======================================= |
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
673 |
|
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
674 |
Use 'PsGetSid' utility from Sysinternals:: |
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
675 |
|
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
676 |
cmd> PsGetSid S-1-3-0 |
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
677 |
cmd> PsGetSid "\NULL SID" |
e3fefdeb1cbf
Converting SID to names and inside out.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
992
diff
changeset
|
678 |
|
999
dc74e11a1686
Gathering info about Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
997
diff
changeset
|
679 |
Gathering info about Windows. |
dc74e11a1686
Gathering info about Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
997
diff
changeset
|
680 |
============================= |
dc74e11a1686
Gathering info about Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
997
diff
changeset
|
681 |
:: |
dc74e11a1686
Gathering info about Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
997
diff
changeset
|
682 |
|
dc74e11a1686
Gathering info about Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
997
diff
changeset
|
683 |
cmd> systeminfo |
dc74e11a1686
Gathering info about Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
997
diff
changeset
|
684 |
|
1203
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
685 |
From ``Win+R``:: |
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
686 |
|
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
687 |
helpctr.exe -mode hcp://system/sysinfo/msinfo.xml |
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
688 |
|
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
689 |
or by:: |
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
690 |
|
bd2a6d024b5f
hcp://system/sysinfo/msinfo.xml
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1183
diff
changeset
|
691 |
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
|
692 |
|
2150
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
693 |
Automatically logon to Windows |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
694 |
============================== |
1082
ffb3f274b8fe
Automatically logon to Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1071
diff
changeset
|
695 |
:: |
ffb3f274b8fe
Automatically logon to Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1071
diff
changeset
|
696 |
|
ffb3f274b8fe
Automatically logon to Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1071
diff
changeset
|
697 |
cmd# control userpasswords2 |
ffb3f274b8fe
Automatically logon to Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1071
diff
changeset
|
698 |
|
2150
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
699 |
Time synchronization in Windows |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
700 |
=============================== |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
701 |
|
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
702 |
Most of registry tweaks have no effect or inconsistent on Windows time |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
703 |
scheduling. |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
704 |
|
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
705 |
Better way to control time sync is via Windws Task with commands (start service |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
706 |
and force update):: |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
707 |
|
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
708 |
%windir%\system32\sc.exe start w32time task_started |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
709 |
%windir%\system32\w32tm.exe /resync |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
710 |
|
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
711 |
https://www.pretentiousname.com/timesync/ |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
712 |
Make Windows synchronize time more often. |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
713 |
https://superuser.com/questions/529367/automatically-sync-windows-time-more-often-than-default |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
714 |
Automatically sync Windows time more often than default. |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
715 |
https://superuser.com/questions/603120/how-to-update-windows-8-clock-with-the-internet-every-time-i-boot-the-system |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
716 |
How to update Windows 8 clock with the internet every time I boot the system? |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
717 |
https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/get-started/windows-time-service/windows-time-service-tools-and-settings |
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
718 |
Windows Time Service Tools and Settings. |
2151
acb5b95463a3
Online in browser service to find time difference.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2150
diff
changeset
|
719 |
https://time.is/ |
acb5b95463a3
Online in browser service to find time difference.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2150
diff
changeset
|
720 |
Online in browser service to find time difference. |
2150
e0a63b917ab8
Time synchronization in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2149
diff
changeset
|
721 |
|
1147 | 722 |
Format drive. |
723 |
============= |
|
1082
ffb3f274b8fe
Automatically logon to Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1071
diff
changeset
|
724 |
|
1147 | 725 |
Replace with own disk letter:: |
726 |
||
727 |
cmd# format E: /q /fs:ntfs |
|
728 |
||
1148 | 729 |
See: |
730 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
731 |
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/format.mspx |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
732 |
Formats the disk in the specified volume to accept Windows |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2213
diff
changeset
|
733 |
files. |
1148 | 734 |
|
1894
2e3bc2435d68
Convert all files from TXT to RST.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1827
diff
changeset
|
735 |
Login/logout user scripts |
2e3bc2435d68
Convert all files from TXT to RST.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1827
diff
changeset
|
736 |
========================= |
2e3bc2435d68
Convert all files from TXT to RST.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1827
diff
changeset
|
737 |
|
2e3bc2435d68
Convert all files from TXT to RST.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1827
diff
changeset
|
738 |
``%SystemRoot%\system32\GroupPolicy\User\Scripts\Logoff`` and |
2e3bc2435d68
Convert all files from TXT to RST.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1827
diff
changeset
|
739 |
``%SystemRoot%\system32\GroupPolicy\User\Scripts\Logon``. |
2166 | 740 |
|
741 |
hosts file |
|
742 |
========== |
|
743 |
||
744 |
``%SystemRoot%\System32\drivers\etc\hosts``. |
|
745 |
||
746 |
Path to directory defined by registry key:: |
|
747 |
||
748 |
bash# cat /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/tcpip/Parameters/DataBasePath |
|
749 |
%SystemRoot%\System32\drivers\etc |
|
750 |