{"id":8496,"date":"2023-07-16T13:14:42","date_gmt":"2023-07-16T04:14:42","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=8496"},"modified":"2023-07-16T13:14:43","modified_gmt":"2023-07-16T04:14:43","slug":"post-8496","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2023\/07\/16\/post-8496\/","title":{"rendered":"Powershell\u3067\u4ed6\u306eWindows\u306b\u63a5\u7d9a\u3059\u308b\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8"},"content":{"rendered":"\n<p>\u524d\u63d0\u3068\u3057\u3066\u3001WinRM\u306e\u8a2d\u5b9a\u304c\u884c\u308f\u308c\u3066\u3044\u3066\u3001\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u3067\u304d\u308b\u3053\u3068\u3002Powershell\u3092\u958b\u3044\u3066\u3001\u201dEnter-PSSession\u201d \u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u5225\u306eWindows\u306bPowershell\u3067\u63a5\u7d9a\u3067\u304d\u3001\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u3084DOS\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Enter-PSSession -ComputerName \u63a5\u7d9a\u5148\u306e\u30db\u30b9\u30c8\u540d\u3084IP\u30a2\u30c9\u30ec\u30b9 -Credential \u30ed\u30b0\u30a4\u30f3\u540d<\/code><\/pre>\n\n\n\n<p>\u63a5\u7d9a\u3067\u304d\u308b\u3068\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u3068\u3053\u308d\u306b\u3001\u63a5\u7d9a\u5148\u306e\u30db\u30b9\u30c8\u540d\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u3069\u3053\u306b\u3064\u306a\u304c\u3063\u3066\u3044\u308b\u306e\u304b\u304c\u308f\u308b\u3002<\/p>\n\n\n\n<p>\u63a5\u7d9a\u3092\u7d42\u4e86\u3059\u308b\u3068\u304d\u306f\u3001\u201dExit-PSSession\u201d\u3082\u3057\u304f\u306f\u201dexit\u201d \u3067\u629c\u3051\u308b\u3002<\/p>\n\n\n\n<p>\u5b9f\u884c\u4f8b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\Users\\zen> Enter-PSSession -ComputerName Labo07 -Credential psadmin\nPowerShell credential request\nEnter your credentials.\nPassword for user psadmin: *********\n&#91;Labo07]: PS C:\\Users\\psadmin\\Documents>\n&#91;Labo07]: PS C:\\Users\\psadmin\\Documents> Exit-PSSession\nPS C:\\Users\\zen><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u63d0\u3068\u3057\u3066\u3001WinRM\u306e\u8a2d\u5b9a\u304c\u884c\u308f\u308c\u3066\u3044\u3066\u3001\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u3067\u304d\u308b\u3053\u3068\u3002Powershell\u3092\u958b\u3044\u3066\u3001\u201dEnter-PSSession\u201d \u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u5225\u306eWindows\u306bPowershell\u3067\u63a5\u7d9a\u3067\u304d\u3001\u30b3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[13,174],"class_list":["post-8496","post","type-post","status-publish","format-standard","hentry","category-windows","tag-powershell","tag-windowsserver2019"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/8496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=8496"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/8496\/revisions"}],"predecessor-version":[{"id":8497,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/8496\/revisions\/8497"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=8496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=8496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=8496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}