virtualcenter


Our IT journal

Keep-alive VPN on Windows using PowerShell

Having to rely on Windows VPNs sometimes can be tricky, especially if the VPN tunnel times out. We can use this script for monitoring the tunnel and reconnecting automatically whenever it goes down. We are using the password for the VPN encrypted as seen on this post. $ip = “192.168.5.1” $result = gwmi -query “SELECT * FROM Win32_PingStatus WHERE Address … Read More


Configuring NTP on Windows

This will work for most Windows releases, it will force the OS to update its time sync against an NTP server. Run the following commands on a Powershell window:   w32tm /config /manualpeerlist:time.nist.gov /syncfromflags:MANUAL Stop-Service w32time Start-Service w32time After running those commands, force the sync:   w32tm /resync Check w32tm status: w32tm /query /status  


Dell iDRAC Network connection has dropped

After the latest Java updates you may have seen this message “Network connection has dropped” whenever trying to use viewer.jnlp Go to your Java release lib folder, and comment/change the following lines on your java.security file jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 1024, \ EC keySize < 224, DES40_CBC, RC4_40 This issue is caused by Java disabling 3DES_EDE_CBC – after making … Read More


Sanitizing an OpenERP database

Connect to the database and run the following SQL statement. This query will delete all data from your OpenERP database, take appropriate measures and have your backups ready!   TRUNCATE sale_order CASCADE; TRUNCATE purchase_order CASCADE; TRUNCATE mrp_production CASCADE; TRUNCATE stock_picking CASCADE; TRUNCATE stock_tracking CASCADE; TRUNCATE account_invoice CASCADE; TRUNCATE account_move CASCADE; TRUNCATE account_voucher CASCADE; TRUNCATE wkf_instance CASCADE; TRUNCATE ir_attachment CASCADE; TRUNCATE … Read More


Exchange 2013/2016/2019 new escalation vulnerability found

Microsoft Exchange appears to be currently vulnerable to a privilege escalation attack that allows any user with a mailbox to become a Domain Admin. On Thursday, Dirk-jan Mollema, a security researcher with Fox-IT in the Netherlands, published proof-of-concept code and an explanation of the attack, which involves the interplay of three separate issues. According to Mollema, the primary problem is that Exchange has … Read More


Block WAN SSH / GUI on Edgerouter OS

To prevent exposing your device from WAN, which is the default, get to the GUI or SSH locally and run these commands. Change the addresses as needed.   configure set service gui listen-address 192.168.20.1 set service ssh listen-address 192.168.20.1 commit save exit  


Property ‘MaxInternalSize’ does not exist in class ‘Msvm_VirtualHardDiskSettingData’ – VHDX on Hyper-V

Sometimes we can mount a VHDX that had its checkpoints saved on another location. When trying to boot the VM we will have a “Property ‘MaxInternalSize’ does not exist in class ‘Msvm_VirtualHardDiskSettingData’.” This is because the disk properties has changed and the VM is linking the checkpoint back to its parent, making the chain corrupted. To remediate this, we will … Read More


virtualcenter is now an approved and recommended Microsoft Solution Provider

We are very happy to announce that we have applied and received the Microsoft Solution Provider approval, which lists us in the main Partner directory. We are ready to be a part of your next project!


Querying EC2 IPs via AWS CLI

I had to get a list for all public IPs mapped to EC2 instances. First start by connecting to AWS via CLI, then use the following:   aws ec2 describe-instances –query “Reservations[*].Instances[*].PublicIpAddress” –output=text   aws ec2 describe-instances –query “Reservations[*].Instances[*].PrivateIpAddress” –output=text   You will see all public/private IPs listed


Connecting to AWS via CLI

First start by creating an AWS user via IAM for programmatical access, which will give you a public and private key. Install the AWS CLI    $ aws configure AWS Access Key ID [None]: publickey AWS Secret Access Key [None]: privatekey Default region name [None]: us-east-1 Default output format [None]: text Default output format is JSON – you can choose … Read More