それでは、SMOを使用してデータベースの作成を行ってみることにしよう。まず、SQL Server Management Studioから「データベース」を右クリックして「PowerShellの起動」をクリックする。すると「Databases」フォルダからPowerShellが起動するので、以下のコマンドを実行 ...
最後に、PowerShellとSQL Serverを組み合わせた少し実践的なサンプルを見てみよう。 会員制のWebサイトなどで、日々の会員数の推移をメールでレポートとして受け取りたい、というケースはしばしばあるだろう。そこで「特定のテーブルのレコード件数をメール ...
SQL Server 製品版では、定期的なバックアップをメンテナンスプランで構成することが多いと思います。 BACKUP DATABASE コマンドの出力先に共有フォルダを指定することも可能ではありますが、SQL Server 実行ユーザーに権限が必要ですし、ローカルにバックアップ ...
A script is just a collection of commands saved into a text file (using the special .ps1 extension) that PowerShell understands and executes in sequence to perform different actions. In this post, we ...
結論:32bit版と64bit版で参照しているレジストリが異なるから 実行ポリシーを変更したのにスクリプトが実行できない WindowsはデフォルトでPowerShellのスクリプト実行が実行ポリシーによって制限されています。 PS D:> ./Test.ps1 ./Test.ps1 : このシステムでは ...
Over the last few years, I have created a vast library of PowerShell scripts that I use to keep my servers healthy. These scripts do everything from monitoring disk health to helping me to reclaim ...
You can use PowerShell scripts to automate various tasks in Windows and other operating systems, like organizing data, searching for files or fetching data from the Internet. You can't actually run ...
In my previous post, I showed you how to create a clickable button in Excel. That button displayed a simple message box. Now, I want to show you how to use the button to kick off a PowerShell script.
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する