new guy - missing snapin?
-
25 aprilie 2012 21:08
i'm just running "get-help" on everything i can think of, just snooping around. but if i try get-help
*disk*
*dns*
*defrag*i get an error about
Get-Help : Unable to find type Microsoft.Exchange.Data.Directory.SystemConfiguration.ADConfigurationObject]: make sure that the assembly containing this type is loaded.
1. if that assembly is not loaded, how does powershell even know to look for help on a command in that assembly? shouldn't it just say "i never heard of *disk,* try again."
i assume i have to run add-pssnapin to get something loaded into my shell. where do i generally find snapins to load for productX?
also, if i open an exchange-specific command shell and run get-pssnapin, the list of snapins looks just the same as on a regular powershell window. why doesn't it have an exchange snapin loaded? if it has the same snapins loaded, why doesn't it throw the same error as the regular powershell window?
Name PSVersion
---- ---------
Microsoft.PowerShell.Diagnostics 2.0
Microsoft.WSMan.Management 2.0
Microsoft.PowerShell.Core 2.0
Microsoft.PowerShell.Utility 2.0
Microsoft.PowerShell.Host 2.0
Microsoft.PowerShell.Management 2.0
Microsoft.PowerShell.Security 2.0
Toate mesajele
-
26 aprilie 2012 05:29Moderator
Hi,
I would like to know that did you have Microsoft Exchange Server 2007 Management Tools installed.
Exchange 2010 provides the "Microsoft.Exchange.Management.PowerShell.E2010" and "Microsoft.Exchange.Management.Powershell.Support" snap-ins.
In addition, the below link should be helpful:
http://technet.microsoft.com/en-us/library/bb123778(v=exchg.80).aspx
Regards,
Yan Li
If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Yan Li
TechNet Community Support
- Propus ca răspuns de Yan Li_Microsoft Contingent Staff, Moderator 1 mai 2012 01:47
- Marcat ca răspuns de Yan Li_Microsoft Contingent Staff, Moderator 1 mai 2012 07:12
- Anulare marcare ca răspuns de John_Curtiss 1 mai 2012 15:34
-
1 mai 2012 18:17i don't recall if the exchange 2007 tools were ever installed on this machine. but the exchange 2010 tools are currently installed on the machine.
-
2 mai 2012 01:37Moderator
Hi,
Based on my test, we also don't have those snapins, it seems like that this is true. To manage Exchange, we could use Exchange Management Shell.
Regards,
Yan Li
If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Yan Li
TechNet Community Support
-
2 mai 2012 15:49
ok. but i'm not trying to manage exchange.
on a test 2008 r2 server, if i type "get-help *yanli*", nothing gets returned. it just goes back to the next prompt. this is how i would expect it to behave when it doesn't know anything about the item i'm asking about.
PS C:\Users\john.curtiss> get-help *yanli*
PS C:\Users\john.curtiss>on my desktop windows 7 machine, if i type "get-help *yanli*, i get the error about the exchange assembly not being installed. i'm going to guess *yanli* has nothing to do with exchange, so why is my powershell giving me that error?
PS C:\Users\john.curtiss> get-help *yanli*
Get-Help : Unable to find type [Microsoft.Exchange.Data.Directory.SystemConfiguration.ADConfigurationObject]: make sure
that the assembly containing this type is loaded.
At line:1 char:9
+ get-help <<<< *yanli*
+ CategoryInfo : InvalidOperation: (Microsoft.Excha...igurationObject:String) [Get-Help], RuntimeExceptio
n
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.GetHelpCommandPS C:\Users\john.curtiss>
-
3 mai 2012 01:19Moderator
Hi,
I cannot produce your problem, and I haven't ever seen this issue. I doubt that your Windows 7 have install some exchange related programs.
To troubleshoot this issue, I would like suggest you compare the below path folder on your normal machine and issue machine:
c:\windows\system32\windowspowershell\v1.0\modules
To work around this issue, please copy the folder from another nomal machine to that computer.
Regards,
Yan Li
If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Yan Li
TechNet Community Support
- Editat de Yan Li_Microsoft Contingent Staff, Moderator 3 mai 2012 01:25
- Propus ca răspuns de Yan Li_Microsoft Contingent Staff, Moderator 7 mai 2012 02:04
- Marcat ca răspuns de Yan Li_Microsoft Contingent Staff, Moderator 7 mai 2012 02:05
-
3 mai 2012 19:16
neither machine has anything about exchange in that folder. something must just have been left over on the bad machine after an uninstall.
broken machine:
ActiveDirectory
AppLocker
BitsTransfer
FailoverClusters
GroupPolicy
PSDiagnostics
TroubleshootingPack
WebAdministration
WindowsUpdateWorking Machine:
AppLocker
BitsTransfer
PSDiagnostics
TroubleShootingPack -
4 mai 2012 01:20Moderator
Hi,
You are right, It strange that your Windows 7 have those modules such as:
ActiveDirectory FailoverClusters.
How about delete those folders and try again.
Regards,
Yan Li
Yan Li
TechNet Community Support
- Marcat ca răspuns de Yan Li_Microsoft Contingent Staff, Moderator 7 mai 2012 02:05