<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Tips and Tricks</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/tfos/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/tfos/feed.xml</link>
    <description />
    <lastBuildDate>Tue, 16 Apr 2019 05:33:34 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Remove the Control + Alt + Delete screen at logon in Windows 7</title>
      <link>https://docs.microsoft.com/archive/blogs/tfos/remove-the-control-alt-delete-screen-at-logon-in-windows-7</link>
      <pubDate>Tue, 19 Oct 2010 18:41:12 GMT</pubDate>
      <dc:creator><![CDATA[Tim Fosler]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/tfos/2010/10/19/remove-the-control-alt-delete-screen-at-logon-in-windows-7/</guid>
      <description><![CDATA[Recently I purchased a HP Multi-Touch 2740p laptop, regretfully the security button on this laptop...]]></description>
      <content:encoded><![CDATA[<p>Recently I purchased a <a href="https://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/321957-321957-64295-3740645-3955549-4145567.html">HP Multi-Touch 2740p</a> laptop, regretfully the security button on this laptop is embedded into the monitor and requires a small pen or the attached tablet pen to use. When the keyboard is hidden its a pain to get the security button depressed. In remembering some old OS (Windows XP) options there was a&nbsp;checkbox available where someone could go directly to the logon screen without having to use the ctrl+alt+del method or the provided security button. After about 10 minutes of looking around for the option (I am very impatient) I decided to take it old school. Here is how to get directly to the main security page and directly to the logon screen.</p>
<p>1) From the run command (Windows + r) enter the command "control userpasswords2" (without quotes).</p>
<p>2) This will open the "User Accounts" window, select the Advanced Tab on the top.</p>
<p>3) At the bottom of the window there will be a check box that says "Require users to press Ctrl+Alt+Delete" </p>
<p>4) Uncheck this box and click the apply button then the OK button.</p>
<p>5) You are now complete</p>]]></content:encoded>
    </item>
    <item>
      <title>CrawlScheduleDaysOfWeek Powershell automation scipting for crawl schedules</title>
      <link>https://docs.microsoft.com/archive/blogs/tfos/crawlscheduledaysofweek-powershell-automation-scipting-for-crawl-schedules</link>
      <pubDate>Tue, 05 Oct 2010 11:18:00 GMT</pubDate>
      <dc:creator><![CDATA[Tim Fosler]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/tfos/2010/10/05/crawlscheduledaysofweek-powershell-automation-scipting-for-crawl-schedules/</guid>
      <description><![CDATA[A coworker of mine ran into an issue yesterday that baffled us both for a few minutes, and due to...]]></description>
      <content:encoded><![CDATA[<p>A coworker of mine ran into an issue yesterday that baffled us both for a few minutes, and due to the lack of information online&nbsp;I thought I would write about it.</p>
<p>My coworker wrote a script in&nbsp;PowerShell to automate the scheduling of incremental crawls, being there were more than 80 of them to set up. When he was using the "<strong>CrawlScheduleDaysofWeek</strong>" parameter he found that the days of week were based on numbers and not names (makes sense right?). </p>
<p>In our attempts to dissect how the days where numbered we output and found that Sunday equaled 1, great . . . so now Monday equaled 2 . . . now we are getting some where. But the problem was Tuesday does <strong>not</strong> equal 3 it actually equals 4.</p>
<p>Let me explain&nbsp;why, in our coding background we found that for VB,&nbsp;C#, Java the "<strong>daysofweek</strong>" parameter is consistent in format no matter the language. The&nbsp;PowerShell team has taken this common format and applied it to the SharePoint PowerShell, which is great. Now we know that PowerShell has the same roots as other programming languages (or at least tries to stick with what people are already used too).</p>
<p>Below is the table (and for those of you yes it is a binary based format)</p>
<p>Here is the table for days of week number equivalent:</p>
<table border="0" style="width: 511px; height: 172px;">
<tbody>
<tr>
<td>Member Name</td>
<td>Description</td>
</tr>
<tr>
<td>Sunday</td>
<td>
<p>Value = 1</p>
</td>
</tr>
<tr>
<td>Monday</td>
<td>Value = 2</td>
</tr>
<tr>
<td>Tuesday</td>
<td>Value = 4</td>
</tr>
<tr>
<td>Wednesday</td>
<td>Value = 8</td>
</tr>
<tr>
<td>Thursday</td>
<td>Value = 16</td>
</tr>
<tr>
<td>Friday</td>
<td>
<p>Value = 32</p>
</td>
</tr>
<tr>
<td>Saturday</td>
<td>Value = 64</td>
</tr>
</tbody>
</table>
<p>So in order to get the right days of week simply add the numbers up and they will equal the days of week you want checked. In our case we wanted everyday but Tuesday to be checked for incremental crawls. We simply took all the days number equivelants and added them together minus Tuesday (127 - 4) which equaled&nbsp;123. When the script was ran it set up the schedule for Sunday thru Saturday and excluded Tuesdays checkbox in the SharePoint Crawl UI. Perfect. </p>
<p>Hope this helps everyone.</p>
<p>&nbsp;Some associated links that were used to put this together:</p>
<p class="MsoNoSpacing"><span style="font-family: Calibri;"><a href="https://technet.microsoft.com/en-us/library/ff607675.aspx"><span style="font-size: x-small;"><span style="color: #0000ff;"></span></span></a>
<p class="MsoNoSpacing"><a href="https://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.pocketoutlook.daysofweek.aspx"></a>
<p class="MsoNoSpacing"><a href="https://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.pocketoutlook.daysofweek.aspx"><span style="background-color: #ffffff;"><span style="font-size: x-small;"><span style="color: #0000ff;">https://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.pocketoutlook.daysofweek.aspx</span></span></span></a></p>
<p class="MsoNoSpacing"><o:p></o:p></p>
<p class="MsoNoSpacing"><a href="https://technet.microsoft.com/en-us/library/ff607675.aspx"><span style="background-color: #ffffff;"><span style="font-size: x-small;"><span style="color: #0000ff;">https://technet.microsoft.com/en-us/library/ff607675.aspx</span></span></span></a><o:p></o:p></p>
<p><a href="https://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.pocketoutlook.daysofweek.aspx"></a></p>
</p>
</span></p>
<p><a href="https://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.pocketoutlook.daysofweek.aspx"></a></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Windows Notification Dialog Boxes</title>
      <link>https://docs.microsoft.com/archive/blogs/tfos/windows-notification-dialog-boxes</link>
      <pubDate>Thu, 10 Jun 2010 13:37:00 GMT</pubDate>
      <dc:creator><![CDATA[Tim Fosler]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/tfos/2010/06/10/windows-notification-dialog-boxes/</guid>
      <description><![CDATA[If you administer machines or just simply like the dialog popups when you hover over files and...]]></description>
      <content:encoded><![CDATA[<p>If you administer machines or just simply like the dialog popups when you hover over files and folders. The below setting will allow you to manipulate the time in which the dialog box will remain open.</p>
<p>To open the "Ease of Access Center" press: <span style="line-height: 115%; font-family: 'Verdana','sans-serif'; font-size: 10pt; mso-fareast-font-family: Verdana; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Segoe UI'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">Windows logo key + U</span></p>
<p><span style="line-height: 115%; font-family: 'Verdana','sans-serif'; font-size: 10pt; mso-fareast-font-family: Verdana; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Segoe UI'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">Under "Explore All Settings", select: "Use the computer without a display" by pressing TAB, then ENTER</span></p>
<p><span style="line-height: 115%; font-family: 'Verdana','sans-serif'; font-size: 10pt; mso-fareast-font-family: Verdana; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Segoe UI'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">Under "Adjust time limits and flashing visuals", select: the drop down box and select the time you want (the interval is between 5 Seconds to 5 Minutes).</span></p>
<p><span style="line-height: 115%; font-family: 'Verdana','sans-serif'; font-size: 10pt; mso-fareast-font-family: Verdana; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Segoe UI'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"></span></p>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint 2010 prerequisite installer failed. . .</title>
      <link>https://docs.microsoft.com/archive/blogs/tfos/sharepoint-2010-prerequisite-installer-failed</link>
      <pubDate>Tue, 08 Jun 2010 09:04:00 GMT</pubDate>
      <dc:creator><![CDATA[Tim Fosler]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/tfos/2010/06/08/sharepoint-2010-prerequisite-installer-failed/</guid>
      <description><![CDATA[Hello and from the title you most likely landed on this article because your trying to install...]]></description>
      <content:encoded><![CDATA[<p>Hello and from the title you most likely landed on this article because your trying to install SharePoint 2010 and its failing. </p>
<p>This article is not intended to resolve your issue, more assist in some common issues found when installing the prerequisite. First and foremost, the server your trying to install SP2010 on&nbsp;has to be able to get to the Internet (Out to see the wonderful WWW). </p>
<p>Second (this was found by a collegue (Clinton Schneider)), he found that if you have not run the initial configuration wizard for IE8 (this is on Server 2008 R2 if you are wondering) the setup fails, the server&nbsp;is&nbsp;getting onto the web to grab Geneva (and some other bits)&nbsp;in order for the reprequisite installer to function. </p>
<p>Last but not least, please make sure that the account or user has administrative permissions to install applications and features on the server.</p>
<p>Big thanks to Clinton.</p>]]></content:encoded>
    </item>
    <item>
      <title>Windows 7 internal program for Icon Editing and Creating</title>
      <link>https://docs.microsoft.com/archive/blogs/tfos/windows-7-internal-program-for-icon-editing-and-creating</link>
      <pubDate>Tue, 01 Jun 2010 08:11:00 GMT</pubDate>
      <dc:creator><![CDATA[Tim Fosler]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/tfos/2010/06/01/windows-7-internal-program-for-icon-editing-and-creating/</guid>
      <description><![CDATA[OK super geeks out there. . .If you weren't previously aware Windows (for several editions now) has...]]></description>
      <content:encoded><![CDATA[<p>OK super geeks out there. . .If you weren't previously aware Windows (for several editions now) has an internal Icon editor/creator. This is a simplistic editor that comes packaged with your operating system.</p>
<p>To open the editor simply open a run* command and type EUDCEDIT (End User Defined Characters Editor)</p>
<p>This is a hexidecimal based editor, once the code base is selected you will get the actual editor, think of this as a mini-paint tool. The functionality is limited, but the abilities to application of custom icons&nbsp;are endless. From Outlook signatures to favicon's this highly functional tool is worth your time. </p>
<p>&nbsp;</p>
<p>* if you cannot see a run command button on your windows menu please follow the below steps (Windows 7):</p>
<p>Right Click your Windows menu button &gt; select "Start Menu" tab &gt; left click on the "Customize" button &gt; approx. 3/4 of the way down is the check box titled "Run command" put a "Check" in the box &gt; Click OK &gt; OK</p>]]></content:encoded>
    </item>
    <item>
      <title>Connection's to a web box</title>
      <link>https://docs.microsoft.com/archive/blogs/tfos/connections-to-a-web-box</link>
      <pubDate>Tue, 25 May 2010 10:59:29 GMT</pubDate>
      <dc:creator><![CDATA[Tim Fosler]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/tfos/2010/05/25/connections-to-a-web-box/</guid>
      <description><![CDATA[I get alot of questions about, NLB and how to determine the drainstop. . . when is long enough. So...]]></description>
      <content:encoded><![CDATA[<p>I get alot of questions about, NLB and how to determine the drainstop. . . when is long enough. So to help I constantly send people the following command:</p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-pagination: none;"><span style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;">Netstat -an | find ":80" /c</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-pagination: none;"><span style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-pagination: none;"><span style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"><span style="color: #000000;">This will output only the number of current connections. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-pagination: none;"><span style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"><span style="color: #000000;"></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-pagination: none;"><span style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"><span style="color: #000000;">The parameter ":80" is the port number if your site is SSL only and standard change the ":80" to ":443". </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-pagination: none;"><span style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"><span style="color: #000000;"></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-pagination: none;"><span style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"><span style="color: #000000;"></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-pagination: none;"><span style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"><span style="color: #000000;">Remember if you monitoring your website that counts as at least one connection. . .</span></span></p>]]></content:encoded>
    </item>
    <item>
      <title>Query Sessions on a Remote Server . . .</title>
      <link>https://docs.microsoft.com/archive/blogs/tfos/query-sessions-on-a-remote-server</link>
      <pubDate>Mon, 08 Feb 2010 09:27:00 GMT</pubDate>
      <dc:creator><![CDATA[Tim Fosler]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/tfos/2010/02/08/query-sessions-on-a-remote-server/</guid>
      <description><![CDATA[Ever get the feeling someone logged onto a server or desktop without logging off properly? If your a...]]></description>
      <content:encoded><![CDATA[<P>Ever get the feeling someone logged onto a server or desktop without logging off properly? If your a big fan of command line and not so of the GUI, try using these two commands below to log someone off. To determine who is logged in type the command below:</P>
<P><FONT color=#ff0033>Query Session Server:%ServerName%</FONT></P>
<P>The output you receive will look like this:</P>
<P><FONT style="BACKGROUND-COLOR: #000000" color=#ffffff><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>SESSIONNAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; USERNAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID&nbsp; STATE&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DEVICE<BR>services&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;0&nbsp; Disc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>rdp-tcp#0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%username%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; Active&nbsp; rdpwd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>console&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;3&nbsp; Conn</FONT></FONT></P>
<P>Now you can then determine from the screen above what session&nbsp;can be logged off (as long as you are an administrator on the machine). I always ask if I can log them off before doing so,&nbsp;they might be running a long task. To log someone off of their remote session simply configure the command below using the ID # and Session Name&nbsp;above:</P>
<P style="MARGIN: 0in 0in 0pt; BACKGROUND: white" class=MsoNormal><SPAN style="FONT-FAMILY: 'MS Shell Dlg 2','sans-serif'; COLOR: black; FONT-SIZE: 9pt"><FONT color=#ff0033>logoff [{SessionID | SessionName}] [/server:ServerName] [/v]<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></P>]]></content:encoded>
    </item>
    <item>
      <title>Shutdown a Computer remotely or through Terminal Services. . .</title>
      <link>https://docs.microsoft.com/archive/blogs/tfos/shutdown-a-computer-remotely-or-through-terminal-services</link>
      <pubDate>Fri, 05 Feb 2010 09:48:00 GMT</pubDate>
      <dc:creator><![CDATA[Tim Fosler]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/tfos/2010/02/05/shutdown-a-computer-remotely-or-through-terminal-services/</guid>
      <description><![CDATA[If you are like me (most likely you are if you’re reading this) you have a little Windows 7 Media...]]></description>
      <content:encoded><![CDATA[<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">If you are like me (most likely you are if you’re reading this) you have a little Windows 7 Media Center running in a closet that is storing your Music/Pictures/TV Shows.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">During administration days when the family is watching cable TV I use TS to administer the machine (being that the monitor is the TV and being used). I reboot the machine using an icon on my desktop that is simple and quick.<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">On your desktop right-click and choose "New-Shortcut" your location will be an old DOS command with parameters you determine. Copy and Paste this command:</SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #ff0033; FONT-SIZE: 10pt">Shutdown -r -t 120</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Enter the above, then click next,&nbsp;provide a name and click the finish button. What this command states is "<SPAN style="COLOR: #ff0033">Shutdown</SPAN>" this computer - with restart "<SPAN style="COLOR: #ff0033">-r</SPAN>"&nbsp;- after 120 seconds"<SPAN style="COLOR: #ff0033">-t 120</SPAN>". You can right click then select properties and "Change Icon" to anything you want.<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">The "Shutdown" command has been around since the beginning of time (well at least in my mind). There are many things you can do with the Shutdown command, to enter the help menu to create your own shutdown methods use <FONT color=#ff0033>shutdown /?.</FONT> I suggest you create a stop shutdown icon right next to this one just in case you ever click on it by accident. To stop a shutdown procedure simply create another shortcutwith the following command: <o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #ff0033; FONT-SIZE: 10pt">Shutdown -a</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">This will stop any current shutdown; I got really familiar with this command with the blaster worm. <o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">* On a side note if you don’t want to go about creating icon's, or not even having to log into the machine and you wish to reboot a machine (or a hundred), open a command prompt type <SPAN style="COLOR: #ff0033">shutdown -r -m </SPAN><SPAN style="COLOR: #ff0033">\\%machinename%</SPAN><SPAN style="COLOR: #ff0033"> -t 120</SPAN> this will&nbsp;restart a remote computer (as long as you are an administrator of that machine). And No, you can’t reboot your co-workers machine without having administrative permissions (Trust me on this one).<o:p></o:p></SPAN></P>
<P mce_keep="true">&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>Quick adapter speed settings? Use PowerShell</title>
      <link>https://docs.microsoft.com/archive/blogs/tfos/quick-adapter-speed-settings-use-powershell</link>
      <pubDate>Thu, 04 Feb 2010 10:25:00 GMT</pubDate>
      <dc:creator><![CDATA[Tim Fosler]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/tfos/2010/02/04/quick-adapter-speed-settings-use-powershell/</guid>
      <description><![CDATA[If you are an adminitrator or technical document writer you have a need to check the network adapter...]]></description>
      <content:encoded><![CDATA[<P>If you are an adminitrator or technical document writer you have a need to check the network adapter speeds of multiple systems. Below is how to do that using powershell from your local system or perhaps a jump box in another domain.</P>
<P>Install PowerShell 2.0 if you don't already have it installed on your system.</P>
<P>Create a common folder where you can put your PowerShell files (Mine is D:\PowerShell). Create a text file"%nameoffile%.ps1" you can name it whatever you want it doesn't matter since you will be referencing it directly. (I do recommend naming it something descriptive, when you get hundreds of files they are easier to manage).</P>
<P>Open the text file and enter the following text:</P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333>## speed.msh<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333>## Kill!<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><o:p><FONT color=#cc3333>&nbsp;</FONT></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333>foreach ($strComputer in $Args)<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333>{<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>$adapters = get-wmiobject -query "Select MACAddress, Caption From Win32_NetworkAdapterConfiguration Where DatabasePath IS NOT NULL" -namespace "root\cimv2" -computername $strComputer<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><o:p><FONT color=#cc3333>&nbsp;</FONT></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>foreach ($adapter in $adapters)<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>$mac = $adapter.MACAddress<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>$adapterName =<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>$adapter.Caption.substring(11)<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><o:p><FONT color=#cc3333>&nbsp;</FONT></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>$linkSpeedObj = get-wmiobject -query "Select NdisLinkSpeed From MSNdis_LinkSpeed Where InstanceName = '$adapterName'" -namespace "root\wmi" -computername $strComputer<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>$adapterObj = get-wmiobject -query "Select NetConnectionID From Win32_NetworkAdapter Where MACAddress = '$mac'" -namespace "root\cimv2" -computername $strComputer<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><o:p><FONT color=#cc3333>&nbsp;</FONT></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>$result = $strComputer.ToUpper() + ", " + $adapterObj.NetConnectionID + ", " + $linkSpeedObj.NdisLinkSpeed<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>write-host $result<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT color=#cc3333>}</FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Open your PowerShell interface, after the window opens be sure to set you execution policy to unrestricted ("Set-ExecutionPolicy Unrestricted") then after reading the disclaimer select your option. [?] the help feature does provide useful information about remote execution exposures. After entering "Y" you will proceed to an unrestricted execution line.</SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Change the directory path to the&nbsp;the folder where you are keeping your files. In our case d:, then cd .\PowerShell, once you are in the directory you can start with the execution portion of the query.</SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">The command has the ability to output more than just single server results. Just enter the file name then a "space" then the server name "space" server name, ect. . . see details below.</SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><FONT style="BACKGROUND-COLOR: #0000cc" color=#ffffff>PS D:\PowerShell&gt; %nameoffile%.ps1 %servername% %servername%</FONT></SPAN></P>
<P style="MARGIN: 0in 0in 10pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">The output is simple and readable. If you have multiple network adapters it will output the names of each network adapter also. The output will look like "</P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing><SPAN style="FONT-FAMILY: 'MS Shell Dlg','sans-serif'; COLOR: black; FONT-SIZE: 10pt">"%Servername%, EFL, 1000000"</SPAN></SPAN></P>]]></content:encoded>
    </item>
    <item>
      <title>Self Extracting Zip File . . .try it . . .use it . . .iExpress from your local Run command</title>
      <link>https://docs.microsoft.com/archive/blogs/tfos/self-extracting-zip-file-try-it-use-it-iexpress-from-your-local-run-command</link>
      <pubDate>Thu, 04 Feb 2010 08:08:00 GMT</pubDate>
      <dc:creator><![CDATA[Tim Fosler]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/tfos/2010/02/04/self-extracting-zip-file-try-it-use-it-iexpress-from-your-local-run-command/</guid>
      <description><![CDATA[Want to create a self-extracting zip file. No need to buy some expensive piece of 3rd party...]]></description>
      <content:encoded><![CDATA[<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Want to create a self-extracting zip file. No need to buy some expensive piece of 3rd party software, use the one Microsoft gave you when you bought your OS. This mini-app is an easy tool to learn to use and I hope you, like me,&nbsp;learn to love its simplistic and yet agile nature.</SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Brief walkthrough:</SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"></SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Start by opening your run command, and&nbsp;type iExpress (Start &gt; Run &gt; iExpress) this will open a small window giving you two options. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">"Create new Self Extraction Directive file" or "Open existing Self Extraction Directive file" the&nbsp;second option&nbsp;gives you a browse button to find an existing package (.SED)so you can add or subtract components from the .exe.<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">&nbsp;In this&nbsp;example we will&nbsp;select&nbsp;"Create new . . ." then click&nbsp;"Next &gt;" you will find three different options here that will give you a short description of&nbsp;what they do at the bottom in a dialog box.&nbsp;Let us select the "Extract files only" option and click "Next &gt;". Type in the name that you want the package description to say in our case&nbsp;"Isaac's Pictures" then click "Next &gt;". <o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">In our next option it gives us two choices "No Prompt." or "Prompt user with:" we use this option to confirm to the user that they will be decompressing the package and placing it in a destination of their choosing. In our case I have chosen to prompt the user with "Extract Isaac's Pictures?" they will receive a dialog box with a Yes or No option. Click "Next &gt;" this next dialog box allows you to manufacture or use an existing license agreement, giving you the ability to limit liability and such, if necessary . . . we have elected to select the "Do not display a license."<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">The next box gives you the "Add" and "Remove" buttons which allows you to add either a single or multiple files to this executable. Once you have completed with entering the contents of the package click "Next &gt;".<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">&nbsp;The "Show Window" options gives you the ability to install/extract your folder/application and run it in any option you choose, from hidden to maximum window. It is entirely up to you how you want your installation/extraction to be perceived by the consumer of your .exe. The Finish message is a nice ending especially when you have chosen to hide your installation progress; this gives you the ability to enter a custom display message other than "Installation Complete". I use the custom finish button as a special touch when sending photos or documents to family members.<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">The last option asks you where you would like your files to be placed in the consumers directories, it also gives you options to hide the extraction status bar and whether or not you want to store Long File names inside the package. I selected the location C:\users\public\desktop and unchecked both boxes for hidden and long file names. <o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Then you have the option of saving your configuration settings as a “.SED” file which gives you the ability to edit the current configuration and add/subtract files later. I don’t usually do this unless I know we will be using the exact configuration again.<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Now we click create package, this will create the “.exe” that you can send out to consumers or friends/family.</SPAN></P>]]></content:encoded>
    </item>
  </channel>
</rss>