SQL Server (SQLEXPRESS) Windows Service greyed out - installation

I Installed SQL Server Express on my work PC, and had it up and running at the time of installation.
But I guess after a restart of PC, the Windows Service "SQL Server (SQLEXPRESS)" can no longer be started.
I have my normal user, and an Admin-User for my PC.
When I open services.msc with my normal user I see the service, but all functionality is greyed out.
When I open services.msc with my admin user, the service is not there.
In my years of working with windows services, I've never experienced a "missing" service from services.msc before.
I've looked in registry here: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
With both my normal and admin user I see these services:
SQLAgent$SQLEXPRESS
SQLBrowser
SQLTELEMETRY$SQLEXPRESS
But not this: "MSSQL$SQLEXPRESS"
Installation:
I don't remember in detail, but I'm pretty sure I just double clicked the installation launcher, and gave my admin-user when prompted for admin permissions.
Do you have any idea what is going on ?

Related

Unlink non-logged on account from Microsoft in Windows 10

One of my customers got hacked big time: Hotmail (where it probably started), Facebook, Instagram, Snapchat. She couldn't log on to her computer anymore, since her password on her Microsoft account has been changed by the hacker.
I enabled the Administrator account, and gained access to the data.
Now I am looking for a way to unlink the local user account from Microsoft, so I can log in to her own account.
I have access to her files, but not to her account.
Is there any way to unlink a local account without being logged on?
I found a solution, or rather, a workaround:
I booted the computer from a Windows USB-stick, chose "Repair", "Advanced" and then "Command Prompt"
I changed drive and directory to the System32 folder on the volume Windows was installed
I renamed utilman.exe to utilman_old.exe and copied cmd.exe to utilman.exe
I restarted the computer normally with boot from harddisk/ssd.
At the logon screen, I clicked the button for Accessibility Options, which normally invokes utilman.exe. However, utilman.exe is now a copy of cmd.exe, so an ELEVATED command prompt is started
I wrote the line "net users administrator active=yes"
I rebooted the computer, and at login, I chose the Administrator account that was located at the bottom left of the login screen
I downloaded ProfileWizard from https://www.forensit.com/downloads.html, installed it an ran it
I selected the profile, that was linked to the Microsoft account, and clicked Next
I opened an elevated Command Prompt, and wrote "net users tempuser /add"
I went back to Profile Wizard, and wrote "tempuser", and clicked "Next"
At finish, the current administrator user was logged of, and logged on again. I logged administrator off, and logged on as "tempuser". I then had full access to the account that was linked to a Microsoft account, but now as a local account.

Audio Service Not Starting/Functioning Properly

