{"id":739,"date":"2010-07-27T07:05:47","date_gmt":"2010-07-27T12:05:47","guid":{"rendered":"http:\/\/jdhitsolutions.com\/blog\/?p=739"},"modified":"2015-05-18T14:31:24","modified_gmt":"2015-05-18T18:31:24","slug":"wbadmin-demo","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/","title":{"rendered":"WBADMIN Demo"},"content":{"rendered":"<p>Earlier this year I wrote an article for REDMOND Magazine about the new <a href=\"http:\/\/redmondmag.com\/Articles\/2010\/04\/01\/Backup-Basics-in-Windows-Server-2008-R2.aspx?Page=1\">backup features in Windows Server 2008 R2<\/a>. I'm not going to re-hash the article here except to say it includes some sample scripts on using the WBADMIN command line tool. One of the scripts is an old-school batch file.<\/p>\n<p>The batch file included code to create a directory that included a time stamp, like \\\\mycompany-dc01\\backup\\RESEARCHDC\\12152009_132532 where the last portion is the month, day, year, hour, minute and second. My original code parsed out these values from the %TIME% variable.<\/p>\n<pre class=\"lang:batch decode:true \">set m=%date:~4,2%\r\nset d=%date:~7,2%\r\nset y=%date:~10,4%\r\nset h=%time:~0,2%\r\nset min=%time:~3,2%\r\nset sec=%time:~6,2%<\/pre>\n<p>Unfortunately, I forgot to take into account situations where the time mght not have two digits like 1:00AM. In those situations the code tries to create a folder like \\\\mycompany-dc01\\backup\\RESEARCHDC\\12152009_ 10000 which fails because of the space. To correct this I needed to add a line to check for the space in the variable, %h% and if found, define a new value with a leading 0.<\/p>\n<pre class=\"lang:batch decode:true\">rem handle blanks in hour\r\nif \/i %h:~0,1%$==$ set h=0%h:~1,1%<\/pre>\n<p>This sort of thing is much, much easier in Windows PowerShell, by the way. But regardless, I now have an updated batch file.<br \/>\n[cc lang=\"DOS\"]<\/p>\n<pre class=\"lang:batch decode:true \">@echo off\r\n::Demo-Backup.bat\r\n::demonstration script using WBADMIN.EXE on a Windows Server 2008 R2 Server\r\n::http:\/\/redmondmag.com\/Articles\/2010\/04\/01\/Backup-Basics-in-Windows-Server-2008-R2.aspx?Page=1\r\n::Revised 9:58 AM 7\/26\/2010\r\n\r\nset backupshare=\\\\File01\\backups\r\n\r\nrem files and folders to include\r\nset include=c:\\scripts,c:\\work\r\n\r\nset m=%date:~4,2%\r\nset d=%date:~7,2%\r\nset y=%date:~10,4%\r\nset h=%time:~0,2%\r\nset min=%time:~3,2%\r\nset sec=%time:~6,2%\r\n\r\nrem handle blanks in hour\r\nif \/i %h:~0,1%$==$ set h=0%h:~1,1%\r\n\r\nrem defining a new folder like \\\\mycompany-dc01\\backup\\RESEARCHDC\\12152009_132532\r\n\r\nset newfolder=%backupshare%\\%computername%\\%m%%d%%y%_%h%%min%%sec%\r\n\r\necho Creating %newfolder%\r\n\r\nmkdir %newfolder%\r\n\r\nrem run the backup\r\necho Backing up %include% to %newfolder%\r\n\r\nwbadmin start backup -backuptarget:%newfolder% -include:%include% -quiet\r\n\r\nrem Clear variables\r\nset backupshare=\r\nset include=\r\nset m=\r\nset d=\r\nset y=\r\nset h=\r\nset min=\r\nset sec=\r\nset newfolder=\r\n\r\n::EOF<\/pre>\n<p>You can download the batch file <a href=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2010\/07\/demo-backup.txt\" target=\"_blank\">here<\/a>. Rename it to .bat.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Earlier this year I wrote an article for REDMOND Magazine about the new backup features in Windows Server 2008 R2. I&#8217;m not going to re-hash the article here except to say it includes some sample scripts on using the WBADMIN command line tool. One of the scripts is an old-school batch file. The batch file&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72,61,8,135],"tags":[201,209,556,67,210,116],"class_list":["post-739","post","type-post","status-publish","format-standard","hentry","category-commandline","category-miscellaneous","category-scripting","category-windows-server","tag-backup","tag-batch","tag-commandline","tag-redmond","tag-wbadmin","tag-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WBADMIN Demo &#8226; The Lonely Administrator<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WBADMIN Demo &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"Earlier this year I wrote an article for REDMOND Magazine about the new backup features in Windows Server 2008 R2. I&#039;m not going to re-hash the article here except to say it includes some sample scripts on using the WBADMIN command line tool. One of the scripts is an old-school batch file. The batch file...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2010-07-27T12:05:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-05-18T18:31:24+00:00\" \/>\n<meta name=\"author\" content=\"Jeffery Hicks\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:site\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeffery Hicks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/739\\\/wbadmin-demo\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/739\\\/wbadmin-demo\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"WBADMIN Demo\",\"datePublished\":\"2010-07-27T12:05:47+00:00\",\"dateModified\":\"2015-05-18T18:31:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/739\\\/wbadmin-demo\\\/\"},\"wordCount\":199,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"keywords\":[\"Backup\",\"Batch\",\"CommandLine\",\"REDMOND\",\"WBAdmin\",\"Windows\"],\"articleSection\":[\"CommandLine\",\"Miscellaneous\",\"Scripting\",\"Windows Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/739\\\/wbadmin-demo\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/739\\\/wbadmin-demo\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/739\\\/wbadmin-demo\\\/\",\"name\":\"WBADMIN Demo &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"datePublished\":\"2010-07-27T12:05:47+00:00\",\"dateModified\":\"2015-05-18T18:31:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/739\\\/wbadmin-demo\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/739\\\/wbadmin-demo\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/739\\\/wbadmin-demo\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CommandLine\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/commandline\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WBADMIN Demo\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/\",\"name\":\"The Lonely Administrator\",\"description\":\"Practical Advice for the Automating IT Pro\",\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\",\"name\":\"Jeffery Hicks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"caption\":\"Jeffery Hicks\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WBADMIN Demo &#8226; The Lonely Administrator","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/","og_locale":"en_US","og_type":"article","og_title":"WBADMIN Demo &#8226; The Lonely Administrator","og_description":"Earlier this year I wrote an article for REDMOND Magazine about the new backup features in Windows Server 2008 R2. I'm not going to re-hash the article here except to say it includes some sample scripts on using the WBADMIN command line tool. One of the scripts is an old-school batch file. The batch file...","og_url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/","og_site_name":"The Lonely Administrator","article_published_time":"2010-07-27T12:05:47+00:00","article_modified_time":"2015-05-18T18:31:24+00:00","author":"Jeffery Hicks","twitter_card":"summary_large_image","twitter_creator":"@JeffHicks","twitter_site":"@JeffHicks","twitter_misc":{"Written by":"Jeffery Hicks","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"WBADMIN Demo","datePublished":"2010-07-27T12:05:47+00:00","dateModified":"2015-05-18T18:31:24+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/"},"wordCount":199,"commentCount":1,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"keywords":["Backup","Batch","CommandLine","REDMOND","WBAdmin","Windows"],"articleSection":["CommandLine","Miscellaneous","Scripting","Windows Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/","url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/","name":"WBADMIN Demo &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"datePublished":"2010-07-27T12:05:47+00:00","dateModified":"2015-05-18T18:31:24+00:00","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/scripting\/739\/wbadmin-demo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"CommandLine","item":"https:\/\/jdhitsolutions.com\/blog\/category\/commandline\/"},{"@type":"ListItem","position":2,"name":"WBADMIN Demo"}]},{"@type":"WebSite","@id":"https:\/\/jdhitsolutions.com\/blog\/#website","url":"https:\/\/jdhitsolutions.com\/blog\/","name":"The Lonely Administrator","description":"Practical Advice for the Automating IT Pro","publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jdhitsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9","name":"Jeffery Hicks","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","caption":"Jeffery Hicks"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":573,"url":"https:\/\/jdhitsolutions.com\/blog\/commandline\/573\/power-up-your-r2-server-core-shell\/","url_meta":{"origin":739,"position":0},"title":"Power Up your R2 Server Core Shell","author":"Jeffery Hicks","date":"January 27, 2010","format":false,"excerpt":"I've recently started using the Server Core option for my test servers, especially for things like domain controllers. I can get by with smaller disk and memory requirements. Once you get the server configured, there's very little you have to do that actually requires logging on to the server. Which\u2026","rel":"","context":"In &quot;CommandLine&quot;","block_context":{"text":"CommandLine","link":"https:\/\/jdhitsolutions.com\/blog\/category\/commandline\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":525,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/525\/join-me-at-techmentor-orlando\/","url_meta":{"origin":739,"position":1},"title":"Join Me at Techmentor Orlando","author":"Jeffery Hicks","date":"December 7, 2009","format":false,"excerpt":"I will be presenting several sessions at Techmentor in Orlando, FL March 8-12, 2010. I will be doing the following sessions: Take Back your File Server (learn about Server 2008 file management features) Top 10 Non-PowerShell CLI Tools you MUST Know (learn about other command line tools that can get\u2026","rel":"","context":"In &quot;CommandLine&quot;","block_context":{"text":"CommandLine","link":"https:\/\/jdhitsolutions.com\/blog\/category\/commandline\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1708,"url":"https:\/\/jdhitsolutions.com\/blog\/commandline\/1708\/turning-cli-tools-into-powershell-tools-deep-dive-demos\/","url_meta":{"origin":739,"position":2},"title":"Turning CLI Tools into PowerShell Tools Deep Dive Demos","author":"Jeffery Hicks","date":"October 24, 2011","format":false,"excerpt":"Last week I did a presentation at the PowerShell Deep Dive in Frankfurt about turning command line tools into PowerShell tools. A video recording should be posted later. But in the meantime, here is a copy of my slide deck, in PDF and a zip file with my demos and\u2026","rel":"","context":"In &quot;CommandLine&quot;","block_context":{"text":"CommandLine","link":"https:\/\/jdhitsolutions.com\/blog\/category\/commandline\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/10\/nbtstat-n-300x158.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":580,"url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/580\/techmentor-orlando-2010\/","url_meta":{"origin":739,"position":3},"title":"TechMentor Orlando 2010","author":"Jeffery Hicks","date":"March 3, 2010","format":false,"excerpt":"I'm busy polishing my presentations and demos for next week's Techmentor conference in sunny Orlando, Fl. I've been presenting at Techmentor for a number of years now and it is a great show for administrators searching for answers to the problems and challenges they face today. You get intimate sessions\u2026","rel":"","context":"In &quot;Books&quot;","block_context":{"text":"Books","link":"https:\/\/jdhitsolutions.com\/blog\/category\/books\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7242,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7242\/powershell-remoting-profiles-with-windows-terminal\/","url_meta":{"origin":739,"position":4},"title":"PowerShell Remoting Profiles with Windows Terminal","author":"Jeffery Hicks","date":"February 10, 2020","format":false,"excerpt":"I have jumped in the deep end and fully committed to Windows Terminal as my default PowerShell environment. I love having one interface with tabs for different terminal profiles. Windows Terminal makes it easy for me to have tabs open to PowerShell 7, Windows PowerShell, an Ubuntu instance or even\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/02\/image_thumb-8.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/02\/image_thumb-8.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/02\/image_thumb-8.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2020\/02\/image_thumb-8.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":20,"url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/20\/cli-101-for\/","url_meta":{"origin":739,"position":5},"title":"CLI 101 &#8211; FOR","author":"Jeffery Hicks","date":"February 10, 2006","format":false,"excerpt":"I've long maintained that the FOR command is one of most basic commands every administrator should know. I have a short tutorial you can download at http:\/\/www.jdhitsolutions.com\/tutorials.htmHere are some other examples on using the FOR command. Let's say you have some command line utility that will take a computer name\u2026","rel":"","context":"In &quot;Scripting&quot;","block_context":{"text":"Scripting","link":"https:\/\/jdhitsolutions.com\/blog\/category\/scripting\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=739"}],"version-history":[{"count":0,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/739\/revisions"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}