dsccommunity / xSCOM

MIT License
17 stars 16 forks source link

SCOM-SingleServer.ps1 errors #5

Closed avishnyakov closed 7 years ago

avishnyakov commented 7 years ago

Using SCOM-SingleServer.ps1, the following error comes up:

PS C:\Windows\system32> C:\Users\administrator.SPS\Desktop\_SCOM\_SCOM-SingleServer.ps1
At C:\Users\administrator.SPS\Desktop\_SCOM\_SCOM-SingleServer.ps1:310 char:21
+                     Credential = $Node.InstallerServiceAccount
+                     ~~~~~~~~~~
The member 'Credential' is not valid. Valid members are
'DependsOn', 'NodeName', 'PsDscRunAsCredential', 'ResourceName', 'RetryCount', 'RetryIntervalSec', 'ThrottleLimit'.
At C:\Users\administrator.SPS\Desktop\_SCOM\_SCOM-SingleServer.ps1:333 char:25
+                         Credential = $Node.InstallerServiceAccount
+                         ~~~~~~~~~~
The member 'Credential' is not valid. Valid members are
'DependsOn', 'NodeName', 'PsDscRunAsCredential', 'ResourceName', 'RetryCount', 'RetryIntervalSec', 'ThrottleLimit'.
At C:\Users\administrator.SPS\Desktop\_SCOM\_SCOM-SingleServer.ps1:381 char:17
+                 Credential = $Node.InstallerServiceAccount
+                 ~~~~~~~~~~
The member 'Credential' is not valid. Valid members are
'DependsOn', 'NodeName', 'PsDscRunAsCredential', 'ResourceName', 'RetryCount', 'RetryIntervalSec', 'ThrottleLimit'.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : InvalidInstanceProperty

Particular line seems to be this one:

WaitForAll "OMDB"
                {
                    NodeName = $SystemCenter2012R2OperationsManagerDatabaseServer
                    ResourceName = ("[xSqlServerFirewall]" + $SystemCenter2012R2OperationsManagerDatabaseServer + $SystemCenter2012R2OperationsManagerDatabaseInstance)
                    Credential = $Node.InstallerServiceAccount
                    RetryCount = 720
                    RetryIntervalSec = 5
                }

Suggestions?

avishnyakov commented 7 years ago

Oh, changed to PsDscRunAsCredential, seems to be alright.