{"id":1559,"date":"2026-05-18T18:25:32","date_gmt":"2026-05-18T09:25:32","guid":{"rendered":"https:\/\/blog.nexive.tech\/?p=1559"},"modified":"2026-05-18T19:25:32","modified_gmt":"2026-05-18T10:25:32","slug":"legacy-file-cleanup-safety","status":"publish","type":"post","link":"https:\/\/blog.nexive.tech\/?p=1559","title":{"rendered":"\u30ec\u30ac\u30b7\u30fc\u74b0\u5883\u306e\u4e0d\u8981\u30d5\u30a1\u30a4\u30eb\u524a\u9664\u3092\u81ea\u52d5\u5316\u3059\u308b\u524d\u306b\u898b\u305f\u3044\u78ba\u8a8d\u9805\u76ee"},"content":{"rendered":"\n<p>\u53e4\u3044Windows\u30b5\u30fc\u30d0\u30fc\u3084\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u3092\u6574\u7406\u3057\u3066\u3044\u308b\u3068\u3001\u300c\u3053\u306e\u3042\u305f\u308a\u306e\u53e4\u3044\u30d5\u30a1\u30a4\u30eb\u3001\u3082\u3046\u6d88\u3057\u3066\u3082\u3088\u3055\u305d\u3046\u3067\u3059\u3088\u306d\u300d\u3068\u3044\u3046\u8a71\u304c\u51fa\u3066\u304d\u307e\u3059\u3002\u5bb9\u91cf\u3082\u5727\u8feb\u3057\u3066\u3044\u308b\u3002\u624b\u4f5c\u696d\u3067\u898b\u308b\u306b\u306f\u6570\u304c\u591a\u3044\u3002\u306a\u3089PowerShell\u3067\u307e\u3068\u3081\u3066\u6d88\u305d\u3046\u3001\u3068\u306a\u308b\u6d41\u308c\u306f\u81ea\u7136\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3001\u30ec\u30ac\u30b7\u30fc\u74b0\u5883\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u540d\u524d\u3060\u3051\u3067\u306f\u5224\u65ad\u3057\u306b\u304f\u3044\u3082\u306e\u304c\u6df7\u3056\u308a\u307e\u3059\u3002<code>old<\/code>\u3001<code>backup<\/code>\u3001<code>temp<\/code> \u3068\u4ed8\u3044\u3066\u3044\u3066\u3082\u3001\u5b9f\u969b\u306b\u306f\u6708\u6b21\u51e6\u7406\u3067\u53c2\u7167\u3055\u308c\u3066\u3044\u305f\u308a\u3001\u524d\u4efb\u8005\u304c\u969c\u5bb3\u5bfe\u5fdc\u6642\u306b\u9000\u907f\u3057\u305f\u3082\u306e\u3060\u3063\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Windows\u74b0\u5883\u3067\u4e0d\u8981\u30d5\u30a1\u30a4\u30eb\u524a\u9664\u3092\u81ea\u52d5\u5316\u3059\u308b\u524d\u306b\u78ba\u8a8d\u3057\u305f\u3044\u3053\u3068\u3092\u6574\u7406\u3057\u307e\u3059\u3002\u5b8c\u6210\u7248\u306e\u524a\u9664\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u306a\u304f\u3001\u524a\u9664\u51e6\u7406\u3092\u66f8\u304f\u524d\u306b\u6c7a\u3081\u3066\u304a\u304f\u3079\u304d\u6761\u4ef6\u3068\u3001PowerShell\u306b\u5165\u308c\u3066\u304a\u304d\u305f\u3044\u6700\u4f4e\u9650\u306e\u5b89\u5168\u78ba\u8a8d\u3092\u6271\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30ec\u30ac\u30b7\u30fc\u74b0\u5883\u306e\u524a\u9664\u81ea\u52d5\u5316\u306f\u3001\u30b3\u30fc\u30c9\u3088\u308a\u5148\u306b\u6761\u4ef6\u6574\u7406\u304c\u5fc5\u8981<\/h2>\n\n\n\n<p>\u4e0d\u8981\u30d5\u30a1\u30a4\u30eb\u524a\u9664\u306e\u8a71\u306b\u306a\u308b\u3068\u3001\u6700\u521d\u306b\u51fa\u3066\u304f\u308b\u6761\u4ef6\u306f\u3060\u3044\u305f\u3044\u66f4\u65b0\u65e5\u6642\u3067\u3059\u3002\u300c180\u65e5\u4ee5\u4e0a\u66f4\u65b0\u3055\u308c\u3066\u3044\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u300d\u3068\u3044\u3063\u305f\u6c7a\u3081\u65b9\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u306f\u5206\u304b\u308a\u3084\u3059\u3044\u4e00\u65b9\u3067\u3001\u30ec\u30ac\u30b7\u30fc\u74b0\u5883\u3067\u306f\u5c11\u3057\u96d1\u3067\u3059\u3002\u53e4\u3044\u3051\u308c\u3069\u53c2\u7167\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3059\u3002\u66f4\u65b0\u3055\u308c\u306a\u3044\u3053\u3068\u306b\u610f\u5473\u304c\u3042\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3082\u3042\u308a\u307e\u3059\u3002\u904e\u53bb\u306e\u904b\u7528\u3067\u3001\u6d88\u3055\u306a\u3044\u524d\u63d0\u306e\u9000\u907f\u30d5\u30a9\u30eb\u30c0\u304c\u4f5c\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u524a\u9664\u5bfe\u8c61\u3092\u6c7a\u3081\u308b\u3068\u304d\u306f\u3001\u307e\u305a\u6b21\u306e2\u3064\u3092\u5206\u3051\u3066\u8003\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u53e4\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u63a2\u3059\u6761\u4ef6<\/li>\n\n\n\n<li>\u6d88\u3057\u3066\u306f\u3044\u3051\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u9664\u5916\u3059\u308b\u6761\u4ef6<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u306e2\u3064\u3092\u6df7\u305c\u308b\u3068\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u77ed\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u3042\u3068\u304b\u3089\u8aac\u660e\u3057\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002\u524a\u9664\u4e8b\u6545\u304c\u8d77\u304d\u305f\u3068\u304d\u306b\u56f0\u308b\u306e\u306f\u3001\u300c\u306a\u305c\u305d\u308c\u3092\u6d88\u3057\u3066\u3088\u3044\u3068\u5224\u65ad\u3057\u305f\u306e\u304b\u300d\u3092\u8aac\u660e\u3067\u304d\u306a\u3044\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p><strong>\u524a\u9664\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304f\u524d\u306b\u6c7a\u3081\u308b\u3079\u304d\u306a\u306e\u306f\u3001\u6d88\u3059\u51e6\u7406\u3067\u306f\u306a\u304f\u3001\u6d88\u3057\u3066\u3088\u3044\u3068\u5224\u65ad\u3059\u308b\u6761\u4ef6\u3067\u3059\u3002<\/strong><\/p>\n\n\n\n<p><code>Remove-Item<\/code> \u306e\u66f8\u304d\u65b9\u3092\u8abf\u3079\u308b\u306e\u306f\u3001\u305d\u306e\u5f8c\u3067\u5341\u5206\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u305a\u6c7a\u3081\u308b\u306e\u306f\u300c\u3069\u3053\u307e\u3067\u89e6\u3063\u3066\u3088\u3044\u304b\u300d<\/h2>\n\n\n\n<p>\u524a\u9664\u6761\u4ef6\u3092\u8003\u3048\u308b\u524d\u306b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u89e6\u3063\u3066\u3088\u3044\u5834\u6240\u3092\u56fa\u5b9a\u3057\u307e\u3059\u3002\u3053\u3053\u304c\u66d6\u6627\u306a\u307e\u307e\u524a\u9664\u51e6\u7406\u3092\u66f8\u304f\u3068\u3001\u5f8c\u304b\u3089\u6761\u4ef6\u3092\u8db3\u3057\u3066\u3082\u4e0d\u5b89\u304c\u6b8b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001\u5bfe\u8c61\u3092\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u5168\u4f53\u306b\u305b\u305a\u3001<code>\\\\server\\share\\archive<\/code> \u914d\u4e0b\u3060\u3051\u306b\u9650\u5b9a\u3057\u307e\u3059\u3002\u3055\u3089\u306b\u3001<code>master<\/code>\u3001<code>template<\/code>\u3001<code>manual_backup<\/code> \u306e\u3088\u3046\u306a\u30d5\u30a9\u30eb\u30c0\u540d\u306f\u9664\u5916\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u6642\u70b9\u3067\u3001\u524a\u9664\u5bfe\u8c61\u306f\u304b\u306a\u308a\u72ed\u304f\u306a\u308a\u307e\u3059\u3002\u72ed\u3059\u304e\u308b\u304f\u3089\u3044\u3067\u59cb\u3081\u305f\u65b9\u304c\u3001\u30ec\u30ac\u30b7\u30fc\u74b0\u5883\u3067\u306f\u6271\u3044\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u306f\u8a31\u53ef\u30ea\u30b9\u30c8\u3067\u56fa\u5b9a\u3059\u308b<\/h3>\n\n\n\n<p>\u524a\u9664\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u5bfe\u8c61\u30d1\u30b9\u3092\u5f15\u6570\u3067\u6e21\u305b\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002\u305f\u3060\u3001\u524a\u9664\u51e6\u7406\u306b\u9650\u3063\u3066\u306f\u3001\u305d\u306e\u4fbf\u5229\u3055\u304c\u5371\u967a\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u76f8\u5bfe\u30d1\u30b9\u3092\u6e21\u3057\u3066\u3057\u307e\u3046\u3002\u30c9\u30e9\u30a4\u30d6\u30ec\u30bf\u30fc\u304c\u5225\u306e\u5834\u6240\u3092\u6307\u3057\u3066\u3044\u308b\u3002\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u3067\u52d5\u304b\u3057\u305f\u3089\u3001\u624b\u5143\u3068\u9055\u3046\u30e6\u30fc\u30b6\u30fc\u3067\u5b9f\u884c\u3055\u308c\u308b\u3002Windows\u3067\u306f\u3001\u3053\u3046\u3057\u305f\u30ba\u30ec\u304c\u8d77\u304d\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u4f4e\u9650\u3001\u6b21\u306e\u78ba\u8a8d\u306f\u5165\u308c\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8a31\u53ef\u3059\u308b\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u3092\u6c7a\u3081\u308b<\/li>\n\n\n\n<li>\u5bfe\u8c61\u30d1\u30b9\u3092\u7d76\u5bfe\u30d1\u30b9\u3068\u3057\u3066\u89e3\u6c7a\u3059\u308b<\/li>\n\n\n\n<li>\u89e3\u6c7a\u5f8c\u306e\u30d1\u30b9\u304c\u8a31\u53ef\u30eb\u30fc\u30c8\u914d\u4e0b\u304b\u78ba\u8a8d\u3059\u308b<\/li>\n\n\n\n<li>\u8a31\u53ef\u30eb\u30fc\u30c8\u5916\u306a\u3089\u51e6\u7406\u3092\u6b62\u3081\u308b<\/li>\n<\/ul>\n\n\n\n<p>\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u5165\u529b\u3055\u308c\u305f\u30d1\u30b9\u3092\u305d\u306e\u307e\u307e\u4fe1\u7528\u3057\u306a\u3044\u3053\u3068\u3067\u3059\u3002<strong>\u8a31\u53ef\u30eb\u30fc\u30c8\u5916\u306a\u3089\u6b62\u3081\u308b<\/strong>\u3002\u3053\u306e\u6761\u4ef6\u3092\u5165\u308c\u308b\u3060\u3051\u3067\u3082\u3001\u524a\u9664\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u6027\u683c\u306f\u304b\u306a\u308a\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u9664\u5916\u6761\u4ef6\u306f\u3001\u66f4\u65b0\u65e5\u6642\u3068\u306f\u5225\u306b\u6301\u3064<\/h3>\n\n\n\n<p>\u66f4\u65b0\u65e5\u6642\u3060\u3051\u3067\u524a\u9664\u5bfe\u8c61\u3092\u6c7a\u3081\u308b\u3068\u3001\u53e4\u3044\u3051\u308c\u3069\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u5dfb\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30d5\u30a9\u30eb\u30c0\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30de\u30b9\u30bf\u30d5\u30a1\u30a4\u30eb<\/li>\n\n\n\n<li>\u5e33\u7968\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/li>\n\n\n\n<li>\u624b\u52d5\u9000\u907f\u30d5\u30a9\u30eb\u30c0<\/li>\n\n\n\n<li>\u5916\u90e8\u9023\u643a\u7528\u306eCSV<\/li>\n\n\n\n<li>\u5229\u7528\u90e8\u7f72\u304c\u76f4\u63a5\u53c2\u7167\u3057\u3066\u3044\u308b\u5171\u6709\u30d5\u30a1\u30a4\u30eb<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u308c\u3089\u306f\u3001\u983b\u7e41\u306b\u66f4\u65b0\u3055\u308c\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3080\u3057\u308d\u66f4\u65b0\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u3089\u3053\u305d\u5b89\u5b9a\u3057\u3066\u4f7f\u308f\u308c\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u66f4\u65b0\u65e5\u6642\u306e\u6761\u4ef6\u3068\u3001\u9664\u5916\u6761\u4ef6\u306f\u5225\u306b\u6301\u3063\u305f\u65b9\u304c\u5b89\u5168\u3067\u3059\u3002\u30b3\u30fc\u30c9\u306e\u4e2d\u306b\u6761\u4ef6\u3092\u6563\u3089\u3059\u3088\u308a\u3001\u300c\u3053\u306e\u540d\u524d\u3092\u542b\u3080\u30d5\u30a9\u30eb\u30c0\u306f\u5bfe\u8c61\u5916\u300d\u300c\u3053\u306e\u62e1\u5f35\u5b50\u306f\u5bfe\u8c61\u5916\u300d\u3068\u5148\u306b\u4e00\u89a7\u5316\u3057\u3066\u304a\u304f\u65b9\u304c\u3001\u95a2\u4fc2\u8005\u306b\u3082\u78ba\u8a8d\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5224\u65ad\u306b\u8ff7\u3046\u3082\u306e\u306f\u3001\u524a\u9664\u3067\u306f\u306a\u304f\u9000\u907f\u306b\u56de\u3057\u307e\u3059\u3002\u30ec\u30ac\u30b7\u30fc\u74b0\u5883\u3067\u306f\u3001\u3053\u306e\u4e00\u624b\u9593\u304c\u52b9\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Windows\u3067\u306f\u30d1\u30b9\u3001\u6a29\u9650\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u3092\u5148\u306b\u898b\u308b<\/h2>\n\n\n\n<p>\u624b\u5143\u306ePowerShell\u3067\u52d5\u3044\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u3082\u540c\u3058\u3088\u3046\u306b\u52d5\u304f\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u7279\u306b\u524a\u9664\u51e6\u7406\u3067\u306f\u3001\u5b9f\u884c\u5834\u6240\u3068\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u306e\u9055\u3044\u304c\u305d\u306e\u307e\u307e\u4e8b\u6545\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u3092 <code>Z:\\Archive<\/code> \u306e\u3088\u3046\u306a\u30c9\u30e9\u30a4\u30d6\u30ec\u30bf\u30fc\u3067\u6271\u3063\u3066\u3044\u308b\u74b0\u5883\u306f\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u4eba\u304c\u30ed\u30b0\u30aa\u30f3\u3057\u3066\u4f5c\u696d\u3059\u308b\u5206\u306b\u306f\u554f\u984c\u306a\u304f\u3066\u3082\u3001\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u3067\u52d5\u304b\u3059\u30e6\u30fc\u30b6\u30fc\u306b\u306f\u3001\u305d\u306e <code>Z:<\/code> \u304c\u5b58\u5728\u3057\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u624b\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001\u3067\u304d\u308c\u3070UNC\u30d1\u30b9\u3092\u4f7f\u3044\u307e\u3059\u3002<code>\\\\server\\share\\archive<\/code> \u306e\u3088\u3046\u306b\u5b9f\u4f53\u304c\u5206\u304b\u308b\u5f62\u306b\u3057\u3066\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u898b\u3048\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4f9d\u5b58\u3059\u308b\u76f8\u5bfe\u30d1\u30b9\u306f\u907f\u3051\u305f\u65b9\u304c\u7121\u96e3\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3082\u3046\u4e00\u3064\u898b\u3066\u304a\u304d\u305f\u3044\u306e\u304c\u3001\u524a\u9664\u3067\u304d\u306a\u304b\u3063\u305f\u5834\u5408\u306e\u6271\u3044\u3067\u3059\u3002\u4f7f\u7528\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u3001\u8aad\u307f\u53d6\u308a\u5c02\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u3001\u6a29\u9650\u4e0d\u8db3\u306e\u30d5\u30a9\u30eb\u30c0\u306f\u666e\u901a\u306b\u51fa\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u3067\u30a8\u30e9\u30fc\u3092\u63e1\u308a\u3064\u3076\u3059\u3068\u3001\u898b\u305f\u76ee\u306f\u7d42\u308f\u3063\u3066\u3044\u308b\u306e\u306b\u3001\u5b9f\u969b\u306b\u306f\u4e00\u90e8\u3060\u3051\u6b8b\u3063\u3066\u3044\u308b\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u524a\u9664\u3067\u304d\u306a\u304b\u3063\u305f\u3053\u3068\u81ea\u4f53\u3088\u308a\u3001\u4f55\u304c\u6b8b\u3063\u305f\u306e\u304b\u5206\u304b\u3089\u306a\u3044\u65b9\u304c\u56f0\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30ed\u30b0\u306b\u306f\u3001\u5c11\u306a\u304f\u3068\u3082\u6b21\u306e\u60c5\u5831\u3092\u6b8b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5b9f\u884c\u65e5\u6642<\/li>\n\n\n\n<li>\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc<\/li>\n\n\n\n<li>\u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0<\/li>\n\n\n\n<li>\u524a\u9664\u5bfe\u8c61\u3068\u3057\u3066\u62bd\u51fa\u3057\u305f\u6761\u4ef6<\/li>\n\n\n\n<li>\u524a\u9664\u3067\u304d\u306a\u304b\u3063\u305f\u30d1\u30b9<\/li>\n\n\n\n<li>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/li>\n<\/ul>\n\n\n\n<p>\u30ed\u30b0\u306f\u5f8c\u56de\u3057\u306b\u3055\u308c\u304c\u3061\u3067\u3059\u304c\u3001\u524a\u9664\u51e6\u7406\u3067\u306f\u307b\u307c\u672c\u4f53\u306e\u4e00\u90e8\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PowerShell\u3067\u306f\u524a\u9664\u524d\u306b\u4e00\u89a7\u3001\u4ef6\u6570\u3001\u30c9\u30e9\u30a4\u30e9\u30f3\u3092\u631f\u3080<\/h2>\n\n\n\n<p>PowerShell\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u6d88\u3059\u3060\u3051\u306a\u3089\u7c21\u5358\u3067\u3059\u3002\u3060\u304b\u3089\u3053\u305d\u3001\u5371\u306a\u3044\u5f62\u3067\u3082\u3059\u3050\u66f8\u3051\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#24292e;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#ffffff\"><span style=\"background:#2f363c;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#ffffff\">PowerShell<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#24292e;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>$target = $args&#91;0&#93;\n\nRemove-Item -Path $target -Recurse -Force<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-light\" style=\"background-color: #fff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #24292E\">$target <\/span><span style=\"color: #D73A49\">=<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #005CC5\">$args<\/span><span style=\"color: #24292E\">&#91;<\/span><span style=\"color: #005CC5\">0<\/span><span style=\"color: #24292E\">&#93;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #005CC5\">Remove-Item<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #D73A49\">-<\/span><span style=\"color: #24292E\">Path $target <\/span><span style=\"color: #D73A49\">-<\/span><span style=\"color: #24292E\">Recurse <\/span><span style=\"color: #D73A49\">-<\/span><span style=\"color: #24292E\">Force<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u77ed\u3044\u3067\u3059\u304c\u3001\u672c\u756a\u306e\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u3067\u306f\u4f7f\u3044\u305f\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u5bfe\u8c61\u30d1\u30b9\u306e\u78ba\u8a8d\u304c\u306a\u304f\u3001\u524a\u9664\u5019\u88dc\u306e\u4e00\u89a7\u3082\u51fa\u3055\u305a\u3001\u3044\u304d\u306a\u308a\u5b50\u30d5\u30a9\u30eb\u30c0\u307e\u3067\u6d88\u3057\u306b\u884c\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p><code>-Recurse<\/code> \u3084 <code>-Force<\/code> \u304c\u60aa\u3044\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u554f\u984c\u306f\u3001\u305d\u308c\u3089\u3092\u4f7f\u3046\u524d\u306b\u300c\u672c\u5f53\u306b\u305d\u306e\u5834\u6240\u3067\u3088\u3044\u304b\u300d\u300c\u4f55\u4ef6\u6d88\u3048\u308b\u306e\u304b\u300d\u3092\u78ba\u8a8d\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u4f4e\u9650\u306e\u5f62\u306b\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u5b9f\u969b\u306b\u4f7f\u3046\u5834\u5408\u306f\u3001\u30d1\u30b9\u3001\u65e5\u6570\u3001\u9664\u5916\u6761\u4ef6\u3092\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#24292e;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#ffffff\"><span style=\"background:#2f363c;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#ffffff\">PowerShell<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#24292e;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>$allowedRoot = \"\\\\server\\share\\archive\"\n$targetPath = \"\\\\server\\share\\archive\\old-files\"\n$days = 180\n\n$resolvedRoot = (Resolve-Path -LiteralPath $allowedRoot).Path\n$resolvedTarget = (Resolve-Path -LiteralPath $targetPath).Path\n\nif (-not $resolvedTarget.StartsWith($resolvedRoot, &#91;StringComparison&#93;::OrdinalIgnoreCase)) {\n    throw \"\u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u304c\u8a31\u53ef\u30eb\u30fc\u30c8\u5916\u3067\u3059: $resolvedTarget\"\n}\n\n$limitDate = (Get-Date).AddDays(-$days)\n\n$candidates = Get-ChildItem -LiteralPath $resolvedTarget -File -Recurse |\n    Where-Object {\n        $_.LastWriteTime -lt $limitDate -and\n        $_.FullName -notmatch \"\\\\(master|template|manual_backup)\\\\\"\n    }\n\nWrite-Host \"\u524a\u9664\u5019\u88dc: $($candidates.Count) \u4ef6\"\n$candidates | Select-Object FullName, LastWriteTime\n\n$candidates | ForEach-Object {\n    Remove-Item -LiteralPath $_.FullName -WhatIf\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-light\" style=\"background-color: #fff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #24292E\">$allowedRoot <\/span><span style=\"color: #D73A49\">=<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #032F62\">&quot;\\\\server\\share\\archive&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">$targetPath <\/span><span style=\"color: #D73A49\">=<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #032F62\">&quot;\\\\server\\share\\archive\\old-files&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">$days <\/span><span style=\"color: #D73A49\">=<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #005CC5\">180<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">$resolvedRoot <\/span><span style=\"color: #D73A49\">=<\/span><span style=\"color: #24292E\"> (<\/span><span style=\"color: #005CC5\">Resolve-Path<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #D73A49\">-<\/span><span style=\"color: #24292E\">LiteralPath $allowedRoot).Path<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">$resolvedTarget <\/span><span style=\"color: #D73A49\">=<\/span><span style=\"color: #24292E\"> (<\/span><span style=\"color: #005CC5\">Resolve-Path<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #D73A49\">-<\/span><span style=\"color: #24292E\">LiteralPath $targetPath).Path<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D73A49\">if<\/span><span style=\"color: #24292E\"> (<\/span><span style=\"color: #D73A49\">-not<\/span><span style=\"color: #24292E\"> $resolvedTarget.StartsWith($resolvedRoot<\/span><span style=\"color: #D73A49\">,<\/span><span style=\"color: #24292E\"> &#91;<\/span><span style=\"color: #D73A49\">StringComparison<\/span><span style=\"color: #24292E\">&#93;::OrdinalIgnoreCase)) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">    <\/span><span style=\"color: #D73A49\">throw<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #032F62\">&quot;\u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u304c\u8a31\u53ef\u30eb\u30fc\u30c8\u5916\u3067\u3059: <\/span><span style=\"color: #24292E\">$resolvedTarget<\/span><span style=\"color: #032F62\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">$limitDate <\/span><span style=\"color: #D73A49\">=<\/span><span style=\"color: #24292E\"> (<\/span><span style=\"color: #005CC5\">Get-Date<\/span><span style=\"color: #24292E\">).AddDays(<\/span><span style=\"color: #D73A49\">-<\/span><span style=\"color: #24292E\">$days)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">$candidates <\/span><span style=\"color: #D73A49\">=<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #005CC5\">Get-ChildItem<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #D73A49\">-<\/span><span style=\"color: #24292E\">LiteralPath $resolvedTarget <\/span><span style=\"color: #D73A49\">-<\/span><span style=\"color: #24292E\">File <\/span><span style=\"color: #D73A49\">-<\/span><span style=\"color: #24292E\">Recurse <\/span><span style=\"color: #D73A49\">|<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">    <\/span><span style=\"color: #005CC5\">Where-Object<\/span><span style=\"color: #24292E\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">        <\/span><span style=\"color: #005CC5\">$_<\/span><span style=\"color: #24292E\">.LastWriteTime <\/span><span style=\"color: #D73A49\">-lt<\/span><span style=\"color: #24292E\"> $limitDate <\/span><span style=\"color: #D73A49\">-and<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">        <\/span><span style=\"color: #005CC5\">$_<\/span><span style=\"color: #24292E\">.FullName <\/span><span style=\"color: #D73A49\">-notmatch<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #032F62\">&quot;\\\\(master|template|manual_backup)\\\\&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">    }<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #005CC5\">Write-Host<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #032F62\">&quot;\u524a\u9664\u5019\u88dc: <\/span><span style=\"color: #D73A49\">$<\/span><span style=\"color: #032F62\">(<\/span><span style=\"color: #24292E\">$candidates.Count<\/span><span style=\"color: #032F62\">)<\/span><span style=\"color: #032F62\"> \u4ef6&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">$candidates <\/span><span style=\"color: #D73A49\">|<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #005CC5\">Select-Object<\/span><span style=\"color: #24292E\"> FullName<\/span><span style=\"color: #D73A49\">,<\/span><span style=\"color: #24292E\"> LastWriteTime<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">$candidates <\/span><span style=\"color: #D73A49\">|<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #005CC5\">ForEach-Object<\/span><span style=\"color: #24292E\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">    <\/span><span style=\"color: #005CC5\">Remove-Item<\/span><span style=\"color: #24292E\"> <\/span><span style=\"color: #D73A49\">-<\/span><span style=\"color: #24292E\">LiteralPath <\/span><span style=\"color: #005CC5\">$_<\/span><span style=\"color: #24292E\">.FullName <\/span><span style=\"color: #D73A49\">-<\/span><span style=\"color: #24292E\">WhatIf<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u898b\u3066\u307b\u3057\u3044\u306e\u306f\u3001\u524a\u9664\u30b3\u30de\u30f3\u30c9\u305d\u306e\u3082\u306e\u3067\u306f\u306a\u304f\u9806\u756a\u3067\u3059\u3002<\/p>\n\n\n\n<p>1. \u8a31\u53ef\u30eb\u30fc\u30c8\u3092\u6c7a\u3081\u308b <br>2. \u5bfe\u8c61\u30d1\u30b9\u3092\u89e3\u6c7a\u3059\u308b <br>3. \u8a31\u53ef\u30eb\u30fc\u30c8\u914d\u4e0b\u304b\u78ba\u8a8d\u3059\u308b <br>4. \u524a\u9664\u5019\u88dc\u3092\u62bd\u51fa\u3059\u308b <br>5. \u4ef6\u6570\u3068\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b <br>6. \u6700\u521d\u306f <code>-WhatIf<\/code> \u3067\u78ba\u8a8d\u3059\u308b<\/p>\n\n\n\n<p><code>-WhatIf<\/code> \u306f\u3001\u5b9f\u884c\u3057\u305f\u5834\u5408\u306b\u4f55\u304c\u8d77\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u3092\u4ed8\u3051\u308c\u3070\u5b89\u5168\u306b\u306a\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u62bd\u51fa\u6761\u4ef6\u304c\u9593\u9055\u3063\u3066\u3044\u308c\u3070\u3001\u9593\u9055\u3063\u305f\u5019\u88dc\u304c\u8868\u793a\u3055\u308c\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u672c\u524a\u9664\u3078\u5207\u308a\u66ff\u3048\u308b\u524d\u306b\u3001\u524a\u9664\u5019\u88dc\u306e\u4e00\u89a7\u3092CSV\u306b\u51fa\u3059\u3001\u95a2\u4fc2\u8005\u306b\u78ba\u8a8d\u3059\u308b\u3001\u4ef6\u6570\u304c\u60f3\u5b9a\u3088\u308a\u591a\u3051\u308c\u3070\u6b62\u3081\u308b\u3001\u3068\u3044\u3063\u305f\u78ba\u8a8d\u3092\u631f\u3093\u3060\u65b9\u304c\u5b89\u5168\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u3044\u304d\u306a\u308a\u524a\u9664\u305b\u305a\u3001\u9000\u907f\u3068\u30ed\u30b0\u3067\u623b\u308c\u308b\u72b6\u614b\u3092\u4f5c\u308b<\/h2>\n\n\n\n<p>\u30ec\u30ac\u30b7\u30fc\u74b0\u5883\u3067\u306f\u3001\u5b8c\u5168\u524a\u9664\u3088\u308a\u3082\u9000\u907f\u3092\u631f\u3093\u3060\u65b9\u304c\u73fe\u5b9f\u7684\u306a\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001\u6700\u521d\u306e\u904b\u7528\u3067\u306f\u524a\u9664\u305b\u305a\u3001\u9000\u907f\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u307e\u3059\u300230\u65e5\u308460\u65e5\u7f6e\u3044\u3066\u3001\u554f\u3044\u5408\u308f\u305b\u304c\u306a\u3051\u308c\u3070\u524a\u9664\u3059\u308b\u3002\u5bb9\u91cf\u524a\u6e1b\u3092\u6025\u3044\u3067\u3044\u306a\u3044\u306a\u3089\u3001\u3053\u306e\u65b9\u304c\u95a2\u4fc2\u8005\u306e\u5408\u610f\u3092\u53d6\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u524a\u9664\u5bfe\u8c61\u306e\u4e00\u89a7\u3092\u898b\u305b\u305f\u3068\u304d\u306b\u3001\u300c\u305d\u308c\u306f\u6614\u306e\u51e6\u7406\u3067\u4f7f\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u300d\u3068\u8a00\u308f\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3053\u3067\u521d\u3081\u3066\u5206\u304b\u308b\u904b\u7528\u3082\u3042\u308a\u307e\u3059\u3002\u30ec\u30ac\u30b7\u30fc\u74b0\u5883\u3067\u306f\u3001\u305d\u308c\u3092\u7e54\u308a\u8fbc\u3093\u3067\u9032\u3081\u305f\u65b9\u304c\u73fe\u5b9f\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30ed\u30b0\u3082\u540c\u3058\u3067\u3059\u3002\u524a\u9664\u3057\u305f\u5f8c\u306b\u300c\u4f55\u3092\u6d88\u3057\u305f\u304b\u5206\u304b\u3089\u306a\u3044\u300d\u3068\u306a\u308b\u3068\u3001\u5fa9\u65e7\u3082\u8aac\u660e\u3082\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u3002\u524a\u9664\u307e\u305f\u306f\u9000\u907f\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3001\u5931\u6557\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u3001\u5b9f\u884c\u65e5\u6642\u306f\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u81ea\u52d5\u5316\u306e\u76ee\u7684\u306f\u3001\u4eba\u304c\u4f55\u3082\u898b\u306a\u304f\u3066\u3088\u3044\u72b6\u614b\u306b\u3059\u308b\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u6bce\u56de\u306e\u624b\u4f5c\u696d\u3092\u6e1b\u3089\u3057\u3064\u3064\u3001\u554f\u984c\u304c\u8d77\u304d\u305f\u3068\u304d\u306b\u8ffd\u3048\u308b\u72b6\u614b\u3092\u4f5c\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9a\u671f\u5b9f\u884c\u306b\u3059\u308b\u524d\u306b\u3001\u5c0f\u3055\u304f\u8a66\u3057\u3066\u304b\u3089\u5e83\u3052\u308b<\/h2>\n\n\n\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3067\u304d\u305f\u3089\u3001\u3059\u3050\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u306b\u767b\u9332\u3057\u305f\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u306f\u5c11\u3057\u5f85\u3063\u305f\u65b9\u304c\u3044\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u521d\u306f\u30c6\u30b9\u30c8\u30d5\u30a9\u30eb\u30c0\u3067\u52d5\u304b\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u672c\u756a\u3068\u540c\u3058\u69cb\u6210\u306e\u4e00\u90e8\u30d5\u30a9\u30eb\u30c0\u3067 <code>-WhatIf<\/code> \u3092\u4f7f\u3044\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u9000\u907f\u3060\u3051\u3092\u5b9f\u884c\u3057\u3001\u6700\u5f8c\u306b\u672c\u524a\u9664\u3078\u9032\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3042\u308f\u305b\u3066\u3001\u505c\u6b62\u6761\u4ef6\u3082\u6c7a\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u524a\u9664\u5019\u88dc\u304c\u60f3\u5b9a\u4ef6\u6570\u3092\u8d85\u3048\u305f\u3089\u6b62\u3081\u308b<\/li>\n\n\n\n<li>\u8a31\u53ef\u30eb\u30fc\u30c8\u5916\u306e\u30d1\u30b9\u306a\u3089\u6b62\u3081\u308b<\/li>\n\n\n\n<li>\u30ed\u30b0\u51fa\u529b\u306b\u5931\u6557\u3057\u305f\u3089\u672c\u524a\u9664\u3057\u306a\u3044<\/li>\n\n\n\n<li>\u521d\u56de\u306f\u624b\u52d5\u78ba\u8a8d\u306a\u3057\u3067\u5b9a\u671f\u5b9f\u884c\u3057\u306a\u3044<\/li>\n<\/ul>\n\n\n\n<p>\u524a\u9664\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u52d5\u3044\u305f\u3053\u3068\u3088\u308a\u3001\u6b62\u307e\u308b\u3079\u304d\u3068\u3053\u308d\u3067\u6b62\u307e\u308b\u3053\u3068\u306e\u65b9\u304c\u5927\u4e8b\u3067\u3059\u3002\u7279\u306b\u30ec\u30ac\u30b7\u30fc\u74b0\u5883\u3067\u306f\u3001\u60f3\u5b9a\u5916\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u6df7\u3056\u3063\u3066\u3044\u308b\u524d\u63d0\u3067\u7d44\u3093\u3060\u65b9\u304c\u5b89\u5168\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u30ec\u30ac\u30b7\u30fc\u74b0\u5883\u306e\u4e0d\u8981\u30d5\u30a1\u30a4\u30eb\u524a\u9664\u3092\u81ea\u52d5\u5316\u3059\u308b\u3068\u304d\u306f\u3001PowerShell\u306e\u66f8\u304d\u65b9\u3088\u308a\u5148\u306b\u3001\u524a\u9664\u3057\u3066\u3088\u3044\u6761\u4ef6\u3092\u6c7a\u3081\u307e\u3059\u3002\u53e4\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u4e0d\u8981\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u53e4\u3044\u304b\u3089\u3053\u305d\u3001\u6614\u306e\u904b\u7528\u3084\u4f8b\u5916\u3092\u62b1\u3048\u3066\u3044\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u62bc\u3055\u3048\u3066\u304a\u304d\u305f\u3044\u306e\u306f\u3001\u6b21\u306e\u70b9\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u66f4\u65b0\u65e5\u6642\u3060\u3051\u3067\u524a\u9664\u5bfe\u8c61\u3092\u6c7a\u3081\u306a\u3044<\/li>\n\n\n\n<li>\u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u306f\u8a31\u53ef\u30eb\u30fc\u30c8\u914d\u4e0b\u306b\u9650\u5b9a\u3059\u308b<\/li>\n\n\n\n<li>Windows\u3067\u306fUNC\u30d1\u30b9\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u3001\u6a29\u9650\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n\n\n\n<li>\u524a\u9664\u524d\u306b\u4e00\u89a7\u3001\u4ef6\u6570\u3001\u30ed\u30b0\u3092\u6b8b\u3059<\/li>\n\n\n\n<li>\u6700\u521d\u306f <code>-WhatIf<\/code> \u3084\u9000\u907f\u3067\u691c\u8a3c\u3059\u308b<\/li>\n\n\n\n<li>\u5b9a\u671f\u5b9f\u884c\u306f\u5c0f\u3055\u304f\u8a66\u3057\u3066\u304b\u3089\u5e83\u3052\u308b<\/li>\n<\/ul>\n\n\n\n<p>\u524a\u9664\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u77ed\u304f\u66f8\u3051\u308b\u3053\u3068\u3088\u308a\u3001\u8aac\u660e\u3067\u304d\u308b\u3053\u3068\u3068\u6b62\u3081\u3089\u308c\u308b\u3053\u3068\u304c\u5927\u5207\u3067\u3059\u3002\u307e\u305a\u306f\u5bfe\u8c61\u6761\u4ef6\u3001\u9664\u5916\u6761\u4ef6\u3001\u9000\u907f\u671f\u9593\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u3092\u6574\u7406\u3057\u3066\u304b\u3089\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u5316\u3078\u9032\u3081\u308b\u306e\u304c\u5b89\u5168\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53e4\u3044Windows\u30b5\u30fc\u30d0\u30fc\u3084\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u3092\u6574\u7406\u3057\u3066\u3044\u308b\u3068\u3001\u300c\u3053\u306e\u3042\u305f\u308a\u306e\u53e4\u3044\u30d5\u30a1\u30a4\u30eb\u3001\u3082\u3046\u6d88\u3057\u3066\u3082\u3088\u3055\u305d\u3046\u3067\u3059\u3088\u306d\u300d\u3068\u3044\u3046\u8a71\u304c\u51fa\u3066\u304d\u307e\u3059\u3002\u5bb9\u91cf\u3082\u5727\u8feb\u3057\u3066\u3044\u308b\u3002\u624b\u4f5c\u696d\u3067\u898b\u308b\u306b\u306f\u6570\u304c\u591a\u3044\u3002\u306a\u3089PowerShell\u3067\u307e\u3068\u3081\u3066\u6d88\u305d\u3046\u3001\u3068\u306a\u308b\u6d41\u308c\u306f\u81ea&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[117],"tags":[128,129,130,131,132],"class_list":["post-1559","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-legacy","tag-powershell","tag-windows","tag-130","tag-131","tag-132"],"_links":{"self":[{"href":"https:\/\/blog.nexive.tech\/index.php?rest_route=\/wp\/v2\/posts\/1559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nexive.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nexive.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nexive.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nexive.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1559"}],"version-history":[{"count":3,"href":"https:\/\/blog.nexive.tech\/index.php?rest_route=\/wp\/v2\/posts\/1559\/revisions"}],"predecessor-version":[{"id":1576,"href":"https:\/\/blog.nexive.tech\/index.php?rest_route=\/wp\/v2\/posts\/1559\/revisions\/1576"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.nexive.tech\/index.php?rest_route=\/wp\/v2\/media\/1565"}],"wp:attachment":[{"href":"https:\/\/blog.nexive.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nexive.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nexive.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}