If I'm understanding your needs, there is an option within Windows to run a
specific executable as an administrator or as another user with
administrator privileges, though I'm only familiar with how to execute it
within the GUI.  If you right-click the file, you can select
Properties>Compatibility>(check box) Run as Administrator.  You can also
hold shift to right click and access the option to run as a different user,
though this would force you to submit that user's credentials.  Given that
there's a way to do this within the GUI, there has to be a way to script
that for your users via Powershell.  But seeing those options in the gui
may at least give you the Windows verbage you're looking for.

Does that address your question effectively?  Or is the issue more complex
than that?

Thanks,
Adam H

On Wed, Dec 11, 2019 at 5:30 PM John F. Eldredge <[email protected]>
wrote:

> The problem is that I am creating a utility program, intended to be run by
> ordinary users, which will check whether there is a new version of certain
> proprietary software on the server, and download and install it if it finds
> an update. On a Unix or Linux machine, I would set this app to run under a
> privileged user ID. Is there a Windows version of this capability?
>
> On Wed, Dec 11, 2019, 5:08 PM Dave Tomlin <[email protected]> wrote:
>
>> I’d suggest creating a new share with restricted access. Shares with a $
>> on the end are administrative shares and can typically only be accessed by
>> administrative users. You’d have to authenticate with administrative login
>> via your code to access them which is never a good idea.
>>
>> On Wed, Dec 11, 2019 at 4:52 PM <[email protected]> wrote:
>>
>>> I know this isn’t a Linux question, but I am hoping someone in the group
>>> may know the answer. On a client’s system, I need to be able to retrieve
>>> files from a hidden network share. This share has a name ending in a dollar
>>> sign, which keeps it from showing up in Windows Explorer. I can browse to
>>> this share in Windows Explorer by typing in the UNC path, including the
>>> dollar sign. However, trying to connect to this share via code fails, with
>>> an error message indicating that the share isn’t available. How do I
>>> connect to it via code?
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "NLUG" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/nlug-talk?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "NLUG" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/nlug-talk/234301d5b075%24a09291c0%24e1b7b540%24%40jfeldredge.com
>>> <https://groups.google.com/d/msgid/nlug-talk/234301d5b075%24a09291c0%24e1b7b540%24%40jfeldredge.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> --
>> You received this message because you are subscribed to the Google Groups
>> "NLUG" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/nlug-talk?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "NLUG" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/nlug-talk/CACsxF0K-K-drN_TGBYenPCfkzZYM-RpiCn9_CjSDt6y5zXN_tA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/nlug-talk/CACsxF0K-K-drN_TGBYenPCfkzZYM-RpiCn9_CjSDt6y5zXN_tA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> --
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nlug-talk?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nlug-talk/CAJfAAYL%3DxM-cTwriftWPGx_vpWaWNGbHUjAwWQUdO6aXGyqR5Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/nlug-talk/CAJfAAYL%3DxM-cTwriftWPGx_vpWaWNGbHUjAwWQUdO6aXGyqR5Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thank you,
Adam Hudson

-- 
-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nlug-talk/CAPk5cwdZHuVZe%3DjSE6zNuH4j78Pgco1GG64q7jEptz0_-UEWdg%40mail.gmail.com.

Reply via email to