Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#BuggyScript1.ps1 written on 10/27/14 #A script to debug in PowerShell ISE Initialization #Initializing variables $computers = DC1, W8-Client , W7-Client $choice = Y While ($choice
#BuggyScript1.ps1 written on 10/27/14 #A script to debug in PowerShell ISE Initialization #Initializing variables $computers = "DC1", "W8-Client , "W7-Client"" $choice = "Y" While ($choice = "Y") { foreach ($computer in $computers} { Get-CIMInstance Win32_ComputerSystem -ComputerName $computers } Write-Host "$computers" -ForegrundColor yellow -BackgroundColor DrkBlue $choices = Read-Host -Prompt "Shall we do that again (Y/N" }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started