-
PowerShell advanced function (cmdlet) to get WWN (PWWN) of all cluster nodes
I wrote a very simple PowerShell script (Advanced Function) that will simplify process to add a new disk to any failover cluster (Hyper-V, SQL) that is connected to SAN via Fibre Channel. If you need WWN (PWWN) of all nodes in the cluster then you need to know only a name of a single node or name…
-
PowerShell Tip – How to remove AD OU and all child objects (another OUs, users, groups, computers)?
How to remove Active Directory Organizational Unit with all child objects (another OUs, users, groups, computers)? It is simple. The trick is to use Remove-ADObject -Recursive. Get-ADOrganizationalUnit -Identity ‘OU=ToDelete,DC=ad,DC=fabrikam,DC=com’ | Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion:$false -PassThru | Remove-ADObject -Recursive -Confirm:$false
-
Difference between Windows Server Containers and Hyper-V Containers
There are two modes for the containers: Windows Server Containers and Hyper-V Containers From a development perspective it does not matter because the only difference is a flag Hyper-V / Windows Server container. That is why I wrote two modes and not two types. Windows Server Containers vs. Hyper-V Containers Windows Server Containers Similar to traditional…
-
PowerShell Tip – How to find all cmdlets with specific parameter?
Do you want to find all cmdlets with specific parameter? Since Windows PowerShell 3.0 you can use Get-Command -ParameterName. PS C:\Windows\system32> gcm -ParameterName Domain CommandType Name ModuleName ———– —- ———- Cmdlet Add-Computer Microsoft.PowerShell.Management But do not forget to import modules that should be searched. PS C:\Windows\system32> ipmo ActiveDirectory, GroupPolicy PS C:\Windows\system32> gcm -ParameterName Domain CommandType…
-
PowerShell Module for Time Synchronization – PowerShell Workflow for testing and monitoring of Time Sync on remote servers in parallel
This PowerShell Workflow is part of PowerShell module for Time Synchronization on Windows and Windows Server. To get all features you need all PowerShell Workflows from the Time Sync module. Possibilities Test current state of time synchronization on the local server or on multiple remote servers in parallel. Orchestrate regular monitoring of the time synchronization…