Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7907535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:29:30+00:00 2026-06-03T11:29:30+00:00

I’m trying to create a small application to setup fresh windows 7 systems. This

  • 0

I’m trying to create a small application to setup fresh windows 7 systems. This is essentially so I can make images of the hard drives with all of the settings intact.

How would I go about enabling remote desktop from C# ?

I find it funny that everyone is flamming me but no one anwsered the question, sysprep cant do all of the required actions that I need in setting up the image. I want to enable RDP not run it. I will just change the registry key and add a firewall setting.

I will need this image to perform on several pieces of hardware.

Here is the laundry list of tasks I need to complete.

Static IP address, depends on computer.
Change Folder Permissions, depends on Domain.
Change Computer Name
Install Rysnc Server
Install Custom Applications
Install Custom Services
Firewall Permissions
Drivers
Disable Interactive Logon
Change Date Time Depending on Location for System to be Sent
Activate Windows
Group Policy Settings.

I dont think that sysprep can do all these things can it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T11:29:32+00:00Added an answer on June 3, 2026 at 11:29 am

    I’ve used the following in a previous project and it seems to work well:

            try
            {
                RegistryKey key = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, TargetMachine.Name);
                key = key.OpenSubKey(@"SYSTEM\CurrentControlSet\Control\Terminal Server", true);
                object val = key.GetValue("fDenyTSConnections");
                bool state = (int)val != 0;
                if (state)
                {
                    key.SetValue("fDenyTSConnections", 0, RegistryValueKind.DWord);
                    MessageBox.Show("Remote Desktop is now ENABLED");
                }
                else
                {
                    key.SetValue("fDenyTSConnections", 1, RegistryValueKind.DWord);
                    MessageBox.Show("Remote Desktop is now DISABLED");
                }
                key.Flush();
                if (key != null)
                    key.Close();
            }
            catch
            {
                MessageBox.Show("Error toggling Remote Desktop permissions");
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.