In the post vRealize Orchestrator – Workflow to change DRS setting to default on single VM I presented the workflow to change DRS to manual on single VM. Now it’s the time to change this setting back to the default one, as it was. So to do this it’s quite easy to make a copy of previously create workflow.
And just edit the code of “Scriptable task”, because input parameter and attributes remain the same as in workflow described in previous post. Continue reading
Multiple times in multiple workflows, I needed to have VM not being migrated during the workflow run. Easiest way is to disable DRS on the VM. Well, it seems that DRS setting does not belong to VirtualMachine object, DRS settings is part of the ESX Cluster object. We’re still able to to set setting individually per VM, however it has to be set on ESX Cluster level not on the VM itself. I was pretty sure, that there built-in vRO workflows for such simple setting … However, it’s not. That’s what VMWare offers by default
- Add DRS virtual machine
- Add virtual machines to DRS group
- Create cluster
- Delete cluster
- Disable DRS on cluster
- Disable HA on cluster
- Enable DRS on cluster
- Enable HA on cluster
- Remove virtual machine DRS group from cluster
- Remove virtual machines from DRS group
- Rename cluster
If there is a need and there is no solution – it has to be created.
Happy SYS Admin day to all sys-admins across the world
In last post I wrote few words about MSA and gMSA and in this post I’d like to show you how to make use of gMSA using Powershell of course :).
My test environment is
DS-DC-01 – Windows Server 2012 domain controller
SC-DB-01 – Windows Server 2012 machine for SCCM SQL database
SC-DB-02 – Windows Server 2012 for extending SQL to a cluster.
I’ve seen many howtos, manuals how to install Active Directory domain, but they were always GUI based, as example I’ll put just 2 links, one is Technet and second is Petri website. So in this post I’d like to present how to install and configure basic AD forest using Powershell, it requires just a few input data and 2 powershell commands.
Here comes another howto. I was asked few times to find users that haven’t logged to the domain for a defined amount of time, that I decided write few words how to handle it. The easiest way to achieve that is use of “Saved Queries” in Active Directory Users and Computers console. To do that you simply right-click on the “Saved Queries”, choose New->Query
Then you simply type the name of the query, you can also define specific OU for that and click define query. In the common queries, in the bottom you can choose to find users who has not logged on for some amount of time, counted in days.
It’s the easiest way to find the users … However I would like to have a list in let say CSV file. Here comes the powershell … again. Continue reading
This post will be for a junior administrator or maybe advanced user I should say. I’m Windows administrator and I’m preparing, testing my solutions in virtual labs.
I’m using Hyper-V, because it’s free, now if you have a Windows 8.1, but Professional or better, it’s built feature – so goodbye VMWare player, Worstation and so on.
Many times my labs contain multiple virtual machines, that means I have to start, stop, suspend,save them. Clicking on each machine to perform this simple actions is pretty annoying, so what to do to start them all, in my case most of my machines are in the suspended or saved state. And again with help comes, the one, the only, the mighty – Powershell. Continue reading
During my work I faced many scripting challenges, the one I describe now is very simple and this post will be really short, but dear Reader it can help you to solve some similar cases. So in my case issue was to change all Active Directory group names in one organizational unit by adding the prefix. Continue reading