This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$logs = Get-EventLog Application | | |
?{($_.TimeWritten -ge (get-date).AddDays(-1)) -and ($_.EntryType -eq "Error" -or $_.EntryType -eq "Warning" -or $_.EntryType -eq "Information")} | |
$err_count=0 | |
$warn_count = 0 | |
$info_count = 0 | |
foreach($d in $logs){ | |
if($d.EntryType -eq 'Error'){ | |
$err_count++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-Process |?{$_.workingset -ge 100MB} | Export-Csv -Path C:\aaa.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#.NETのSyndicationFeedクラスを使ってやってみました。 | |
[System.Reflection.Assembly]::LoadWithPartialName("System.ServiceModel.dll") | |
$url = "http://winscript.jp/powershell/rss2/" | |
$xml = [System.Xml.XmlReader]::Create($url) | |
$feed = [System.ServiceModel.Syndication.SyndicationFeed]::Load($xml) | |
foreach($item in $feed.Items) | |
{ | |
$item.title.Text | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'---------------------------- | |
' .Net 4版。 | |
' 以下の参照設定が必要 | |
' VBReport7.Document.4 | |
' VBReport7.Xlsx.IO.4 | |
' VBReport7.Xlsx.Web.Report.4 | |
'---------------------------- | |
Imports AdvanceSoftware.VBReport7 | |
Class ExcelWebDonwloadSample |
NewerOlder