keithga / deployshared Goto Github PK
View Code? Open in Web Editor NEWPrebuilt MDT 2013 U2 Deployment Share reference design
License: Apache License 2.0
Prebuilt MDT 2013 U2 Deployment Share reference design
License: Apache License 2.0
I got Install-Chocolatey.ps1 working fine except that it is throwing a warning after MDT is done.
Full ZTIChocolatey-Wrapper.log
<![LOG[Construct a local path for Chocolatey]LOG]!><time="19:17:21.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="1" thread="" file="TaskSequencePSHost">
<![LOG[Chocolatey Program: C:\ProgramData\Chocolatey\bin\choco.exe]LOG]!><time="19:17:21.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="1" thread="" file="TaskSequencePSHost">
<![LOG[Install Chocolatey...]LOG]!><time="19:17:21.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="1" thread="" file="TaskSequencePSHost">
<![LOG[Loading module from path 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\chocInstall\tools\chocolateysetup.psm1'.]LOG]!><time="19:17:23.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="1" thread="" file="TaskSequencePSHost">
<![LOG[Exporting function 'Initialize-Chocolatey'.]LOG]!><time="19:17:23.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="1" thread="" file="TaskSequencePSHost">
<![LOG[Importing function 'Initialize-Chocolatey'.]LOG]!><time="19:17:23.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="1" thread="" file="TaskSequencePSHost">
<![LOG[Loading module from path 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\chocInstall\tools\chocolateyInstall\helpers\chocolateyInstaller.psm1'.]LOG]!><time="19:17:23.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="1" thread="" file="TaskSequencePSHost">
<![LOG[WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.]LOG]!><time="19:17:30.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="1" thread="" file="TaskSequencePSHost">
<![LOG[WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.]LOG]!><time="19:17:33.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="1" thread="" file="TaskSequencePSHost">
<![LOG[PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...]LOG]!><time="19:17:34.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="1" thread="" file="TaskSequencePSHost">
<![LOG[The term 'oEnvironment.Item' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.]LOG]!><time="19:24:45.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="3" thread="" file="TaskSequencePSHost">
<![LOG[At \\mpu\mdt\Scripts\ZTIChocolatey-Wrapper.ps1:85 char:9
+ oEnvironment.Item("SMSTSRebootRequested") = "true"
+ ~~~~~~~~~~~~~~~~~]LOG]!><time="19:24:45.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="3" thread="" file="TaskSequencePSHost">
<![LOG[ObjectNotFound: (oEnvironment.Item:String) [], CommandNotFoundException]LOG]!><time="19:24:45.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="3" thread="" file="TaskSequencePSHost">
<![LOG[The term 'oEnvironment.Item' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.]LOG]!><time="19:30:13.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="3" thread="" file="TaskSequencePSHost">
<![LOG[At \\mpu\mdt\Scripts\ZTIChocolatey-Wrapper.ps1:85 char:9
+ oEnvironment.Item("SMSTSRebootRequested") = "true"
+ ~~~~~~~~~~~~~~~~~]LOG]!><time="19:30:13.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="3" thread="" file="TaskSequencePSHost">
<![LOG[ObjectNotFound: (oEnvironment.Item:String) [], CommandNotFoundException]LOG]!><time="19:30:13.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="3" thread="" file="TaskSequencePSHost">
<![LOG[TSHOST: Script completed with return code 0]LOG]!><time="19:32:13.000+000" date="05-05-2019" component="TaskSequencePSHost" context="" type="1" thread="" file="TaskSequencePSHost">
It also seems it is not processing any of the logging for the last section of the script.
write-verbose "Install Chocolatey packages from within MDT"
foreach ( $Package in $Packages )
{
write-verbose "Install Chocolatey Package: $ChocoExe $Package"
invoke-expression "cmd.exe /c $chocoExe Install $Package -y -v 2>&1" | write-verbose
if ( $LastExitCode -eq 3010 )
{
oEnvironment.Item("SMSTSRebootRequested") = "true"
}
}
write-verbose "Chocolatey install done"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.