I’ve tried to import group policy module on my Windows 7 workstation using following command:
Get-Command -module "Grouppolicy"
After that successfully backed up a group policy objects to share folder (size of that uncompressed backup is 217 MB)
Backup-Gpo -All -Path \\server\Backups\GPO
But when I tried to just copy Module folder to my AD Server which is Windows Server 2003 I’ve receive the following error on importing this module.
import-module grouppolicy
Import-Module : The assembly 'Microsoft.GroupPolicy.Management' was not loaded because no assembly was found. Please check the assembly name and try again. At line:1 char:14 + import-module <<<< grouppolicy + CategoryInfo : InvalidOperation: (:) [Import-Module], DllNotFou ndException + FullyQualifiedErrorId : FormatXmlUpateException,Microsoft.PowerShell.Com mands.ImportModuleCommand
Ok. I will search how to copy and use this assembly on Windows Server 2003
Unfortunately not…
Any solution for this?