<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>DisplayFusion RSS: Scripted functions - Stop windows service - access denied</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=70fe6bfb-2a0d-406e-a0a5-eebe5a65df2e" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=70fe6bfb-2a0d-406e-a0a5-eebe5a65df2e</link>
<description>DisplayFusion RSS: Scripted functions - Stop windows service - access denied</description>
<lastBuildDate>Tue, 26 May 2026 17:10:28 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=70fe6bfb-2a0d-406e-a0a5-eebe5a65df2e</generator>
<item>
<title>RE: Scripted functions - Stop windows service - access denied</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-stop-windows-service-access-denied/?ID=70fe6bfb-2a0d-406e-a0a5-eebe5a65df2e#4</link>
<pubDate>Wed, 18 Jan 2017 16:31:02 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-stop-windows-service-access-denied/?ID=70fe6bfb-2a0d-406e-a0a5-eebe5a65df2e#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[No worries, glad I could help!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
No worries, glad I could help!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Scripted functions - Stop windows service - access denied</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-stop-windows-service-access-denied/?ID=70fe6bfb-2a0d-406e-a0a5-eebe5a65df2e#3</link>
<pubDate>Wed, 18 Jan 2017 10:02:08 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-stop-windows-service-access-denied/?ID=70fe6bfb-2a0d-406e-a0a5-eebe5a65df2e#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks Keith, I didn't remember cmd line option, that is simplest solution]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks Keith, I didn't remember cmd line option, that is simplest solution
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Scripted functions - Stop windows service - access denied</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-stop-windows-service-access-denied/?ID=70fe6bfb-2a0d-406e-a0a5-eebe5a65df2e#2</link>
<pubDate>Mon, 16 Jan 2017 21:14:13 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-stop-windows-service-access-denied/?ID=70fe6bfb-2a0d-406e-a0a5-eebe5a65df2e#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[You could do the following, but it will throw a UAC prompt:
Code
Copy
Select All
using System;
using System.Drawing;
using System.Diagnostics;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
ProcessStartInfo startInfo = new ProcessStartInfo ("C...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
You could do the following, but it will throw a UAC prompt:<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e6544326076a6baa33f8ca889e429" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e6544326076a6baa33f8ca889e429Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e6544326076a6baa33f8ca889e429Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;
using System.Diagnostics;

public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
ProcessStartInfo startInfo = new ProcessStartInfo ("C:\\windows\\system32\\cmd.exe", "/c net stop DisplayFusionService");
startInfo.Verb = "runas";
Process.Start (startInfo);
}
}</pre><textarea id="code019e6544326076a6baa33f8ca889e429" name="code019e6544326076a6baa33f8ca889e429" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
There's no way to do it without the UAC prompt as far as I know, unless you run DisplayFusion as Administrator.<br/>
<br/>
Hope that helps!
</div>
]]></content:encoded>
</item>
<item>
<title>Scripted functions - Stop windows service - access denied</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-stop-windows-service-access-denied/?ID=70fe6bfb-2a0d-406e-a0a5-eebe5a65df2e</link>
<pubDate>Sun, 15 Jan 2017 22:36:24 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-stop-windows-service-access-denied/?ID=70fe6bfb-2a0d-406e-a0a5-eebe5a65df2e</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi !
I tried to stop windows service from scripted function and it has no rights to do so, when opening service exception Access is denied. That is no suprise becouse this code should be run elevated. So only way I can think to do that is to run service stop code in separate application, is ther...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi !<br/>
<br/>
I tried to stop windows service from scripted function and it has no rights to do so, when opening service exception Access is denied. That is no suprise becouse this code should be run elevated. So only way I can think to do that is to run service stop code in separate application, is there a way to do it trough Display fusion.<br/>
<br/>
here is the exception logged: <br/>
<br/>
2017/01/15 23:26:42.665##_##FAIL:L1##_##displayfusionsettings.exe:2832##_##BFScriptCode:Run##_##-##_##Exception has been thrown by the target of an invocation. • Cannot open ymc service on computer '.'. • Access is denied##_##-
</div>
]]></content:encoded>
</item>
</channel>
</rss>