Here’s the situation. Due to previous management refusing to setup roaming profiles because “I had a problem with it 14yrs ago, it doesn’t work so we don’t do that” mentality, I am now forced to deal with mind-numbingly stupid problems. Like finding a PC that is apparently NOT where it’s supposed to be. It should be in a particular department, in a particular cubicle. But it’s not anywhere around. The PC is currently OFF and Wake-On-LAN is not enabled on all PC’s. Since it is off, I can’t remote into it, since it’s not where it was supposed to be I can’t just ask the cubes next to it who was using it last.
I have tried googling how to find the LAST USER LOGGED INTO A PC with AD, and all it wants to give me is LAST PC A USER LOGGED INTO. I hate you google.
Can someone tell me how to find the the LAST USER LOGGED INTO A PC with AD, when the PC is off and inaccessible?
And if someone could tell me how to get AD to start properly logging the USER LOGINS to PC objects, that would be swell because apparently that doesn’t seem to working either.
I’m tired of this unmanaged BS around here that should be basic administration made easy. It’s time to get this shit straightened out for myself.
I’d start be looking through your DC Windows Event logs. Should be able to search by machine name in the the Security log section to see what user last authenticated against the DC.
Depending on legality issues and how tech savvy your coworkers are. You could use a key logger.
A Hardware key logger is efficient and effective but is easy to find.
Software based key logging can be detected using anti virus software.
It’s a bit more Involved but less detectable than a hardware one.
The only other downside is if found your coworkers will never trust you again.
As far as wandering equipment there is 2 ways to deal with that.
Camera system and lock down cabling.
In our department sometime a computer is moved but they must sign the log book to do so,
(Emergency use)
Failure to comply with the policy is immediate 2 weeks suspension pending termination.
Even the technical support group must sign the logbook when the relocate to their shop for upgrade or repair.
do a dsquery at the root level of the domain for all users, in the command prompt do > filename.txt to make it a text file. open it in excel as a csv, then search for the PC name.
Seems a bit harsh, but I don’t know what your type of work is, probably a bit more confidential than ours.
The PC got moved from it’s initial location at some point while the department played musical cubes with employees, and of course IT moved the PC’s, but failed to rename the PC with the new current location, just another reason for roaming profiles … grrrrr
If Micro$oft is in play, and OneDrive is also there, you could redirect the user folders to their OneDrive and give them almost roaming profiles. But again, not knowing the security or user restrictions hard to say
cause #scriptlife: you could also use get-adcomputer and pipe it through the script above to poll every known computer in AD. then to add some special sauce, you could ingest those results into a xlsx file or sql and boom database of your computers and their most recent users.
How about trying to find what switch port it was last powered up on? Do your network syslogs capture mac addresses on ports when the come up? Or are you able to ssh to your switches and search to determine the last switchport the IP or MAC was seen on?
There are a lot of things that we wish MS would have done with AD but they started investing in PowerShell and the CLR to be more “Linux-y”. As a result, they have pretty much left us to do a lot of heavy lifting as the deprecate a lot of the other features, because, “All enterprises and small businesses should be using vendor best practices.”
Another thing that you can do is create a logon script set it up in a GPO so that when they log on, if they are connected to the network, when they log in, a file (computer’s FQDN) is dropped to a share drive with the computer, date, and user that last logged in.
Honestly, who is the CIO or CISO? I would try to bend their ear and tell them why the current solution is not working and the amount of man hours it takes to do something that is feature of your infrastructure that is not being utilized. If disk space is an issue, you can set quota’s so that someone does not hog all of the available storage.