{"id":296,"date":"2014-04-15T18:36:45","date_gmt":"2014-04-15T18:36:45","guid":{"rendered":"http:\/\/www.itcrumbs.com\/?p=296"},"modified":"2019-02-07T04:39:45","modified_gmt":"2019-02-07T04:39:45","slug":"windows-powershell-show-command","status":"publish","type":"post","link":"http:\/\/www.itcrumbs.com\/?p=296","title":{"rendered":"Windows PowerShell Show-Command"},"content":{"rendered":"<h5>&#160;<\/h5>\n<p>Show-command &lt;cmdlet&gt; can be used until we get used to writing cmdlets easily by providing GUI to enter input parameters for the cmdlet and then let you copy it. For example, check the install-addsforest cmdlet created using show-command install-addsforest.<\/p>\n<p><a href=\"http:\/\/blogs.technet.com\/cfs-file.ashx\/__key\/communityserver-blogs-components-weblogfiles\/00-00-01-00-16-metablogapi\/clip_5F00_image001_5F00_3B0E4FC9.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"clip_image001\" border=\"0\" alt=\"clip_image001\" src=\"http:\/\/blogs.technet.com\/cfs-file.ashx\/__key\/communityserver-blogs-components-weblogfiles\/00-00-01-00-16-metablogapi\/clip_5F00_image001_5F00_thumb_5F00_16108F50.jpg\" width=\"574\" height=\"325\" \/><\/a><\/p>\n<p>After I enter all input parameters, I have below cmdlet ready for execution:<\/p>\n<p>Install-ADDSForest -DomainName Contoso.Local -CreateDnsDelegation -DatabasePath D:\\ADData\\NTDS -DnsDelegationCredential .\\Administrator -DomainMode Win2003 -DomainNetbiosName Contoso12 -ForestMode Win2003 -InstallDns -LogPath D:\\ADData\\Logs -NoRebootOnCompletion -SysvolPath D:\\SYSVOL<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#160; Show-command &lt;cmdlet&gt; can be used until we get used to writing cmdlets easily by providing GUI to enter input parameters for the cmdlet and then let you copy it. For example, check the install-addsforest cmdlet created using show-command install-addsforest. After I enter all input parameters, I have below cmdlet ready for execution: Install-ADDSForest -DomainName [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=296"}],"version-history":[{"count":1,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions"}],"predecessor-version":[{"id":297,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions\/297"}],"wp:attachment":[{"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}