Stefan

//Stefan
Stefan

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Stefan
    Participant
    Post count: 4

    Would it be correct like this?

    <code>$FeatureInstallResult = Install-WindowsFeature -Name Telnet-Client
    
    IF ( $FeatureInstallResult.Success -eq $True ) {            
        [int32]$mainExitCode = 0
    } ELSE {            
        [int32]$mainExitCode = 1
    }</code>
  • Stefan
    Participant
    Post count: 4

    I did rethink my strategy about it. I will keep things simple.

    1. I will not take the toolkit log into my log.
    2. I will use an additional control file, which contains the installation-type.
    3. I will keep the name and try to leave everything untouched.
    4. My plans were to DotSource the script, which would be problematic. I will just call it with start-process.

Viewing 2 posts - 1 through 2 (of 2 total)