VMworld 2018 Barcelona Highlights

Stephen Hackers from Hot Wired IT Solutions affiliate partner to HTG (Howell Technology Group) made the trip to VMworld Barcelona 2018 with Kevin Howell (HTG), Graham Wight (HTG) and Tony Cota.

Overview

Tech Experts Meetings + Design Workshops + Vendors + Hall Sessions = A great experience and excellent value for money.

Things I learnt…

  1. Download the VMworld App
  2. Book sessions early
  3. Register for a vendor party
  4. Participate where possible

VMworld through my eyes

  1. Download the app… Contains your pass, schedule, reminders, events, map, info and more.
  2. The photo every geek wants

3. Picked up my VMware vExpert 2018 goodie bag

 

4. Attended multiple design workshops. Signing NDA… Sorry no secrets being shared here.

VMware design_studio

 

5. Entered the Hackathon .. Joined an amazing team of 8 experts. (3rd place)

Chris Porter, Christopher Lewis, Colin Westwater, Dave Simpson, Dominik Zorgnotti, Gareth Edwards, Tony Cota and Stephen Hackers (Me).

We created and launched #PowerVKE. PowerShell module to deploy kubernetes. This was successful in taking 3rd place at the Hackathon

Available on GitHub https://github.com/PowerVKE

Follow on twitter https://twitter.com/PowerVKE

24 hours on from the Hackathon and Will PowerVKE name change to PowerPKS??

 

6. Meet the Vendors.

Vembu stand

NetApp with Ducati ( I was always going to visit any stand with a bike being a biker myself)

Quantum

 

7. Vendor party

Cohesity was our option

Great night out and some interesting glow in the dark / flashing devices for the night. The Queen tribute act was definitely worth watching. The friendly atmosphere was fantastic

 

8. Meet the Experts.

I attended two of these excellent sessions on PKS (kubernetes) and vSphere on AWS. As a techy I felt I got more business value in these 30-45min 1-1 tech sessions than in some of the high level presentations attended. That’s not to say the high level presentations were worth attending as well, but I got to ask in the 1-1 my homework for actual work I’m doing or planning on doing.

 

9.The End

Then the trip was over. Such an amazing few days. Already looking forward to VMworld 2019……

List Computers in Specific OU which are Enabled and Output to CSV

# Out puts computer accounts including status Enabled True or False
# Targets a specific OU
# Lists computer names

# OU Variable to set
$OU_HotWiredUK_location = “OU=Computers,OU=HotWiredHQ,OU=UK,DC=test,DC=com”

# Out put CSV to c:\scripts\…
Get-ADComputer -Properties * -Filter * -SearchBase $OU_HotWiredUK_location | Select Enabled, Name, DistinguishedName | export-csv C:\Scripts\OU_HotWiredUK_location.csv

Files Older Than 3 Months Combined Total File Size

A requirement to identify the total file size of all files not used in the last 3 months.

This was the solution

#Run as administrator
#You need to have permission of the files or folders 

$date = (Get-Date).AddMonths(-3)

dir C:\temp -Recurse | ?{$_.lastwritetime -lt $date -and !$_.PsIsContainer} | Measure-Object -Property Length -Sum

# oneliner

dir C:\temp -Recurse -Force -ErrorAction SilentlyContinue | `

    ?{$_.lastwritetime -lt (Get-Date).AddMonths(-6)} | Measure-Object -Property Length -Sum -ErrorAction SilentlyContinue

 

# resulting data will be in bytes. To convert them to gigabytes, you may do this:

$files = dir C:\temp -Recurse -Force -ErrorAction SilentlyContinue | `

    ?{$_.lastwritetime -lt (Get-Date).AddMonths(-6)} | Measure-Object -Property Length -Sum -ErrorAction SilentlyContinue

($files.sum / 1gb).ToString(“F02”)

# F02 determines how much digits will appears after comma. In my case – 2 digits.

 

dir C:\temp -Recurse | ?{$_.psiscontainer} | %{

    Write-Host current folder is $_.fullname;

    dir $_.fullname | measure-object -property Length -sum -ErrorAction SilentlyContinue

} >c:\temp\file sizes

Credit to the  Original post script this is based on

Task : Output A List Of Home Drive Paths Configured In Active Directory

#DSQuery

dsquery user -name “*” -limit 0 | dsget user -samid -hmdir -hmdrv -profile >c:\temp\usersV2.txt

 

#PowerShell # More flexibility # Includes the state of the computer account (Enable or Disabled)

Get-ADUser -Filter * -Property Name,CanonicalName,CN,DisplayName,DistinguishedName,HomeDirectory, HomeDrive,SamAccountName,UserPrincipalName | export-csv -path (Join-Path $pwd HomeDrive.csv) -encoding ascii -NoTypeInformation

List all users in the domain and email addresses

 import-module activedirectory

#List all users in the domain

# Display Name and Email Address

get-aduser -Filter *  -SearchBase “dc=Test,dc=com” -Properties Displayname,emailaddress | select displayname ,emailaddress | Export-Csv C:\temp\users_and_email.csv   

 

Troubleshooting Windows Updates and WSUS

Troubleshooting Windows Updates #Windows 10 #Windows 2016

Windows Update Log

PowerShell command to check the Windows Update log

Get-WindowsUpdateLog

 

Check Registry Keys

Run command prompt as adminitrator and paste these query registry keys in to see what your client has set for Windows Updates.

reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /s

reg query HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Update

reg query HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings

 

Check CBS Log

Find the Component-Based Servicing log here.

C:\Windows\Logs\CBS

PowerShell Script to find all AD users who have the “cannot change password” box checked in a specific OU

# script to find all AD users who have the “cannot change password” box checked in a specific OU

# Windows Server 2016

# Powershell

Get-ADUser -Filter * -Properties CannotChangePassword -SearchBase “OU=specificOU,DC=TEST,DC=com” | where { $_.CannotChangePassword -eq “true” } | Format-Table Name, DistinguishedName