System.Management.Automation.CmdletInvocationException:
Thetypeinitializer forMicrosoft.Exchange.Management.RecipientTasks.NewUserBase threw an exception.
---> System.TypeInitializationException:
Thetypeinitializer forMicrosoft.Exchange.Management.RecipientTasks.NewUserBase threw an exception.
---> System.UnauthorizedAccessException: Access to the registry key Global is denied.
at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode,String str)
at Microsoft.Win32.RegistryKey.InternalGetValue(String name,ObjectdefaultValue,Boolean doNotExpand,Boolean checkSecurity)
at Microsoft.Win32.RegistryKey.GetValue(String name)
atSystem.Diagnostics.PerformanceMonitor.GetData(String item)
atSystem.Diagnostics.PerformanceCounterLib.GetPerformanceData(String item)
atSystem.Diagnostics.PerformanceCounterLib.get_CategoryTable()
atSystem.Diagnostics.PerformanceCounterLib.CategoryExists(String machine,String category)
atSystem.Diagnostics.PerformanceCounterCategory.Exists(String categoryName,String machineName)
at Microsoft.Exchange.Management.RecipientTasks.NewUserBase..cctor()
--- End of inner exception stack trace ---
at Microsoft.Exchange.Management.RecipientTasks.NewUserBase..ctor()
at Microsoft.Exchange.Management.RecipientTasks.NewMailbox..ctor()
--- End of inner exception stack trace ---
atSystem.Management.Automation.CommandProcessor.Init(CmdletInfo cmdletInformation)
atSystem.Management.Automation.CommandDiscovery.LookupCommandProcessor(CommandInfo commandInfo,CommandOrigin commandOrigin,Nullable`1 useLocalScope)
atSystem.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName,CommandOrigin commandOrigin,Nullable`1 useLocalScope)
atSystem.Management.Automation.Runspaces.Command.CreateCommandProcessor(ExecutionContext executionContext,CommandFactory commandFactory,Boolean addToHistory)
atSystem.Management.Automation.Runspaces.LocalPipeline.CreatePipelineProcessor()
atSystem.Management.Automation.Runspaces.LocalPipeline.InvokeHelper()
atSystem.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc()
IT Worker