Ihave wrestled with service principle names a few times now and the Microsoft explanation is just not sufficient. I am configuring an IIS application to work on our domain and it looks like some of my issues are related to my need to configure http specific SPNs on the windows service account that is running the application pool hosting my site.
All this has made me realize I just don't fully get the relationship between service types (MSSQL, http, host, termsrv, wsman, etc.), Kerberos authentication, active directory computer accounts (PCName$), windows services accounts, SPNs, and the user account I am using to try and access a service.
A Service Principal Name is a concept from Kerberos. It's an identifier for a particular service offered by a particular host within an authentication domain. The common form for SPNs is service class/fqdn@REALM (e.g. IMAP/[email protected]). There are also User Principal Names which identify users, in form of user@REALM (or user1/user2@REALM, which identifies a speaks-for relationship). The service class can loosely be thought of as the protocol for the service. The list of service classes that are built-in to Windows are listed in this article from Microsoft.
Every SPN must be registered in the REALM's Key Distribution Center (KDC) and issued a service key. The setspn.exe utility which is available in \Support\Tools folder on the Windows install media or as a Resource Kit download, manipulates assignments of SPNs to computer or other accounts in the AD.
yarek's answer was great, and I upvoted it, but I also wanted to give you a little bit more Windows-specific information on the topic, or rather coming from the perspective of someone who is more familiar with AD than just Kerberos in general, just because this is a topic that interests me greatly.
I have a file server running (SMB) that I connected to in Explorer (Windows 7 Professional) by visiting \\1.2.3.4 directly. I logged in as one user, without saving credentials, and now wish to log out (actually I want to change to a different user, but being able to log out in general would be useful).
However, none of these actually seemed to work for me. I run net use * /del, then use net use to verify that the list is empty, and yet the share mysteriously remains in explorer, unaffected, accessible, and still using the previous login.
Another thing I tried, which also failed, was doing e.g. net use \\1.2.3.4 /user:newusername to switch the credentials. However, even when net use showed an empty connection list, this still produced an error stating that multiple connections to the same resource with different users were not allowed - why there were connections that didn't show up in net use's list is a mystery to me.
This procedure worked for me. There was nothing of interest in the Credential Manager, as I did not save credentials, however restarting the Workstation service after clearing the connections with net was the key (I did have to close all explorer windows to get the service to restart).
My question is: This is not very convenient at all, especially when I have to explain it to less tech-savvy users. While I could certainly create e.g. a batch script to automate the whole thing, is there an actual, proper, consistent way to do this that doesn't involve restarting services (and possibly doesn't involve the command line, although personally I don't mind)?
Also, a sub-question: It is weird to me that the vast majority of resources I found on this matter didn't suggest restarting Workstation, and the suggested process of using net use alone seemed to work at least for the other people who posted comments on those posts. Is the Workstation restart unique to me and indicative of some other issue on my machine, or was it just left out of all the instructions for some reason? Only the
microsoft.com support post had instructions that recommended this step, which is what finally got it working for me.
Special case maybe: remote computer had "advanced sharing settings" - "public folder sharing" - as ON. This means, first time I went to \\COMPUTERNAME it logged in as "guest". No username / password prompt.
I know I was guest, because from the local computer on the remote computer I made a file in c:\users\public\public documents\ (which is accessible as guest) and then checked the owner of that file using properties - security - advanced - owner. (Note, the guest account displays as off in user accounts - manage accounts. I guess it's still active for network login though.)
Note, I can confirm I also have no cached credentials listed in credential manager. However, other people on the internet do, and removing those fixes it for them (eg: -to-log-out-from-network-path). I wonder if I don't because I'm logged in as guest. So there's not really a credential. But then again there is enough of one I can't use another. But this would be a different situation than OP who logged in explicitly the first time (unless somehow he still logged in as guest? In which case the access requirements of the first thing you try to access remotely may play a role here.)
One more tidbit: on the local computer I used Process Explorer to search for a string among all processes and I searched for the remote computer name. It yielded an open file handle in the svchost for the Workstation service. Force-closing that handle via procexp did not help, unfortunately.
So for me, restarting the Workstation (aka LanmanWorkstation) service fixed it. (Note: you can't really do this in powershell, at least v5.1. Because Workstation has dependent services. You'd have to extract those, find out which ones are running, stop them, store that list, restart LanmanWorkstation -force (which I believe causes dependent services to die ungracefully), then restart the dependent services that were running previously. Oh, and do this recursively for all dependents of dependents and so on. However, services.msc does it all for you. For me the only dependent service that services.msc restarted was Computer Browser aka browser)
2) You are not alone in this issue. Most people probably never experience it because they only have one user and/or multiple users but all with the same password. I seem to experience it all the time. I'm assuming it is because I have the same user name on multiple computers but with different passwords.. (I am not in a domain; laptop is Windows 8.1 with Windows and Linux-based servers..)
(from memory)If I open the root share of a computer, such as \raspi, before accessing a locked down share such as \raspi\private I will have that issue. It seems that a connection is made using the public/open share first and then it gets stored.
Following the instructions at Resolving a Windows Error 1219 from Altaro.com worked for me. In particular, downloading Process Explorer, choosing Find/Find Handle or DLL, and searching for the name of my server revealed that opening a Windows Explorer window with quick links to the server immediately re-established a connection to the server such that net use \\server fails with Error 1219. When Process Explorer shows no active handles, net use \\server succeeds.
This might be a long shot, but did you wait long enough after using net use * /d?As far as I know, even after deleting the share, Windows keeps the session open if there are open handles (Explorer window, etc.). And even after closing those handles, there is a time-out period during which it will reconnect the share.The default seems to be 10-15 minutes. You can shorten this in the registry.
Sometimes the bluetooth on my laptop fails to connect properly (either not at all, or sometimes with terrible quality) to a pair of stereo headphones. Often times I've been able to recover normal functionality by resetting the bluetooth adapter.
However, that doesn't always work. That leads me to take other measures, like restarting the bluetooth services in Windows. This never seems to get anywhere and ultimately I end up rebooting my system and everything works again.
I really don't think rebooting should be necessary to resolve this, and so I'd like to know: Could anyone else suggest some ideas of what other devices / services / processes in Windows might be worth attempting to reset / restart in order to restore proper functionality of the bluetooth device?
If this works, you may want to throw the that snippet into a ps1 file and set up ps1 files to be "Run as Admin," this link may help you with that: -vista/add-run-as-administrator-to-any-file-type-in-windows-vista/
I've run into this issue as well on my T430. My best resolution so far has been to disable then enable the the Bluetooth Radio device in Device Manager (ThinkPad Bluetooth 4.0 on my machine). This usually lets me reconnect to my headset and everything works fine again. Eventually the machine gets to the point where I have to do this every time to connect, but by then it's been running for a few weeks and needs to be rebooted anyhow :-)
If you're using a localized version of Windows, you may need to replace the name of the service with whatever name your service has. Run net start to get the name, this will display the list of all running services.
On Windows 10, I've had success with restarting the Radio Management Service (RmSvc). I'm doing a lot of testing with Bluetooth Low Energy devices, and that fixes the occasions where I stop being able to scan for local devices, even after resetting the Bluetooth adapter.
However, the first time I tried this in Powershell, it worked fine, but I was subsequently getting "Cannot top RmSvc service on computer '.'". At that point, resetting the service from the Task Manager worked.
If you have the Bluetooth icon shown in the system tray, the easiest way to restart the Bluetooth radio is to right-click it to open the context menu, select Turn Adapter Off, right-click it again immediately before the icon disappears and select Turn Adapter On.
To turn the Bluetooth icon on, open the Start menu and search for Change Bluetooth settings (I really don't know where it's located), open it and on the Options tab, check the Show the Bluetooth icon in the notification area checkbox.
3a8082e126