Powershell exception using Add-WindowsFeature: could not update the provided feature files in the time allowed -
i've got script adds set of features on windows 2012 r2 server. every night server gets redeployed test script automation.
the command i'm running:
add-windowsfeature powershell-ise, rsat-ad-powershell, rsat-ad-tools, rsat-adds-tools, rsat-dfs-mgmt-con, rsat-dns-server, server-gui-mgmt-infra, server-gui-shell, snmp-service, snmp-wmi-provider
i'm getting different results every night running same command. works expected, , after server reboots features installed.
in working scenario operation took 58 minutes , 24 seconds.
but quite exception:
exception : system.exception: server not update provided feature files in time allowed. targetobject : 86b9dcf8-80b1-436f-9c01-9b924886b384 categoryinfo : operationtimeout: (86b9dcf8-80b1-436f-9c01-9b924886b384:guid) [install-windowsfeature], exception fullyqualifiederrorid : getalterationstate__callcycletimeout,microsoft.windows.servermanager.commands.addwindowsfeature command errordetails : server not update provided feature files in time allowed. invocationinfo : system.management.automation.invocationinfo
in "non-working" scenario operation took 41 minutes , 0 seconds
after exception perform reboot , server comes features installed. know can handle situation try/catch wondering if there's cleaner way proceed.
maybe there's implicit timeout option settings ?
thank you.
Comments
Post a Comment