How to have a control over multiple Windows devices as if a administrator

Deok Jong Moon 125 Reputation points
2023-03-03T00:29:49.29+00:00

Hi there,

Basically, I've been looking around several dev communities and couldn't find appropriate answers for that.

What I'd like to implement are as follows,

  • To factory reset multiple Windows devices
  • To install certain applications on multiple Windows devices
  • To uninstall certain applications on multiple Windows devices
  • To block certain applications from being installed or executed on multiple Windows devices

I guess there must be some .NET APIs doing those things but as a beginner in .NET, I couldn't find them.

Would you give us a help for this?

Any brief mentions or links related to those functions would be much appreciated.

Thanks in advance.

DJ Moon

Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | .NET | Other
{count} votes

Accepted answer
  1. Minxin Yu 13,506 Reputation points Microsoft External Staff
    2023-03-03T07:14:22.9933333+00:00

    Hi,

    From your description, PowerShell is more in line with your requirements than .NET API. And PowerShell can be used in C#.
    Blog: Learn How to Run PowerShell Scripts Against Multiple Computers
    There is an exe systemreset.exe in C:/Windows/System32 that can be called to factory reset device.

    To block certain applications The feature is located in Local Group Policy Editor-> Administrative Templates > System> Don't run specified Windows applications policy.
    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/ee461027(v=technet.10)?redirectedfrom=MSDN
    User's image

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.