What does this application do that you cant just do in PS?  These all seems
needlessly complicated for trigger functions.

--
Espi



On Fri, Oct 18, 2013 at 7:32 AM, James Rankin <[email protected]> wrote:

> I use executables as triggers for various actions - the idea here is not
> to use one like Notepad or Word or something like that, which obviously
> then consumes resources and has an associated interface. I could just
> rename something like nltest.exe or similar but that would then obviously
> need said executable to be whitelisted and therefore prone to abuse by
> users, so creating something that doesn't do anything is easier.
>
> Also by creating it "on-the-fly" we remove the need to copy it to
> endpoints in some fashion, and we can update and change it as necessary
> without deployment requirements.
>
> I also use things like this as "helper apps" for migrations inside
> Personalization Server and for creating hybrid Desktop Settings routines.
>
> By "compiling" I mean creating it on the endpoint - the one I have
> currently compiles it in C# but anything that suffices will do.
>
> Cheers,
>
>
>
> JR
>
>
> On 18 October 2013 15:22, Micheal Espinola Jr 
> <[email protected]>wrote:
>
>> Even though it may go against the purpose of your blog post, I gotta ask:
>> Why does it have to compile an application?  And, can you further define
>> "compile"?
>>
>> --
>> Espi
>>
>>
>>
>> On Fri, Oct 18, 2013 at 6:34 AM, James Rankin <[email protected]>wrote:
>>
>>> Just to redefine, then...
>>>
>>> I am looking for a script (PowerShell, VB or JScript will do) that
>>> creates an executable in a specified place. The compiled executable code
>>> does nothing but pauses for a second or two and then closes.
>>>
>>> The one I currently have does this:-
>>>
>>> Compiles an executable that will run for a couple of seconds then exit
>>> Creates the executable file called xxx.exe in %ProgramFiles%\xxx
>>>
>>> This is all I actually need it to do - I am using it as a kind of
>>> user-defined trigger for other actions.
>>>
>>>
>>> On 18 October 2013 14:32, Michael B. Smith <[email protected]>wrote:
>>>
>>>>  I'm wondering if I also misunderstood. Would you say more?
>>>>
>>>> Sent from my Windows Phone
>>>>  ------------------------------
>>>> From: Manuel Santos <[email protected]>
>>>> Sent: 10/18/2013 9:29 AM
>>>>
>>>> To: [email protected]
>>>> Subject: Re: [NTSysADM] More PowerShell
>>>>
>>>>  Hi James. I am not quite sure on what you want. Can you please PM me,
>>>> as I might have a solution for you.
>>>> Thanks
>>>>
>>>>
>>>> 2013/10/18 James Rankin <[email protected]>
>>>>
>>>>> Hmmm, bummer. I thought I was just getting hit by a lot of
>>>>> Google-chaff because every link I could find simply talks about creating 
>>>>> an
>>>>> executable from a PS script, which is obviously not what I want. Rather
>>>>> frustrating when you know it's possible because I've got code that works
>>>>> but can't use it :-(
>>>>>
>>>>>
>>>>> On 18 October 2013 14:02, Michael B. Smith <[email protected]>wrote:
>>>>>
>>>>>>  I’ve got 3 different ways of doing this, all work for hire (which
>>>>>> means it can’t be shared). I don’t know of anyone that did this and 
>>>>>> placed
>>>>>> it in the public domain. If you find one, let me know too. J****
>>>>>>
>>>>>> ** **
>>>>>>
>>>>>> *From:* [email protected] [mailto:
>>>>>> [email protected]] *On Behalf Of *James Rankin
>>>>>> *Sent:* Friday, October 18, 2013 7:09 AM
>>>>>> *To:* [email protected]
>>>>>> *Subject:* [NTSysADM] More PowerShell****
>>>>>>
>>>>>> ** **
>>>>>>
>>>>>> A guy I knew once gave me a bit of PowerShell which would compile an
>>>>>> executable on an endpoint. The executable did nothing except run for a
>>>>>> couple of seconds and then exit, which was exactly what I needed.****
>>>>>>
>>>>>> ** **
>>>>>>
>>>>>> Unfortunately I am now putting together a blog post which utilizes
>>>>>> this handy function but the guy who wrote it is unwilling for me to use 
>>>>>> his
>>>>>> code, even with a credit. So I thought I'd Google about and try and find 
>>>>>> my
>>>>>> own way of doing it.....but I can't find anything I can make head or tail
>>>>>> of.****
>>>>>>
>>>>>> ** **
>>>>>>
>>>>>> Can anyone point me in the direction of some PS that can do this sort
>>>>>> of thing, so I can put together my own bit of code for the blog post?
>>>>>> ****
>>>>>>
>>>>>> ** **
>>>>>>
>>>>>> Cheers,****
>>>>>>
>>>>>> ** **
>>>>>>
>>>>>>
>>>>>> ****
>>>>>>
>>>>>> ** **
>>>>>>
>>>>>> --
>>>>>> *James Rankin*
>>>>>> Technical Consultant (ACA, CCA, MCTS)
>>>>>> http://appsensebigot.blogspot.co.uk****
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  --
>>>>> *James Rankin*
>>>>> Technical Consultant (ACA, CCA, MCTS)
>>>>> http://appsensebigot.blogspot.co.uk
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> *James Rankin*
>>> Technical Consultant (ACA, CCA, MCTS)
>>> http://appsensebigot.blogspot.co.uk
>>>
>>
>>
>
>
> --
> *James Rankin*
> Technical Consultant (ACA, CCA, MCTS)
> http://appsensebigot.blogspot.co.uk
>

Reply via email to