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.