Efficient sizing, planning, and troubleshooting usually starts from collecting data. The first object in an array of Exchange related objects consuming disk space is a mailbox and we have to know how to measure and control its size. The size control we’ll discuss in my upcoming post about mailbox quotas. In this article, we’ll talk … Continue reading Get Exchange mailbox size w/PowerShell
Category: VMware PowerCLi
How to manage NSX Manager roles w/PowerNSX
Let's start with the terminology. What are the roles of the NSX Manager? NSX Manager roles allow you to manage access rights to NSX objects by assigning to particular user or group a certain role. In the UI, these settings are in Networking and Security -> System -> Users and Domains. What is PowerNSX? PowerNSX … Continue reading How to manage NSX Manager roles w/PowerNSX
Who is logged on to my VM?
Do you know who is logged on to your Virtual Machines? How many of them are domain and how many are local accounts? Are you sure what you know where in your virtual infrastructure particular user is logged on right now? And finally the last question, do you want to know? If the answer is … Continue reading Who is logged on to my VM?
Leverage Cisco Discovery Protocol w/PowerCLi
If you are a lucky owner of Cisco switches, the Get-VMHostCDP function will give you all the necessary information about the network settings using the Cisco Discovery Protocol. Get-VMHostCDP The CDP info for a single network adapter of ESXi host can be retrieved from GUI. The Get-VMHostCDP function from my PowerCLi Vi-Module module retrieves the … Continue reading Leverage Cisco Discovery Protocol w/PowerCLi
Get VCSA backup expiration w/PowerCLi
Did you know your VCSA backups have expiration date!!!? OK, same here . I say you more, not all VMware GSS engineers know about this issue! The issue Actually what is expiring is a root password in OVF template within VCSA installation ISO! I was also surprised, but VMware terms it “known issue” in their … Continue reading Get VCSA backup expiration w/PowerCLi
Intellectual VMware snapshots
Today we will automate VMware VM snapshots with a New-SmartSnapshot function from my PowerCLi Vi-Module module. The function will utilize the embedded PowerCLi New-Snapshot cmdlet but with some smart features. New-SmartSnapshot – the smart features A snapshot name and description The function generates the snapshot name from -Requestor parameter and the current date. By default, … Continue reading Intellectual VMware snapshots
Get and Disconnect VCenter sessions w/PowerCLi
Are you sure you know who connected to your VCenter(s)? From where and when the sessions were established? How long sessions have been idle? What user agents are used (Web Client/PowerCLi, etc.) to connect and many other usable info? This time we will look at just two functions Get-ViSession/Disconnect-ViSession from my PowerCLi Vi-Module module. Many … Continue reading Get and Disconnect VCenter sessions w/PowerCLi
ps1Liner :: MultiPathing report for vSphere hosts
What is one-liner? This is just one line of code (PowerShell/VMware PowerCLi or whatever) intended to perform particular task. It may be very or sometimes very-very long, but is still one line only! This one-liner retrieves pathing info for ESXi hosts. In the vSphere Client this info exists here: Select a host -> Configure tab … Continue reading ps1Liner :: MultiPathing report for vSphere hosts
Extend VM Guest Partition w/PowerCLi
How often do you have to increase your VMs’ partitions? Fairly often, right? You have to find your VM in the vSphere Client, then click Edit Settings and first to increase VM Hard disk. After that you have to open RDP to your VM, open Disk Management, choice Rescan Disks from the right click menu … Continue reading Extend VM Guest Partition w/PowerCLi
Securely save and retrieve credentials w/PowerCLi
Sooner or later, every administrator comes to the fact that he needs some way to save and retrieve credentials. And it should be fast, efficient, convenient and most importantly securely. None of the methods known to me did not meet all these requirements at once. I began to search and found my way, which I … Continue reading Securely save and retrieve credentials w/PowerCLi