반복

    [PowerShell] ForEach문 활용

    PowerShell Foreach Array 생성 $removeAppxPackage = @( 'Microsoft.MicrosoftOfficeHub', 'Microsoft.MicrosoftSolitaireCollection', 'MicrosoftTeams', 'Microsoft.WindowsCamera', 'Microsoft.Getstarted', 'SpotifyAB.SpotifyMusic', 'Microsoft.ZuneMusic', 'Microsoft.ZuneVideo', 'Microsoft.BingNews', 'Microsoft.People', 'Microsoft.BingWeather' ) Foreach 실행 # foreach ( $item in [Array] ) { RUN COMMAND } forea..