-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
Problem description
I face issue Acces Denied when launch Start-Dsc
Have u got any idea about this deny ?
Try with my authorised credentail , but same issue . Try to give computer authorize on DVD, but impossible
Verbose logs
PS C:\Users\a-xxxxxx\Documents\DSC\SQLInstall> Start-DscConfiguration -Path "C:\Users\a-xxxxxx\Documents\DSC\SQLINSTALL" -verbose -wait -force
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'names
root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer NLVCP1842D with user sid S-1-5-21-2082413636-168370749-3624124516-756047.
VERBOSE: [NLVCP1842D]: LCM: [ Start Set ]
VERBOSE: [NLVCP1842D]: LCM: [ Start Resource ] [[MountImage]SQL2019]
VERBOSE: [NLVCP1842D]: LCM: [ Start Test ] [[MountImage]SQL2019]
VERBOSE: [NLVCP1842D]: [[MountImage]SQL2019] Test-TargetResource: Testing Mounted Drive for image file 'S'.
VERBOSE: [NLVCP1842D]: [[MountImage]SQL2019] Get-TargetResource: Getting Mounted Drive for image file '\\D1.cougar.ms.lvmh\DfsLvm\Apps\Soft
2019\Ent_Core_2019_64Bit_English'.
Access is denied.
+ CategoryInfo : PermissionDenied: (MSFT_DiskImage:) [], CimException
+ FullyQualifiedErrorId : HRESULT 0x80070005,Get-DiskImage
+ PSComputerName : localhost
VERBOSE: [NLVCP1842D]: [[MountImage]SQL2019] Test-TargetResource: The image file '\\D1.cougar.ms.lvmh\DfsLvm\Apps\Soft_Nt\_soft\Microsoft\S
2019\Ent_Core_2019_64Bit_English' is not mounted to drive 'S' but should be. Change required.
VERBOSE: [NLVCP1842D]: LCM: [ End Test ] [[MountImage]SQL2019] in 0.1250 seconds.
The PowerShell DSC resource '[MountImage]SQL2019' with SourceInfo 'C:\Users\a-millionje\Documents\DSC\SQLInstall.ps1::11::3::MountImage' threw one or more non-termina
logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
VERBOSE: [NLVCP1842D]: LCM: [ Start Resource ] [[WaitForVolume]WaitForSQL2019]
VERBOSE: [NLVCP1842D]: LCM: [ Start Test ] [[WaitForVolume]WaitForSQL2019]
VERBOSE: [NLVCP1842D]: [[WaitForVolume]WaitForSQL2019] Test-TargetResource: Checking for volume 'S'.
VERBOSE: [NLVCP1842D]: [[WaitForVolume]WaitForSQL2019] Test-TargetResource: Volume 'S' not found.
VERBOSE: [NLVCP1842D]: LCM: [ End Test ] [[WaitForVolume]WaitForSQL2019] in 0.1410 seconds.
VERBOSE: [NLVCP1842D]: LCM: [ Start Set ] [[WaitForVolume]WaitForSQL2019]
VERBOSE: [NLVCP1842D]: [[WaitForVolume]WaitForSQL2019] Set-TargetResource: Checking for volume 'S'.
VERBOSE: [NLVCP1842D]: [[WaitForVolume]WaitForSQL2019] Set-TargetResource: Volume 'S' not found, retrying in 5 seconds.
VERBOSE: [NLVCP1842D]: [[WaitForVolume]WaitForSQL2019] Set-TargetResource: Volume 'S' not found, retrying in 5 seconds.
VERBOSE: [NLVCP1842D]: [[WaitForVolume]WaitForSQL2019] Set-TargetResource: Volume 'S' not found, retrying in 5 seconds.
DSC configuration
Configuration SQLInstall
{
Import-DscResource –ModuleName 'PSDesiredStateConfiguration'
Import-DSCResource -ModuleName StorageDsc #For ISO-mounting
Import-DscResource -ModuleName sqlserverdsc
Node localhost
{
$Drive='\\D1.cougar.ms.lvmh\DfsLvm\Apps\Soft_Nt\_soft\Microsoft\SQL_server\SQL Server 2019\Ent_Core_2019_64Bit_English'
MountImage SQL2019
{
ImagePath = $Drive
DriveLetter = 'S'
#Ensure = 'Present'
Access = 'ReadOnly'
}
WaitForVolume WaitForSQL2019
{
DriveLetter = 'S'
RetryIntervalSec = 5
RetryCount = 10
}
WindowsFeature 'NetFramework45'
{
Name = 'NET-Framework-45-Core'
Ensure = 'Present'
}
SqlSetup 'InstallDefaultInstance'
{
InstanceName = 'TEST'
Features = 'SQLENGINE'
SourcePath = 'S:\'
SQLSysAdminAccounts = @('a-xxxxxx','a-xxxxxxx')
DependsOn = '[WindowsFeature]NetFramework45'
}
}
}
SQLInstallSuggested solution
Try to give Read access to DVD to computer . But impossible
Operating system the target node is running
WS 2016
PowerShell version and build the target node is running
Name Value
---- -----
PSVersion 5.1.14393.5582
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.5582
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
StorageDsc version
PS C:\Users\a-millionje\Documents\DSC\SQLInstall> Get-Module -Name 'StorageDsc' -ListAvailable | ft Name,Version,Path
Name Version Path
---- ------- ----
storagedsc 5.1.0 C:\Program Files\WindowsPowerShell\Modules\storagedsc\storagedsc.psd1
Metadata
Metadata
Assignees
Labels
No labels