<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>windows &amp;mdash; LinuxPizza</title>
    <link>https://blogs.linux.pizza/tag:windows</link>
    <description>Personal notes and occasional posts - 100% human, 0% AI generated</description>
    <pubDate>Tue, 14 Apr 2026 15:33:53 +0000</pubDate>
    <item>
      <title>Query your NTP-server from your Windows Machine</title>
      <link>https://blogs.linux.pizza/query-your-ntp-server-from-your-windows-machine</link>
      <description>&lt;![CDATA[Here is a post about Windows for a change.&#xA;If you want to check if you can query a NTP-server from your Windows-machine, you can just use the following&#xA;w32tm /stripchart /computer:computername&#xA;For example:&#xA;w32tm /stripchart /computer:ntp.netnod.se&#xA;If everything works, you&#39;ll see something like this:&#xA;Tracking ntp.netnod.se [194.58.200.20:123].&#xA;The current time is 2022-12-06 14:06:13.&#xA;14:06:13, d:+00.0260863s o:+00.0277480s  [      *      ]&#xA;Have a pleasant tuesday&#xA;&#xA;#windows #ntp]]&gt;</description>
      <content:encoded><![CDATA[<h4 id="here-is-a-post-about-windows-for-a-change" id="here-is-a-post-about-windows-for-a-change">Here is a post about Windows for a change.</h4>

<p>If you want to check if you can query a NTP-server from your Windows-machine, you can just use the following</p>

<pre><code>w32tm /stripchart /computer:computername
</code></pre>

<p>For example:</p>

<pre><code>w32tm /stripchart /computer:ntp.netnod.se
</code></pre>

<p>If everything works, you&#39;ll see something like this:</p>

<pre><code>Tracking ntp.netnod.se [194.58.200.20:123].
The current time is 2022-12-06 14:06:13.
14:06:13, d:+00.0260863s o:+00.0277480s  [      *      ]
</code></pre>

<p>Have a pleasant tuesday</p>

<p><a href="https://blogs.linux.pizza/tag:windows" class="hashtag"><span>#</span><span class="p-category">windows</span></a> <a href="https://blogs.linux.pizza/tag:ntp" class="hashtag"><span>#</span><span class="p-category">ntp</span></a></p>
]]></content:encoded>
      <guid>https://blogs.linux.pizza/query-your-ntp-server-from-your-windows-machine</guid>
      <pubDate>Tue, 06 Dec 2022 13:06:45 +0000</pubDate>
    </item>
    <item>
      <title>A collection of fun VBS-scripts to push people to insanity</title>
      <link>https://blogs.linux.pizza/a-collection-of-fun-vbs-scripts-to-push-people-to-insanity</link>
      <description>&lt;![CDATA[With great power comes great responsibility, so let&#39;s abuse our power we have as sysadmin in the companies we work for!&#xA;I do assume that your colleagues have a sense of humor! &#xA;&#xA;Randomly let the computer talk&#xA;&#xA;This script let the computer say &#34;good morning&#34; from the speaker, with a minimal interval of 20, and maximum of 360 minutes.&#xA;&#xA;Set sapi=CreateObject(&#34;sapi.spvoice&#34;) &#xA;randomize &#xA;message = &#34;good morning&#34;&#xA;max=360 &#xA;min=20&#xA;skew=Int( ( max-min + 1)  Rnd + min) &#xA;wscript.sleep(skew  5  60000) &#xA;do &#xA;sapi.Speak message &#xA;skew=Int( ( max-min + 1)  Rnd + min) &#xA;wscript.sleep(skew * 60000) &#xA;loop&#xA;&#xA;Eject the CD-ROM drive once every 3000 seconds&#xA;&#xA;Set oWMP = CreateObject(&#34;WMPlayer.OCX.7&#34; )&#xA;Set ArrCDROM = oWMP.cdromCollection&#xA;while (1)&#xA;wscript.sleep 3000&#xA;ArrCDROM.Item(0).Eject&#xA;wscript.sleep 3000&#xA;ArrCDROM.Item(0).Eject&#xA;wend&#xA;&#xA;This script changes that playing song on spotify&#xA;&#xA;Set WshShell = WScript.CreateObject(&#34;WScript.Shell&#34;)&#xA;  &#39; spotify or useridnumber if playlist is private. ID can be found by using Spotify&#39;s Share button&#xA;  WshShell.Run &#34;spotify:user:spotify/useridnumber:playlist:playlist_code&#34;, 3, false&#xA;WScript.sleep 20000&#xA;  &#39; Change active Window&#xA;WshShell.AppActivate &#34;Spotify&#34;&#xA;  &#39; Start playing selected queue&#xA;WshShell.SendKeys &#34; &#34;&#xA;  &#39; Focus?&#xA;WshShell.SendKeys &#34;{ENTER}&#34;&#xA;WScript.sleep 100&#xA;  &#39; Shuffle play next track&#xA;WshShell.SendKeys &#34;^{RIGHT}&#34;&#xA;WScript.Quit 0&#xA;EDIT: Apparently this does not work anymore, since Spotify has removed the API.&#xA;&#xA;Not really the typical &#34;Linux Sysadmin things&#34; this time, but if you work as a sysadmin at a company - this can be gold!&#xA;If you have any other ones, let me know and I will add them here and credit you :)&#xA;&#xA;#vbs #windows]]&gt;</description>
      <content:encoded><![CDATA[<h3 id="with-great-power-comes-great-responsibility-so-let-s-abuse-our-power-we-have-as-sysadmin-in-the-companies-we-work-for" id="with-great-power-comes-great-responsibility-so-let-s-abuse-our-power-we-have-as-sysadmin-in-the-companies-we-work-for">With great power comes great responsibility, so let&#39;s abuse our power we have as sysadmin in the companies we work for!</h3>

<h4 id="i-do-assume-that-your-colleagues-have-a-sense-of-humor" id="i-do-assume-that-your-colleagues-have-a-sense-of-humor">I do assume that your colleagues have a sense of humor!</h4>

<h4 id="randomly-let-the-computer-talk" id="randomly-let-the-computer-talk">Randomly let the computer talk</h4>

<p>This script let the computer say “good morning” from the speaker, with a minimal interval of 20, and maximum of 360 minutes.</p>

<pre><code>Set sapi=CreateObject(&#34;sapi.spvoice&#34;) 
randomize 
message = &#34;good morning&#34;
max=360 
min=20
skew=Int( ( max-min + 1) * Rnd + min) 
wscript.sleep(skew * 5 * 60000) 
do 
sapi.Speak message 
skew=Int( ( max-min + 1) * Rnd + min) 
wscript.sleep(skew * 60000) 
loop
</code></pre>

<h4 id="eject-the-cd-rom-drive-once-every-3000-seconds" id="eject-the-cd-rom-drive-once-every-3000-seconds">Eject the CD-ROM drive once every 3000 seconds</h4>

<pre><code>Set oWMP = CreateObject(&#34;WMPlayer.OCX.7&#34; )
Set ArrCDROM = oWMP.cdromCollection
while (1)
wscript.sleep 3000
ArrCDROM.Item(0).Eject
wscript.sleep 3000
ArrCDROM.Item(0).Eject
wend
</code></pre>

<h4 id="this-script-changes-that-playing-song-on-spotify" id="this-script-changes-that-playing-song-on-spotify">This script changes that playing song on spotify</h4>

<pre><code>Set WshShell = WScript.CreateObject(&#34;WScript.Shell&#34;)
  &#39; spotify or user_id_number if playlist is private. ID can be found by using Spotify&#39;s Share button
  WshShell.Run &#34;spotify:user:&lt;spotify/user_id_number&gt;:playlist:&lt;playlist_code&gt;&#34;, 3, false
WScript.sleep 20000
  &#39; Change active Window
WshShell.AppActivate &#34;Spotify&#34;
  &#39; Start playing selected queue
WshShell.SendKeys &#34; &#34;
  &#39; Focus?
WshShell.SendKeys &#34;{ENTER}&#34;
WScript.sleep 100
  &#39; Shuffle play next track
WshShell.SendKeys &#34;^{RIGHT}&#34;
WScript.Quit 0
</code></pre>

<p>EDIT: Apparently this does not work anymore, since Spotify has removed the API.</p>

<p>Not really the typical “Linux Sysadmin things” this time, but if you work as a sysadmin at a company – this can be gold!
If you have any other ones, let me know and I will add them here and credit you :)</p>

<p><a href="https://blogs.linux.pizza/tag:vbs" class="hashtag"><span>#</span><span class="p-category">vbs</span></a> <a href="https://blogs.linux.pizza/tag:windows" class="hashtag"><span>#</span><span class="p-category">windows</span></a></p>
]]></content:encoded>
      <guid>https://blogs.linux.pizza/a-collection-of-fun-vbs-scripts-to-push-people-to-insanity</guid>
      <pubDate>Fri, 17 Apr 2020 09:45:40 +0000</pubDate>
    </item>
  </channel>
</rss>