virtualcenter


Our IT journal

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


Change Active Directory users country code via PowerShell

In order to have correct information in Office 365 when using Azure AD, your users need to have a country code in Active Directory, specially when configuring self-service password reset: $Users = Get-ADUser -Filter {samaccountname -like “*”} foreach ($User in $Users) { Set-ADUser -Identity $User -Country “US” } Get-ADUser -Filter {countrycode -eq 0} | Set-ADUser -Replace @{countrycode=1}  


Shutting down or rebooting Dell SCV3020

For shutting down or rebooting the appliance, launch Dell Storage Manager. Select the Actions icon: Then go to Actions -> System Select the second option      


Configuring an Edge Router for L2TP IPSec VPN using AD authentication via Radius

set vpn l2tp remote-access ipsec-settings authentication mode pre-shared-secret set vpn l2tp remote-access ipsec-settings authentication pre-shared-secret <yourpresharedkey> set vpn l2tp remote-access authentication radius-server 192.168.0.5 key 82LButmnybLpXr%gqOEyj@@7Tu%IjqIdSUpq set vpn l2tp remote-access authentication radius-server 192.168.0.5 port 1812 set vpn l2tp remote-access authentication mode radius set vpn l2tp remote-access client-ip-pool start 192.168.100.200 set vpn l2tp remote-access client-ip-pool stop 192.168.100.249 set vpn l2tp remote-access dns-servers … Read More


Powershell mass update UPN in AD

Import-Module ActiveDirectory $oldSuffix = “myolddomain.local” $newSuffix = “mynewdomain.com” $ou = “DC=yourdomain,DC=local” $server = “Hostname” Get-ADUser -SearchBase $ou -filter * | ForEach-Object { $newUpn = $_.UserPrincipalName.Replace($oldSuffix,$newSuffix) $_ | Set-ADUser -server $server -UserPrincipalName $newUpn }  


Can’t Create an Office 365 group

I was getting ready to create an Office 365 group for a client, using a global administrator account. However, this user had no license, and it was just to manage users. No matter what, I couldn’t create an Office 365 group from the group section.   Once you assign a temporary license to the user and log back in, it … Read More


Enabling DKIM on Office 365 for spoofing protection

DKIM (Domain Key Identified Mail) is used to detect email spoofing. The recipient validates the signature against the public key registered on the DNS for the sender. To enable DKIM on Office 365, access your portal and go to the exchange admin center. On the main screen, select “dkim”, and then select the domain you want to work on. On the … Read More


Extend the SBS grace time period

Sometimes we may need a bit more than the 21 day warning that SBS gives. The following method breaches the EULA with Microsoft and should only be used for lab environments. We will start receiving messages like “The server was shut down because it did not comply with the EULA. For more information, contact Microsoft.” This means that either the … Read More


Install the vSphere client on a Domain Controller

Sometimes, we may be in the need of installing the vSphere Client on a domain controller. You may have received a “vSphere Client cannot be installed on a Domain Controller” error by the installer. To be able to do this, you just need to open up an administrator command prompt and type the following in the same folder than the … Read More