qshinoの日記

Powershell関係と徒然なこと

2017-03-10から1日間の記事一覧

Powershell デバッグ

Powershell Debug デバック機能一覧 write-host write-debug write-verbose write-progress Set-PSDebug Break point $host.EnterNestedPrompt() Write-Warning/Error write-host コンソール出力。 write-verbose $VerbosePreferenceにより挙動を変更可能。…

Powershell XML

XML 参考 https://msdn.microsoft.com/ja-jp/library/system.xml.xmlnodelist(v=vs.110).aspx https://msdn.microsoft.com/ja-jp/library/system.xml.xmlelement(v=vs.110).aspx#メソッド http://odashinsuke.hatenablog.com/entry/20090708/1247060185

Windows SSH

SSH 参考 http://www.powershelladmin.com/wiki/SSH_from_PowerShell_using_the_SSH.NET_library http://www.simpline.co.jp/tech/?p=542

Powershell WMI

WMI 参考 http://rtaki.sakura.ne.jp/infra/?p=1632

pppoeサーバー

pppoeサーバー centosの場合 yum install -y ppp rp-pppoe /etc/ppp/pppoe-server-options /etc/ppp/pap-secret /etc/sysctl.conf ifconfig eth0 0.0.0.0 up pppoe-server -I ethX -L 10.0.0.1 -R 10.1.1.1 -L サーバーIP -R リモートIP tail -f /var/log/me…

DNS

DNSについて 未だCache ServerとForwarding Serverの違いが分かっていない。 何方もAuthority がない? 参考 https://www.digitalocean.com/community/tutorials/an-introduction-to-dns-terminology-components-and-concepts DNS構築 https://www.designet.…

Powershell Join Object

Join Object 文字列-joinでは無く、ObjectのJoin. RDBMSのJoin機能 参考 https://blogs.msdn.microsoft.com/powershell/2012/07/13/join-object/

IIS FTPサイト構築 by Powershell

IIS-FTPサイト自動構築 Windows 2012R2 のPowerShell用IIS WebAdministration Moduleを使って自動構築を試みる。 これらをMSではPowerShell IISスナップインと呼んでいる。ここでは以後スナップインと呼ぶ。 スナップインは3つのカテゴリに分かれる。 プロバ…

Powershell FireWall設定

FireWall 参考 https://creativeweb.jp/tips/firewall-ftp/ http://ameblo.jp/memomemoag0u3/entry-11741667885.html https://technet.microsoft.com/ja-jp/library/dd939055.aspx

Powershell 外部プログラム起動

外部プログラム起動 現在の所、外部プログラムの起動方法は下記の5種類 Start-Process Start-Job Invoke-Expression & そのまま記述 同期実行 同期実行する方法 Start-Process -Wait window アプリケーションも同期可能 Wait-Job Start-jobで非同期実行した…

Powershell ダイナミックパラメータ

ダイナミックパラメータ Get-Command の動的な挙動 -ArgumentList による変化 参考 http://winscript.jp/powershell/?s=-argumentList