-
PowerShell Tip – How to check number or cores, logical processors and Hyper-threading on multiple hosts?
It is very simple… Get-CimInstance -ClassName Win32_Processor -CimSession host1, host2 | Format-Table PSComputerName, NumberOfCores, NumberOfLogicalProcessors
-
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
-
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…