[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-572386-105":53,"doc-detail-572386-en":127},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","windows-powershell-cheatsheet","Windows PowerShell Cheatsheet","","Windows PowerShell Cheatsheet provides compact command references and working examples for Windows PowerShell. It explains how PowerShell evolved from cmd and DOS batch, highlights case-insensitive behavior, and introduces the object pipeline concept. The notes cover core cmdlets, PowerShell drives, pipelines, aliases, filtering and iteration patterns, plus string, comparison, switch, classes, random numbers, and error handling. It also guides users through PowerShell ISE features and Windows registry search and traversal workflows.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/windows-powershell-cheatsheet/572386/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/windows-powershell-cheatsheet/572386.png","ImageObject",442,249,{"name":88,"@type":89},"Aran","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-19","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",7,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"What is the main purpose of this PowerShell cheatsheet?","Question",{"text":109,"@type":110},"It lists important PowerShell (Ps) commands and discusses the object pipeline with example snippets that can be copied and executed.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"How does this document distinguish PowerShell behavior from Linux/Unix?",{"text":114,"@type":110},"It stresses that Windows PowerShell is completely case-insensitive, unlike Linux/Unix environments.",{"name":116,"@type":107,"acceptedAnswer":117},"What additional capabilities does PowerShell ISE provide compared with the pure PowerShell console?",{"text":118,"@type":110},"ISE offers pop-up help with methods and properties, and it executes the PowerShell ISE profile on startup to support learners and workflow.","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},572386,1792014301,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":136,"language":137,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":138,"faqs":139,"seo_title":140,"seo_description":61,"update_tm":141,"read_time":47},137455076865,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Windows PowerShell Cheatsheet.  \nWindoWs PoWershell is the successor of the WindoWs cmd language, which itself has its roots in the ms-dos Bat language. All recent versions of Windows offer Powershell (Ps). Ps may be seen as microsoft's answer to the shells common in Unix/linux (such as csh, BAsh, etc.) . its name implies that microsoft sees the shell as powerful, which it arguably is.  \nin these notes some important Ps commands are listed and Powershell's most notable feature, the object pipeline, is discussed. From the outset it is important to note that, in contrast to linux/Unix, Windows PowerShell is completely case-insensitive.  \nThe monospace text snippets below are valid Ps and may be copied, pasted, and executed in a Powershell-or a Powershell_ise-session. This is why the notes form a \"cheatsheet\". As is common for cheatsheets, there is hardly any explanation, the examples speak for themselves. it must be stressed here that many of the basic Ps commands are not at all orthogonal, so that many variant pipelines can lead to the same effect. often an example is one out of a multitude of possibilities accomplishing the same task.  \nThe last two sections are about search in and traversal ofthe Windows registry by means of Powershell.  \nContents  \n1. Unrelated to Ps  \n2. About ise  \n3. cmdlets  \n4. Psdrives  \n5. Pipelines  \n6. Useful aliases  \n7. example of a pipelined command  \n8. more examples of pipelines  \n9. examples Where-object  \n10. examples Foreach-object  \n[11.](11. select-string)[ select-string](11. select-string)  \n12. create an item  \n13. rename an item  \n14. datatypes  \n15. strings  \n16. The formatting of strings  \n17. comparison  \n18. switch  \n19. Builtin classes  \n20. random numbers  \n21. errors  \n22. Functions  \n23. scripts  \n24. Traversing the Windows registry  \n25. registry lookup  \n1. Unrelated to PS  \nA few lesser known windows features and tricks, not directly related to PowerShell:  \n1. in the Windows (File) explorer address bar enter cmd, powershell .exe, or powershell_ise and a corresponding window opens atthe current directory (aka folder). This is most likely the shortest route to opening a cmd, Ps, or Ps_ise session from a given directory.  \n2. After hitting the start or search button in the windows taskbar type any of: Control Panel (in dutch: Configuratiescherm), Regedit, PowerShell, or cmd. This opens a window with the name of the chosen program (Control Panel, Regedit, etc) . click on it once and the program chosen opens.  \n3. Adaptation of user environment variables: Control Panel/User Accounts/User Accounts/. Then left panel: change my environment variables. (choose in Control Panel: view by category) .  \n4. Adaptation of system environment variables. choose in Control Panel: view by category. Then Control Panel/System and  \nSecurity/System/Advanced System Settings. Button: Environment Variables. set in panel system variable. change is persistent, a change (see below) within Powershell is volatile.  \n5. in a cmd session: setx sets persistent user environment variable. To unset: go to HKCU/environment (in the registry) or to Control Panel/User Accounts.  \nTo contents  \n2. About ISE  \nISE stands for Integrated Scripting Environment. ISE—a standard part of Windows 10—is an editing and execution environment for PowerShell.  \nAn important advantage of the use of ise over pure Powershell, is that ise offers pop-up help: when the user is typing a command line, ise often pops up a relevant list of methods and properties. By double clicking on an entry in the pop-up list, the entry is appended to the command line.  \nA few noticeable points:  \n1. Upon the start of ise, the [script](script Microsoft.PowerShellISE_profile.ps1)[ Microsoft.PowerShellISE_profile.ps1](script Microsoft.PowerShellISE_profile.ps1) is executed.  \n2. To protect ordinary users against malignant Ps scripts, the execution of Powershell scripts (including the ise profile) must be  \nallowed explicitly. This is done once and for all ","cbCailh0JUwKpMLG","https://ap.wps.com/l/cbCailh0JUwKpMLG","pdf",283532,13,"English","# Contents\n## Unrelated to Ps\n## About ISE\n## Cmdlets\n## Psdrives\n## Pipelines\n## Useful aliases\n## Example of a pipelined command\n## More examples of pipelines\n## Examples Where-Object\n## Examples Foreach-Object\n## Select-String\n## Traversing the Windows registry","[{\"question\":\"What is the main purpose of this PowerShell cheatsheet?\",\"answer\":\"It lists important PowerShell (Ps) commands and discusses the object pipeline with example snippets that can be copied and executed.\"},{\"question\":\"How does this document distinguish PowerShell behavior from Linux/Unix?\",\"answer\":\"It stresses that Windows PowerShell is completely case-insensitive, unlike Linux/Unix environments.\"},{\"question\":\"What additional capabilities does PowerShell ISE provide compared with the pure PowerShell console?\",\"answer\":\"ISE offers pop-up help with methods and properties, and it executes the PowerShell ISE profile on startup to support learners and workflow.\"}]","Windows PowerShell Cheatsheet | PDF",1791927102]