Server 2012 – Force a Network Type with PowerShell

Here’s an annoying one that I run into quite frequently. On Windows Server 2012, it appears there’s not a quick and easy way to change the network type for a network connection other than to use PowerShell. The problem that I typically run into, is that firewall rules for a specific program are only set for the “domain” profile, so here’s how to force the network type on some interface. This is just for my own personal reference, but I took this info directly from here. Continue reading “Server 2012 – Force a Network Type with PowerShell”

Batch Script – How to Check if the Current User is a Member of a Group

Here is a batch script, using only DOS commands, to check if the current user is a member of a specific group. The way it is currently written, you can call a batch file containing this code using the CALL command and pass the short NetBIOS domain name (or possibly the computer name if it is a local account) and the group name to search for as arguments, and it will return a “1” if the user is a member of the specified group and “0” if they are not. Just be sure to put quotes around any group name that contains any spaces. Continue reading “Batch Script – How to Check if the Current User is a Member of a Group”

Ultra VNC – Send Custom Keys Workaround and ASCII Reference Chart

Unfortunately, not only is the option considered experimental, but the Ultra VNC documentation on how to “Send Custom Keys” is less than ideal, and remembering the decimal equivalent of each key on the keyboard is simply not an option for me. I currently have no want or need to know this information by heart, so I’m not even going to attempt to do so. So, when desperate times call for desperate measures, it’s time to start thinking on your feet and stop pouting like a little man-girl, you’ve still got options.

Luckily, if your running any newer version of Windows (I guess if you want to call it luck), you’re a slug-headed, loser douche, extraordinaire (present company included, I just wish the Linux desktop environments weren’t so damn slow) that doesn’t care about his or her right to computer privacy…Wait, I mean, luckily, you can use the On-Screen Keyboard as a workaround for this, and you can send whatever custom key combinations you need. Continue reading “Ultra VNC – Send Custom Keys Workaround and ASCII Reference Chart”

Mac OS X – Export Google Chrome Browsing History to CSV File from the Terminal

This post is just for my own personal reference, but you can use it too if you like. Just make sure to change the “UserName” below to whatever that user’s home directory is. I’ve mashed the code together from the following sources, changed it to export in csv format (making it easier to import into Excel or Open Office for further manipulation), made it into a one-liner for sake of ease, put the data in ascending order based on last URL visit date, and converted the dates into human readable format. Continue reading “Mac OS X – Export Google Chrome Browsing History to CSV File from the Terminal”