<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5593231954608974296</id><updated>2025-11-26T20:14:17.916-08:00</updated><category term="SRIOV"/><category term="Virtualization"/><category term="bcdedit"/><category term="non blocking socket"/><category term="powershell"/><category term="shortcut"/><title type='text'>Windows Internals</title><subtitle type='html'>Articles and source codes on windows internals and systems programming.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://windowsinternals.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://windowsinternals.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vikas Sangani</name><uri>http://www.blogger.com/profile/11036119603767085916</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5593231954608974296.post-5480061738698539323</id><published>2019-01-29T03:08:00.000-08:00</published><updated>2019-01-29T03:08:06.985-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bcdedit"/><title type='text'>Repair the Boot Files (bcdedit) in Windows Server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;background-color: white; box-sizing: border-box; color: #444444; font-family: Roboto-Light; font-size: 20px; font-weight: 300; line-height: 24px; margin: 0px 0px 10px;&quot;&gt;
Introduction&lt;/h3&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #444444; font-family: Roboto-Regular, Roboto-Light, &amp;quot;Cordia New&amp;quot;, &amp;quot;Microsoft Sans Serif&amp;quot;, Utsaah, &amp;quot;Devanagari MT&amp;quot;, &amp;quot;Nirmala UI&amp;quot;, Latha, InaiMathi, Gautami, &amp;quot;Telugu Sangam MN&amp;quot;, Tunga, &amp;quot;Kannada Sangam MN&amp;quot;, Kartika, &amp;quot;Malayalam Sangam MN&amp;quot;, Shruti, &amp;quot;Nirmala UI&amp;quot;, &amp;quot;Gujarati MT&amp;quot;, &amp;quot;Gujarati Sangam MN&amp;quot;, Vrinda, &amp;quot;Bangla Sangam MN&amp;quot;, &amp;quot;Meiryo UI Reg&amp;quot;, &amp;quot;メイリオ Reg&amp;quot;, &amp;quot;MS UI Gothic Reg&amp;quot;, &amp;quot;Hiragino Kaku Gothic Reg&amp;quot;, &amp;quot;ヒラギノ角ゴ Pro W3 Reg&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft JhengHei&amp;quot;, 微軟正黑體, &amp;quot;Malgun Gothic&amp;quot;, &amp;quot;맑은 고딕&amp;quot;, Gulim, AppleGothic, &amp;quot;Apple LiGothic&amp;quot;, &amp;quot;LiHei Pro&amp;quot;, Osaka, STHeiti, 华文黑体, STXihei, 华文细黑, SimHei, 黑体, &amp;quot;Arial Unicode MS&amp;quot;, Arial, sans-serif; font-size: 14px; margin-bottom: 10px;&quot;&gt;
When booting to the Windows Recovery Environment (WinRE), the drive letters are assigned on a first-come, first-serve basis. For example, the C: drive in Windows will often have a different letter in WinRE. The DiskPart utility can be used to keep track of the drives and what is stored on them.&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; color: #444444; font-family: Roboto-Regular, Roboto-Light, &amp;quot;Cordia New&amp;quot;, &amp;quot;Microsoft Sans Serif&amp;quot;, Utsaah, &amp;quot;Devanagari MT&amp;quot;, &amp;quot;Nirmala UI&amp;quot;, Latha, InaiMathi, Gautami, &amp;quot;Telugu Sangam MN&amp;quot;, Tunga, &amp;quot;Kannada Sangam MN&amp;quot;, Kartika, &amp;quot;Malayalam Sangam MN&amp;quot;, Shruti, &amp;quot;Nirmala UI&amp;quot;, &amp;quot;Gujarati MT&amp;quot;, &amp;quot;Gujarati Sangam MN&amp;quot;, Vrinda, &amp;quot;Bangla Sangam MN&amp;quot;, &amp;quot;Meiryo UI Reg&amp;quot;, &amp;quot;メイリオ Reg&amp;quot;, &amp;quot;MS UI Gothic Reg&amp;quot;, &amp;quot;Hiragino Kaku Gothic Reg&amp;quot;, &amp;quot;ヒラギノ角ゴ Pro W3 Reg&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft JhengHei&amp;quot;, 微軟正黑體, &amp;quot;Malgun Gothic&amp;quot;, &amp;quot;맑은 고딕&amp;quot;, Gulim, AppleGothic, &amp;quot;Apple LiGothic&amp;quot;, &amp;quot;LiHei Pro&amp;quot;, Osaka, STHeiti, 华文黑体, STXihei, 华文细黑, SimHei, 黑体, &amp;quot;Arial Unicode MS&amp;quot;, Arial, sans-serif; font-size: 14px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
First Partition: 100 MB System Reserved (No drive letter)&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Second Partition: 60 GB (C:) OS&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Third Partition: 1.5 TB (D:) Data&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
DVD Drive: E:&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #444444; font-family: Roboto-Regular, Roboto-Light, &amp;quot;Cordia New&amp;quot;, &amp;quot;Microsoft Sans Serif&amp;quot;, Utsaah, &amp;quot;Devanagari MT&amp;quot;, &amp;quot;Nirmala UI&amp;quot;, Latha, InaiMathi, Gautami, &amp;quot;Telugu Sangam MN&amp;quot;, Tunga, &amp;quot;Kannada Sangam MN&amp;quot;, Kartika, &amp;quot;Malayalam Sangam MN&amp;quot;, Shruti, &amp;quot;Nirmala UI&amp;quot;, &amp;quot;Gujarati MT&amp;quot;, &amp;quot;Gujarati Sangam MN&amp;quot;, Vrinda, &amp;quot;Bangla Sangam MN&amp;quot;, &amp;quot;Meiryo UI Reg&amp;quot;, &amp;quot;メイリオ Reg&amp;quot;, &amp;quot;MS UI Gothic Reg&amp;quot;, &amp;quot;Hiragino Kaku Gothic Reg&amp;quot;, &amp;quot;ヒラギノ角ゴ Pro W3 Reg&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft JhengHei&amp;quot;, 微軟正黑體, &amp;quot;Malgun Gothic&amp;quot;, &amp;quot;맑은 고딕&amp;quot;, Gulim, AppleGothic, &amp;quot;Apple LiGothic&amp;quot;, &amp;quot;LiHei Pro&amp;quot;, Osaka, STHeiti, 华文黑体, STXihei, 华文细黑, SimHei, 黑体, &amp;quot;Arial Unicode MS&amp;quot;, Arial, sans-serif; font-size: 14px;&quot; /&gt;&lt;img alt=&quot;&quot; class=&quot;TS-img-responsive&quot; src=&quot;https://kbimg.dell.com/library/KB/DELL_ORGANIZATIONAL_GROUPS/DELL_GLOBAL/SST/Microsoft/I_Windows_Boot1_JP_V1a.jpg&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #444444; font-family: Roboto-Regular, Roboto-Light, &amp;quot;Cordia New&amp;quot;, &amp;quot;Microsoft Sans Serif&amp;quot;, Utsaah, &amp;quot;Devanagari MT&amp;quot;, &amp;quot;Nirmala UI&amp;quot;, Latha, InaiMathi, Gautami, &amp;quot;Telugu Sangam MN&amp;quot;, Tunga, &amp;quot;Kannada Sangam MN&amp;quot;, Kartika, &amp;quot;Malayalam Sangam MN&amp;quot;, Shruti, &amp;quot;Nirmala UI&amp;quot;, &amp;quot;Gujarati MT&amp;quot;, &amp;quot;Gujarati Sangam MN&amp;quot;, Vrinda, &amp;quot;Bangla Sangam MN&amp;quot;, &amp;quot;Meiryo UI Reg&amp;quot;, &amp;quot;メイリオ Reg&amp;quot;, &amp;quot;MS UI Gothic Reg&amp;quot;, &amp;quot;Hiragino Kaku Gothic Reg&amp;quot;, &amp;quot;ヒラギノ角ゴ Pro W3 Reg&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft JhengHei&amp;quot;, 微軟正黑體, &amp;quot;Malgun Gothic&amp;quot;, &amp;quot;맑은 고딕&amp;quot;, Gulim, AppleGothic, &amp;quot;Apple LiGothic&amp;quot;, &amp;quot;LiHei Pro&amp;quot;, Osaka, STHeiti, 华文黑体, STXihei, 华文细黑, SimHei, 黑体, &amp;quot;Arial Unicode MS&amp;quot;, Arial, sans-serif; font-size: 14px; height: auto; max-width: 100%; opacity: 1; transition: opacity 0.1s ease 0s; vertical-align: middle; width: auto !important;&quot; /&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #444444; font-family: Roboto-Regular, Roboto-Light, &amp;quot;Cordia New&amp;quot;, &amp;quot;Microsoft Sans Serif&amp;quot;, Utsaah, &amp;quot;Devanagari MT&amp;quot;, &amp;quot;Nirmala UI&amp;quot;, Latha, InaiMathi, Gautami, &amp;quot;Telugu Sangam MN&amp;quot;, Tunga, &amp;quot;Kannada Sangam MN&amp;quot;, Kartika, &amp;quot;Malayalam Sangam MN&amp;quot;, Shruti, &amp;quot;Nirmala UI&amp;quot;, &amp;quot;Gujarati MT&amp;quot;, &amp;quot;Gujarati Sangam MN&amp;quot;, Vrinda, &amp;quot;Bangla Sangam MN&amp;quot;, &amp;quot;Meiryo UI Reg&amp;quot;, &amp;quot;メイリオ Reg&amp;quot;, &amp;quot;MS UI Gothic Reg&amp;quot;, &amp;quot;Hiragino Kaku Gothic Reg&amp;quot;, &amp;quot;ヒラギノ角ゴ Pro W3 Reg&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft JhengHei&amp;quot;, 微軟正黑體, &amp;quot;Malgun Gothic&amp;quot;, &amp;quot;맑은 고딕&amp;quot;, Gulim, AppleGothic, &amp;quot;Apple LiGothic&amp;quot;, &amp;quot;LiHei Pro&amp;quot;, Osaka, STHeiti, 华文黑体, STXihei, 华文细黑, SimHei, 黑体, &amp;quot;Arial Unicode MS&amp;quot;, Arial, sans-serif; font-size: 14px;&quot; /&gt;&lt;strong style=&quot;background-color: white; box-sizing: border-box; color: #444444; font-family: Roboto-Regular, Roboto-Light, &amp;quot;Cordia New&amp;quot;, &amp;quot;Microsoft Sans Serif&amp;quot;, Utsaah, &amp;quot;Devanagari MT&amp;quot;, &amp;quot;Nirmala UI&amp;quot;, Latha, InaiMathi, Gautami, &amp;quot;Telugu Sangam MN&amp;quot;, Tunga, &amp;quot;Kannada Sangam MN&amp;quot;, Kartika, &amp;quot;Malayalam Sangam MN&amp;quot;, Shruti, &amp;quot;Nirmala UI&amp;quot;, &amp;quot;Gujarati MT&amp;quot;, &amp;quot;Gujarati Sangam MN&amp;quot;, Vrinda, &amp;quot;Bangla Sangam MN&amp;quot;, &amp;quot;Meiryo UI Reg&amp;quot;, &amp;quot;メイリオ Reg&amp;quot;, &amp;quot;MS UI Gothic Reg&amp;quot;, &amp;quot;Hiragino Kaku Gothic Reg&amp;quot;, &amp;quot;ヒラギノ角ゴ Pro W3 Reg&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft JhengHei&amp;quot;, 微軟正黑體, &amp;quot;Malgun Gothic&amp;quot;, &amp;quot;맑은 고딕&amp;quot;, Gulim, AppleGothic, &amp;quot;Apple LiGothic&amp;quot;, &amp;quot;LiHei Pro&amp;quot;, Osaka, STHeiti, 华文黑体, STXihei, 华文细黑, SimHei, 黑体, &amp;quot;Arial Unicode MS&amp;quot;, Arial, sans-serif; font-size: 14px;&quot;&gt;Figure 1: Illustration of Drive lettering in Windows and WinRE&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Roboto-Regular, Roboto-Light, &amp;quot;Cordia New&amp;quot;, &amp;quot;Microsoft Sans Serif&amp;quot;, Utsaah, &amp;quot;Devanagari MT&amp;quot;, &amp;quot;Nirmala UI&amp;quot;, Latha, InaiMathi, Gautami, &amp;quot;Telugu Sangam MN&amp;quot;, Tunga, &amp;quot;Kannada Sangam MN&amp;quot;, Kartika, &amp;quot;Malayalam Sangam MN&amp;quot;, Shruti, &amp;quot;Nirmala UI&amp;quot;, &amp;quot;Gujarati MT&amp;quot;, &amp;quot;Gujarati Sangam MN&amp;quot;, Vrinda, &amp;quot;Bangla Sangam MN&amp;quot;, &amp;quot;Meiryo UI Reg&amp;quot;, &amp;quot;メイリオ Reg&amp;quot;, &amp;quot;MS UI Gothic Reg&amp;quot;, &amp;quot;Hiragino Kaku Gothic Reg&amp;quot;, &amp;quot;ヒラギノ角ゴ Pro W3 Reg&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft JhengHei&amp;quot;, 微軟正黑體, &amp;quot;Malgun Gothic&amp;quot;, &amp;quot;맑은 고딕&amp;quot;, Gulim, AppleGothic, &amp;quot;Apple LiGothic&amp;quot;, &amp;quot;LiHei Pro&amp;quot;, Osaka, STHeiti, 华文黑体, STXihei, 华文细黑, SimHei, 黑体, &amp;quot;Arial Unicode MS&amp;quot;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;alert alert-info&quot; style=&quot;background: rgb(255, 255, 201); border-radius: 1px; border: 1px solid rgb(238, 238, 238); box-sizing: border-box; color: #444444; font-family: Roboto-Regular, Roboto-Light, &amp;quot;Cordia New&amp;quot;, &amp;quot;Microsoft Sans Serif&amp;quot;, Utsaah, &amp;quot;Devanagari MT&amp;quot;, &amp;quot;Nirmala UI&amp;quot;, Latha, InaiMathi, Gautami, &amp;quot;Telugu Sangam MN&amp;quot;, Tunga, &amp;quot;Kannada Sangam MN&amp;quot;, Kartika, &amp;quot;Malayalam Sangam MN&amp;quot;, Shruti, &amp;quot;Nirmala UI&amp;quot;, &amp;quot;Gujarati MT&amp;quot;, &amp;quot;Gujarati Sangam MN&amp;quot;, Vrinda, &amp;quot;Bangla Sangam MN&amp;quot;, &amp;quot;Meiryo UI Reg&amp;quot;, &amp;quot;メイリオ Reg&amp;quot;, &amp;quot;MS UI Gothic Reg&amp;quot;, &amp;quot;Hiragino Kaku Gothic Reg&amp;quot;, &amp;quot;ヒラギノ角ゴ Pro W3 Reg&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft JhengHei&amp;quot;, 微軟正黑體, &amp;quot;Malgun Gothic&amp;quot;, &amp;quot;맑은 고딕&amp;quot;, Gulim, AppleGothic, &amp;quot;Apple LiGothic&amp;quot;, &amp;quot;LiHei Pro&amp;quot;, Osaka, STHeiti, 华文黑体, STXihei, 华文细黑, SimHei, 黑体, &amp;quot;Arial Unicode MS&amp;quot;, Arial, sans-serif; font-size: 14px; margin-bottom: 20px; padding: 10px 35px 10px 40px; position: relative; text-shadow: none;&quot;&gt;
&lt;strong style=&quot;box-sizing: border-box; margin-bottom: 8px;&quot;&gt;Note&lt;/strong&gt;: If there is no System Reserved partition. It is okay to select the drive containing the Windows folder.&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; box-sizing: border-box; color: #444444; font-family: Roboto-Light; font-size: 20px; font-weight: 300; line-height: 24px; margin: 0px 0px 10px;&quot;&gt;
&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;Restoring Boot Files&lt;/h3&gt;
&lt;ol style=&quot;background-color: white; box-sizing: border-box; color: #444444; font-family: Roboto-Regular, Roboto-Light, &amp;quot;Cordia New&amp;quot;, &amp;quot;Microsoft Sans Serif&amp;quot;, Utsaah, &amp;quot;Devanagari MT&amp;quot;, &amp;quot;Nirmala UI&amp;quot;, Latha, InaiMathi, Gautami, &amp;quot;Telugu Sangam MN&amp;quot;, Tunga, &amp;quot;Kannada Sangam MN&amp;quot;, Kartika, &amp;quot;Malayalam Sangam MN&amp;quot;, Shruti, &amp;quot;Nirmala UI&amp;quot;, &amp;quot;Gujarati MT&amp;quot;, &amp;quot;Gujarati Sangam MN&amp;quot;, Vrinda, &amp;quot;Bangla Sangam MN&amp;quot;, &amp;quot;Meiryo UI Reg&amp;quot;, &amp;quot;メイリオ Reg&amp;quot;, &amp;quot;MS UI Gothic Reg&amp;quot;, &amp;quot;Hiragino Kaku Gothic Reg&amp;quot;, &amp;quot;ヒラギノ角ゴ Pro W3 Reg&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft JhengHei&amp;quot;, 微軟正黑體, &amp;quot;Malgun Gothic&amp;quot;, &amp;quot;맑은 고딕&amp;quot;, Gulim, AppleGothic, &amp;quot;Apple LiGothic&amp;quot;, &amp;quot;LiHei Pro&amp;quot;, Osaka, STHeiti, 华文黑体, STXihei, 华文细黑, SimHei, 黑体, &amp;quot;Arial Unicode MS&amp;quot;, Arial, sans-serif; font-size: 14px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Boot to the Windows Server DVD.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Open the command prompt.&lt;/div&gt;
&lt;ol style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px;&quot; type=&quot;I&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Server 2008 R2 and other OSes:&lt;/div&gt;
&lt;ol style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px;&quot; type=&quot;a&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
If no driver is needed, press Shift-F10 to open the command prompt.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Continue with step 3.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Server 2008 (or 2008 R2 if a driver is required)&lt;/div&gt;
&lt;ol style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px;&quot; type=&quot;a&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Click&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Next&amp;nbsp;&lt;/strong&gt;at the first screen.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Click&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Repair your computer&lt;/strong&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
If no driver is needed, click Next and proceed to step vii below.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
If a driver is needed, click&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Load Drivers&lt;/strong&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Insert the media containing the needed driver.&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;alert alert-info&quot; style=&quot;background: rgb(255, 255, 201); border-radius: 1px; border: 1px solid rgb(238, 238, 238); box-sizing: border-box; margin-bottom: 20px; padding: 10px 35px 10px 40px; position: relative; text-shadow: none;&quot;&gt;
&lt;strong style=&quot;box-sizing: border-box; margin-bottom: 8px;&quot;&gt;Note&lt;/strong&gt;: The media can be a CD, DVD, or USB storage device&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Navigate to the folder containing the driver, select it, and click&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Open&lt;/strong&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Click Command Prompt.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
The command prompt appears.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Type&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;DiskPart&lt;/strong&gt;&amp;nbsp;at the command prompt.&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;img alt=&quot;&quot; class=&quot;TS-img-responsive&quot; src=&quot;https://kbimg.dell.com/library/KB/DELL_ORGANIZATIONAL_GROUPS/DELL_GLOBAL/SST/Microsoft/I_Windows_Boot5_JP_V1a.jpg&quot; style=&quot;border: 0px; box-sizing: border-box; height: auto; max-width: 100%; opacity: 1; transition: opacity 0.1s ease 0s; vertical-align: middle; width: auto !important;&quot; /&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Figure 2: DiskPart result (english only)&lt;/strong&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Type&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;List vol&lt;/strong&gt;&amp;nbsp;at the DiskPart prompt.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Write down the drive letter of the DVD drive. In this example, it is F.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Write down the drive letter of the system reserved drive. In this example, it is C.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Type Select vol 1 (assuming volume 1 is the System Reserved volume, as it is here).&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Type&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;active&lt;/strong&gt;. This sets the selected volume as active.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Type exit to return to the command line.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Type&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;Copy f:\BootMgr c:\&lt;/strong&gt;&amp;nbsp;at the command prompt. One of two things will happen:&lt;/div&gt;
&lt;ol style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px;&quot; type=&quot;I&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
If the file&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Bootmgr&amp;nbsp;&lt;/strong&gt;already exists on C:, type&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;N&lt;/strong&gt;&amp;nbsp;to avoid overwriting it.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
If the file&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Bootmgr&amp;nbsp;&lt;/strong&gt;doesn&#39;t already exist on C:, it will automatically be copied.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Type Bootrec /Fixmbr at the command prompt.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Type Bootrec /Fixboot at the command prompt.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Type&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Bootrec /rebuildBCD&lt;/strong&gt;&amp;nbsp;at the command prompt.&lt;/div&gt;
&lt;ol style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px;&quot; type=&quot;I&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
If no OS is found, the following appears:&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;img alt=&quot;&quot; class=&quot;TS-img-responsive&quot; src=&quot;https://kbimg.dell.com/library/KB/DELL_ORGANIZATIONAL_GROUPS/DELL_GLOBAL/SST/Microsoft/I_Windows_Boot8_JP_V1a.jpg&quot; style=&quot;border: 0px; box-sizing: border-box; height: auto; max-width: 100%; opacity: 1; transition: opacity 0.1s ease 0s; vertical-align: middle; width: auto !important;&quot; /&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Figure 3: Result when no OS is found (English only)&lt;/strong&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;This means that one of the following is true:&lt;/div&gt;
&lt;ol style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px;&quot; type=&quot;a&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
The boot configuration database (BCD) already exists.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
The OS is not there.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
The OS is damaged beyond the ability of BootRec to recognize it.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
If&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;BootRec /RebuildBCD&lt;/strong&gt;&amp;nbsp;succeeds, it will list any installations of Windows that it found. Press Y to accept and add them to the BCD.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
The server is now configured to boot from the proper partition. Close the command prompt and reboot the system into normal mode&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://windowsinternals.blogspot.com/feeds/5480061738698539323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5593231954608974296/5480061738698539323' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/5480061738698539323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/5480061738698539323'/><link rel='alternate' type='text/html' href='http://windowsinternals.blogspot.com/2019/01/repair-boot-files-bcdedit-in-windows.html' title='Repair the Boot Files (bcdedit) in Windows Server'/><author><name>Vikas Sangani</name><uri>http://www.blogger.com/profile/11036119603767085916</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5593231954608974296.post-3357685637545688167</id><published>2017-01-31T17:27:00.001-08:00</published><updated>2017-01-31T17:27:12.400-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="powershell"/><category scheme="http://www.blogger.com/atom/ns#" term="shortcut"/><title type='text'>Create a file shortcut using PowerShell</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-family: &amp;quot;Source Sans Pro&amp;quot;, sans-serif; font-weight: 500; line-height: 1.1; margin: 1em 0px 0.34em; text-align: left; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Here’s a quick script to create a shortcut to Notepad and put it on the public desktop.&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #767676; font-family: &amp;quot;Source Sans Pro&amp;quot;, sans-serif; overflow: auto; padding: 0.2em; text-align: left; vertical-align: baseline; width: auto;&quot;&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 4px; border: 0px; box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 16.25px; overflow: auto; padding: 9.5px; vertical-align: baseline; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; color: #008800; font-style: italic; vertical-align: baseline;&quot;&gt;# Create a Shortcut with Windows PowerShell&lt;/span&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; color: darkgoldenrod; vertical-align: baseline;&quot;&gt;$TargetFile&lt;/span&gt; = &lt;span style=&quot;border: 0px; box-sizing: border-box; color: #bb4444; vertical-align: baseline;&quot;&gt;&quot;$env:SystemRoot\System32\notepad.exe&quot;&lt;/span&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; color: darkgoldenrod; vertical-align: baseline;&quot;&gt;$ShortcutFile&lt;/span&gt; = &lt;span style=&quot;border: 0px; box-sizing: border-box; color: #bb4444; vertical-align: baseline;&quot;&gt;&quot;$env:Public\Desktop\Notepad.lnk&quot;&lt;/span&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; color: darkgoldenrod; vertical-align: baseline;&quot;&gt;$WScriptShell&lt;/span&gt; = &lt;span style=&quot;border: 0px; box-sizing: border-box; color: #aa22ff; vertical-align: baseline;&quot;&gt;New-Object&lt;/span&gt; -ComObject WScript.Shell
&lt;span style=&quot;border: 0px; box-sizing: border-box; color: darkgoldenrod; vertical-align: baseline;&quot;&gt;$Shortcut&lt;/span&gt; = &lt;span style=&quot;border: 0px; box-sizing: border-box; color: darkgoldenrod; vertical-align: baseline;&quot;&gt;$WScriptShell&lt;/span&gt;.CreateShortcut(&lt;span style=&quot;border: 0px; box-sizing: border-box; color: darkgoldenrod; vertical-align: baseline;&quot;&gt;$ShortcutFile&lt;/span&gt;)
&lt;span style=&quot;border: 0px; box-sizing: border-box; color: darkgoldenrod; vertical-align: baseline;&quot;&gt;$Shortcut&lt;/span&gt;.TargetPath = &lt;span style=&quot;border: 0px; box-sizing: border-box; color: darkgoldenrod; vertical-align: baseline;&quot;&gt;$TargetFile&lt;/span&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; color: darkgoldenrod; vertical-align: baseline;&quot;&gt;$Shortcut&lt;/span&gt;.Save()&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-family: &amp;quot;Source Sans Pro&amp;quot;, sans-serif; margin-bottom: 0.8em !important; text-align: left; vertical-align: baseline;&quot;&gt;
Save this script into a PowerShell script file (.ps1 file). Run this script to create notepad shortcut.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://windowsinternals.blogspot.com/feeds/3357685637545688167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5593231954608974296/3357685637545688167' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/3357685637545688167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/3357685637545688167'/><link rel='alternate' type='text/html' href='http://windowsinternals.blogspot.com/2017/01/create-file-shortcut-using-powershell.html' title='Create a file shortcut using PowerShell'/><author><name>Vikas Sangani</name><uri>http://www.blogger.com/profile/11036119603767085916</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5593231954608974296.post-7244318914208462831</id><published>2014-04-08T02:33:00.001-07:00</published><updated>2014-04-08T02:33:22.810-07:00</updated><title type='text'>MS-DOS and Word for Windows Source Code Available to the Public</title><content type='html'>To my surprise, for the first time Microsoft has released its source code to the public. Yes, they released initial versions of MS-DOS OS source code. They also released Microsoft Word source code during early days. Click &lt;a href=&quot;http://www.computerhistory.org/press/ms-source-code.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; to get the source.&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://windowsinternals.blogspot.com/feeds/7244318914208462831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5593231954608974296/7244318914208462831' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/7244318914208462831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/7244318914208462831'/><link rel='alternate' type='text/html' href='http://windowsinternals.blogspot.com/2014/04/ms-dos-and-word-for-windows-source-code.html' title='MS-DOS and Word for Windows Source Code Available to the Public'/><author><name>Vikas Sangani</name><uri>http://www.blogger.com/profile/11036119603767085916</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5593231954608974296.post-5851913249711131745</id><published>2013-12-11T23:07:00.003-08:00</published><updated>2013-12-11T23:07:48.851-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SRIOV"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtualization"/><title type='text'>“Everything You Wanted to Know about SR-IOV in Hyper-V” by John Howard</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Very good articles on SRIOV by John Howard.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
-----------------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 1:&amp;nbsp;&lt;a href=&quot;http://blogs.technet.com/b/jhoward/archive/2012/03/12/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-1.aspx&quot; style=&quot;color: #0066dd; cursor: pointer; outline: none; text-decoration: none;&quot;&gt;http://blogs.technet.com/b/jhoward/archive/2012/03/12/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-1.aspx&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 1 discusses emulated versus software devices, the pros and cons and constraints of each and why Microsoft is investing in SR-IOV.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
-----------------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 2:&amp;nbsp;&lt;a href=&quot;http://blogs.technet.com/b/jhoward/archive/2012/03/13/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-2.aspx&quot; style=&quot;color: #0066dd; cursor: pointer; outline: none; text-decoration: none;&quot;&gt;http://blogs.technet.com/b/jhoward/archive/2012/03/13/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-2.aspx&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 2 discusses the SR-IOV standard, physical functions (PFs) virtual functions (VFs) and the hardware requirements to make SR-IOV even possible.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
-----------------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 3:&amp;nbsp;&lt;a href=&quot;http://blogs.technet.com/b/jhoward/archive/2012/03/14/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-3.aspx&quot; style=&quot;color: #0066dd; cursor: pointer; outline: none; text-decoration: none;&quot;&gt;http://blogs.technet.com/b/jhoward/archive/2012/03/14/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-3.aspx&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 3 discusses device drivers and how they function in an SR-IOV environment as well as screenshots of an SR-IOV NIC within a Hyper-V VM.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
-----------------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 4:&amp;nbsp;&lt;a href=&quot;http://blogs.technet.com/b/jhoward/archive/2012/03/15/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-4.aspx&quot; style=&quot;color: #0066dd; cursor: pointer; outline: none; text-decoration: none;&quot;&gt;http://blogs.technet.com/b/jhoward/archive/2012/03/15/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-4.aspx&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 4 discusses some of the low level necessary firmware and motherboard changes to make SR-IOV function and provides a pointer to an interesting presentation given 4 years ago at WinHEC 2008 by Jake Oshins that provides further insight into SR-IOV.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
-----------------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 5:&amp;nbsp;&lt;a href=&quot;http://blogs.technet.com/b/jhoward/archive/2012/03/16/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-5.aspx&quot; style=&quot;color: #0066dd; cursor: pointer; outline: none; text-decoration: none;&quot;&gt;http://blogs.technet.com/b/jhoward/archive/2012/03/16/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-5.aspx&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 5 explains the IO path with SR-IOV enabled, covers SR-IOV configuration via the UI and a deeper dive into PowerShell.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
-----------------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 6:&amp;nbsp;&lt;a href=&quot;http://blogs.technet.com/b/jhoward/archive/2012/03/19/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-6.aspx&quot; style=&quot;color: #0066dd; cursor: pointer; outline: none; text-decoration: none;&quot;&gt;http://blogs.technet.com/b/jhoward/archive/2012/03/19/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-6.aspx&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 6 discusses SR-IOV and Live Migration in detail. It covers the engineering challenge of making SR-IOV work with Live Migration (not trivial folks) and even includes a video that demonstrates a virtual machine with an SR-IOV NIC under load being Live Migrated. There’s even a link to a WinHEC 2006 presentation (told you we’ve been looking at this technology a while…)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
-----------------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 7:&amp;nbsp;&lt;a href=&quot;http://blogs.technet.com/b/jhoward/archive/2012/03/20/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-7.aspx&quot; style=&quot;color: #0066dd; cursor: pointer; outline: none; text-decoration: none;&quot;&gt;http://blogs.technet.com/b/jhoward/archive/2012/03/20/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-7.aspx&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 7 discusses SR-IOV and how it works with the new inbox Windows Server 2012 NIC Teaming. Yes folks, you can team SR-IOV NICs in the guest.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
-----------------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 8:&amp;nbsp;&lt;a href=&quot;http://blogs.technet.com/b/jhoward/archive/2012/03/21/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-8.aspx&quot; style=&quot;color: #0066dd; cursor: pointer; outline: none; text-decoration: none;&quot;&gt;http://blogs.technet.com/b/jhoward/archive/2012/03/21/everything-you-wanted-to-know-about-sr-iov-in-hyper-v-part-8.aspx&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.15625px;&quot;&gt;
Part 8 discusses debugging SR-IOV and includes examples in PowerShell and covers troubleshooting through the Event Viewer.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://windowsinternals.blogspot.com/feeds/5851913249711131745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5593231954608974296/5851913249711131745' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/5851913249711131745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/5851913249711131745'/><link rel='alternate' type='text/html' href='http://windowsinternals.blogspot.com/2013/12/everything-you-wanted-to-know-about-sr.html' title='“Everything You Wanted to Know about SR-IOV in Hyper-V” by John Howard'/><author><name>Vikas Sangani</name><uri>http://www.blogger.com/profile/11036119603767085916</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5593231954608974296.post-6370395192336108763</id><published>2013-11-08T23:57:00.001-08:00</published><updated>2013-11-08T23:57:21.342-08:00</updated><title type='text'>Want to crash the system manually?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
You have seen BSOD on windows system many times. But may wonder how to crash it manually. Here is the tool that can help you do it.&lt;br /&gt;
&lt;br /&gt;
http://download.sysinternals.com/files/NotMyFault.zip&lt;br /&gt;
Note: This is not my application. It is owned by sysinternals.com&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://windowsinternals.blogspot.com/feeds/6370395192336108763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5593231954608974296/6370395192336108763' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/6370395192336108763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/6370395192336108763'/><link rel='alternate' type='text/html' href='http://windowsinternals.blogspot.com/2013/11/want-to-crash-system-manually.html' title='Want to crash the system manually?'/><author><name>Vikas Sangani</name><uri>http://www.blogger.com/profile/11036119603767085916</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5593231954608974296.post-3879787242133064805</id><published>2013-11-08T23:45:00.000-08:00</published><updated>2013-11-08T23:45:25.210-08:00</updated><title type='text'>Interview Questions 2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;How to find the middle node from a link list?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
middle = last = head;&lt;br /&gt;
&lt;br /&gt;
while( last!=NULL &amp;amp;&amp;amp; last-&amp;gt;next != NULL )&lt;br /&gt;
{&lt;br /&gt;
middle = middle-&amp;gt;next;&lt;br /&gt;
last = last-&amp;gt;next-&amp;gt;next;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// here middle element is in the middle of list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;How to count the number of on bits in the number?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
count=0;&lt;br /&gt;
while( n&amp;gt;0 )&lt;br /&gt;
{&lt;br /&gt;
if( n &amp;amp; 1 )&lt;br /&gt;
{&lt;br /&gt;
count++;&lt;br /&gt;
}&lt;br /&gt;
n = n&amp;gt;&amp;gt;1;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;How can you delete a node from a singly link list?&lt;br /&gt;you are provided with only the pointer to node.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Save next node.&lt;br /&gt;
Copy all the data from the next node to the current node.&lt;br /&gt;
copy the next pointer from next node to the current node.&lt;br /&gt;
then delete the next node.&lt;br /&gt;
&lt;br /&gt;
temp = node-&amp;gt;next;&lt;br /&gt;
node-&amp;gt;data = node-&amp;gt;next-&amp;gt;data;&lt;br /&gt;
node-&amp;gt;next = node-&amp;gt;next-&amp;gt;next;&lt;br /&gt;
delte temp;&lt;br /&gt;
&lt;br /&gt;
This would not work if the provided node is last element.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://windowsinternals.blogspot.com/feeds/3879787242133064805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5593231954608974296/3879787242133064805' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/3879787242133064805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/3879787242133064805'/><link rel='alternate' type='text/html' href='http://windowsinternals.blogspot.com/2013/11/interview-questions-2.html' title='Interview Questions 2'/><author><name>Vikas Sangani</name><uri>http://www.blogger.com/profile/11036119603767085916</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5593231954608974296.post-109686112804536348</id><published>2013-10-21T05:50:00.003-07:00</published><updated>2013-10-21T05:50:55.408-07:00</updated><title type='text'>Windows Server core 2008 R2 Commands</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Hostname, domain membership:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 520px;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Rename computer&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netdom renamecomputer %computername%
  /newname:MyNewHostname&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Join machine to domain&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netdom join %computername%
  /domain:corp.mycompany.com/userd:CORP\jsmith&amp;nbsp;/passwordd:*&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Rename computer while joined to domain&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netdom renamecomputer %computername%
  /newname:MyNewHostname/userd:CORP\jsmith&amp;nbsp;/passwordd:*&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Remove machine from domain&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netdom remove %computername%&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Interfaces and addresses:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 520px;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
View the current interface list&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netsh interface show interface&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Set static IP, mask, gateway&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netsh interface ipv4 set address&amp;nbsp;”Local Area
  Connection”source=static&amp;nbsp;10.3.1.11&amp;nbsp;255.255.255.0&amp;nbsp;10.3.1.1&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Set primary DNS server&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netsh interface ipv4 add dnsserver&amp;nbsp;”Local Area
  Connection”address=10.3.1.21&amp;nbsp;index=1&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Set secondary DNS server&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netsh interface ipv4 add dnsserver&amp;nbsp;”Local Area
  Connection”address=10.3.1.22&amp;nbsp;index=2&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Remove DNS server from interface&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netsh interface ipv4 delete dnsservers&amp;nbsp;”Local Area
  Connection”10.3.1.21&amp;nbsp;(or&amp;nbsp;all)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Set interface to DHCP&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netsh interface ipv4 set address&amp;nbsp;”Local Area
  Connection”source=dhcp&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Disable interface&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netsh interface set interface “Local Area Connection”
  disabled&amp;nbsp;(orenabled&amp;nbsp;to re-enable)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Drivers and services:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 520px;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Query active drivers&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
sc query type= driver&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Install a driver&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
pnputil -i -a&amp;nbsp;oemdriver.inf&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
List running services&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
sc query&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Start / stop a service&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
sc start&amp;nbsp;(service name) sc stop&amp;nbsp;(service name)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Disable a service&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
sc config&amp;nbsp;(service name)&amp;nbsp;start= disabled&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Windows Firewall, remote management:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 520px;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Allow server to be managed by Remote Desktop&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
cscript C:\Windows\System32\SCregEdit.wsf /ar 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Verify registry entry for above&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
cscript C:\Windows\System32\SCregEdit.wsf /ar v&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Allow Remote Desktop sessions from older RDP clients
  (lower security setting)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
cscript C:\Windows\System32\SCregEdit.wsf /cs 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Verify registry entry for above&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
cscript C:\Windows\System32\Scregedit.wsf /cs v&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Windows Firewall: allow ICMPv4 echo-request inbound&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netsh advfirewall firewall add rule name=”ICMP Allow
  incoming V4 echo request” protocol=icmpv4:8,any dir=in action=allow&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Windows Firewall: allow Remote Desktop&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netsh advfirewall firewall set rule group=”Remote Desktop”
  new enable=yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Windows Firewall: allow remote management of Windows
  Firewall&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netsh advfirewall firewall set rule group=”Windows
  Firewall Remote Management” new enable=yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Windows Firewall: allow remote management of OS via MMC
  snap-ins&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netsh advfirewall firewall set rule group=”Remote
  Administration” new enable=yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Enable Windows Remote Shell&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
WinRM quickconfig&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Power management:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 520px;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
List existing Power Schemes&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
powercfg -l&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Turn hibernation off&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
powercfg -hibernate OFF&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Set absentia power scheme (used when no one is logged in)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
powercfg
  -setabsentia&amp;nbsp;8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Set Power Configuration for High Performance&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Other:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 520px;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Install OS product key&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
slmgr.vbs -ipk&amp;nbsp;1234-5678-90ab-cdef-ghij&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Activate OS installation&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
slmgr.vbs -ato&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
List processes&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
tasklist&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Kill process by process ID&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
taskkill /PID&amp;nbsp;3852&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Invoke Task Manager&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
taskmgr&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
List log names&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
wevtutil el&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Export log to file&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
wevtutil epl&amp;nbsp;c:\mylog1.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Query log for events&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
wevtutil qe /f:text&amp;nbsp;System&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Clear log&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
wevtutil cl&amp;nbsp;System&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Adjust paging file&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
wmic pagefileset where name=”d:\pagefile.sys” set
  InitialSize=1024,MaximumSize=2048&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Set proxy setting&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
netsh winhttp set proxymyproxy.corp.mycompany.com:8080&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Add domain account to local Administrators group&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
net localgroup Administrators /add&amp;nbsp;CORP\jsmith&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Delete domain account from local Administrators group&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
net localgroup Administrators /delete&amp;nbsp;CORP\jsmith&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Reboot the machine immediately&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
shutdown /r /f /t 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Log off current interactive session&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
logoff&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
View installed roles:&amp;nbsp;Dism /online /get-features
/format:table&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 520px;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Active Directory Certificate Services&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:CertificateServicesUninstall:&amp;nbsp;Dism /online /disable-feature
  /featurename:CertificateServices&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Active Directory Lightweight Directory Services&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:DirectoryServices-ADAM-ServerCore&amp;nbsp;Uninstall:&amp;nbsp;Dism
  /online /disable-feature /featurename:DirectoryServices-ADAM-ServerCore&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Active Directory Domain Services&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
dcpromo /unattend:myunattend.txt&amp;nbsp;&amp;nbsp;Demote:&amp;nbsp;dcpromo&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
DNS Server&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:DNS-Server-Core-RoleManage:&amp;nbsp;dnscmd&amp;nbsp;Uninstall:&amp;nbsp;Dism
  /online /disable-feature /featurename:DNS-Server-Core-Role&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
DHCP Server&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature /featurename:DHCPServerCore&amp;nbsp;Manage:&amp;nbsp;netsh
  sc config dhcpserver start= auto net start dhcpserver&amp;nbsp;Uninstall:&amp;nbsp;Dism
  /online /disable-feature /featurename:DHCPServerCore&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
File Services&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:FRS-infrastructure Dism /online /enable-feature
  /featurename:DFSN-Server Dism /online /enable-feature
  /featurename:DFSN-Server Dism /online /enable-feature
  /featurename:ServerForNFS-Base Dism /online /enable-feature
  /featurename:ClientForNFS-Base&amp;nbsp;Uninstall:&amp;nbsp;Dism /online
  /disable-feature /featurename:(specify role name)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Hyper-V&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:Microsoft-Hyper-V&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Print Services&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:Printing-ServerCore-Role&amp;nbsp;32-bit support:&amp;nbsp;Dism /online
  /enable-feature /featurename:Printing-ServerCore-Role-WOW64 Dism /online
  /enable-feature /featurename:Printing-LPDPrint-Service&amp;nbsp;(manage by using
  Print Management console from another machine)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
View installed features:&amp;nbsp;Dism /online /get-features
/format:table&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 520px;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
BranchCache&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature /featurename:PeerDistDism
  /online /enable-feature /featurename:PeerDistHashPDism /online
  /enable-feature /featurename:SMBHashGeneration&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
IIS Management Service&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:IIS-ManagementServiceEnable remote management:HKLM\Software\Microsoft\WebManagement\Server&amp;nbsp;-
  changeEnableRemoteManagement&amp;nbsp;to 1;&amp;nbsp;net start wmsvc&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Input Method Editor 32-bit support&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:ServerCore-EA-IME-WOW64&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
.NET Framework 2.0&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:NetFx2-ServerCore&amp;nbsp;32-bit support:&amp;nbsp;Dism /online
  /enable-feature /featurename:NetFx2-ServerCore-WOW64&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
.NET Framework 3.0 and 3.5&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:NetFx3-ServerCore&amp;nbsp;32-bit support:&amp;nbsp;Dism /online
  /enable-feature /featurename:NetFx2-ServerCore-WOW64&amp;nbsp;32-bit
  support:&amp;nbsp;Dism /online /enable-feature
  /featurename:NetFx3-ServerCore-WOW64&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
QWAVE&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature /featurename:QWAVE&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Removable Storage&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:Microsoft-Windows-RemovableStorageManagementCore&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Simple Network Management Protocol (SNMP)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature /featurename:SNMP-SC&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Subsystem for UNIX-based applications&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature /featurename:SUACore&amp;nbsp;32-bit
  support:&amp;nbsp;Dism /online /enable-feature /featurename:SUACore-WOW64&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Telnet client&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature /featurename:TelnetClient&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Windows Internet Name Service (WINS)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature /featurename:WINS-SC&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Windows PowerShell&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:MicrosoftWindowsPowerShell32-bit support:&amp;nbsp;Dism
  /online/enable-feature /featurename:MicrosoftWindowsPowerShell-WOW64&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Windows PowerShell Best Practices Analyzer cmdlets&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:BestPractices-PSH-Cmdlets&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Windows PowerShell Server Manager cmdlets&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:ServerManager-PSH-Cmdlets&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Windows Server Backup&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:WindowsServerBackup&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Windows Server Backup Windows PowerShell cmdlets&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:WindowsServerBackupCommandlet&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Windows Server Migration Tools&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature /featurename:ServerMigration&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
WoW64&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature /featurename:ServerCore-WOW64(installed
  by default)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
The following may require additional hardware:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 520px;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
BitLocker Drive Encryption&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature /featurename:BitLocker&amp;nbsp;Remote
  administration tool:&amp;nbsp;Dism /online /enable-feature /featurename:
  BitLocker-RemoteAdminTool&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Failover Clustering&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:FailoverCluster-Core&amp;nbsp;(not supported in Standard Edition)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Multipath IO&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature /featurename:MultipathIo&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Network Load Balancing&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 0in 0in 0in;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Dism /online /enable-feature
  /featurename:NetworkLoadBalancingHeadlessServer&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Uninstall:&amp;nbsp;Dism /online /disable-feature
/featurename:(specify feature name)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;header style=&quot;background-color: #979797; color: #666666; font-family: Georgia, Garamond, Baskerville, &#39;Times New Roman&#39;, Times, serif; font-size: 12px; line-height: 18px;&quot;&gt;
&lt;/header&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://windowsinternals.blogspot.com/feeds/109686112804536348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5593231954608974296/109686112804536348' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/109686112804536348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/109686112804536348'/><link rel='alternate' type='text/html' href='http://windowsinternals.blogspot.com/2013/10/windows-server-core-2008-r2-commands.html' title='Windows Server core 2008 R2 Commands'/><author><name>Vikas Sangani</name><uri>http://www.blogger.com/profile/11036119603767085916</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5593231954608974296.post-3145392518247275116</id><published>2011-02-15T19:15:00.000-08:00</published><updated>2011-02-15T19:15:18.035-08:00</updated><title type='text'>Windows subclassing</title><content type='html'>&lt;div&gt;Useful links on windows subclassing&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href=&quot;http://www.codeproject.com/KB/dialog/Windows_subclassing.aspx&quot;&gt;Windows subclassing and hooking with C++ classes - CodeProject&lt;/a&gt;&lt;div&gt;&lt;a href=&quot;http://www.codeguru.com/forum/showthread.php?t=421803&quot;&gt;http://www.codeguru.com/forum/showthread.php?t=421803&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.go4expert.com/forums/showthread.php?t=19754&quot;&gt;http://www.go4expert.com/forums/showthread.php?t=19754&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.codeproject.com/KB/dialog/messagehandling4.aspx&quot;&gt;http://www.codeproject.com/KB/dialog/messagehandling4.aspx&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.tenouk.com/visualcplusmfc/visualcplusmfc10.html&quot;&gt;http://www.tenouk.com/visualcplusmfc/visualcplusmfc10.html&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://windowsinternals.blogspot.com/feeds/3145392518247275116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5593231954608974296/3145392518247275116' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/3145392518247275116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/3145392518247275116'/><link rel='alternate' type='text/html' href='http://windowsinternals.blogspot.com/2011/02/windows-subclassing.html' title='Windows subclassing'/><author><name>Vikas Sangani</name><uri>http://www.blogger.com/profile/11036119603767085916</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5593231954608974296.post-4187770776765235803</id><published>2008-10-16T04:31:00.000-07:00</published><updated>2008-10-16T04:32:42.756-07:00</updated><title type='text'>Interview Questions</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;How to find the middle node from a link list?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;middle = last = head;&lt;br /&gt;&lt;br /&gt;while( last!=NULL &amp;&amp; last-&gt;next != NULL )&lt;br /&gt;{&lt;br /&gt; middle = middle-&gt;next;&lt;br /&gt; last = last-&gt;next-&gt;next;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// here middle element is in the middle of list&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;How to count the number of on bits in the number?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;count=0;&lt;br /&gt;while( n&gt;0 )&lt;br /&gt;{&lt;br /&gt; if( n &amp; 1 )&lt;br /&gt; {&lt;br /&gt;  count++;&lt;br /&gt; }&lt;br /&gt; n = n&gt;&gt;1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;How can you delete a node from a singly link list?&lt;br /&gt;you are provided with only the pointer to node.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Save next node.&lt;br /&gt;Copy all the data from the next node to the current node.&lt;br /&gt;copy the next pointer from next node to the current node.&lt;br /&gt;then delete the next node.&lt;br /&gt;&lt;br /&gt;temp = node-&gt;next;&lt;br /&gt;node-&gt;data = node-&gt;next-&gt;data;&lt;br /&gt;node-&gt;next = node-&gt;next-&gt;next;&lt;br /&gt;delte temp;&lt;br /&gt;&lt;br /&gt;This would not work if the provided node is last element.</content><link rel='replies' type='application/atom+xml' href='http://windowsinternals.blogspot.com/feeds/4187770776765235803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5593231954608974296/4187770776765235803' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/4187770776765235803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/4187770776765235803'/><link rel='alternate' type='text/html' href='http://windowsinternals.blogspot.com/2008/10/interview-questions.html' title='Interview Questions'/><author><name>Vikas Sangani</name><uri>http://www.blogger.com/profile/11036119603767085916</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5593231954608974296.post-5215854127915055646</id><published>2008-08-04T04:25:00.000-07:00</published><updated>2008-08-04T04:29:44.862-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="non blocking socket"/><title type='text'>How to create non-blocking socket?</title><content type='html'>Alternative to blocking socket we can have non-blocking socket. Any call on these socket will return without blocking.&lt;br /&gt;Following code illustrates how to create a non-blocking socket.&lt;br /&gt;&lt;br /&gt;SOCKET s;&lt;br /&gt;unsigned long ulMode = 1;&lt;br /&gt;int nRet;&lt;br /&gt;&lt;br /&gt;s = socket(AF_INET, SOCK_STREAM, 0);&lt;br /&gt;nRet = ioctlsocket(s, FIOBIO, (unsigned long *) &amp;ulMode);&lt;br /&gt;if (nRet == SOCKET_ERROR)&lt;br /&gt;{&lt;br /&gt;    //Failed to put the socket into nonblocking mode&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Here ulMode value 1 enables socket non-blocking mode.&lt;br /&gt;changing this value to 0 disables non-blocking mode.&lt;br /&gt;&lt;br /&gt;The WSAAsyncSelect and WSAEventSelect functions automatically set a socket to nonblocking mode. If WSAAsyncSelect or WSAEventSelect has been issued on a socket, then any attempt to use ioctlsocket to set the socket back to blocking mode will fail with WSAEINVAL.&lt;br /&gt;&lt;br /&gt;To set the socket back to blocking mode, an application must first disable WSAAsyncSelect by calling WSAAsyncSelect with the lEvent parameter equal to zero, or disable WSAEventSelect by calling WSAEventSelect with the lNetworkEvents parameter equal to zero.</content><link rel='replies' type='application/atom+xml' href='http://windowsinternals.blogspot.com/feeds/5215854127915055646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5593231954608974296/5215854127915055646' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/5215854127915055646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/5215854127915055646'/><link rel='alternate' type='text/html' href='http://windowsinternals.blogspot.com/2008/08/how-to-create-non-blocking-socket.html' title='How to create non-blocking socket?'/><author><name>Vikas Sangani</name><uri>http://www.blogger.com/profile/11036119603767085916</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5593231954608974296.post-2873578678012164491</id><published>2008-05-16T07:34:00.000-07:00</published><updated>2008-05-16T07:36:39.498-07:00</updated><title type='text'>How to share an event with kernel and user mode applications</title><content type='html'>Follow the simple  steps to  do.&lt;br /&gt;&lt;br /&gt;1. Create event object in user mode application&lt;br /&gt;&lt;br /&gt;****User mode****&lt;br /&gt;HANDLE SharedEvent;&lt;br /&gt;SharedEvent = CreateEvent(NULL, TRUE, FALSE, &quot;SharedEvent&quot;);&lt;br /&gt;*****************&lt;br /&gt;&lt;br /&gt;2. Open event object in kernel mode application&lt;br /&gt;we use BaseNamedObjects in the event name because when user mode application creates event,&lt;br /&gt;Object managet creates it under BaseNamedObjects namespace.&lt;br /&gt;&lt;br /&gt;****Kernel mode****&lt;br /&gt;HANDLE SharedEventHandle = NULL;&lt;br /&gt;PKEVENT SharedEvent    = NULL;&lt;br /&gt;RtlInitUnicodeString(&amp;amp;EventName, L&quot;\\BaseNamedObjects\\SharedEvent&quot;);&lt;br /&gt;SharedEvent = IoCreateNotificationEvent(&amp;amp;EventName, &amp;amp;SharedEventHandle);&lt;br /&gt;ObReferenceObject(SharedEvent);&lt;br /&gt;*****************&lt;br /&gt;&lt;br /&gt;3. Wait on the event in any user or kernel mode application&lt;br /&gt;&lt;br /&gt;****User mode****&lt;br /&gt;WaitForSingleObject(SharedEvent, INFINITE);&lt;br /&gt;*****************&lt;br /&gt;&lt;br /&gt;4. Signal event from any user or kernel mode application&lt;br /&gt;&lt;br /&gt;****Kernel mode****&lt;br /&gt;KeSetEvent(SharedEvent, 0, FALSE);&lt;br /&gt;*****************&lt;br /&gt;&lt;br /&gt;5. Close any resources in both user and kernel mode&lt;br /&gt;&lt;br /&gt;****User mode****&lt;br /&gt;CloseHandle(SharedEvent);&lt;br /&gt;*****************&lt;br /&gt;&lt;br /&gt;****Kernel mode****&lt;br /&gt;ZwClose(SharedEventHandle);&lt;br /&gt;ObDereferenceObject(SharedEvent);&lt;br /&gt;*******************&lt;br /&gt;&lt;br /&gt;- vikas</content><link rel='replies' type='application/atom+xml' href='http://windowsinternals.blogspot.com/feeds/2873578678012164491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5593231954608974296/2873578678012164491' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/2873578678012164491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/2873578678012164491'/><link rel='alternate' type='text/html' href='http://windowsinternals.blogspot.com/2008/05/how-to-share-event-with-kernel-and-user.html' title='How to share an event with kernel and user mode applications'/><author><name>Vikas Sangani</name><uri>http://www.blogger.com/profile/11036119603767085916</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5593231954608974296.post-1574567505038253559</id><published>2008-05-15T09:18:00.000-07:00</published><updated>2008-05-15T09:21:37.836-07:00</updated><title type='text'>How to enable or disable the device</title><content type='html'>&lt;span style=&quot;font-family: times new roman;font-size:100%;&quot; &gt;Here is the function to enable or disable the device.&lt;br /&gt;You need to use setupapi.&lt;br /&gt;&lt;br /&gt;INPUTS&lt;br /&gt;bEnable - True enables the device, false disable it&lt;br /&gt;hDevInfo - Handle to device information set get from SetupDiGetClassDevs or similiar function&lt;br /&gt;spDevInfoData - It is device information data for the device you are enabling&lt;br /&gt;&lt;br /&gt;BOOL EnableDevice(BOOL bEnable,HDEVINFO hDevInfo,SP_DEVINFO_DATA&amp;amp; spDevInfoData)&lt;br /&gt;{&lt;br /&gt;    SP_PROPCHANGE_PARAMS spPropChangeParams;&lt;br /&gt;    SP_DEVINSTALL_PARAMS devParams;&lt;br /&gt;&lt;br /&gt;    if( bEnable )&lt;br /&gt;    {&lt;br /&gt;        // Enable both on global and config-specific profile&lt;br /&gt;        spPropChangeParams.ClassInstallHeader.cbSize = sizeof(SP_CLASSINSTALL_HEADER);&lt;br /&gt;        spPropChangeParams.ClassInstallHeader.InstallFunction = DIF_PROPERTYCHANGE;&lt;br /&gt;        spPropChangeParams.StateChange = DICS_ENABLE;&lt;br /&gt;        spPropChangeParams.Scope = DICS_FLAG_GLOBAL;&lt;br /&gt;        spPropChangeParams.HwProfile = 0;&lt;br /&gt;&lt;br /&gt;        // We don&#39;t care if this function fails. we will get it at config specific profile&lt;br /&gt;        if(SetupDiSetClassInstallParams(hDevInfo,&lt;br /&gt;            &amp;amp;spDevInfoData,&lt;br /&gt;            &amp;amp;spPropChangeParams.ClassInstallHeader,&lt;br /&gt;            sizeof(spPropChangeParams)) )&lt;br /&gt;        {&lt;br /&gt;            SetupDiCallClassInstaller(DIF_PROPERTYCHANGE,hDevInfo,&amp;amp;spDevInfoData);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        // Perform enable on config-specific profile&lt;br /&gt;        spPropChangeParams.ClassInstallHeader.cbSize = sizeof(SP_CLASSINSTALL_HEADER);&lt;br /&gt;        spPropChangeParams.ClassInstallHeader.InstallFunction = DIF_PROPERTYCHANGE;&lt;br /&gt;        spPropChangeParams.StateChange = DICS_ENABLE;&lt;br /&gt;        spPropChangeParams.Scope = DICS_FLAG_CONFIGSPECIFIC;&lt;br /&gt;        spPropChangeParams.HwProfile = 0;&lt;br /&gt;    }&lt;br /&gt;    else&lt;br /&gt;    {&lt;br /&gt;        // Perform disable on config-specific profile&lt;br /&gt;        spPropChangeParams.ClassInstallHeader.cbSize = sizeof(SP_CLASSINSTALL_HEADER);&lt;br /&gt;        spPropChangeParams.ClassInstallHeader.InstallFunction = DIF_PROPERTYCHANGE;&lt;br /&gt;        spPropChangeParams.StateChange = DICS_DISABLE;&lt;br /&gt;        spPropChangeParams.Scope = DICS_FLAG_CONFIGSPECIFIC;&lt;br /&gt;        spPropChangeParams.HwProfile = 0;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    if(!SetupDiSetClassInstallParams(hDevInfo,&lt;br /&gt;        &amp;amp;spDevInfoData,&lt;br /&gt;        &amp;amp;spPropChangeParams.ClassInstallHeader,&lt;br /&gt;        sizeof(spPropChangeParams)) ||&lt;br /&gt;        !SetupDiCallClassInstaller(DIF_PROPERTYCHANGE,hDevInfo,&amp;amp;spDevInfoData) )&lt;br /&gt;    {&lt;br /&gt;        // Failed to invoke DIF_PROPERTYCHANGE&lt;br /&gt;    }&lt;br /&gt;    else&lt;br /&gt;    {&lt;br /&gt;        // Config specific profile sets reboot flag if it needs reboot.&lt;br /&gt;        devParams.cbSize = sizeof(devParams);&lt;br /&gt;        if(SetupDiGetDeviceInstallParams(hDevInfo,&amp;amp;spDevInfoData,&amp;amp;devParams) &amp;amp;&amp;amp;&lt;br /&gt;            (devParams.Flags &amp;amp; (DI_NEEDRESTART|DI_NEEDREBOOT)) )&lt;br /&gt;        {&lt;br /&gt;            // It needs reboot or restart&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;            // We are done successfully.&lt;br /&gt;            return TRUE;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    return FALSE;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://windowsinternals.blogspot.com/feeds/1574567505038253559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5593231954608974296/1574567505038253559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/1574567505038253559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5593231954608974296/posts/default/1574567505038253559'/><link rel='alternate' type='text/html' href='http://windowsinternals.blogspot.com/2008/05/how-to-enable-or-disable-device.html' title='How to enable or disable the device'/><author><name>Vikas Sangani</name><uri>http://www.blogger.com/profile/11036119603767085916</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>