Filtering Security Event Logs with Powershell

If you've ever had to dig through Windows security event log for a specific event, you know it's a bit of a pain.  Fortunately, you can speed up your search with Powershell's get-eventlog cmdlet. Let's look at filtering the security logs to see who has logged on to a computer. The Event ID for a … Continue reading Filtering Security Event Logs with Powershell

Run an application as admin or another user

Every now and then, you run across applications that won't launch without admin privileges, but you can't give the user admin privileges (like on an RDS Server). Here's a quick and easy way around this- For my example, I'll be modifying my Watchguard SSL VPN client application to run as user appadmin. Then, create a … Continue reading Run an application as admin or another user

Moving DHCP from Server 2012 R2 to another 2012 R2 Server

A very simple process... Logon to the server currently running DHCP. It's ok to leave DHCP running during this process. In Powershell, running as administrator: Export-DhcpServer -File C:\DHCPdata.xml -Leases -Force -ComputerName old.network.local –Verbose On the server to be running DHCP, make sure the role is installed and the service is started Import-DhcpServer -File C:\DHCPdata.xml -BackupPath C:\DHCP\ … Continue reading Moving DHCP from Server 2012 R2 to another 2012 R2 Server

Adding stored passwords to Windows via cmd line

I recently encountered a scenario where it was necessary to store credentials in Dell Wyse Windows 8 Embedded thin clients. The thin client user account didn't allow access to the credential manager with a lot of work to remove the device lockdown. It was desired to pre-stage the credential for the user account of a … Continue reading Adding stored passwords to Windows via cmd line