Microsoft KB Archive: Difference between revisions

From BetaArchive Wiki
No edit summary
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This is a new part of the wiki - an archive of all Microsoft KB articles. And perhaps the only archive where you can help make it better and more complete!
This is a new part of the wiki - an archive of all Microsoft KB articles (currently with >210000 articles). And perhaps the only archive where you can help make it better and more complete!


For now, place them as a subpage of this page - so for KB article KB1234567, it should be at Microsoft_KB_Archive/1234567, or [[/1234567/]]. For a real example, see [[/216417/]]. Do NOT include the KB in the link.
See [[/A guide to mass-adding files/]] for a guide on how this was done. This could also be adapted for other situations as well.
==Guidelines==


* Maintain the Microsoft KB structure as much as possible. See [[/216417/]] for an example. Headings should be in H2 form (that is, <code><nowiki>== title == </nowiki></code>).
[[forum:41583|Click here to view the forum announcement for this archive]]. We particularly thank 3155GGfd for allowing us to import his massive collection into the archive.
* Do not blindly copy-paste to the wiki - make sure that the formatting is correct.
* Standard wiki rules with attribution apply - which means that you must attribute the source if you got it from, say, web.archive. Include the link in "Sources".
* It is fine to add links to other parts of the wiki (for example one to Windows 2000 as can be seen in the sample article).


==A guide to mass-adding files==
'''Important:''' The copyright requirements for this section are different from the rest of the wiki. Please read the [[BetaArchive_Wiki:Wiki_Guidelines|wiki guidelines]]; this part of the wiki is '''NOT''' released under a free licence and reproduction is NOT allowed without prior permission from a moderator or administrator. The main reason is that these articles are technically owned by Microsoft, unlike the rest of the wiki (where the articles are by the individual contributors).
''Multiple unnecessary restrictions by the admins make this harder than it should be''
== Guidelines ==
See [[/Guidelines/]].


This is a short guide on how to import KB articles located in MSDN help files into this wiki.
== List of KB articles ==
# Look for the .htm file that contains the KB files you want.
<span class="mw-ui-button {{#switch: {{{color|white}}} | red = mw-ui-destructive | green = mw-ui-progressive | white = | blue = mw-ui-progressive}}" role="button" aria-disabled="false">{{{1|[https://www.betaarchive.com/wiki/index.php?from=Microsoft+KB+Archive&to=&namespace=0&title=Special%3AAllPages Click here to see the full list of KB articles]}}}</span>
# Use 7zip to extract all the files inside it into a directory of your choice.
# Navigate to one of the directories. You should see full of files of the form <code>''Q''[number].htm</code>.
# Use the pandoc program to convert all the files inside it into MediaWiki. Use a different file extension, and convert it into a different folder. For example, if you want to convert them into a folder convert, use the command (on Linux/WSL) <code>for f in *.htm; do pandoc "$f" -f html -t mediawiki -s -o "convert/${f%}.txt"; done</code>.
# Strip off the Q in each file - use the command <code>rename 's/.{1}(.*)/$1/' *</code> to do it.
# On a local installation of MediaWiki, use the command <code>sudo php /var/www/html/mw/maintenance/importTextFiles.php -u X010 -s "stage1" --prefix "Microsoft KB Archive/" *.htm</code>, where X010 should be replaced by your username to import all the files into that installation. For small batches, Special:Import could work as well.
# Export it: use the command <code>sudo php dumpBackup.php --current --output gzip:out</code> to export everything in the wiki as a gzip. Make sure to decompress it, and remove any unwanted pages in the output.
# Use Special:Import to import everything into the wiki.


Special notes:
''You may also use the below to search for any KB article (number or text):''
* The import times out: you'll need to split it. Testing with this wiki shows that about 350 pages can be imported at a time without any issues (in that case, instead of using <code>dumpBackup.php</code>, use <code>Special:AllPages</code>, copy into Notepad, and then copy its output into <code>Special:Export</code>.
<div style="float:{{dir|{{pagelang}}|left|left}}; width:24em">
* Alternatively, install the [[mediawiki:Extension:Html2Wiki|Html2Wiki]] extension. While it's very powerful in that one can simply zip all the files and then use the extension to upload all at once, you'll also need to drastically increate the timeout limits. In local settings, about 500 pages could be imported at a time this way (hence one can split into N/500 zip files).
<inputbox>
* Currently, only moderators and higher can import pages. Should you require this, please contact X010 or Andy or mrpijey, and we may grant the import permission to you. The same applies if the size is too large, in which case we'll import it directly on your behalf.
type=fulltext
placeholder=Try: KB123456 or Microsoft KB Archive/123456
</inputbox>
</div>


==List of KB articles==
If you want to see a small subset (~20000?) in one page, you may want to check out [[/List of KB articles/]].
''Obviously under construction. You may want to use the search box to search for your desired KB article.''


<splist
The images themselves are available as a category at [[:Category:Microsoft KB Archive]].
showparent=yno
sort=asc
sortby=title
liststyle=bar
showpath=no
kidsonly=no
debug=0
/>

Revision as of 18:42, 28 July 2020

This is a new part of the wiki - an archive of all Microsoft KB articles (currently with >210000 articles). And perhaps the only archive where you can help make it better and more complete!

See A guide to mass-adding files for a guide on how this was done. This could also be adapted for other situations as well.

Click here to view the forum announcement for this archive. We particularly thank 3155GGfd for allowing us to import his massive collection into the archive.

Important: The copyright requirements for this section are different from the rest of the wiki. Please read the wiki guidelines; this part of the wiki is NOT released under a free licence and reproduction is NOT allowed without prior permission from a moderator or administrator. The main reason is that these articles are technically owned by Microsoft, unlike the rest of the wiki (where the articles are by the individual contributors).

Guidelines

See Guidelines.

List of KB articles

Click here to see the full list of KB articles

You may also use the below to search for any KB article (number or text):

If you want to see a small subset (~20000?) in one page, you may want to check out List of KB articles.

The images themselves are available as a category at Category:Microsoft KB Archive.