devops
PowerShell - Get MAC Address Of Any Remote IP
· ☕ 2 min read
Here is a PowerShell one-liner [...] If you need to dynamically resolve a host IP from its name [...] The whole script may look like the following [...] Because it's WMI based, computer can be from any network. But you must have necessary account permissions and firewall rules.

PowerShell - Get Current User
· ☕ 1 min read
Actually, there are many ways to get name of the user, which is currently logged on, including built-in .NET commands. But let's keep our code clean and stick with native PowerShell.

Prepare Windows 2003 Active Directory For Upgrade To Windows 2008 R2
· ☕ 1 min read
That's actually pretty simple, you just need to run this utility [...] Where D is your CD/DVD drive with Windows 2008 R2. In our case it was a virtual drive mounted in Hyper-V, but I think it does not really matter. I did preparation for both forest and domain, because in our situation they are identical.

WSUS 3.0 SP2 - Update Cloned Virtual Machines
· ☕ 2 min read
After some point we had too many virtual machines to keep track of updates locally. So we decided to try Microsoft's solution called WSUS. It took some time to install, the whole process could have been easier, cause I had to google every part of it. When we finally had it working, there was a problem with detection of our virtual machines.

Zone not loaded by DNS server - Windows 2003 R2 SP2
· ☕ 2 min read
So we switched to a new provider and I had to change primary DNS to another server. Yes, we decided to have another server for this purpose, just to have a backup in case anything goes wrong. And we actually made use of that old server, because some of our domain records took longer to update, than it was expected. Anyway, let's skip unneeded details and roll down to the topic of this post.

DL380 G6 - Unexpected Reboot
· ☕ 2 min read
I noticed many people on the net are looking for this review, or at least for anything that could prove they are not alone. Well, guys, here's what you wanted to hear - yes, our 9 x G6 DL380 servers kept rebooting unexpectedly for quite a while. Not all at once, but still annoying. It all happened at random until we contacted HP and their tech told us to update firmware.

Run Internet Explorer 5.5, 6.0, 7.0, 8.0 on Windows 7
· ☕ 1 min read
There is no catch about that. You don't need powerful software to support 3 virtual XPs to run XP mode in Windows Virtual PC, or anything like that. When I heard this being possible on an old PC with no real prerequisites, and for free, I was amazed.

PowerShell - Query Oracle Database
· ☕ 2 min read
You might have already googled other pages to help you on this. You even probably have found some PowerShell function like the one below [...] Still something makes this one different. Here are some tricks used here [...]