Skip to content

KC's Blog

  • Home
  • About Me
  • Sitemap

Microsoft

Getting Client IP Addresses and its Geolocation from Remote Desktop Gateway Sessions

July 23, 2018January 24, 2023 Kent ChenMicrosoft

To get the IP addresses of the remote desktop sessions behind a Remote Desktop Gateway, you need to open RD Gateway Manager, go to Monitoring section and check each of the connected sessions to find their IP addresses. If you want to look further for their geolocations as well, you would search the IP address in one of the geolocation […]

Read more

How To Find All Services that Uses Administrator Account to Start

July 16, 2018January 24, 2023 Kent ChenMicrosoft

Reset the local admin password the other day and I needed to find out all services that rely on the local admin account to run so no interruption would happen after the reboot. Obviously, the easiest way to find out is using PowerShell. But how? I first tried the Get-Service cmdlet but found that it doesn’t return the value for […]

Read more

4 Types of Notifications Generated in PowerShell

June 15, 2018January 24, 2023 Kent ChenMicrosoft

When a PowerShell script takes long time to finish, it’s nice to have some sort of notification set up in place to notify you when the job is finished. Here are three type of notifications you can create in PowerShell. Notify via Email PowerShell has a native cmdlet Send-MailMessage that can be easily set up and use. I have written […]

Read more

How To Mount and Update Windows Image Files (WIM)

May 26, 2018January 24, 2023 Kent ChenMicrosoft

I have an imaging system that uses the command line imagex to build and apply images to install new computers. It’s relatively easy to set up and works quite efficiently. Because it’s using Microsoft’s own Windows Image Files (WIM) format, it’s also easy to mount to not only read but update files in the image file. You can even install […]

Read more

Impersonate Another User in Windows

May 17, 2018January 24, 2023 Kent ChenMicrosoft

I have a folder full of obsolete roaming profile folders that I really want to tidy up. Due to the very restrict folder permissions on these folders, I found it would be a lot faster and easier if I can impersonate an individual user on the server and perform the archive job using RoboCopy command line. The built-in “RunAs” seems […]

Read more

Find and Remove Inactive Active Directory Computer Accounts Using PowerShell

April 26, 2018January 24, 2023 Kent ChenMicrosoft

As time goes on, the computer accounts in your AD could be getting quite messy. More and more computer accounts became obsolete as their physical counterpart gets disposed. At one point, a cleaning job is due to be performed to clean up the mess. There are probably a lot of ways but here is a PowerShell way that is pretty […]

Read more

How To Add Sound Equalizer on Windows 10

March 13, 2018January 24, 2023 Kent ChenMicrosoft

I used to think sound equalizer isn’t necessary for my music enjoyment. If I have a good pair of headphone or speakers I could get the most enjoyment out of it. Well, having a well-tuned sound EQ on top of that can make the music enjoyment even more. But since Windows 10 or any previous Windows version don’t have EQ […]

Read more

Fixing Roaming User Profile Not Completely Synchronized on Windows Server 2012

February 14, 2018January 24, 2023 Kent ChenMicrosoft

I have a Remote Desktop Services running on Windows Server 2012. Users who have the access to that server have the roaming profile set up but every time when they log off a warning message displays on the screen saying that: Your roaming user profile was not completely synchronized. See the event log for details or contact administrator. By checking […]

Read more

Posts navigation

Older posts
Newer posts
  • Group Policy to Bypass the UAC Prompt After PrinterNightmare Patch
  • Managing Microsoft Licenses in PowerShell and Microsoft Graph
  • Audit Email Deletion in Microsoft 365
  • Adding Multiple Server Names to A Windows Server
  • Enforcing HTTP to HTTPS on IIS

KC's Blog

  • Home
  • About Me
  • Sitemap
Powered by WordPress | Theme: Astrid by aThemes.
KC's Blog
Proudly powered by WordPress Theme: Astrid.