<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.1701technology.com/index.php?action=history&amp;feed=atom&amp;title=Goose_Desktop</id>
	<title>Goose Desktop - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.1701technology.com/index.php?action=history&amp;feed=atom&amp;title=Goose_Desktop"/>
	<link rel="alternate" type="text/html" href="https://wiki.1701technology.com/index.php?title=Goose_Desktop&amp;action=history"/>
	<updated>2026-05-06T14:00:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.1701technology.com/index.php?title=Goose_Desktop&amp;diff=1393&amp;oldid=prev</id>
		<title>Michael.mast: Created page with &quot;==Purpose== One of my users complained their computer was cursed.  ==Setup== *Download the files, place on network share. *Either sign the powershell script, or be bad and dis...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.1701technology.com/index.php?title=Goose_Desktop&amp;diff=1393&amp;oldid=prev"/>
		<updated>2020-02-05T20:42:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Purpose== One of my users complained their computer was cursed.  ==Setup== *Download the files, place on network share. *Either sign the powershell script, or be bad and dis...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Purpose==&lt;br /&gt;
One of my users complained their computer was cursed.&lt;br /&gt;
&lt;br /&gt;
==Setup==&lt;br /&gt;
*Download the files, place on network share.&lt;br /&gt;
*Either sign the powershell script, or be bad and disable protections&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
new-pssession -computername &amp;lt;remote computer&amp;gt; | enter-pssession&lt;br /&gt;
new-Itemproperty -Path 'HKLM:\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell' -Name 'ExecutionPolicy' -Value 'Bypass' -PropertyType 'string&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create scheduled task on the target system to run the following when the target user logs in.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;Exec&amp;gt;&lt;br /&gt;
      &amp;lt;Command&amp;gt;powershell&amp;lt;/Command&amp;gt;&lt;br /&gt;
      &amp;lt;Arguments&amp;gt;-windowstyle hidden -f '\\&amp;lt;network share&amp;gt;\goose.ps1'&amp;lt;/Arguments&amp;gt;&lt;br /&gt;
    &amp;lt;/Exec&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create goose.ps1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$path1='\\&amp;lt;network share&amp;gt;'&lt;br /&gt;
sleep5&lt;br /&gt;
while ($true) {&lt;br /&gt;
    if (test-path &amp;quot;$path1\on.txt&amp;quot;) {&lt;br /&gt;
        if (!(Get-process -name GooseDesktop -ErrorAction SilentlyContinue)) {&lt;br /&gt;
            $exe=&amp;quot;$path1\GooseDesktop.exe&amp;quot;&lt;br /&gt;
            invoke-expression $exe&lt;br /&gt;
            #echo 'this should be on'&lt;br /&gt;
            sleep 1&lt;br /&gt;
        }&lt;br /&gt;
    } else {&lt;br /&gt;
        Stop-Process -Name GooseDesktop&lt;br /&gt;
        #echo 'this should be off'&lt;br /&gt;
        sleep 1&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If all is well, when the user logs in they may see a brief terminal but it goes away. At which point you can create a text file called on.txt in the network share that will start the goose. Deleting or renaming the file will kill the goose.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Ultimately I am setting this up for my users to use against their coworkers. I would like a web interface for this, but for now separate network shares with permissions will suffice.&lt;/div&gt;</summary>
		<author><name>Michael.mast</name></author>
		
	</entry>
</feed>