Powershell DSC xChrome Sample failing on AzureVM
I'm attempting to run the xChrome sample (https://gallery.technet.microsoft.com/scriptcenter/DSC-Resource-Kit-All-c449312d) on an Azure VM and it fails to run. Everything runs and executes, but I receive the error (larger log snippet below):
CategoryInfo : ObjectNotFound: (MSFT_xChrome\MSFT_xChrome:String) [Configuration]
AzureVM is Windows Server 2012 with Powershell Version 5:
$PSVersionTable.PSVersion
Major Minor Build Revision
5 0 9883 0
The steps I use to execute are:
Download xChrome extension (from above url) and inflate it into my modules directory
Publish-AzureVMDscConfiguration -ConfigurationPath C:\Users\<username>\Documents\WindowsPowerShell\Modules\xChrome\Example\Sample_xChrome.ps1 -Force
Get-AzureVM -ServiceName '<servicename>' -Name '<vmname>' | Set-AzureVMDscExtension -ConfigurationArchive Sample_xChrome.ps1.zip -ConfigurationName Sample_InstallChromeBrowser -ConfigurationArgument @{Language='en'; LocalPath='$env:SystemDrive\Windows\DtlDownloads\GoogleChromeStandaloneEnterprise.msi'}
| Update-AzureVM
The error snippet:
[2015-04-17T23:35:06] Executing the configuration function to generate the MOF files.
PSDesiredStateConfiguration\Configuration : The module 'MSFT_xChrome' could not be loaded. For more information, run 'Import-Module MSFT_xChrome'.
At C:\Packages\Plugins\Microsoft.Powershell.DSC\1.7.0.0\DSCWork\Sample_xChrome.ps1.8\Sample_xChrome.ps1:3 char:1
+ Configuration Sample_InstallChromeBrowser
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (MSFT_xChrome\MSFT_xChrome:String) [Configuration], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : CouldNotAutoLoadModule,Configuration
[2015-04-17T23:35:08] Removing file lock
C:\Packages\Plugins\Microsoft.Powershell.DSC\1.7.0.0\bin\DscExtensionHandler.ps1 : Error enabling the DSC Extension: Errors occurred while processing configuration 'Sample_InstallChromeBrowser'.
At line:7 char:2
+ C:\Packages\Plugins\Microsoft.Powershell.DSC\1.7.0.0\bin\DscExtensio ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DscExtensionHandler.ps1
[2015-04-17T23:35:08] Writing handler status to C:\Packages\Plugins\Microsoft.Powershell.DSC\1.7.0.0\Status\8.status
Use the Q&A tab for that gallery entry to ask questions about it.
https://gallery.technet.microsoft.com/scriptcenter/DSC-Resource-Kit-All-c449312d/view/Discussions#content
-- Bill Stewart [Bill_Stewart]
Similar Messages
-
Powershell DSC - xSQLServerInstall - Fails When Using Domain Service Accounts
I'm using the xSQLServerInstall from
http://www.powershellmagazine.com/2014/02/09/desired-state-configuration-dsc-resource-kit-wave-2/ which I've modified to accept parameters for the SQL Server service account and the SQL Agent service account. The script runs to the point where it
validates the service accounts, then fails with an error saying it can't find the account. I'm running it in Powershell ISE as Administrator. When I run ISE under my own credentials the script fails sooner saying I lack permissions even though
I'm a local admin. Any thoughts?
Michael Brule Senior Database Specialist Microsoft SQL Server Voya FinancialWhen I open ISE using the "Run as Administrator" option I get this error in ISE:
PowerShell DSC resource MSFT_xSqlServerInstall failed to execute Set-TargetResource functionality with error message: SQL
Server installation did not succeed. For more details please refer to the logs under C:\Program Files\Microsoft SQL
Server\110\Setup Bootstrap\Log folder.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
+ PSComputerName : localhost
The SendConfigurationApply function did not succeed.
+ CategoryInfo : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 1
+ PSComputerName : localhost
....and this error in the bootstrap log:
Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2068578304
Exit facility code: 1204
Exit error code: 0
Exit message: Account 'ORANGE\SQLSERVICE' provided for service 'SQLAgent$APPLE' does not exist. Provide an existing account name for the service.
Start time: 2015-02-26 09:35:09
End time: 2015-02-26 09:35:48
Requested action: Install
Exception type: Microsoft.SqlServer.Chainer.Infrastructure.InputSettingValidationException
Message:
Account 'ORANGE\SQLSERVICE' provided for service 'SQLAgent$APPLE' does not exist. Provide an existing account name for the service.
HResult : 0x84b40000
FacilityCode : 1204 (4b4)
ErrorCode : 0 (0000)
Data:
SQL.Setup.FailureCategory = InputSettingValidationFailure
DisableWatson = true
Stack:
at Microsoft.SqlServer.Chainer.Infrastructure.InputSettingService.LogAllValidationErrorsAndThrowFirstOne(ValidationState vs)
at Microsoft.SqlServer.Configuration.SetupExtension.ValidateFeatureSettingsAction.ExecuteAction(String actionId)
at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter statusStream, ISequencedAction actionToRun, ServiceContainer context)
Inner exception type: Microsoft.SqlServer.Configuration.Agent.InputValidationException
Message:
Account 'ORANGE\SQLSERVICE' provided for service 'SQLAgent$APPLE' does not exist. Provide an existing account name for the service.
HResult : 0x851c0001
FacilityCode : 1308 (51c)
ErrorCode : 1 (0001)
Michael Brule Senior Database Specialist Microsoft SQL Server Voya Financial -
Powershell DSC - xSQLServer -- xSQLServerSetup error.
Hi All,
I've been trying to automate the installation of SQL Server using the experiment DSC Module for SQL Server. This issue occurs in my vagrant environments and vCenter environments.
This is the entirety of the script that does the meat and potatoes of the install.
#use xSQLServerSetup of xSQLServer
#sql install error log can be found at C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\log
param (
[string]$SetupCredA = $(throw "error -SetupCredA is required. Need installer username."),
[string]$SetupCredPW = $(throw "error -SetupCredPW is required. Need installer password."),
[string]$SvcAccountCredA = $(throw "error -SvcAccountCred is required. Need to know service account."),
[string]$SvcAccountPW = $(throw "error -SvcAccountCred is required. Need to know service account pw."),
[string]$Features = $(throw "error -Features is required."),
[string]$SAArray = $(throw "error -SAArray is required. Need to know sysadmins.")
$SetupCred=New-Object System.Management.Automation.PSCredential ($SetupCredA, $(ConvertTo-SecureString $SetupCredPW -AsPlainText -Force))
$SvcAccountCred=New-Object System.Management.Automation.PSCredential ($SvcAccountCredA, $(ConvertTo-SecureString $SvcAccountPW -AsPlainText -Force))
$Extract="C:\InstallSQL"
$ServerCoreFeatures="SQLENGINE,REPLICATION,FULLTEXT,AS,CONN,IS,SNAC_SDK"
$ServerGUIFeatures="SQLENGINE,REPLICATION,FULLTEXT,DQ,AS,DQC,CONN,IS,BC,SDK,BOL,SSMS,ADV_SSMS,SNAC_SDK,MDS,DREPLAY_CTLR,DREPLAY_CLT"
$ServerGUIFeaturesWithReporting="$ServerGUIFeatures,RS"
$ReportServerFeatures="RS"
switch ($Features) {
"ServerCoreFeatures" { $Features = $ServerCoreFeatures }
"ServerGUIFeatures" { $Features = $ServerGUIFeatures }
"ServerGUIFeaturesWithReporting" { $Features = $ServerGUIFeaturesWithReporting }
"ReportServerFeatures" { $Features = $ReportServerFeatures }
$configData = @{
AllNodes = @(
NodeName = "$($env:computername)"
PSDscAllowPlainTextPassword = $true
Configuration SetupSQL
Import-DSCResource -ModuleName xSQLServer
Node "$($env:computername)"
xSQLServerSetup Install-SQL
SourcePath = $Extract
SourceFolder = "SQL2014"
SetupCredential = $SetupCred
SQLSvcAccount = $SvcAccountCred
AgtSvcAccount = $SvcAccountCred
SQLSysAdminAccounts = $SAArray
UpdateEnabled = "False"
UpdateSource = "$Extract\SQL2014\Updates"
ErrorReporting = "True"
SQLUserDBDir = "M:\Data"
SQLUserDBLogDir = "L:\Log"
SQLTempDBDir = "T:\TempDB"
SQLTempDBLogDir = "T:\TempLog"
SQLBackupDir = "M:\Backup"
InstanceName= "MSSQLSERVER"
Features = $Features
SetupSQL -ConfigurationData $configData
Start-DscConfiguration .\SetupSQL -force -wait -verbose
The environment is prestaged with
$Modules="C:\Program Files\WindowsPowerShell\Modules"
$Extract="C:\InstallSQL"
$ResourceKit="$Extract\DSCRK9.zip"
$WinSXSFiles="$Extract\sxsfiles.zip"
$SQLInstall="$Extract\SQL2014.zip"
mkdir $Extract -force
write-host "$(get-date) Downloading install resources"
start-bitstransfer "http://downloads.yosemite.local/files/application/microsoft/sqlinstall/dscrk9.zip" $ResourceKit
start-bitstransfer "http://downloads.yosemite.local/files/application/microsoft/sqlinstall/sxsfiles.zip" $WinSXSFiles
start-bitstransfer "http://downloads.yosemite.local/files/application/microsoft/sqlinstall/sql2014.zip" $SQLInstall
write-host "$(get-date) Download completed"
Configuration PreStageSQL
Archive Extract-Resource-Kits
Ensure = "Present"
Path = $ResourceKit
Destination = $Extract
Archive Extract-WinSXS-Files
Ensure = "Present"
Path = $WinSXSFiles
Destination = $Extract
DependsOn = "[Archive]Extract-Resource-Kits"
Archive Extract-SQL-Files
Ensure = "Present"
Path = $SQLInstall
Destination = $Extract
DependsOn = "[Archive]Extract-WinSXS-Files"
File Move-Resource-Files
SourcePath = "$Extract\All Resources"
DestinationPath = $Modules
Ensure = "Present"
Type = "Directory"
Recurse = $True
MatchSource = $True
DependsOn = "[Archive]Extract-SQL-Files"
WindowsFeature Install-NET35
Name = "NET-Framework-Core"
Source = "$Extract\sxs"
Ensure = "Present"
DependsOn = "[File]Move-Resource-Files"
PreStageSQL
Start-DscConfiguration .\PreStageSQL -force -wait -verbose
write-host "$(get-date) completed"
The setup errors out at the end with the following messages in the console/event log. The SQL Install itself appears to be complete. I've tried this with UpdateEnabled = "true" as well and it errors at the same location.
So the install appears to complete successfully but powershell reports an error
'C:\InstallSQL\SQL2014\setup.exe' started in process ID 192
VERBOSE: [WINDOWS2012R2]: [[xSQLServerSetup]Install-SQL] Importing function 'NetUse'.
VERBOSE: [WINDOWS2012R2]: [[xSQLServerSetup]Install-SQL] Importing function 'ResolvePath'.
VERBOSE: [WINDOWS2012R2]: [[xSQLServerSetup]Install-SQL] Importing function
'StartWin32Process'.
VERBOSE: [WINDOWS2012R2]: [[xSQLServerSetup]Install-SQL] Importing function
'WaitForWin32ProcessEnd'.
VERBOSE: [WINDOWS2012R2]: [[xSQLServerSetup]Install-SQL] Path:
C:\InstallSQL\SQL2014\setup.exe
VERBOSE: [WINDOWS2012R2]: LCM: [ End Set ] [[xSQLServerSetup]Install-SQL] in 500.8120 seconds.
PowerShell DSC resource MSFT_xSQLServerSetup failed to execute Set-TargetResource functionality with error message:
Set-TargetResouce failed
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
+ PSComputerName : WINDOWS2012R2
The SendConfigurationApply function did not succeed.
+ CategoryInfo : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 1
+ PSComputerName : WINDOWS2012R2
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 501.455 seconds
With the following errors in event viewer.
Job {5E0C5C09-B7B2-11E4-80B6-000C29F93310} :
Message Set-TargetResouce failed
HResult -2146233087
StackTrack at System.Management.Automation.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Job {5E0C5C09-B7B2-11E4-80B6-000C29F93310} :
This event indicates that failure happens when LCM is processing the configuration. ErrorId is 0x1. ErrorDetail is The SendConfigurationApply function did not succeed.. ResourceId is [xSQLServerSetup]Install-SQL and SourceInfo is C:\InstallSQL\InstallSQL.ps1::41::9::xSQLServerSetup. ErrorMessage is PowerShell DSC resource MSFT_xSQLServerSetup failed to execute Set-TargetResource functionality with error message: Set-TargetResouce failed .
Job {5E0C5C09-B7B2-11E4-80B6-000C29F93310} :
DSC Engine Error :
Error Message The SendConfigurationApply function did not succeed.
Error Code : 1
However everything from the SQL install summary appears to have been created.
Overall summary:
Final result: Passed
Exit code (Decimal): 0
Start time: 2015-02-18 21:09:08
End time: 2015-02-18 21:17:01
Requested action: Install
Machine Properties:
Machine name: WINDOWS2012R2
Machine processor count: 2
OS version: Windows Server 2012
OS service pack:
OS region: United States
OS language: English (United States)
OS architecture: x64
Process architecture: 64 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered Configured
Package properties:
Description: Microsoft SQL Server 2014
ProductName: SQL Server 2014
Type: RTM
Version: 12
SPLevel: 0
Installation location: C:\InstallSQL\SQL2014\x64\setup\
Installation edition: Enterprise Edition: Core-based Licensing
Product Update Status:
None discovered.
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: false
AGTSVCACCOUNT: Administrator
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Automatic
ASBACKUPDIR: C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Config
ASDATADIR: C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Data
ASLOGDIR: C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Log
ASPROVIDERMSOLAP: 1
ASSERVERMODE: MULTIDIMENSIONAL
ASSVCACCOUNT: NT Service\MSSQLServerOLAPService
ASSVCPASSWORD: <empty>
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: Administrator
ASTEMPDIR: C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Temp
BROWSERSVCSTARTUPTYPE: Disabled
CLTCTLRNAME:
CLTRESULTDIR: C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\ResultDir\
CLTSTARTUPTYPE: Manual
CLTSVCACCOUNT: NT Service\SQL Server Distributed Replay Client
CLTSVCPASSWORD: <empty>
CLTWORKINGDIR: C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\WorkingDir\
COMMFABRICENCRYPTION: 0
COMMFABRICNETWORKLEVEL: 0
COMMFABRICPORT: 0
CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150218_210907\ConfigurationFile.ini
CTLRSTARTUPTYPE: Manual
CTLRSVCACCOUNT: NT Service\SQL Server Distributed Replay Controller
CTLRSVCPASSWORD: <empty>
CTLRUSERS:
ENABLERANU: false
ENU: true
ERRORREPORTING: true
FEATURES: SQLENGINE, REPLICATION, FULLTEXT, DQ, AS, DQC, CONN, IS, BC, SDK, BOL, SSMS, ADV_SSMS, DREPLAY_CTLR, DREPLAY_CLT, SNAC_SDK, MDS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: NT Service\MSSQLFDLauncher
FTSVCPASSWORD: <empty>
HELP: false
IACCEPTSQLSERVERLICENSETERMS: true
INDICATEPROGRESS: false
INSTALLSHAREDDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: C:\Program Files (x86)\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files\Microsoft SQL Server\
INSTANCEID: MSSQLSERVER
INSTANCENAME: MSSQLSERVER
ISSVCACCOUNT: NT Service\MsDtsServer120
ISSVCPASSWORD: <empty>
ISSVCSTARTUPTYPE: Automatic
MATRIXCMBRICKCOMMPORT: 0
MATRIXCMSERVERNAME: <empty>
MATRIXNAME: <empty>
NPENABLED: 0
PID: *****
QUIET: true
QUIETSIMPLE: false
ROLE:
RSINSTALLMODE: DefaultNativeMode
RSSHPINSTALLMODE: DefaultSharePointMode
RSSVCACCOUNT: <empty>
RSSVCPASSWORD: <empty>
RSSVCSTARTUPTYPE: Automatic
SAPWD: <empty>
SECURITYMODE: <empty>
SQLBACKUPDIR: C:\Backup
SQLCOLLATION: SQL_Latin1_General_CP1_CI_AS
SQLSVCACCOUNT: Administrator
SQLSVCPASSWORD: *****
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: Administrator, Administrator
SQLTEMPDBDIR: C:\TempDB
SQLTEMPDBLOGDIR: C:\TempLog
SQLUSERDBDIR: C:\Data
SQLUSERDBLOGDIR: C:\Log
SQMREPORTING: false
TCPENABLED: 1
UIMODE: Normal
UpdateEnabled: true
UpdateSource: C:\InstallSQL\SQL2014\Updates
USEMICROSOFTUPDATE: false
X86: false
Configuration file: C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150218_210907\ConfigurationFile.ini
Detailed results:
Feature: Management Tools - Complete
Status: Passed
Feature: Client Tools Connectivity
Status: Passed
Feature: Client Tools SDK
Status: Passed
Feature: Client Tools Backwards Compatibility
Status: Passed
Feature: Management Tools - Basic
Status: Passed
Feature: Database Engine Services
Status: Passed
Feature: Data Quality Services
Status: Passed
Feature: Full-Text and Semantic Extractions for Search
Status: Passed
Feature: SQL Server Replication
Status: Passed
Feature: Master Data Services
Status: Passed
Feature: Distributed Replay Client
Status: Passed
Feature: Distributed Replay Controller
Status: Passed
Feature: Integration Services
Status: Passed
Feature: Data Quality Client
Status: Passed
Feature: Analysis Services
Status: Passed
Feature: SQL Browser
Status: Passed
Feature: Documentation Components
Status: Passed
Feature: SQL Writer
Status: Passed
Feature: SQL Client Connectivity
Status: Passed
Feature: SQL Client Connectivity SDK
Status: Passed
Feature: Setup Support Files
Status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150218_210907\SystemConfigurationCheck_Report.htm
The problem I run into is when I attempt to invoke this particular script from CI tools, the error triggers a false exit of the provision. Additionally the error seems to happen before I can install updates.
I am using SQL2014. Does anybody have any ideas?Hi jrv,
1. Unsure there is almost 0 documentation of this methodology on the internet.
2. Remembered, which is why I posted. I'm hoping somebody else has run into this road block before.
3. As far as debugging the script, I have tried all variety of options in the form of flags that I can think of. I haven't had the time to debug the actual xSQLServer resource.
4. What do you mean? Those are the errors. :) These are the only things the system has presented.
I'd like to continue using the DSC methodology as it falls inline with our current automation patterns. However it seems using a pre-built ini or a flagged install might have to be the primary method. This is disappointing because it means that
puppet still does a better job of configuring SQL than DSC, it's also disappointing to hear the suggestion that the latest DSC resources aren't being developed for the latest products.
Nathan Julsrud -
Installing executables with Powershell DSC
I am trying to install Visual Studio 2013 using PowerShell DSC but I'm running into a few issues and hoping that you guys could clear it up for me. Is DSC capable for rebooting the node and then resuming an installation of VS? Does anyone know what this
error means? "vs_ultimate.exe was installed, but the specified ProductId and/or Name does not match package details"
Any help would be great!Hi,
Just checking in to see if the suggestion was helpful. Please let us know if you would like further assistance.
TechNet Subscriber Support
If you are
TechNet Subscription
user and have any feedback on our support quality, please send your feedback
here.
Regards, Yan Li -
Hi, I'm moving my application from LV/DSC 8.5 to 8.6.1 and I'm getting the following problem.
I created an OPC Client I/O server to connect to the Eldridge Engineering Inc. Modbus - OPC server (http://www.opcsystems.com/modbus.htm). This server is DA 2.5 and supports Hierarchical browsing. Looking to the client loggin file I found the following error:
| |-QueryInterface IID_IOPCBrowse: (FAILED, HRESULT=0x80004002 No such interface supported )
Apparently the client / server behaves properly when I read (by the "Distributed System Manager" tool) few items at time, but the client is disconnected when I ask to read few tens of items in one shot. There is no way to reconnect it, only way is to undeplpoy the client and deploy it again. I don't know if the two problems are related each other.
Any help is really welcome :-)
cheers
gaetano maronHi Gaetano,
error 80004002 may require that you re-register the OPC server. See the following document for details:
Errors Connecting to OPC Server When Using DataSocket as an OPC Client in LabVIEW
Tools for Troubleshooting OPC Interface Problems
Furthermore, I have a couple of questions:
Do you have both LV 8.5 and 8.6.1 installed on the same machine? Or they run on different PCs?
I've browsed to the URL you forwarded http://www.opcsystems.com/modbus.htm It seems that Eldridge server also has a Modbus interface for communicating between applications. As a possible workaround, have you tried to use a Modbus I/O server for interfacing with Eldridge SW? Here there are some tips about how doing this:
Using Modbus I/O Servers (DSC and RT Modules)
Troubleshooting Modbus I/O Servers (DSC Module)
Introduction to Modbus (see chapter "MODBUS I/O servers")
Hope this helps,
Best Regards,
Fabio
Fabio M.
National Instruments
Embedded & OEM Systems Engineer -
RDS 2012 - Virtual desktop collection with powershell and custom answerfile fails on VDI deployment
Hi Guys,
I try to deploy a new virtual desktop collection with Win8 VDI's (pooled/managed) based on a custom answer file. Everything needs to automated so working with the server manager is not an option, that's why the answer file is needed.
The lab environment is based on Windows Server 2012 and Win8 Enterprise only. So functional level etc. is off course Windows Server 2012.
I Use the following command:
New-RDVirtualDesktopCollection `
-CollectionName "Pooled Managed Win8" `
-Description "This collection contains Pooled and Managed Win 8 VDI machines." `
-OU "VDI" `
-ConnectionBroker "RDSCB01.lab.local" `
-PooledManaged `
-CustomSysprepUnattendFilePath "\\hyper02\_Unattend\OOBE-only.xml" `
-VirtualDesktopAllocation @{"hyper02.lab.local"=3} `
-VirtualDesktopNamePrefix "Pooled-Win8-" `
-UserGroups "lab.local\domain users" `
-MaxUserProfileDiskSizeGB 1 `
-VirtualDesktopTemplateHostServer "hyper02.lab.local" `
-VirtualDesktopTemplateName “_WIN8-Template” `
-UserProfileDiskPath "\\hyper02.lab.local\_UserProfileDisks" `
-StorageType LocalStorage `
-LocalStoragePath "E:\_VDI" `
-Force `
-Debug
$error[0]|format-list -force
I tried multiple answer files, but even with this simple one it fails:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>nl-NL</UserLocale>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserAccounts>
<AdministratorPassword>
<Value>UABhAHMAcwB3AG8AcgBkACEAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>UABhAHMAcwB3AG8AcgBkACEAUABhAHMAcwB3AG8AcgBkAA==</Value>
<PlainText>false</PlainText>
</Password>
<Description>Admin</Description>
<DisplayName>Admin</DisplayName>
<Group>Administrators</Group>
<Name>Admin</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideLocalAccountScreen>true</HideLocalAccountScreen>
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:d:/=%20software/iso's/lic/en_windows_8_enterprise_x64_dvd_917522/sources/install.wim#Windows 8 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
Everything goes fine, until is comes to the deployment of the VDI machines and the answer file is called. It fails with the following error:
PS N:\> \\dc01\isos\New-VirtualDesktopCollection.ps1
Unable to retrieve the details of the virtual desktop collection.
+ CategoryInfo : WriteError: (:) [Start-RDVMRollout], RDManagementException
+ FullyQualifiedErrorId : StartRDVirtualMachineRollout,Microsoft.RemoteDesktopServices.Management.Cmdlets.StartRDVirtualMachineRo
lloutCommand
+ PSComputerName : localhost
CollectionName Type Size PercentInUse
Pooled Managed... PooledManaged 0 0
writeErrorStream : True
OriginInfo : localhost
Exception : System.Management.Automation.RemoteException: Unable to retrieve the details of the virtual desktop
collection.
TargetObject :
CategoryInfo : WriteError: (:) [Start-RDVMRollout], RDManagementException
FullyQualifiedErrorId : StartRDVirtualMachineRollout,Microsoft.RemoteDesktopServices.Management.Cmdlets.StartRDVirtualMachineRolloutCo
mmand
ErrorDetails :
InvocationInfo :
ScriptStackTrace :
PipelineIterationInfo : {}
PSMessageDetails :
Without the answer file parameter is runs perfectly, BUT the VDI machines get the OOBE.... That's not what we want off course....
This link (http://support.microsoft.com/kb/2747656?wa=wsignin1.0) and other sources tell me that when i set the regkeys i can find a log in c:\windows\logs, but there is
nothing. I looked on the management server and the connection broker.
The only thing i could find in the event viewer was this:
The XML input specified for the VM Provisioning job is not in a valid format. Error: 0xC00CEE03
Input XML:
<?xml version="1.0"?>
<rdvp:RDVProvisioning xmlns:rdvp="http://www.microsoft.com/rdv/2010/05/">
<rdvp:ProvisionPoolRequest><rdvp:Job>
<rdvp:Action>Create</rdvp:Action>
<rdvp:OnError>Stop</rdvp:OnError></rdvp:Job>
<rdvp:Pool><rdvp:Name>Pooled_Managed_W</rdvp:Name>
<rdvp:Type></rdvp:Type>
<rdvp:VhdType>DiffDisk</rdvp:VhdType>
<rdvp:SaveDelay></rdvp:SaveDelay>
<rdvp:Version></rdvp:Version>
<rdvp:MARK_HA>No</rdvp:MARK_HA></rdvp:Pool>
<rdvp:Vm>
<rdvp:BaseVmLocation>\\RDSCB01\RDVirtualDesktopTemplate\Pooled_Managed_W\IMGS\__3</rdvp:BaseVmLocation>
<rdvp:LocalVmCreationPath>E:\_VDI</rdvp:LocalVmCreationPath>
<rdvp:LocalGoldCachePath></rdvp:LocalGoldCachePath>
<rdvp:SMBShare></rdvp:SMBShare>
<rdvp:EnableVmStreaming>0</rdvp:EnableVmStreaming>
<rdvp:RunVMsFromSMB>0</rdvp:RunVMsFromSMB>
<rdvp:NamingPrefix>Pooled-Win8</rdvp:NamingPrefix>
<rdvp:NamingStartIndex>1</rdvp:NamingStartIndex>
<rdvp:Domain>lab.local</rdvp:Domain>
<rdvp:OU>OU=VDI,OU=Computers,OU=Kamer 2101,DC=lab,DC=local</rdvp:OU>
<rdvp:ProductKey></rdvp:ProductKey>
<rdvp:UnattendXml>
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideLocalAccountScreen>true</HideLocalAccountScreen>
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
</component>
</settings>
</unattend>]]>
</rdvp:UnattendXml>
</rdvp:Vm>
<rdvp:HyperVHosts>
<rdvp:HyperVHost>
<rdvp:Name>hyper02.lab.local</rdvp:Name>
<rdvp:NumberVms>3</rdvp:NumberVms>
</rdvp:HyperVHost>
</rdvp:HyperVHosts>
</rdvp:ProvisionPoolRequest>
</rdvp:RDVProvisioning>----------------------------------------------------------------------Log Name: Microsoft-Windows-TerminalServices-SessionBroker/Admin
Source: TerminalServices-SessionBroker
EventID: 1549
Level: Error
User: NETWORK SERVICE
Task Category: MS VM Provisioning Plugin
Computer: RDSCB01.lab.local
I hope we can get this working, thanks in advance everybody!
Regards,
BartHi Bartsp34ks,
I'm trying to make a powershell script like yours.
But at some point I receive this error:
System.Management.Automation.RemoteException: VM ASD-1: The data area passed to a system call is too small. (Exception from HRESULT: 0x8007007A)
My Powershell script is:
$CollectionName = Read-Host 'What Name should the Collection have?'
$Description = Read-Host 'Type a description of the Collection'
$OU = Read-Host 'In which OU should I put the Collection?'
$ConnectionBroker = Read-Host 'What is the Connection Broker Name? (use FQDN)'
$Sysprep = Read-Host 'Type the Unattend file location'
$DesktopAllocation = Read-Host 'On which RD Virtualization Host server should I create the Collection?'
$DesktopAllocationNR = Read-Host 'How many Virtual Desktop would you like?'
$NamePrefix = Read-Host 'What is the Prefix Name?'
$NameSuffix = Read-Host 'What is the Suffix Name?'
$UserGroup = Read-Host 'Which User Group can use the Collection?'
$UserProfile = Read-Host 'How big can the ProfileDisk be?'
$TemplateServer = Read-Host 'What is the RD Host that has the Virtual Desktop Template? (use FQDN)'
$TemplateName = Read-Host 'What is the Virtual Desktop Template Name?'
$UserProfilePath = Read-Host 'What should be the User Profile Path?'
$StorageType = Read-Host 'How should be stored?'
$StoragePath = Read-Host 'Type the Path'
New-RDVirtualDesktopCollection `
-CollectionName $CollectionName `
-Description $Description `
-OU $OU `
-ConnectionBroker $ConnectionBroker `
-PooledManaged `
-CustomSysprepUnattendFilePath $Sysprep `
-VirtualDesktopAllocation @{$DesktopAllocation=$DesktopAllocationNR} `
-VirtualDesktopNamePrefix $NamePrefix `
-UserGroups $UserGroup `
-MaxUserProfileDiskSizeGB $UserProfile `
-VirtualDesktopTemplateHostServer $TemplateServer `
-VirtualDesktopTemplateName $TemplateName `
-UserProfileDiskPath $UserProfilePath `
-StorageType LocalStorage `
-LocalStoragePath $StoragePath `
-Force `
-Debug
$error[0]|format-list -force
Thanks for help -
Hi there,
I'm trying to create a local user on a remote machine using Desired State Configuration. My script so far:
Configuration testuser {
param($pass = $("Pa$$w0rd" | ConvertTo-SecureString -AsPlainText -Force))
node server-web {
User testuser {
UserName = "user1"
FullName = "UserOne"
PasswordChangeRequired = $false
PasswordNeverExires = $false
Password = $pass
Calling the configuration is throwing an error - somehow I have no idea how to get a password credential object into the DSC configuration.
Yours
FG Clodt
fgcPasswordNeverExpires is a property though. Looks like a misspelling occurred with expires.
get-dscresource User | Select -Expand Properties
<#
Name PropertyType IsMandatory Values
UserName [string] True {}
DependsOn [string[]] False {}
Description [string] False {}
Disabled [bool] False {}
Ensure [string] False {Absent, Present}
FullName [string] False {}
Password [PSCredential] False {}
PasswordChangeNotAllowed [bool] False {}
PasswordChangeRequired [bool] False {}
PasswordNeverExpires [bool] False {}
#>
Configuration testuser {
param($pass='Pa$$w0rd')
$pwd= $pass | ConvertTo-SecureString -AsPlainText -Force
node server-web{
User testuser{
UserName = "user1"
FullName = "UserOne"
PasswordChangeRequired = $false
PasswordNeverExpires = $false
Password = $pwd
Boe Prox
Blog |
Twitter
PoshWSUS |
PoshPAIG | PoshChat |
PoshEventUI
PowerShell Deep Dives Book -
When running the Universal Windows Platform (UWP) BackgroundTansfer sample (C# or C++) in a phone emulator (i.e., Debug Target is Emulator 10.0.1.0) the sample builds and deploys successfully, but clicking any button in "Scenario 1 File Download",
"Scenario 3 Completion Notifications" or "Scenario 4 Completion Groups" will result in the following exception:
An exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.ni.dll but was not handled in user code. Additional information: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
This posting is provided "AS IS" with no warranties, and confers no rights.I am getting the same error even with the references recommended here. This is my code
using (var stream = await Windows.Storage.ApplicationData.Current.LocalFolder.OpenStreamForWriteAsync(
JSONFILENAME,
CreationCollisionOption.OpenIfExists ))
serializer.WriteObject(stream, myCars);
I can read it back as long as I don't stop the app/emulator. When I run the emulator again the file is gone. I tried loading the app to my Windows Phone and the same thing still happens. -
Google Webservice sample fails - "Service call exception"
I compiled the Best Practices - Google Search Functionality sample and deployed it to our new server. I started the application and after I entered a search term, it gave me the following error:
Service call exception; nested exception is: java.net.UnknownHostException: proxy
I'm stuck. Help, anyone?Hi,
please visit on your portal (having the System Administrator role assigned to your user) System Administration->System Configuration->Service Configuration->Applications->com.sap.portal.ivs.httpservice->Services->Proxy (double click on proxy).
Either maintain proxy settings, or switch it off by editing field
HTTP - Enable Proxy setting
setting it to
FALSE
Regards,
Armin -
I was trying the petshop sample in the samples/swing folder for kodo
3.3.4. I get the following error:
Exception in thread "main" java.lang.ClassCastException:
kodo.runtime.PersistenceManagerImpl
at PetShop.getPM(PetShop.java:162)
at PetShop.<init>(PetShop.java:42)
at PetShop.main(PetShop.java:180)
code at that line is:
PetShopPersistenceManager pm = (PetShopPersistenceManager)
pmf.getPersistenceManager ();
and PetShopPersistenceManager is defined as
public class PetShopPersistenceManager
extends PersistenceManagerImpl
I can understand why that error occurs since getPersistenceManager
returns class PersistenceManager which is unrelated to class
PersistenceManagerImpl
What I want to know is how to fix sample and why solarmetric ships
unworking samplesIGNORE Post I upgraded to 3.4.0 and problem vanished
On Wed, 19 Apr 2006 09:37:26 -0400, Tony Ziolkowski
<[email protected]> wrote:
I was trying the petshop sample in the samples/swing folder for kodo
3.3.4. I get the following error:
Exception in thread "main" java.lang.ClassCastException:
kodo.runtime.PersistenceManagerImpl
at PetShop.getPM(PetShop.java:162)
at PetShop.<init>(PetShop.java:42)
at PetShop.main(PetShop.java:180)
code at that line is:
PetShopPersistenceManager pm = (PetShopPersistenceManager)
pmf.getPersistenceManager ();
and PetShopPersistenceManager is defined as
public class PetShopPersistenceManager
extends PersistenceManagerImpl
I can understand why that error occurs since getPersistenceManager
returns class PersistenceManager which is unrelated to class
PersistenceManagerImpl
What I want to know is how to fix sample and why solarmetric ships
unworking samples -
Load sp1Metadata.xml from liberty sso sample failed
Hello
I have federation manager installed on sun web server. When i try to load sp1Metadata.xml from liberty sso samples, i receive an error:
/opt/identity/fm/bin/amadmin -i /opt/identity/fm/web-src-staging/ -u amadmin -w 11111111 -t /opt/identity/fm/web-src-staging/web-src/samples/liberty/sso/sp1MetaData.xml
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/org/apache/xml/internal/serialize/DOMSerializer
at com.sun.identity.federation.alliance.FSAllianceManager.<init>(FSAllianceManager.java:155)
at com.iplanet.am.admin.cli.FedServicesRequestHandler.<init>(FedServicesRequestHandler.java:114)
at com.iplanet.am.admin.cli.AdminXMLParser.createFederationAuthenticationDomain(AdminXMLParser.java:1673)
at com.iplanet.am.admin.cli.AdminXMLParser.doOrganizationRequests(AdminXMLParser.java:635)
at com.iplanet.am.admin.cli.AdminXMLParser.processAdminReqs(AdminXMLParser.java:421)
at com.iplanet.am.admin.cli.Main.processDataRequests(Main.java:1033)
at com.iplanet.am.admin.cli.Main.processDataRequests(Main.java:824)
at com.iplanet.am.admin.cli.Main.runCommand(Main.java:704)
at com.iplanet.am.admin.cli.Main.main(Main.java:1083)
Have you any ideas?
Best regards,
RomanAre you running your FM in HTTPS mode ? If yes then load the Root CA Certs or Server Certificates (in case of Self signed certs) in /usr/java/jre/lib/security/cacerts file using keytool.
Note: I am assuming your Java path is /usr/java. If it is different then load the certs in that JVM cacerts file.
Vivek -
Hello,
With the script below, I can check if a registry key is present, and if it is not, it will create that registry key. But I just want to know if that registry key is present, and get $True / $False as a result of script. - Is this possible with DSC?
Configuration ClientConfig
Param ($MachineName)
Node $MachineName
Registry FooCorpReg1
Ensure = "Present"
Key = "HKEY_LOCAL_MACHINE\SOFTWARE\Test1"
ValueName = "Name"
ValueData = "DSCDemo"
# Save the MOF file
ClientConfig -MachineName "localhost" -OutPutPath "c:\Temp\DSC"
#Start configuration
Start-DscConfiguration -Path "C:\Temp\DSC\" -Wait -Verbose
Best regards,
Anders JohanssonNot what DSC does or is for. Use erg to look for vale.
Test-Path HKLM:\SOFTWARE\Test1\Name
That is all - it returns true or false.
¯\_(ツ)_/¯ -
JSF Sun sample failed (guestNumber )
goal -> try Sun jsf guestNumber sample with Tomcat 5.0.27
i put jsf-api.jar and jsf-impl.jar in WEB-INF/lib folder
i try http://localhost:8080/jsf-guessNumber/
i have this exception
java.lang.NullPointerException
javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
org.apache.jsp.index_jsp._jspService(index_jsp.java:97)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
this error comes from :
public void init(ServletConfig servletConfig)
throws ServletException
this.servletConfig = servletConfig;
try
facesContextFactory = (FacesContextFactory)FactoryFinder.getFactory("javax.faces.context.FacesContextFactory");
catch(FacesException e)
Throwable rootCause = e.getCause();
if(rootCause == null)
throw e;
else
throw new ServletException(e.getMessage(), rootCause);
try
ApplicationFactory applicationFactory = (ApplicationFactory)FactoryFinder.getFactory("javax.faces.application.ApplicationFactory");
application = applicationFactory.getApplication();
catch(FacesException e)
Throwable rootCause = e.getCause();
if(rootCause == null)
throw e;
else
throw new ServletException(e.getMessage(), rootCause);
try
LifecycleFactory lifecycleFactory = (LifecycleFactory)FactoryFinder.getFactory("javax.faces.lifecycle.LifecycleFactory");
String lifecycleId = servletConfig.getServletContext().getInitParameter("javax.faces.LIFECYCLE_ID");
if(lifecycleId == null)
lifecycleId = "DEFAULT";
lifecycle = lifecycleFactory.getLifecycle(lifecycleId);
catch(FacesException e)
Throwable rootCause = e.getCause();
if(rootCause == null)
throw e;
else
throw new ServletException(e.getMessage(), rootCause);
i try to add in the web.xml file
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
i have a listener error when i start tomcat
and any ressource of webapp isn't available
Does exist a simple solution to run this sample with Tomcat 5.0.27 ?
I see many persons have got similary problems with this simple sample.
ThanksHow did you solve this problem?
I have already spent a whole day on troubleshooting this problem, and can't get this small demo application to work. -
Install workflow manager using DSC powershell
Hi,
i am trying to install workflow manager using DSC powershell.
I am using WebpiCmd.exe to install it.
Below is the DSC powershell script
configuration C_WFMgr
Node $AllNodes.NodeName
Script WF_Install
GetScript = { @{ Name = "WF_Install" } }
TestScript = {
$false
SetScript =
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal( [Security.Principal.WindowsIdentity]::GetCurrent() )
if ($currentPrincipal.IsInRole( [Security.Principal.WindowsBuiltInRole]::Administrator ) -eq $false) {
(get-host).UI.RawUI.Backgroundcolor="DarkRed"
write-Verbose "Warning: PowerShell is not running as an Administrator.`n"
exit
else
#set-executionpolicy "Execution user account"
write-Verbose $currentPrincipal.Identity.Name
write-Verbose "Warning: PowerShell is running as an Administrator.`n"
Write-Verbose "Workflow Manager installation started.."
$cmd = "& 'C:\WorkflowManagerFiles\bin\WebpiCmd.exe' /Install /Products:WorkflowManager /XML:c:/WorkflowManagerFiles/feeds/latest/webproductlist.xml /log:C:/Users/backup/t1.txt
/AcceptEula"
Invoke-Expression $cmd | Write-Verbose
Below is the error message
Started downloading products...
Started installing Products...
Started installing: 'Execute ASP.NET IIS Registration tool
Started downloading: 'Workflow Manager Client 1.0 Refresh'
Downloaded: 'Workflow Manager Client 1.0 Refresh'
Started downloading: 'Service Bus 1.0'
Downloaded: 'Service Bus 1.0'
Started downloading: 'Workflow Manager 1.0'
Downloaded: 'Workflow Manager 1.0'
Install completed (Success): 'Execute ASP.NET IIS Registra
tion tool'
Execute ASP.NET IIS Registration tool : Installed
Started installing: 'Workflow Manager Client 1.0 Refresh'
Install completed (Failure): 'Workflow Manager Client 1.0
Refresh'
WorkflowClient : Failed.
Error opening installation log file. Verify that the speci
fied log file location exists and is writable.
Started installing: 'Service Bus 1.0'
Install completed (Failure): 'Service Bus 1.0'
ServiceBus : Failed.
Error opening installation log file. Verify that the speci
fied log file location exists and is writable.
DependencyFailed: Workflow Manager 1.0
Verifying successful installation...
Execute ASP.NET IIS Registration tool True
Workflow Manager Client 1.0 Refresh False
Log Location: C:\Windows\system32\config\systemprofile
\AppData\Local\Microsoft\Web Platform Installer\logs\install\2015-01-02T14.58.57\WorkflowManagerClient_x64.txt
Service Bus 1.0 False
Log Location: C:\Windows\system32\config\systemprofile
\AppData\Local\Microsoft\Web Platform Installer\logs\install\2015-01-02T14.58.57\Service_Bus.txt
Workflow Manager 1.0 False
Install of Products: FAILUREI am pretty sure that DSC requires WFM. If I am right then WFM is in use and cannot be replaced unless you specify another logfile location. Look at the DSC and see how to specify a new log location that can be used for the install.
If the MSU is built correctly then you will require a reboot to update the install.
Try just doing WFM alone until you work it out.
I also recommend posting in the Management forum for any other issues that might be known.
Management
DSC is a work in progress so many things have to be worked out as you need them. Be sure to get the latest kits. I think we are at Wave 9 now.
PowerShell
DSC Resource Kit Wave 9
¯\_(ツ)_/¯ -
Set-AzureVMDscExtension Failing to install extension on Azure VM
When I attempt to run the following bit of code against a VM in Azure I get the error below. So the patch it is trying to install is already present on the server, but seems it is failing out all the same. Any suggestions as I can't really configure this
bit of the code as far as I know?
::CODE::
$vmname = "NameofServer"
$DomainCred = get-credential
$serviceName = "AzureServiceName"
$vm = Get-AzureVM -Name $vmName -ServiceName $serviceName
$vm = Set-AzureVMDscExtension -VM $vm -ConfigurationArchive AddAzureSecTeamGroups.ps1.zip -ConfigurationName AddAzureSecTeamGroups -ConfigurationArgument @{ NodeName = $vmName; DomainCred = $Domaincred} -Verbose
$VM | Update-AzureVM -Verbose
::ERROR::
Execution Error:
C:\Packages\Plugins\Microsoft.Powershell.DSC\1.5.0.0\bin\enable.ps1 : Error enabling the DSC Extension: The DSC Extension was
not installed correctly, please check the logs on the VM.
At C:\Packages\Plugins\Microsoft.Powershell.DSC\1.5.0.0\bin\pre-enable.ps1:51 char:5
+ & $scriptRoot\enable.ps1 -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,enable.ps1
chachoThe DSC config is indeed published, here is the full bit of code listed below for both VM creation and the DSC config ps1 file. Also the pre-enable.ps1 is just a script not the log. The WaAppAgent log shows that everything is succesfull... so really
something else is afoot.
=====
[00000016] [02/14/2015 00:45:51.44] [INFO] Process runtime settings of plugin (name: Microsoft.Powershell.DSC, version: 1.5.0.0)., Code: 0
[00000016] [02/14/2015 00:45:51.44] [INFO] Writing runtime settings for the plugin (name Microsoft.Powershell.DSC version 1.5.0.0).
[00000016] [02/14/2015 00:45:51.44] [INFO] RuntimeSettings found for the plungin Microsoft.Powershell.DSC version 1.5.0.0.
[00000016] [02/14/2015 00:45:51.44] [INFO] Writing runtime settings to temp file C:\Packages\Plugins\Microsoft.Powershell.DSC\1.5.0.0\RuntimeSettings\3.settings.tmp succeeded.
[00000016] [02/14/2015 00:45:51.44] [INFO] Provided runtime settings to plugin Microsoft.Powershell.DSC version 1.5.0.0 in C:\Packages\Plugins\Microsoft.Powershell.DSC\1.5.0.0\RuntimeSettings\3.settings file.
[00000016] [02/14/2015 00:45:51.44] [INFO] Enabling plugin (name: Microsoft.Powershell.DSC, version: 1.5.0.0)., Code: 0
[00000016] [02/14/2015 00:45:51.44] [INFO] Staring a process with the launch command C:\Packages\Plugins\Microsoft.Powershell.DSC\1.5.0.0\bin\enable.cmd and params:
[00000016] [02/14/2015 00:45:51.44] [INFO] Beginning enable of plugin Microsoft.Powershell.DSC.
[00000016] [02/14/2015 00:45:51.44] [INFO] Waiting for command C:\Packages\Plugins\Microsoft.Powershell.DSC\1.5.0.0\bin\enable.cmd of plugin (name Microsoft.Powershell.DSC version 1.5.0.0) to finish...
[00000017] [02/14/2015 00:45:51.45] [INFO] Processing plugin Microsoft.Compute.BGInfo version 1.1, state: enabled, autoupgrade: True, isJson: False
[00000017] [02/14/2015 00:45:51.45] [INFO] Plug-in Microsoft.Compute.BGInfo 1.1 found in cache.
[00000017] [02/14/2015 00:45:51.45] [INFO] Extracting plug-in zip file to folder. Zip file: C:\Packages\Plugins\Microsoft.Compute.BGInfo\1.1\Microsoft.Compute.BGInfo_1.1.zip
[00000017] [02/14/2015 00:45:51.52] [INFO] Xml manifest file C:\Packages\Plugins\Microsoft.Compute.BGInfo\1.1\PluginManifest.xml found corresponding to the plugin Microsoft.Compute.BGInfo
[00000017] [02/14/2015 00:45:51.52] [INFO] Install command of plugin Microsoft.Compute.BGInfo: C:\Packages\Plugins\Microsoft.Compute.BGInfo\1.1\BGInfoLauncher.exe
[00000017] [02/14/2015 00:45:51.52] [INFO] Beginning installation of plugin Microsoft.Compute.BGInfo 1.1.
[00000017] [02/14/2015 00:45:51.58] [INFO] Waiting for command of plugin Microsoft.Compute.BGInfo to finish...
[00000017] [02/14/2015 00:45:54.72] [INFO] Successfully installed plugin Microsoft.Compute.BGInfo 1.1.
[00000017] [02/14/2015 00:45:54.72] [INFO] Plugin enabled (name: Microsoft.Compute.BGInfo, version: 1.1)., Code: 0
[00000016] [02/14/2015 00:46:00.58] [INFO] Command C:\Packages\Plugins\Microsoft.Powershell.DSC\1.5.0.0\bin\enable.cmd of Microsoft.Powershell.DSC has exited with Exit code: 0
[00000016] [02/14/2015 00:46:00.58] [INFO] Successfully enabled plugin Microsoft.Powershell.DSC.
[00000016] [02/14/2015 00:46:00.58] [INFO] Setting the install state of the handler Microsoft.Powershell.DSC_1.5.0.0 to Enabled
[00000016] [02/14/2015 00:46:00.58] [INFO] Plugin enabled (name: Microsoft.Powershell.DSC, version: 1.5.0.0)., Code: 0
======
$Domaincred = Get-Credential -Message "Enter Domain UserName"
$LocalAdminCred = Get-Credential -Message "Enter LocalAdmin Password" -UserName MyLocalAdmin
$subName = "MYSUBNAME"
$subID = "MYSUBGUID"
$serviceEP = "https://management.core.windows.net/"
$userName = $LocalAdminCred.GetNetworkCredential().UserName
$adminPassword = $LocalAdminCred.GetNetworkCredential().Password
$domain = "MYDOMAIN"
$domainJoin = "MYDOMAIN.FQDN"
$domainUser = $Domaincred.GetNetworkCredential().UserName
$domainPassword = $Domaincred.GetNetworkCredential().Password
$MachineOU = "OU=SOMEOU,OU=SOMEOTHEROU,DC=DOMAIN,DC=FQDN"
$vmName = "AZURETESTVM01"
$serviceName = "USEAST-01-SERVICE"
$vnetName = "MYExpressRouteVNET"
$location = "East US"
$instanceSize = "A5"
$storagepoolname = "USEASTPOOL"
$subNet = "10.1.100.0/24"
$DSCGroupConfig = "C:\ExpressRouteScripts\AddAzureSecTeamGroups.ps1"
Publish-AzureVMDscConfiguration -ConfigurationPath $DSCGroupConfig -Force -Verbose
# Configure settings for the new VM and cloud service
$image = (Get-AzureVMImage | Where { $_.ServiceName -eq $serviceName}).ImageName
$newVM = New-AzureVMConfig -Name $vmName -InstanceSize $instanceSize -ImageName $image
$newVM = Add-AzureProvisioningConfig -VM $newVM -WindowsDomain -JoinDomain $domainJoin -domain $domain -DomainUserName $domainUser -DomainPassword $domainPassword -MachineObjectOU $MachineOU -Password $adminPassword -AdminUsername $userName -NoRDPEndpoint
-NoWinRMEndpoint
$newVM = Set-AzureSubnet -vm $newVM -SubnetNames $subNet
$newVM = Set-AzureVMDscExtension -VM $newVM -ConfigurationArchive AddAzureSecTeamGroups.ps1.zip -ConfigurationName AddAzureSecTeamGroups -ConfigurationArgument @{ NodeName = $vmName; DomainCred = $Domaincred} -Verbose
# Create the new VM and cloud service using the reserved VIP
New-AzureVM -ServiceName $serviceName -VMs $newVM -VNetName $vnetName -Location $location -Verbose
=======
Actual AddAzureSecTeamGroups.ps1
=======
Configuration AddAzureSecTeamGroups
[CmdletBinding()]
param(
[Parameter(Mandatory=$true, Position=0)]
[string]
$NodeName,
[Parameter(Mandatory=$true, Position=0)]
[string]
$Domaincred
Node $NodeName
WindowsFeature Telnet-Client
Ensure = "Present" # To uninstall the role, set Ensure to "Absent"
Name = "Telnet-Client"
WindowsFeature RSAT-AD-PowerShell
Ensure = "Present" # To uninstall the role, set Ensure to "Absent"
Name = "RSAT-AD-PowerShell"
Group SEC-Eng-LocalAdmins
GroupName = "Administrators"
Credential = $Domaincred
MembersToInclude = "domain\group01;domain\group02"
chacho
Maybe you are looking for
-
Tax Report and Tax Reconcilation Report
Can anyone tell me what is the difference between Tax Report and Tax Reconcilation Report? What is Tax Reconcilation Report supposed to do?
-
Reg:FICO-IDTO Transfer.---( interdivision transfer report )
Dear Experts, I have a scenario to develp a interdivision report on sales and purchase for the given profit center. ll brief u the details as i am stuck in one point. For sales: From the entries of bsid and bsad table for customers of different pro
-
IPhoto: can't copy my library to another drive
I'm trying to back up (and ultimately move) my 94GB iPhoto library to an external harddrive and just before it finishes copying I get a message that says, "The Finder can't complete the operation because some date in "iPhoto Library" can't be read or
-
i recently aquired used macbook how do i change the rgistered name
-
Hi all, I written a swing applet, and i was able to run it using appletviewer, but when i try to open the applet on a browser, it gives me "NoClassFoundError : javax/swing/JApplet" error, Can anyone tell me what is wrong with my configuration? Thanks