Cannot Log onto Windows – Trust Relationship Failed

There’s several different things that can cause the trust relationship issue and there are hundreds of post or more online about the subject. Sometimes simply resetting the computer account in Active Directory can fix the problem. Other times, unjoining/rejoining the computer from the domain will fix the problem. If either of those isn’t the case, usually that is a good indication that there is some sort of corruption in the Active Directory database that can only be fixed by manual intervention.
Continue reading “Cannot Log onto Windows – Trust Relationship Failed”

Windows Update Error 80073712 When Installing KB2943357 – OR – How to Repair Corrupted Windows Update Files on Windows 7 or Server 2008

Starting with Windows 8 and Server 2012, you can more easily fix corrupted updates using the “DISM.exe /Online /Cleanup-image /Restorehealth” command, but what about on Windows 7 or on Server 2008? Well, to be honest, it is kind of a pain in the ass and quite a lengthy process.

This seems to be a prime candidate for some sort of automated batch or PowerShell script that could parse out the bad updates from the log file, extract the needed files from the KB .msu packages, move them to the temp directory, and then re-run the System Update Readiness Tool. Lord knows it would save a lot of people some time and headaches but I don’t know whether it is even worth the hassle of programming it all seeing as how mainstream support for Windows 7 will be up soon and extended support will be around until 2020. That and I’m sure a lot of people have been suckered into upgrading to Windows 10 for free as well. It’s ok, there’s nothing in that giant wooden trojan horse that they just carted into your living room. Your data is safe and there are absolutely zero privacy concerns, trust them. Go back to sleep zombie.

Anyways, if you have installed any Server 2008  or Windows 7 operating systems in the last say year or so, you probably have noticed that Windows Update gets broken almost every single freaking time and it is quite cumbersome. So here is the cliff notes version on how to repair your corrupted Windows Update files.
Continue reading “Windows Update Error 80073712 When Installing KB2943357 – OR – How to Repair Corrupted Windows Update Files on Windows 7 or Server 2008”

WinSCP – Import/Export Your Saved Sessions List and Settings from a Computer that is Offline

If you want to backup your saved sessions from WinSCP, that is easy enough, as long as the computer is still in a working state, you can use the backup and restore feature from within the software. But what if the computer doesn’t boot or you swapped the drive into a different machine? So long as you can still access the drive and have access to that user’s registry file, you can easily extract the data you need. Continue reading “WinSCP – Import/Export Your Saved Sessions List and Settings from a Computer that is Offline”

Windows – Play a WAV file with PowerShell and the .NET SoundPlayer Class

At work, they wanted to ability to play a soundbyte on a schedule as a reminder to our sales employees. I think I may have found this on stackexchange but I can’t quite remember at this point to give the full creds. A lot of the solutions I found tried to use Windows Media Player to play sound files or MP3’s, but unfortunately, there was no way to close the program after the file had played. This way uses Windows PowerShell and the .NET SoundPlayer Class to play the file. Continue reading “Windows – Play a WAV file with PowerShell and the .NET SoundPlayer Class”

Windows – How to Run Elevated Scripts as a Regular User with Task Scheduler -OR- How to Restart Services as a Standard User

Here is a neat workaround you can use in Windows to run a batch script or any other command that would regularly require elevated administrator credentials. Using this method, you can essentially bypass UAC and allow a script to be ran as a standard user without them having to enter in an admin password. In theory, you could probably even use this same approach to install software as a regular user if you wanted to. For my example below, I was able to allow a standard user to kill processes and then restart the services.

The problem that I had to overcome was that one of my VPN users who used Shrewsoft VPN client would occasionally get disconnected and then never be able to fully connect again. Oddly enough, the client would show connected on the user’s end and immediately disconnect but it never made a connection on the server side. The problem was that the “iked” process would get hung up and then the VPN client would subsequently never fully connect all the way. Continue reading “Windows – How to Run Elevated Scripts as a Regular User with Task Scheduler -OR- How to Restart Services as a Standard User”

CryptoWall 3.0 Ransomware – Ouch, It Hurts So Good…Get Out the Backup Tapes. You’ve Got Those Right?

Being the badass network admin that you are, you try to keep your servers up to date with all the latest Windows updates, you run antivirus on all your machines on your network and scan daily, you have made sure that none of your users have local admin rights to their machines so they can’t install any software, and so you think you are fairly well covered when it comes to viruses and spyware, well think again.

My company just got hit pretty hard with this new CryptoWall 3.0 virus. If you are unfamiliar with it, basically it encrypts any user accessible data on local and network shares that it has permissions to and holds it ransom for BitCoin payments. Continue reading “CryptoWall 3.0 Ransomware – Ouch, It Hurts So Good…Get Out the Backup Tapes. You’ve Got Those Right?”

Server 2012 – RDesktop: Fix Disappearing Mouse Cursor with Group Policy

Boy do I sure feel like a dumbass sometimes. I researched and wrestled with this damn issue for a week or more only to find out that I had come across the answer to this problem about a dozen times but was looking in the wrong freaking spot. For whatever reason, when people were referring to disabling the mouse pointer shadow, I immediately thought of the place in windows System Properties > Advanced Tab > Performance > Settings > Visual Effects Tab > “Show shadows under mouse pointer” but that wasn’t fixing my problem and now I know why. Here’s the whole story.

I’ve got a mix of around 100 Neoware CA19, CA21, and HP T5145 thin clients, all with 128MB of flash running HP ThinPro build T3X31012 and rdesktop version 1.6.0 that I’ve been testing with on Server 2012 and this was a major problem. I was just about finished locking down this 7 server RDS deployment I’ve been working on and when I had my first few users start to log in to test everything, they had no mouse cursor, fucking awesome!

At first, I thought this may have been a VMware tools problem, so I had reinstalled it and had scoured all the forums there, trying various different little tweaks, registry keys, and what have you, but that was only the beginning. Then I tried adjusting the various RDP settings on the thin client with no luck. I tried all the different things on the various Windows forums and still no luck. I got to know all the ins and outs of HP’s thin client architecture, their use of the Manticore registry, config files and everything that goes along with it and how it all works.
Continue reading “Server 2012 – RDesktop: Fix Disappearing Mouse Cursor with Group Policy”

Server 2012 – Set Proxy Server and Prevent Changes via Group Policy

Thanks to Microsoft, with the removal of the Internet Explorer Maintenance section in Group Policy since IE9, once again they’ve decided to make things more complicated and the end users have lost yet another important administrative tool required for many environments.

That being said, the only way to set and enforce proxy settings in Internet Explorer now requires hacking the registry, which I’m seeing as a disturbingly all too common trend when setting up an RDS server. Here are the keys to the kingdom:

User Configuration > Preferences > Windows Settings > Registry
 Continue reading "Server 2012 – Set Proxy Server and Prevent Changes via Group Policy"

UltraVNC – Password Not Set: How to Install as a System Service

Trying to get UltraVNC (version 1.2.0.5) to run as a system service is a pain in the ass if you don’t follow a specific set of steps during the setup process. It appears that if you check the box to install it as a service during the initial installation wizard, you will encounter the annoying “Password Not Set” error and nothing works. I also had issues with running the MSI installer rather than the EXE, so stick with the executable if you’re in a rush. I don’t have time at the moment to write up a giant all-encompassing post with accompanying pictures and what have you so here’s what you gotta’ to do:
Continue reading “UltraVNC – Password Not Set: How to Install as a System Service”