PowerShell と PowerShell ISE ではデフォルトでロードされているアセンブリが違う件
メモです。ISE の方がロードされているアセンブリが多いですね。
環境
Windows 10, 1903 の起動直後 $PSVersionTable Name Value ---- ----- PSVersion 5.1.18362.145 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.18362.145 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
確認コマンド
> [System.AppDomain]::CurrentDomain.GetAssemblies() | ForEach-Object { $_.GetName().Name } | Sort-Object
差異結果
PowerShell | PowerShell ISE |
---|---|
Anonymously Hosted DynamicMethods Assembly | Anonymously Hosted DynamicMethods Assembly |
Accessibility | |
Microsoft.CSharp | |
Microsoft.Management.Infrastructure | Microsoft.Management.Infrastructure |
MetadataViewProxies_b226b5b2-a350-4c6a-9476-b1950c757230 | |
Microsoft.PowerShell.Commands.Utility | Microsoft.PowerShell.Commands.Utility |
Microsoft.GeneratedCode | |
Microsoft.PowerShell.ConsoleHost | |
Microsoft.PowerShell.ConsoleHost.resources | |
Microsoft.Powershell.PSReadline | |
Microsoft.PowerShell.Commands.Utility.resources | |
Microsoft.PowerShell.Security | Microsoft.PowerShell.Security |
Microsoft.PowerShell.Editor | |
mscorlib | mscorlib |
Microsoft.PowerShell.GPowerShell | |
mscorlib.resources | mscorlib.resources |
Microsoft.PowerShell.GPowerShell.resources | |
System | System |
Microsoft.PowerShell.GraphicalHost | |
System.Configuration | System.Configuration |
Microsoft.PowerShell.GraphicalHost.resources | |
System.Configuration.Install | System.Configuration.Install |
Microsoft.PowerShell.ISECommon | |
System.Core | System.Core |
System.Data | System.Data |
System.DirectoryServices | System.DirectoryServices |
System.Management | System.Management |
powershell_ise | |
System.Management.Automation | System.Management.Automation |
powershell_ise.resources | |
System.Management.Automation.resources | System.Management.Automation.resources |
PresentationCore | |
System.Numerics | System.Numerics |
PresentationCore.resources | |
System.Transactions | System.Transactions |
PresentationFramework | |
System.Xml | System.Xml |
PresentationFramework.Aero2 | |
PresentationFramework.resources | |
PresentationFramework-SystemCore | |
PresentationFramework-SystemData | |
PresentationFramework-SystemXml | |
SMDiagnostics | |
System.ComponentModel.Composition | |
System.Drawing | |
System.Runtime.InteropServices.WindowsRuntime | |
System.Runtime.Serialization | |
System.Runtime.WindowsRuntime | |
System.ServiceModel.Internals | |
System.Windows.Forms | |
System.Xaml | |
UIAutomationProvider | |
UIAutomationTypes | |
Windows.Foundation | |
Windows.UI | |
WindowsBase |