Setup: A Windows cluster who was added a new SAN disk. Problem: Sometimes you need to scan each node for new disks in order to be able to add the disk in the cluster. Solution:
Setup: Member server in Active Directory domain Problem: You need to compare group membership of two users Solution: Run this command in PowerShell The get-hash is a PowerShell hash function . Get-QADUser cmdlet is part of ActiveRoles
Setup: Computer with PowerShell installed Problem: Sometimes you want to create a hash from a string. Solution: Run this PowerShell script or include the function in your code: Example:
Setup: A Windows server member of a domain or workgroup Problem: You need LastLogon date for all the users who ever logged in on that server. Solution: Open PowerShell console and run this script:
Setup: Existing ADFS 2.0 installation Problem: You create a new Relying Party Trust and want to copy all the claim rules from existing Relying Party Solution: Open Power Shell console and run this code After that issue the folowing command: Tips: Run this command to find out all RP names:
Setup: A HP server with Windows OS and WMI enabled. Latest WBEM drivers installed. Problem: You want to query server details regarding the Storage Array Controller and disks installed. Solution: Run this PowerShell script from a remote computer.
Setup: Remote computer with WMI enabled and firewall open Problem: You want to collect various information remotely Solution: Copy this script and save it on the disk with .ps1 extension. eg. Get-ComputerDetails.ps1 Open PowerShell console and execute the script. Tip 1: For unattended execution save the credentials on the disk and load them at run-time. […]
Setup: Computer with PowerShell installed, IIS enabled Problem: You want a list will all websites and their details. Solution: