2021-01-01から1年間の記事一覧
# cpu 10秒単位 > typeperf -si 10 "\processor(_total)\% processor time" # ファイルへ出力 > typeperf -si 10 -y "\processor(_total)\% processor time" -o d:\temp\process_log.csv # メモリ空き容量(10秒単位) > typeperf -si 10 "\Memory\Available…
mtgpowershell.blogspot.com social.technet.microsoft.com
直列 $job1 = Start-job -ScriptBlock { Get-Service | out-null; $ret=@{} $ret.Add("status", "finish-job1"); return $ret; } $job2 = Start-job -ScriptBlock { Get-Service | out-null; $ret=@{} $ret.Add("status", "finish-job2"); return $ret; } Ge…
blog.macorin.net www.lifewithunix.jp qiita.com www.kayura-se.com
qiita.com 基本的にはドットソース演算子を利用ですかね。
blog.janjan.net
winscript.jp
www.vwnet.jp function CreateCustomObject() { $data = New-Object PSObject | Select-Object one, two, three; return $data } $datas = @() $o1 = CreateCustomObject $o1.one = "a1" $o1.two= "b1" $o1.three= "c1" $datas += $o1; $o2 = CreateCustomOb…
soma-engineering.com [ValidateSet("y","n")] $res= Read-Host "ok?(y or n)" Write-Host $res
> Get-Help Get-ChildItem -detailed #> help Get-ChildItem 名前 Get-ChildItem 構文 Get-ChildItem [[-Path] <string[]>] [[-Filter] <string>] [<CommonParameters>] Get-ChildItem [[-Filter] <string>] [<CommonParameters>] パラメーター -Attributes <FlagsExpression[FileAttributes]> -Depth <uint32> -Directory -Exclude <…</uint32></flagsexpression[fileattributes]></commonparameters></string></commonparameters></string></string[]>
Get-Service -Name win* | Format-Table -Property Name,Status,StartType,DisplayName,DependentServices -Wrap Name Status StartType DisplayName DependentServices ---- ------ --------- ----------- ----------------- WinDefend Stopped Manual Micr…
docs.microsoft.com Get-Process -Name explorer | Where-Object{$_.id -eq 9964} | Format-List -Property * Name : explorer Id : 9964 PriorityClass : Normal FileVersion : 10.0.22000.258 (WinBuild.160101.0800) HandleCount : 4724 WorkingSet : 381…
docs.microsoft.com
docs.microsoft.com
docs.microsoft.com ja.gouma.org
@echo off rem 本日 FOR /F "usebackq delims=" %%a in (`powershell "(get-date).ToString(\"yyyy/MM/dd\")"`) do Set TODAY=%%a echo %TODAY% rem 本日9時 setlocal set command=`powershell "[DateTime]::Today.AddHours(9).ToString('yyyy-MM-dd HH:mm:s…
@echo off echo bat start rem powershell -NoProfile -ExecutionPolicy Unrestricted .\hina.ps1 -startTime '2012/12/1 13:00:00' -endTime '2012/12/2 15:00:00' powershell -NoProfile -ExecutionPolicy Unrestricted .\hina.ps1 echo bat finish! press…
Param( # 先頭行でないとエラー $startTime = [DateTime]::Today.AddHours(-15), # 前日9時 $endTime = [DateTime]::Today.AddHours(9), # 本日9時 $thresholdValue = 10 ) echo "startTime: $startTime" echo "endTime: $endTime" echo "thresholdValue: $t…
技術メモメモ: タスクスケジューラーを使って1分間隔で実行するタスクを作成する方法 起動バッチ @echo off powershell -NoProfile -ExecutionPolicy Unrestricted .\hina.ps1 exit hina.ps1 $time = get-random -minimum 1 -maximum 5; Write-Host "wait ti…
gist.github.com
vue-select.org bootstrap-vue.org
ihatetomatoes.net github.com
tech.ga-tech.co.jp
iwb.jp
qiita.com
ajike.github.io www.willstyle.co.jp
www.finddevguides.com
wizardace.com qiita.com www.uosansatox.biz
github.com github.com
qiita.com www.tohoho-web.com rightcode.co.jp