Windows 10: C# - Get workgroup name

Discus and support C# - Get workgroup name in Windows 10 Gaming to solve the problem; Using Visual Studio 2010.I tried both of these on Windows XP:string workgroupName = Environment.GetEnvironmentVariable"UserDomainName"; string... Discussion in 'Windows 10 Gaming' started by johnb2201, Jul 11, 2024.

  1. johnb2201 Win User

    C# - Get workgroup name


    Using Visual Studio 2010.I tried both of these on Windows XP:string workgroupName = Environment.GetEnvironmentVariable"UserDomainName"; string workgroupName = stringRegistry.GetValuekey1, "Workgroup", null;The first gives me the computer name.The second is blank.Please suggest a solution that will work on all versions of Windows.

    :)
     
    johnb2201, Jul 11, 2024
    #1

  2. In Windows 10 Home - why would you disable the ability to change the default workgroup name from "workgroup" to something else?

    Hi,

    Welcome to Microsoft Community and thank you for your interest in Windows 10.

    • How are you trying to change the work group name?
    Have you tried as below steps if not I suggest you to follow as below and check if it helps.

    • Press “Windows+X”.
    • Click on “system”.
    • Then under “computer name, domain and workgroup settings” option.
    • Click on change “settings” on the right hand side.
    • Click on “computer name” tab.
    • Under the option “to rename this computer and change its domain or workgroup, click change”
      click on “change option”.
    • Under “computer name tab” enter the computer name accordingly and click on
      “ok”.
    Hope this information was helpful and do let us know if you need further assistance. We will be glad to assist.
     
    Karthicka_R, Jul 11, 2024
    #2
  3. Arun B J Win User
    Switch from Homegroup to Workgroup

    Hi,



    Thank you for posting your query in Microsoft Community.

    I understand your concern and will assist you to resolve this issue.

    I suggest you to follow the steps below and check if it helps.


    • Press Windows+ X, select
      System.

    • Click on Advanced System settings.

    • Under Computer Name tab click on
      change.

    • Under “Member Of” change the Workgroup name

    • Then click on OK, then when prompted
      reboot your device.


    And also refer the article given below and check if it helps.

    Windows help & learning

    Hope this helps. If the issue remains unresolved, please get back to us and we would be happy to help
     
    Arun B J, Jul 11, 2024
    #3
  4. C# - Get workgroup name

    Migrate to Workgroup from Domain

    Hi,



    Thank you for writing to Microsoft Community Forums.



    We understand as you want to switch the PC from Domain to workgroup.



    In this scenario, we would suggest you to perform these steps and check.

    1. Press Windows + Pause Break or open
      control panel and click on System.
    2. Click on Advanced system settings from the left pane.
    3. Select the Computer Name tab from the top and click on
      Change.
    4. Select the radio button beside Workgroup and provide a name.
    5. Click Ok. Then in the prompt click Ok.
    6. Type the user name and password of an administrator account from this PC (not domain), and click/tap on
      OK.
    7. Restart the PC and check.


    However, for further assistance
    I would suggest you to post your query in
    TechNet
    forums, where we have experts and support professionals who are well equipped with the knowledge on Domain user to assist you with the appropriate troubleshooting steps.



    Regards.



    Aditya Roy

    Microsoft Community – Moderator
     
    Aditya_Roy, Jul 11, 2024
    #4
Thema:

C# - Get workgroup name

Loading...
  1. C# - Get workgroup name - Similar Threads - workgroup name

  2. C# - Get workgroup name

    in Windows 10 Software and Apps
    C# - Get workgroup name: Using Visual Studio 2010.I tried both of these on Windows XP:string workgroupName = Environment.GetEnvironmentVariable"UserDomainName"; string workgroupName = stringRegistry.GetValuekey1, "Workgroup", null;The first gives me the computer name.The second is blank.Please...
  3. Does the name of the workgroup have any specific effect?

    in Windows 10 Gaming
    Does the name of the workgroup have any specific effect?: Hello,I have some computers in 1 local network. Windows 10 latest versionby default, all machines have the workgroup name is WORKGROUP. All computers can see each other and share files with each other. However, when I wanted to separate 3 computers into 1 separate workgroup,...
  4. Does the name of the workgroup have any specific effect?

    in Windows 10 Software and Apps
    Does the name of the workgroup have any specific effect?: Hello,I have some computers in 1 local network. Windows 10 latest versionby default, all machines have the workgroup name is WORKGROUP. All computers can see each other and share files with each other. However, when I wanted to separate 3 computers into 1 separate workgroup,...
  5. Does the name of the workgroup have any specific effect?

    in Windows 10 Network and Sharing
    Does the name of the workgroup have any specific effect?: Hello,I have some computers in 1 local network. Windows 10 latest versionby default, all machines have the workgroup name is WORKGROUP. All computers can see each other and share files with each other. However, when I wanted to separate 3 computers into 1 separate workgroup,...
  6. my pc doesn't see my new laptop on the network. workgroup names are the same

    in Windows 10 Network and Sharing
    my pc doesn't see my new laptop on the network. workgroup names are the same: my one pc doesn't see my new laptop. workgroup names are the same.sharing is on, print and fileboth machines are running windows 10 https://answers.microsoft.com/en-us/windows/forum/all/my-pc-doesnt-see-my-new-laptop-on-the-network/4f8fde7b-8964-4d62-a692-e9b7cc1bd52c
  7. Network tab in Explorer shows my domain's name under Workgroup category

    in Windows 10 Network and Sharing
    Network tab in Explorer shows my domain's name under Workgroup category: I'm on a domain, but Network tab shows my domain's name under Workgroup category. https://answers.microsoft.com/en-us/windows/forum/all/network-tab-in-explorer-shows-my-domains-name/5806e931-f100-41fb-a858-bf978dda3d57
  8. Network tab in Explorer shows my domain's name as a Workgroup

    in Windows 10 Network and Sharing
    Network tab in Explorer shows my domain's name as a Workgroup: I'm on a domain, but Network tab shows my domain's name under Workgroup category. 172661
  9. Printer Connectivity and Workgroup name change.

    in Windows 10 Software and Apps
    Printer Connectivity and Workgroup name change.: I want to change the workgroup name of my laptop by the tab for changing network if appears grey. I tried doing certain things changing driver settings and all but to no avail. Also I installed a new printer driver through DVD and it's only running when connected through wire...
  10. Unable to join workgroup no matter what name I use: a duplicate name exists on the network

    in Windows 10 Network and Sharing
    Unable to join workgroup no matter what name I use: a duplicate name exists on the network: Hi, I have purchased a Windows 7 machine and upgraded it right away to Windows 10 Pro without ever connecting to it internet. This is at home. I have 2 existing PC in a workgroup. So I try to join this one to the same workgroup. However, no matter what name I give to...