Association between virtual ethernet and virtual switch

You’ve just created couple of internal network switches in your Hyper-V Manager. Or you’ve just installed Docker for Windows and played with it a little. Now want to create NAT to allow your fresh new containers and/or virtual machines to have access to the Internet. Unfortunately there is no simple way to say which of […]

Script for Windows storage audit

I’ve created PowerShell script to collect all important information about windows physical disks, partitions and volumes (logical disks) and its connections. To use it you should have administrator right on target computer, otherwise only simple information about logical disks will be collected. This limitation is due to MSFT_PartitionToVolume WMI class, which is accessible only by […]

Install RemixOS on Hyper-V virtual machine

Sometimes you just need quickly deploy Android x86 server in your production environment using Microsoft Hyper-V virtualization. Now you can do it with Remix OS. Installation to Hyper-V virtual machine is a bit tricky, but possible. First of all create Generation 1 VM with at least 6 Gb HDD. I’ve tested VM with 2 Gb […]

Unattended install for Microsoft Dynamics CRM 2015 Outlook Add-In

To make fully unattended install package you need to do following steps: 1. Download install package: http://www.microsoft.com/en-us/download/details.aspx?id=45015 2.Extract package content: CRM2015-Client-ENU-i386.exe /extract:c:\CRM_TEMP\1\2 Do not remove sub folders 1 and 2 from the path, because we need it later 3. Create Redist folder in c:\CRM_TEMP. Do not put it in the sub folders: 4. Create following […]

TMG 2010 and “RPC Server unavailable”

Recently I have encountered strange TMG behavior. I have permitted all RPC connections to Domain Controllers with system rule and disabled RPC Filter plus switched off “Enable strict RPC compliance” option. But my WMI requests and any other RPC traffic from TMG servers to internal resources was still blocked. The error was “RPC Server Unavailable”. […]

Connecting with android Boxer mail app to hotmail account over ActiveSync

By default if you try to connect to any Hotmail e-mail with Boxer app (current version 2.0.0), which is a default in CyanogenOS 12s, it set up your account with IMAP and SMTP. Such setup prevents you from using your calendar and contacts. To fix this you should set up your connection with ActiveSync, but such […]

Cisco Any Connect with Windows 10 build 10061 Repairing vpn adapter

Today our network administrator applied latest patch to Cisco ASA. After that, any new connection with AnyConnect was starting update procedure, which failed every time even after reboot. I’ve uninstalled application and installed the newest version. After that any connection showed: Repairing vpn adapter Which have failed each time. To fix this I’ve changed settings […]

Find all VMWare VMs created in a given period

To find all virtual machines created in a given period use the following SQL script: select ev.CREATE_TIME, EV.VM_NAME AS OldName from VPX_EVENT EV Where (EV.event_type = ‘vim.event.VmDeployedEvent’ OR EV.EVENT_TYPE = ‘vim.event.VmCreatedEvent’ OR EV.EVENT_TYPE = ‘vim.event.VMClonedEvent’) AND EV.CREATE_TIME >= cast(‘01.01.2013’ AS DATETIME) AND EV.CREATE_TIME <= cast(‘31.01.2014’ AS DATETIME) Output of this script will show all created […]

Restoring MSSQL database to new location from command line with IBM TSM

Just a simple commands sequence with comments. tdpsqlc.exe q tsm SOURCE_DB_NAME f /all write down Database Object Name for needed full backup. If you want to recover database backed up with options from dsm.opt file use following command: tdpsqlc restore SOURCE_DB_NAME  full /into=DESTINATION_DB_NAME/RELocate=DATA_FILE_NAME,LOG_FILE_NAME /to=PATH_TO_DATA_FILE.mdf,PATH_TO_LOG_FILE.ldf /RECOVery=no /replace /object=DATABASEOBJECTNAME If you want to recover database backed up with […]

Unexpected server reboot caused by windows update

Recently I’ve got unexpected Windows server 2008 R2 reboot with some recovery reason, which is quite uninformative: The process C:\Windows\system32\svchost.exe (servername) has initiated the restart of computer servername on behalf of user NT AUTHORITY\SYSTEM for the following reason: Operating System: Recovery (Planned) Reason Code: 0x80020002 Shutdown Type: restart Comment: As time of reboot was very […]