How do I stop SConfig from launching at sign-in while installing/starting Win server2022 in my virtual box?

Nabin Sharma 10 Reputation points
2024-02-29T04:55:29.0666667+00:00

User's image

I selected 15 and type "Set-SConfig -AutoLaunch $false" however, the issue persisted. Is there any way to get rid of this error?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,940 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RevelinoB 2,780 Reputation points
    2024-02-29T05:02:20.5633333+00:00

    Hi Nabin,

    To prevent SConfig from launching at sign-in on a new installation of Windows Server 2022 in a VirtualBox environment, you should follow the instructions provided in the SConfig window itself, which usually involve executing a PowerShell command.

    Here’s a step-by-step guide:

    • Start the Server: Boot up your Windows Server 2022 virtual machine.
    • Open PowerShell: After you've logged in and are faced with the SConfig CMD window, you need to switch to PowerShell. You can do this by selecting option 15 to "Exit to command line (PowerShell)" as shown on the screen.
    • Execute the Command: In the PowerShell window, type the following command to prevent SConfig from launching at sign-in:

    Set-SConfig -AutoLaunch $false

    Make sure to run this command exactly as shown, without any typos. The $false part is a Boolean value in PowerShell that needs to be preceded by a dollar sign.

    Check Execution Policy: If you encounter any issues with running scripts, you might need to change your PowerShell execution policy. You can check your current policy with Get-ExecutionPolicy and set a new policy with Set-ExecutionPolicy RemoteSigned -Scope CurrentUser. Note that changing execution policy might require administrative privileges.

    Restart the Server: After successfully running the command, you can restart your server to ensure that the changes take effect.

    • Verify: Once the server reboots, it should go directly to the standard sign-in screen or desktop without launching SConfig.

    If you continue to face issues, ensure that your VirtualBox guest additions are installed and up to date, as they can sometimes affect the startup behavior of virtual machines. Additionally, if you're scripting or automating this process, ensure that your automation scripts are correctly configured to run with the necessary privileges and that they do not contain errors. I hope this helps? If you have any questions please let me know.

    1 person found this answer helpful.
    0 comments No comments

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.