<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I tried the psexec method on a Windows 10 box with no luck. I
couldn't get a public share mapped successfully. It kept throwing
'system error 58'. I was able to get a private share mapped by
entering user credentials into the command, but it still never
showed up on the Xymon page. Oh well. It was a nice attempt.<br>
<br>
If anyone else knows of a way for Xymon to report on mapped drives
I'd really appreciate it.<br>
<div class="moz-signature"><br>
<br>
<p class="c3"><span class="c1">Thank you.</span></p>
<p class="c3"><span class="c1">------------------------------------------------</span></p>
<p class="c3"><span class="c0">Kris Springer</span></p>
<p class="c3"><span class="c0"><br>
</span></p>
<p class="c3"><span class="c0"></span><br>
</p>
<title>Signature - Kris</title>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<style type="text/css">@import url('https://themes.googleusercontent.com/fonts/css?kit=wAPX1HepqA24RkYW1AuHYA');ol{margin:0;padding:0}.c0{color:#990000;font-size:10pt;background-color:#ffffff;font-family:"Calibri";font-weight:bold}.c5{color:#990000;font-size:8pt;background-color:#ffffff;font-family:"Calibri"}.c1{color:#990000;font-size:10pt;background-color:#ffffff;font-family:"Calibri"}.c2{max-width:468pt;background-color:#ffffff;padding:72pt 72pt 72pt 72pt}.c4{text-decoration:underline}.c3{direction:ltr}.title{widows:2;padding-top:0pt;line-height:1.15;orphans:2;text-align:left;color:#000000;font-size:21pt;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}.subtitle{widows:2;padding-top:0pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-style:italic;font-size:13pt;font-family:"Trebuchet MS";padding-bottom:10pt;page-break-after:avoid}li{color:#000000;font-size:11pt;font-family:"Arial"}p{color:#000000;font-size:11pt;margin:0;font-family:"Arial"}h1{widows:2;padding-top:10pt;line-height:1.15;orphans:2;text-align:left;color:#000000;font-size:16pt;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}h2{widows:2;padding-top:10pt;line-height:1.15;orphans:2;text-align:left;color:#000000;font-size:13pt;font-family:"Trebuchet MS";font-weight:bold;padding-bottom:0pt;page-break-after:avoid}h3{widows:2;padding-top:8pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-size:12pt;font-family:"Trebuchet MS";font-weight:bold;padding-bottom:0pt;page-break-after:avoid}h4{widows:2;padding-top:8pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-size:11pt;text-decoration:underline;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}h5{widows:2;padding-top:8pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-size:11pt;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}h6{widows:2;padding-top:8pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-style:italic;font-size:11pt;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}</style>
</div>
<div class="moz-cite-prefix">On 03/21/2018 11:48 PM, Kenneth S.
Petersen wrote:<br>
</div>
<blockquote type="cite"
cite="mid:VI1PR0102MB268637CBBE83335AD8A0E91AACA90@VI1PR0102MB2686.eurprd01.prod.exchangelabs.com">
<meta http-equiv="Context-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<title>Signature - Kris</title>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Hi all,</span></p>
<p class="MsoNormal"><span lang="EN-US">Im not sure this is
usefull, but sometime ago I used this guide to get another
monitor to look at mapped drive.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal">psexec -i -s cmd.exe<span></span></p>
<p class="MsoNormal"><span lang="EN-US">Whoami # </span><span
lang="EN">to ensure that local system account is logged in.</span><span
lang="EN-US"></span></p>
<p class="MsoNormal"><span lang="EN-US">net use X: "<a
moz-do-not-send="true">\\serverip\Network Recycle Bin
1\@Recycle</a>"
/persistent:yes # this was what
I need to monitor at the time</span></p>
<p><span lang="EN-US"> </span></p>
<p><span lang="EN-US">Use this at your own risk. (I have tested
it on XP and Server 2008 x64 R2)<br>
For this hack you will need </span><a
href="http://technet.microsoft.com/en-us/sysinternals/bb842062.aspx"
moz-do-not-send="true"><span lang="EN-US">SysinternalsSuite
by Mark Russinovich</span></a><span lang="EN-US">:</span></p>
<p><strong><span lang="EN-US">Step one:</span></strong><span
lang="EN-US"> Open an elevated cmd.exe prompt (Run as
administrator)<br>
<strong><span>Step two:</span></strong> Elevate again to
root using PSExec.exe: Navigate to the folder containing
SysinternalsSuite and execute the following command<br>
</span><code><b><u><span lang="EN-US">psexec -i -s cmd.exe</span></u></b></code><span
lang="EN-US"> you are now inside of a prompt that is
</span><code><span lang="EN-US">nt authority\system</span></code><span
lang="EN-US"> and you can prove this by typing
</span><code><span lang="EN-US">whoami</span></code><span
lang="EN-US">. The
</span><code><span lang="EN-US">-i</span></code><span
lang="EN-US"> is needed because drive mappings need to
interact with the user<br>
<strong><span>Step Three:</span></strong> Create the
persistent mapped drive as the SYSTEM account with the
following command<br>
</span><code><b><u><span lang="EN-US">net use z:
<a moz-do-not-send="true"><span>\\servername\sharedfolder</span></a>
/persistent:yes</span></u></b></code><b><u><span
lang="EN-US"></span></u></b></p>
<p><span lang="EN-US">It's that easy!<br>
<strong><span>WARNING</span></strong>: You can only remove
this mapping the same way you created it, from the SYSTEM
account. If you need to remove it, follow steps 1 and 2 but
change the command on step 3 to
</span><code><span lang="EN-US">net use z: /delete</span></code><span
lang="EN-US">.<br>
<strong><span>NOTE</span></strong>: The newly created mapped
drive will now appear for ALL users of this system but they
will see it displayed as "Disconnected Network Drive (Z:)".
Do not let the name fool you. It may claim to be
disconnected but it will work for everyone. That's how you
can tell this hack is not supported by M$.</span><span
lang="EN-US"></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Testet OK on 2003 og
2012 R2 and the poster did it on 2008</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Can’t remember where
credit has to go, but it’s not me.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><br>
<br>
</span><span lang="EN-US">Regards<br>
</span><span lang="EN-US">Kenneth S. Petersen</span><span
lang="EN-US"><br>
IT Konsulent<br>
<br>
</span><span lang="EN-US"></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<div>
<div>
<p class="MsoNormal"><b><span>Fra:</span></b><span> Xymon
[<a class="moz-txt-link-freetext" href="mailto:xymon-bounces@xymon.com">mailto:xymon-bounces@xymon.com</a>]
<b>På vegne af </b>Kris Springer<br>
<b>Sendt:</b> 22. marts 2018 02:31<br>
<b>Til:</b> Brandon Dale
<a class="moz-txt-link-rfc2396E" href="mailto:BDale@kitchengroup.com.au"><BDale@kitchengroup.com.au></a>; <a class="moz-txt-link-abbreviated" href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
<b>Emne:</b> Re: [Xymon] XymonPSclient - mapped disks
not reporting</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Permissions is a good point. I tried your
suggestion of running the service using a user account that
has access to the mapped drives, and it still didn't show any
of the mapped drives. I tried it on 2 different machines with
no change in results. Any more ideas? Anyone actually have
this working in their environment?</p>
<div>
<p class="MsoNormal"> </p>
<p class="c3"><span class="c1"><span>Thank you.</span></span></p>
<p class="c3"><span class="c1"><span>------------------------------------------------</span></span></p>
<p class="c3"><span class="c0"><span>Kris Springer</span></span></p>
<p class="c3"> </p>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">On 03/21/2018 04:30 PM, Brandon Dale
wrote:</p>
</div>
<blockquote>
<div>
<p class="MsoNormal">
My guess would be the service is probably running as
SYSTEM so the drives would have be mapped under system or
change the user who is running the service.</p>
<p class="MsoNormal">
</p>
<div>
<p class="MsoNormal">
Regards, </p>
<p class="MsoNormal">
</p>
<p class="MsoNormal">
</p>
<p class="MsoNormal">
<b>Brandon Dale</b></p>
</div>
<p class="MsoNormal">
</p>
<div>
<div>
<p class="MsoNormal">
<b><span lang="EN-US">From:</span></b><span
lang="EN-US"> Xymon [<a
href="mailto:xymon-bounces@xymon.com"
moz-do-not-send="true">mailto:xymon-bounces@xymon.com</a>]
<b>On Behalf Of </b>Kris Springer<br>
<b>Sent:</b> Thursday, 22 March 2018 3:01 AM<br>
<b>To:</b> <a href="mailto:xymon@xymon.com"
moz-do-not-send="true">xymon@xymon.com</a><br>
<b>Subject:</b> [Xymon] XymonPSclient - mapped disks
not reporting</span></p>
</div>
</div>
<p class="MsoNormal">
</p>
<p class="MsoNormal">
I've been updating our systems to the latest Powershell
client with success. In the config I've defined
<wanteddisks>2 3 4</wanteddisks> just as the
instructions specify, but it isn't reporting any of the
mapped disks. It only reports the Fixed disks. Can
anyone advise on how to get the mapped disks to report?</p>
<div>
<p class="MsoNormal">
</p>
<p class="c3"><span class="c1"><span>Thank you.</span></span></p>
<p class="c3"><span class="c1"><span>------------------------------------------------</span></span></p>
<p class="c3"><span class="c0"><span>Kris Springer</span></span></p>
<p class="MsoNormal">
</p>
</div>
</div>
</blockquote>
<p class="MsoNormal"> </p>
</div>
</blockquote>
<br>
</body>
</html>