{"id":296,"date":"2017-05-11T14:08:59","date_gmt":"2017-05-11T05:08:59","guid":{"rendered":"http:\/\/shinke1987.net\/?p=296"},"modified":"2017-05-11T14:09:49","modified_gmt":"2017-05-11T05:09:49","slug":"post-296","status":"publish","type":"post","link":"https:\/\/shinke1987.net\/?p=296","title":{"rendered":"WPS\u304b\u3089\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u3092\u5229\u7528\u3059\u308b\u3002"},"content":{"rendered":"<h2>\u74b0\u5883<\/h2>\n<p>Win7 Pro 64bit<br \/>\nWindows PowerShell Ver\uff1a5.1<\/p>\n<p>\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u3092\u5229\u7528\u3057\u305f\u3089\u3001<br \/>\n\u524d\u56de\u4f5c\u6210\u3057\u305fWindowsUpdate\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u52d5\u3044\u3066\u304f\u308c\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u53c2\u8003\u30b5\u30a4\u30c8<\/h2>\n<p>TechNet\uff1aPSScheduledJob \u30e2\u30b8\u30e5\u30fc\u30eb<br \/>\n<a href=\"https:\/\/technet.microsoft.com\/ja-jp\/library\/hh847863.aspx\">https:\/\/technet.microsoft.com\/ja-jp\/library\/hh847863.aspx<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u6d41\u308c<\/h2>\n<ol>\n<li>\u30b8\u30e7\u30d6\u3092\u4f5c\u6210\u3057\u3066\u767b\u9332\u3059\u308b\u3002<br \/>\n\uff08\u30b8\u30e7\u30d6\u540d\uff1aTestJob\uff09<br \/>\n\uff08\u5185\u5bb9\uff1atemp.ps1\u3092\u5b9f\u884c\u3059\u308b\uff09<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">Register-ScheduledJob -Name &quot;TestJob&quot; -FilePath &quot;D:\\wps\\temp.ps1&quot;<\/pre>\n<\/li>\n<li>\u30b8\u30e7\u30d6\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u3002\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">Get-ScheduledJobOption -Name &quot;TestJob&quot; | Set-ScheduledJobOption -RequireNetwork<\/pre>\n<\/li>\n<li>\u30b8\u30e7\u30d6\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3002\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">New-JobTrigger\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u3092\u4f7f\u7528\u3002<\/pre>\n<\/li>\n<li>\u30b8\u30e7\u30d6\u30c8\u30ea\u30ac\u30fc\u3092\u30b8\u30e7\u30d6\u3078\u8ffd\u52a0\u3059\u308b\u3002\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">Add-JobTrigger\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u3092\u4f7f\u7528\u3002<\/pre>\n<\/li>\n<li>\u767b\u9332\u3055\u308c\u305f\u30b8\u30e7\u30d6\u3092\u78ba\u8a8d\u3059\u308b\u3002\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">Get-ScheduledJob<\/pre>\n<\/li>\n<li>\u30b8\u30e7\u30d6\u3092\u958b\u59cb\u3059\u308b\u3002\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">Start-Job -DefinitionName TestJob<\/pre>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2>\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u3067\u78ba\u8a8d\u3059\u308b<\/h2>\n<p>\u300c\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u7ba1\u7406\u300d\u2192\u300c\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u300d<br \/>\n\u2192\u300c\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30e9\u30a4\u30d6\u30e9\u30ea\u300d<br \/>\n\u2192\u300cMicrosoft\u300d\u2192\u300cWindows\u300d<br \/>\n\u2192\u300cPowerShell\u300d\u2192\u300cScheduledJobs\u300d\u3067\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u5b9f\u884c\u4e2d\u306e\u30b8\u30e7\u30d6\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nGet-Job\r\nReceive-Job -ID \u6570\u5024 -Keep\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u74b0\u5883 Win7 Pro 64bit Windows PowerShell Ver\uff1a5.1 \u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u3092\u5229\u7528\u3057\u305f\u3089\u3001 \u524d\u56de\u4f5c\u6210\u3057\u305fWindowsUpdate\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u52d5\u3044\u3066\u304f\u308c\u305f\u3002 &nbsp; \u53c2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[44],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-windowspowershell","tag-windowspowershell"],"_links":{"self":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=296"}],"version-history":[{"count":7,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions"}],"predecessor-version":[{"id":303,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions\/303"}],"wp:attachment":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}