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