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:
Category: Scripting
Copy claim rules from one Relying Party to another in ADFS 2.0
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:
Query HP server Storage Array details remotely via WMI and WBEM
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.
Get system information from WMI remotely with PowerShell script
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. […]
Save list of all websites of IIS with PowerShell
Setup: Computer with PowerShell installed, IIS enabled Problem: You want a list will all websites and their details. Solution: