並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 17 件 / 17件

新着順 人気順

powershell if item not in arrayの検索結果1 - 17 件 / 17件

  • とほほのPowerShell入門 - とほほのWWW入門

    ブレークポイントを設定してスクリプトをデバッグすることもできます。デバッガを使用するにはスクリプトをファイルとして保存し、下記の様にポリシー変更する必要があります。 Set-ExecutionPolicy -Scope CurrentUser ExecutionPolicy: RemoteSigned キーワード 言語としては下記のキーワードが定義されています。 変数 変数($xxx) 変数は $変数名 で表します。 $Name = "Yamada" Write-Output "My name is $Name." 変数の値を削除するには Clear-Variable を使用するか、値 $null を設定します。変数を削除するには Remove-Variable または Remove-Item を使用します。 Clear-Variable -Name a # 値をクリア $a = $nul

    • March 2025 (version 1.99)

      Update 1.99.1: The update addresses these security issues. Update 1.99.2: The update addresses these issues. Update 1.99.3: The update addresses these issues. Downloads: Windows: x64 Arm64 | Mac: Universal Intel silicon | Linux: deb rpm tarball Arm snap Welcome to the March 2025 release of Visual Studio Code. There are many updates in this version that we hope you'll like, some of the key highligh

        March 2025 (version 1.99)
      • February 2021 (version 1.54)

        Join a VS Code Dev Days event near you to learn about AI-assisted development in VS Code. Update 1.54.1: The update addresses an issue with an extension dependency. Update 1.54.2: The update addresses these issues. Update 1.54.3: The update addresses this issue. Downloads: Windows: x64 Arm64 | Mac: Universal Intel silicon | Linux: deb rpm tarball Arm snap Welcome to the February 2021 release of Vi

          February 2021 (version 1.54)
        • July 2022 (version 1.70)

          Join a VS Code Dev Days event near you to learn about AI-assisted development in VS Code. Update 1.70.1: The update addresses these issues. Update 1.70.2: The update addresses these issues. Update 1.70.3: This update is only available for Windows 7 users and is the last release supporting Windows 7. Downloads: Windows: x64 Arm64 | Mac: Universal Intel silicon | Linux: deb rpm tarball Arm snap Welc

            July 2022 (version 1.70)
          • Performance Improvements in .NET 7 - .NET Blog

            No trial. No credit card required. Just your GitHub account. A year ago, I published Performance Improvements in .NET 6, following on the heels of similar posts for .NET 5, .NET Core 3.0, .NET Core 2.1, and .NET Core 2.0. I enjoy writing these posts and love reading developers’ responses to them. One comment in particular last year resonated with me. The commenter cited the Die Hard movie quote, “

              Performance Improvements in .NET 7 - .NET Blog
            • Defending new vectors: Threat actors attempt SQL Server to cloud lateral movement | Microsoft Security Blog

              Microsoft security researchers recently identified a campaign where attackers attempted to move laterally to a cloud environment through a SQL Server instance. This attack technique demonstrates an approach we’ve seen in other cloud services such as VMs and Kubernetes cluster, but not in SQL Server. The attackers initially exploited a SQL injection vulnerability in an application within the target

                Defending new vectors: Threat actors attempt SQL Server to cloud lateral movement | Microsoft Security Blog
              • PowerShell: the object-oriented shell you didn’t know you needed

                PowerShell is an interactive shell and scripting language from Microsoft. It’s object-oriented — and that’s not just a buzzword, that’s a big difference to how the standard Unix shells work. And it is actually usable as an interactive shell. Getting Started PowerShell is so nice, Microsoft made it twice. Specifically, there concurrently exist two products named PowerShell: Windows PowerShell (5.1)

                • Windows Terminal Preview 1.6 Release

                  Welcome to our first Windows Terminal release of 2021! This release brings new features to Windows Terminal Preview version 1.6 as well as moves Windows Terminal to version 1.5, which includes the features from this previous blog post. You can download both versions from the Microsoft Store or from the GitHub releases page. Below are some of the highlights in this release, however we recommend che

                    Windows Terminal Preview 1.6 Release
                  • Windows RE に更新プログラムを追加する

                    Windows RE イメージに更新プログラム (LCU または安全な OS 動的更新プログラム (DU)) を適用できます。 Windows RE イメージを更新する手順は、オフライン イメージを更新するか、実行中のシステムのイメージを更新するかによって異なります。 LCU を追加する場合: 更新プログラムを追加する前だけでなく、更新プログラムを追加した後も、WinRE のバージョン番号を調べて、更新プログラムが正しく適用されたことを確認します。 DU パッケージを追加する場合: パッケージを追加した後、イメージ内のパッケージの一覧を調べて、パッケージがイメージに正常に追加されたことを確認します。 オフライン イメージを更新する 次の手順では、更新されたパッケージをオフラインの Windows RE イメージに追加する方法について説明します。 Windows イメージをマウントする Wi

                      Windows RE に更新プログラムを追加する
                    • https://docs.microsoft.com/ja-jp/powershell/scripting/learn/deep-dives/everything-about-arrays

                      配列とは まず、配列とは何か、そしてほとんどのプログラミング言語で使用される方法についての基本的な技術的な説明から始めます。その後、PowerShell がそれらを使用する他の方法に移行します。 配列は、複数の項目のコレクションとして機能するデータ構造です。 配列を反復処理したり、インデックスを使用して個々の項目にアクセスしたりできます。 配列は、各値がもう一方の隣に格納されるメモリの順次チャンクとして作成されます。 私たちは行くにつれて、これらの詳細のそれぞれについて触れます。 基本的な使用方法 配列は PowerShell の基本的な機能であるため、PowerShell で操作するための簡単な構文があります。 配列を作成する 空の配列は、次を使用して作成できます。 @() PS> $data = @() PS> $data.Count 0 配列を作成し、 @() かっこ内に配置するだけ

                        https://docs.microsoft.com/ja-jp/powershell/scripting/learn/deep-dives/everything-about-arrays
                      • February 2025 (version 1.98)

                        The feature is still under refinement, yet ready to use. Feedback is welcome. View the preview features (@tag:preview). Copilot Edits Agent mode improvements (Experimental) Last month, we introduced agent mode for Copilot Edits in VS Code Insiders. In agent mode, Copilot can automatically search your workspace for relevant context, edit files, check them for errors, and run terminal commands (with

                          February 2025 (version 1.98)
                        • April 2021 (version 1.56)

                          Join a VS Code Dev Days event near you to learn about AI-assisted development in VS Code. Update 1.56.1: The update addresses these security issues. Update 1.56.2: The update addresses these issues. Downloads: Windows: x64 Arm64 | Mac: Universal Intel silicon | Linux: deb rpm tarball Arm snap Welcome to the April 2021 release of Visual Studio Code. The VS Code team has been busy this month working

                            April 2021 (version 1.56)
                          • PowerShell スクリプトのパフォーマンスに関する考慮事項 - PowerShell

                            出力の抑制 パイプラインへのオブジェクトの書き込みを回避するには、さまざまな方法があります。 $null への割り当てまたはファイル リダイレクト [void] へのキャスティング Out-Null にパイプ $null への割り当て。[void] へのキャスティング、$null へのファイル リダイレクトの速度はほぼ同じです。 ただし、大きなループで Out-Null を呼び出す場合は、PowerShell 5.1 でも大幅に遅くなる場合があります。 $tests = @{ 'Assign to $null' = { $arrayList = [System.Collections.ArrayList]::new() foreach ($i in 0..$args[0]) { $null = $arraylist.Add($i) } } 'Cast to [void]' = { $arr

                              PowerShell スクリプトのパフォーマンスに関する考慮事項 - PowerShell
                            • Managing domain membership of dynamic fleet of EC2 instances | Amazon Web Services

                              AWS Compute Blog Managing domain membership of dynamic fleet of EC2 instances This post is written by Alex Zarenin, Senior AWS Solution Architect, Microsoft Tech. Updated: February 10, 2021 1.   Introduction For most companies, a move of Microsoft workloads to AWS starts with “lift and shift” where existing workloads are moved from the on-premises data centers to the cloud. These workloads may inc

                                Managing domain membership of dynamic fleet of EC2 instances | Amazon Web Services
                              • May 2024 (version 1.90)

                                Update 1.90.2: The update addresses these issues. Update 1.90.1: The update addresses these issues. Downloads: Windows: x64 Arm64 | Mac: Universal Intel silicon | Linux: deb rpm tarball Arm snap Welcome to the May 2024 release of Visual Studio Code. There are many updates in this version that we hope you'll like, some of the key highlights include: Editor tabs multi-select - Select and perform act

                                  May 2024 (version 1.90)
                                • about_Preference_Variables - PowerShell

                                  Working with preference variables This document describes each of the preference variables. To display the current value of a specific preference variable, type the variable's name. For example, the following command displays the $ConfirmPreference variable's value. $ConfirmPreference High To change a variable's value, use an assignment statement. For example, the following statement changes the $

                                    about_Preference_Variables - PowerShell
                                  • ハッシュテーブルについて知りたかったことのすべて - PowerShell

                                    ここでは、一歩下がって、ハッシュテーブルについて説明します。 私は現在は常に使用しています。 昨晩ユーザー グループミーティングの後、これに関してあるユーザーに説明していたとき、私にも同じ混乱が生じていたことに気付きました。 ハッシュテーブルは PowerShell で非常に重要であるため、十分に理解しておくことをお勧めします。 もののコレクションとしてのハッシュテーブル まず、ハッシュテーブルの従来の定義どおり、ハッシュテーブルをコレクションとして見てください。 この定義により、後でより高度なことに使用する場合の動作に関する基本的な理解が得られます。 この理解をスキップすることは、多くの場合、混乱の原因になります。 配列とは ハッシュテーブルとは何かを説明する前に、まず配列について説明する必要があります。 このディスカッションでは、配列は値またはオブジェクトのリストまたはコレクションです

                                      ハッシュテーブルについて知りたかったことのすべて - PowerShell
                                    1