How to find out who is logged in to a network computer with PowerShell

July 9, 2017 at 4:10 PMMadestro

Here is how to figure out who is currently logged in to a network computer. This comes in handy for situations where you need to access the computer, say, via Remote Desktop connection and someone is already logged in:

 Get-WmiObject -Class win32_process -ComputerName PUT_COMPUTER_NAME_HERE | Where-Object{ $_.Name -eq "explorer.exe" } | ForEach-Object{ ($_.GetOwner()).Domain + "\\" + ($_.GetOwner()).User; }

Type that all in one line.

Posted in: Windows Networking

Tags:

Outlook says I have an unread message, but all messages are marked as read!

October 8, 2015 at 9:54 AMMadestro

I have rules configured in Outlook that move e-mails to different folders. One of these folders was reporting an unread message but the folder content view showed all messages marked as read.

It turns out there is a very simple way to fix this. There is in fact an e-mail that is not marked as read. You can find it by accessing the web version of the product, which is commonly available in company deployments. The URL is usually:

ex.somedomain.com, or

webmail.somedomain.com, or

owa.somedomain.com

Once you find it, mark it as read on the web interface and Outlook will automatically refresh and no longer show unread messages.

Posted in: Windows Networking

Tags:

The user profile service failed the logon. User profile cannot be loaded

February 25, 2014 at 12:04 PMMadestro

A user was not able to login to a computer for the first time. He kept getting the following error:

The user profile service failed the logon. User profile cannot be loaded

There are plenty of articles out there and even a Microsoft "Fix It" for it:

http://support.microsoft.com/kb/947215/en-us

http://answers.microsoft.com/en-us/windows/forum/windows_7-security/i-receive-error-message-the-user-profile-service/38844b82-a2c1-4fa2-9802-a5318d6f7831

None of this worked for me unfortunately.

After giving it some thought, it occurred to me that maybe the Windows default profile (used when you login for the first time) was corrupted.

So I went to the c:\users\default folder and deleted everything in it. 

I then went to another machine that was working fine and copied the contents of the folder to the machine having trouble.

Problem solved.

Posted in: Windows Networking

Tags:

Blocking sites with the SonicWall TZ-205 Content Filtering Service (CFS)

January 10, 2014 at 2:07 PMMadestro

 

I recently installed a SonicWall TZ-205 on a customer site without a CGSS subscription.

The customer wanted to block some websites. I went to Security Services > CFS and set up a custom list of websites. This functionality still works, even without a subscription.

When I went to apply the policy to the zones however, I got stuck because the combo box used to display the policies was empty. From every tutorial out there, I was expecting to see a "default policy" entry. 

Testing the unit by just checking the "Enable Content Filtering" box didn't work. I could still see the offending site.

It turns out the appliance is smart enough to know NOT to block ME while I am logged in as admin. After I logged out, I tried hitting one of the offending sites and behold!... it worked.

Posted in: Windows Networking

Tags: