Sure, the Group Policy Management Console Scripts released with GPMC or as a separate download has the nice scripts called CreateXMLFromEnvironment.wsf and CreateEnvironmentFromXML.wsf export and import OU/groups/GPOs between domains. But these scripts export and import much more than just the OU structure (groups, GPOs etc) and in some migration scenarios you might want to migrate/copy just the OU-structure. Here's how you can do this using Powershell. Make sure you have the Active Directory module for Windows PowerShell installed and run it from Start -> Administrative Tools -> Active Directory [...]
If you're in the normal non-Exchange PowerShell or PowerShell ISE and try to run Exchange cmdlet you get the following error: + Get-Mailbox <<<< + CategoryInfo : ObjectNotFound: (Get-Mailbox:String) [], Command NotFoundException + FullyQualifiedErrorId : CommandNotFoundException Simple solution: For Exchange 2010, run: Add-PSSnapIn Microsoft.Exchange.Management.PowerShell.E2010 For Exchange 2007, run: Add-PSSnapIn Microsoft.Exchange.Management.PowerShell.Admin More info: You could also enter the following to get a list of Powershell Snap-Ins that are registered on the system and that you could use: Get-PSSnapIn -Registered [...]
Sure, you can use the GUI Servermanager to add/remove/list roles, but for the hardcode sysadmin, Powershell is the way to go. Start Powershell as admin and run: Import-Module ServerManager Get, list roles and features and status: Get-WindowsFeature Add, install a role or feature RSAT AD Tools: Add-WindowsFeature RSAT-AD-Tools You can add multiple roles and features to install at the same time: Add-WindowsFeature RSAT-ADCS,RSAT-AD-Tools,PowerShell-ISE Remove, uninstall a role or feature: Remove-WindowsFeature RSAT-AD-Tools That's the basics... but here are some more useful [...]




