Hello, Team
is anybody who can give me an idea how to input the 'yes' or 'y' command when waiting for the user input.
want to automate the Nexus 3048 ios upgrade process with powershell script with NCM.
Also, powershell script can apply for multiple devices at the same time for example upgrade 100 devices at the same time for 1 powershell script.
for example
Images will be upgraded according to following table:
Module Image Running-Version New-Version Upg-Required
------ ---------------- ---------------------- ---------------------- ------------
1 system 6.0(2)U1(2) 6.0(2)U3(1) yes
1 kickstart 6.0(2)U1(2) 6.0(2)U3(1) yes
1 bios v1.2.0(08/25/2011) v1.2.0(08/25/2011) no
1 power-seq v4.4 v4.4 no
Switch will be reloaded for disruptive upgrade.
Do you want to continue with the installation (y/n)? [n] y <--- here, how to input 'y' command with powershell script ??
Install is in progress, please wait.
Performing runtime checks.
[####################] 100% -- SUCCESS
Setting boot variables.
[####################] 100% -- SUCCESS
Performing configuration copy.
[####################] 100% -- SUCCESS
Finishing the upgrade, switch will reboot in 10 seconds.
as20a.w40216b.x460.krccw#