Month: November 2021

Using Microsoft Virtual Machine Manager (VMM) to Create Private Clouds

Step 1: Create a New Cloud Instance Preparation: Create a new Active Directory Group ('Test…

How To Create a Virtual Machine Administrator Role in SCVMM

Update: A new write-up has been posted with screenshots here. Virtual Machine Manager (VMM) 2019…

PowerShell: Technique to Pass Array Variable as Argument

Problem: The subtle difference between invoke-command -scriptblock {} -Args vs -ArgumentList is elusive enough to…

An Experience in Upgrading Synology SSD Cache Drives

This is a quick note to myself so that I wouldn't repeat the same mistake…

PowerShell: Add New Virtual Disk to Existing Guest VM in Hyper-V

# Adding disks (optional) $newVMNames='TestWindows2019' $extraDiskSize='200GB' if($extraDiskSize){ foreach($newVmName in $newVMNames){ STOP-VM -vmname $newVmName $diskFile=(join-path $destinationFolder…

PowerShell: Check IP Conflicts of Computers in Active Directory

We have ran into issues where a group of virtual machines living on a DHCP…

How to Obtain Mac Address of Remote Computer

# PowerShell $computername='TESTSERVER' Get-CimInstance -ClassName Win32_NetworkAdapterConfiguration -Filter "IPEnabled='True'" -ComputerName $computername|Select-Object -Property MACAddress, Description # Sample…

IpConfig Shows Static IP Address Status as Duplicate

Just the other night, I'd received a call from the guys about NetApps changes affecting…

PowerShell: Set PasswordNeverExpires on SamAccountName

Quick 1-liner Code $accounts=@( 'orange', 'apple', 'pear', 'dog', 'cat', 'dinosaur', 'chicken', 'cow', 'yomama', 'yodada' )…

Server Decommissioning Procedure

Migrate application or services of old server to new server Obtain approval from application owner…

Convert LastLogon Date From Number to Date Time

We have a case where our Admins have generated a CSV file with information about…

A Short List of Windows Remote Desktop Server Error Messages

Log Messages: 'Failed GetConnectionProperty' in CUMRDPConnection::QueryProperty at 2884 err=[0x80004001]'Connection doesn't support logon error redirector' in…

Considerations in Granting Access to Helpdesk Users via Group ‘Account Operators’

One consideration is to add Helpdesk users into the 'Account Operators' group. This would effectively…

Quick & Useful Snippet to Set SSL TLS Protocol of PowerShell

$requiredTls='Tls12' $availableSslProtocols=[enum]::getnames([net.securityprotocoltype]) if([Net.ServicePointManager]::SecurityProtocol -notin $requiredTls -and $requiredTls -in $availableSslProtocols){ [Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::$requiredTls }

Office 365 Email Security for SMTP Relays

Error message: Unable to read data from the transport connection: net_io_connectionclosed. Troubleshooting steps: Ensure that…

An Indication That Microsoft Office 365 Email Connector Doesn’t Like Large IP Blocks

As we've advised our clients to configure their O365 to 'whitelist' or allow email relays…

An Exercise in Discover Whether an Active Directory Account Has RDP Access to Windows Bastion Hosts

Check Computers: $computernames='RDPSERVER01','RDPSERVER02','RDPSERVER03' invoke-command -computername $computernames {get-localgroupmember 'remote desktop users'}|select PSComputername,Name # Sample output PS…

Indications that Chocolatey is locked down

# System's version is less than vendor's current (Chocolatey v0.10.15) 0+000+00[LAX-WEB005]: PS C:\Users\testadmin\Documents> choco source…