Problem with Get-DbaCmObject #7240
Unanswered
mattias1337
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to create a power app for automatic deployment of SQL-instances.
But I am having trouble to install a instance with other credentials then my own.
I hope I can get some help why it's not working.
$dbacred = New-DbaCmConnection -ComputerName 'VS637' -Credential $credObject -DisableBadCredentialCache -OverrideExplicitCredential
PS C:\Users\XXX> Test-DbaCmConnection -ComputerName 'vs637' -Verbose
VERBOSE: [10:35:48][Test-DbaCmConnection] [vs637] Testing management connection
VERBOSE: [10:35:48][Test-DbaCmConnection] [vs637] Testing management access using CIM over WinRM
VERBOSE: [10:35:48][Test-DbaCmConnection] [vs637] CIM over WinRM Results | Success: Success, Authentication: True
VERBOSE: [10:35:48][Test-DbaCmConnection] [vs637] Testing management access using CIM over DCOM.
VERBOSE: [10:35:48][Test-DbaCmConnection] [vs637] CIM over DCOM Results | Success: Success, Authentication: True
VERBOSE: [10:35:48][Test-DbaCmConnection] [vs637] Testing management access using WMI.
VERBOSE: [10:35:48][Test-DbaCmConnection] [vs637] WMI Results | Success: Success, Authentication: True
VERBOSE: [10:35:48][Test-DbaCmConnection] [vs637] Testing management access using PowerShell Remoting.
VERBOSE: [10:35:49][Test-DbaCmConnection] [vs637] PowerShell Remoting Results | Success: Success
ComputerName Available User Override DisabledConnectionTypes
vs637 True [email protected] True Wmi, PowerShellRemoting
PS C:\Users\XXX> Install-DbaInstance -SqlInstance "$server$instance" -Version $version -Configuration $config -PerformVolumeMaintenanceTasks -Feature Engine -Verbose
VERBOSE: [10:36:06][Resolve-DbaNetworkName] Resolving vs637 using .NET.Dns GetHostEntry
VERBOSE: [10:36:06][Resolve-DbaNetworkName] Resolving 10.1.129.11 using .NET.Dns GetHostByAddress
VERBOSE: [10:36:06][Get-DbaCmObject] Configuration loaded | Cache disabled: False
VERBOSE: [10:36:06][Get-DbaCmObject] [vs637] Retrieving Management Information
VERBOSE: [10:36:06][Get-DbaCmObject] [vs637] Accessing computer using Cim over WinRM
VERBOSE: [10:36:06][Get-DbaCmObject] [vs637] Accessing computer using Cim over WinRM - Failed
VERBOSE: [10:36:06][Resolve-DbaNetworkName] Unable to get domain name from vs637
VERBOSE: [10:36:06][Resolve-DbaNetworkName] Resolving vs637 using .NET.Dns GetHostEntry
VERBOSE: [10:36:06][Get-DbaCmObject] Configuration loaded | Cache disabled: False
VERBOSE: [10:36:06][Get-DbaCmObject] [vs637] Retrieving Management Information
VERBOSE: [10:36:06][Get-DbaCmObject] [vs637] Accessing computer using Cim over WinRM
VERBOSE: [10:36:06][Get-DbaCmObject] [vs637] Accessing computer using Cim over WinRM - Failed
WARNING: [10:36:06][Install-DbaInstance] Failed to get reboot status from vs637 | Access is denied.
Beta Was this translation helpful? Give feedback.
All reactions