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. […]

Read More

Add new realm to existing trusted identity provider in SharePoint 2010/2013

Setup: You have a SharePoint farm with an web application configured to use ADFS 2.0 for authentication via Trusted Identity Provider. Problem: You want to add another web application to this SharePoint farm and configure the authentication via ADFS Solution: Open SharePoint PowerShell and issue the following commands: where appname is the alias of your […]

Read More

Export users from Active Directory in CSV with PowerShell

Setup: You have access to a domain member computer with Active Roles installed Problem: You want to export users with details from specific OU to a CSV file Solution: Open Powershell Active Roles console and run these commands: -sizelimit 0 will return all users. See http://msdn.microsoft.com/en-us/library/ms180880(v=vs.80).aspx for more details -enabled return only enabled users. Remove […]

Read More

Batch Create AD groups from file

Prerequisites: Active Directory, PowerShell, ActiveRoles Management Shell for Active Directory Setup: You have access to a domain member computer in a Active Directory domain Problem: You have a text file with many group names and you want to create them quickly Solution: Open ActiveRoles PowerShell console and run these commands: Tips 1: If you want […]

Read More