My Audio Service refuses to function properly. I have tried so many different solutions I can't even recall all of them.
Here's how it started; I got home from work one day to see my computer has no video signal but is turned on and receiving input from my mouse/keyboard. I force restart my computer and, after it boots up, I see that the Windows Audio Service is stopped.
I first try to use the task manager to start the service (Audiosrv) and it would blink at Starting then immediately go back to Stopped. From here I went to the Services window and tried starting it from there (Windows Audio) and, after trying to start, says Access Denied (Error 0x80070005).
So after searching a solution I went into regedit and was told to add System as a permission group for AudioSrv and the AudioEndpointBreaker service. Turns out they were already there with FULL CONTROL for both.
I try to change the logon to use Local System Account (WITH INTERACT DESKTOP CHECKED!) and voila, my audio service is running! But my bad luck continues.
None of my speakers/headphones are creating sound even though the service turned on and I can see all my devices. As an attempt I tried to do test sound, and this error appears.
Keep in mind I've restarted after every one of these fixes, both the service and my computer afterwards. As a final attempt I tried to open the Command Prompt as administrator and entered sfc /scannow . After verifying, this message appears.
I honestly have no clue what could've happened while I was working, but I'd rather not have to reinstall my windows to lose all my files.
Recap of my attempts to solve
Start the Audiosrv service from Task Manager (failed to start but keep in mind the EndpointBreaker service was running)
Opened services window and tried starting the Windows Audio service (Access Denied [Error 0x80070005])
Tried adding System as permission group for AudioSrv and AudioEndpointBreaker to find out both already had Administrators, my user, and System with full Control.
Changed login to local system account with interact desktop control checked and it fixed! Supposedly. THIS WAS THE FIX FOR 99% OF PEOPLE ON THE FORUMS
After realizing my sound wasn't playing but my devices/control was showing up, tried testing sound and received an error.
Last resort I did a sfc /scannow command and was given the response shown above.
What should and what can I do to get my audio running?
SIDENOTE
When I drag the volume slider [which usually creates a tone with the volume adjusted], the speakers/headphones meter on the Sound window do NOT light up green (in other words they aren't showing sound receiving on its end)
I resolved this issue after doing a system restore.
Add the Local Service in the Local Users and Groups
Right-click This PC or My Computer, depending on which version of Windows you have, and select Manage from the dropdown menu.
To the right, you will see a System Tools section. Double click Local Users and Groups, and select Groups beneath it.
Right-click Administrators in the list in the middle of the window, and select Add to group.. from the dropdown menu.
Click Add, then Advanced, and then click Find Now. Double click Local Service, and click OK. You should see NT Authority\Local Service in the list, click OK. Close the Computer Management window and reboot your device. Your problem should be solved.
Then in services.msc change logon to LOCAL SYSTEM.
If you dont permission to run Windows Audio:
key windows + Services
search Windows Audio
right click settings
login
Local system account and allow the service to interact with the desktop
save and run Windows Audio

TomEE Service will not allow to access the application from another LAN Machine

I have deployed my webapps in apache-tomee-plus-1.5.1 and start the server using startup.bat in a windows VM. It's working fine and accessible from any other LAN machine using VM's ip, i.e., 192.168.1.236:8080/archiva.
Now, I want to install the server as a service. For that I have install a service using "service.bat install Archiva" command. When I start the service the application is working fine using localhost/192.168.1.236 from the VM. But not accessible from other LAN machine.
FYI, when I start the service the tomcat home page is shown after hitting 192.168.1.236:8080.
Please help.
Go to Windows Start --> Control Panel
Open Windows Firewall(If not showing, please search it and open).
Click on Allow a Program or Feature through windows firewall
see image...
Click on Change settings and then Allow another program...
Then add all the TomEE.*.exe and press ok.
see image...
Restart your service and application is available from LAN.

Running Internet Explorer on LocalSystem Account on Windows 2012

I'm setting up Selenium Grid. We have a separate machine for each version of the browser.
Each node is started as System Service running on LocalSystem account with interactions with user desktop enabled.
This is required because Selenium Grid node starting Internet Explorer have problems making screenshots and transferring them when there was no interaction with user desktop.
As far as I was able to check, it looks like that interactions with user desktop for service are only allowed for LocalSystem account. Event changing manually flags in registry does not seem to works (as it was in windows 2008)
Everything is working fine except the test where I need to perform upload of the file. When there is an action to open dialog for file browsing, following popup appears
Is there any way to prevent this (creation of folder Desktop does not seem to work) ?
From the other hand, if there is a way to run service under different account with interactions with user desktop enabled, that would also be a case.
I would appreciate any help because I'm stuck with the problem
I have checked some additional solutions, like running selenium grid nodes via PowerShell Invoke-Command and this did not worked too.
I have managed to run selenium grid nodes as Windows Service with desktop interactions using 3rd party tool FireDaemon Pro Service Manager.
I didn't try this but PsExec -s should work
https://technet.microsoft.com/en-us/sysinternals/bb897553

windows service server crashes

I have created windows service via Visual Studio.
The service is running ftp server.
I have the same program in .exe app which works perfectly fine.
However, the service crashes in after a while.
I doesn't even get into the OnStop/OnShutdown event, just stops working.
Any ideas?
After doing this myself recently, here is a way of making sure the service restarts after its own crash:
Go to Start - > Control Panel and select Administrative tools in the window. Then, select services and right click on the service you'd like to customize. Under the recovery tab you can set the first failure to restart the service, along with the second and subsequent failures. I hope this helps you out!

Resources