Home
%3CLINGO-SUB%20id%3D%22lingo-sub-300935%22%20slang%3D%22en-US%22%3EPowerShell%20Basics%3A%20Finding%20Your%20Way%20in%20the%20PowerShell%20Console%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-300935%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20me%2C%20one%20of%20the%20most%20important%20features%20of%20PowerShell%20is%20the%20ability%20to%20find%20all%20the%20answers%20you%20need%20in%20the%20shell.%20From%20the%20early%20days%2C%20PowerShell%20has%20included%20commands%20for%20finding%20cmdlets%20and%20functions%20within%20the%20shell%20including%3CCODE%3EGet-Command%3C%2FCODE%3E.%20%3CCODE%3EGet-Command%3C%2FCODE%3E%20is%20one%20of%20the%20three%20most%20well-known%20PowerShell%20commands%2C%20%3CCODE%3EGet-Help%3C%2FCODE%3E%20and%20%3CCODE%3EGet-Member%3C%2FCODE%3E%20being%20the%20other%20two.%20This%20post%20will%20be%20an%20exploration%20of%20using%20%3CCODE%3EGet-Command%3C%2FCODE%3E%20and%20%3CCODE%3EGet-Help%3C%2FCODE%3E.%20You%20can%20get%20information%20on%20Get-Member%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FITOps-Talk-Blog%2FPowerShell-Basics-Getting-More-Information-with-Get-Member%2Fba-p%2F285407%3FWT.mc_id%3Dblog-techcommunity-mibender%22%20target%3D%22_blank%22%3Ein%20this%20post%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3ELet's%20start%20with%20%3CCODE%3EGet-Command%3C%2FCODE%3E.%20Let's%20say%20you%20want%20to%20see%20%3CEM%3Eeverything%3C%2FEM%3E%20installed%20in%20your%20PowerShell%20console.%20That's%20pretty%20easy.%20Type%20%3CCODE%3EGet-Command%3C%2FCODE%3E%20and%20it%20produces%20a%20list%20of%20all%20the%20commands%20installed%20(functions%2C%20aliases%2C%20cmdlets).%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3E%3CSPAN%20class%3D%22hljs-selector-tag%22%3EPS%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EC%3C%2FSPAN%3E%3A%5C%3CSPAN%20class%3D%22hljs-selector-tag%22%3EUsers%3C%2FSPAN%3E%5C%3CSPAN%20class%3D%22hljs-selector-tag%22%3Emibender%3C%2FSPAN%3E%26gt%3B%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3Eget-command%3C%2FSPAN%3E%0A%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3ECommandType%3C%2FSPAN%3E%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EName%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EVersion%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ESource%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3E-----------%3C%2FSPAN%3E%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E----%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E-------%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E------%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAdd-AdlAnalyticsDataSource%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeAnalytics%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAdd-AdlAnalyticsFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeAnalytics%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAdd-AdlStoreFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeStore%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAdd-AdlStoreItemContent%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeStore%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAdd-AdlStoreTrustedIdProvider%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeStore%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAdd-AdlStoreVirtualNetworkRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeStore%3C%2FSPAN%3E%0A...%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThis%20displays%20a%20few%20things%20of%20importance%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ECommandType%20is%20the%20type%20of%20command.%20These%20include%20alias%2C%20function%2C%20and%20cmdlet%20commands%20currently%20installed.%3C%2FLI%3E%0A%3CLI%3EName%20is%20self-explanatory%20and%20is%20what%20you%20invoke%20to%20run%20the%20command.%3C%2FLI%3E%0A%3CLI%3EVersion%20is%20the%20current%20version%20of%20the%20command%20you%20have%20installed.%3C%2FLI%3E%0A%3CLI%3ESource%20is%20the%20module%20that%20includes%20the%20command.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ELet's%20say%20you%20want%20to%20find%20just%20functions%20in%20the%20console.%20To%20do%20this%2C%20you%20simply%20add%20the%20%3CCODE%3E-commandtype%3C%2FCODE%3E%20parameter%20with%20a%20value%20of%20%3CCODE%3Efunction%3C%2FCODE%3E%20and%20it%20produces%20a%20list%20of%20functions%20only.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3EPS%20C%3A%5CUsers%5Cmibender%26gt%3B%20get-command%20-CommandType%20%3CSPAN%20class%3D%22hljs-keyword%22%3EFunction%3C%2FSPAN%3E%0A%0A%3CSPAN%20class%3D%22hljs-title%22%3ECommandType%3C%2FSPAN%3E%20%20%20%20%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Version%20%20%20%20Source%0A%3CSPAN%20class%3D%22hljs-comment%22%3E-----------%20%20%20%20%20----%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-------%20%20%20%20------%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-keyword%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-title%22%3EA%3A%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-keyword%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-title%22%3EAdd-BCDataCacheExtension%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%201.0.0.0%20%20%20%20BranchCache%0A%3CSPAN%20class%3D%22hljs-keyword%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-title%22%3EAdd-BitLockerKeyProtector%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%201.0.0.0%20%20%20%20BitLocker%0A%3CSPAN%20class%3D%22hljs-keyword%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-title%22%3EAdd-DnsClientNrptRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%201.0.0.0%20%20%20%20DnsClient%0A%3CSPAN%20class%3D%22hljs-keyword%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-title%22%3EAddDscResourceProperty%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200.0%20%20%20%20%20%20%20%20PSDesiredStateConfiguration%0A%3CSPAN%20class%3D%22hljs-keyword%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-title%22%3EAddDscResourcePropertyFromMetadata%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200.0%20%20%20%20%20%20%20%20PSDesiredStateConfiguration%0A%3CSPAN%20class%3D%22hljs-keyword%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-title%22%3EAdd-EtwTraceProvider%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%201.0.0.0%20%20%20%20EventTracingManagement%0A...%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EVenturing%20further%20down%20the%20rabbit%20whole%2C%20let's%20see%20just%20the%20functions%20that%20start%20with%20the%20verb%20%3CCODE%3Eget-%3C%2FCODE%3E%20so%20we%20use%20the%20%3CCODE%3E-name%3C%2FCODE%3E%20parameter%20with%20a%20value%20of%20%3CCODE%3EGet-*%3C%2FCODE%3E%20and%20it%20produces%20the%20list%20we%20want.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3E%3CSPAN%20class%3D%22hljs-selector-tag%22%3EPS%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EC%3C%2FSPAN%3E%3A%5C%3CSPAN%20class%3D%22hljs-selector-tag%22%3EUsers%3C%2FSPAN%3E%5C%3CSPAN%20class%3D%22hljs-selector-tag%22%3Emibender%3C%2FSPAN%3E%26gt%3B%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3Eget-command%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E-CommandType%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E-name%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-%3C%2FSPAN%3E*%0A%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3ECommandType%3C%2FSPAN%3E%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EName%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EVersion%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ESource%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3E-----------%3C%2FSPAN%3E%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E----%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E-------%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E------%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-AppxLastError%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.1%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAppx%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-AppxLog%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.1%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAppx%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-AssignedAccess%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%201%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAssignedAccess%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-AutologgerConfig%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%201%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EEventTracingManagement%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-BCClientConfiguration%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%201%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EBranchCache%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-BCContentServerConfiguration%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%201%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EBranchCache%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-BCDataCache%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%201%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EBranchCache%3C%2FSPAN%3E%0A...%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EYou'll%20notice%20I%20used%20a%20wildcard%20(%3CCODE%3E*%3C%2FCODE%3E)%20in%20my%20value%20for%20name.%20It%20will%20get%20every%20command%20that%20begins%20with%20%22Get-%22.%20You%20can%20also%20see%20I'm%20following%20a%20systematic%20approach%20to%20find%20to%20what%20I'm%20looking%20for%3A%20Start%20with%20a%20wide%20net%2C%20and%20gradually%20reduce%20the%20size%20of%20the%20items%20caught.%20I%20use%20this%20approach%20with%20all%20queries%20for%20information%20with%20PowerShell.%3C%2FP%3E%0A%3CP%3ESo%2C%20let's%20try%20something%2C%20I%20want%20to%20find%20a%20command%20that%20allows%20me%20to%20modify%20the%20firewall%20rules%20on%20a%20Windows%20host.%20Sure%20I%20could%20look%20on%20the%20internet%2C%20but%20that%20defeats%20the%20purpose%20of%20using%20tools%20in%20the%20box.%3C%2FP%3E%0A%3CP%3EFirst%2C%20I'll%20do%20a%20search%20using%20%3CCODE%3EGet-Command%3C%2FCODE%3E%20looking%20for%20commands%20with%20%22FireWall%22%20in%20the%20%3CCODE%3E-name%3C%2FCODE%3E%20parameter.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3E%3CSPAN%20class%3D%22hljs-selector-tag%22%3EPS%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EC%3C%2FSPAN%3E%3A%5C%3CSPAN%20class%3D%22hljs-selector-tag%22%3EUsers%3C%2FSPAN%3E%5C%3CSPAN%20class%3D%22hljs-selector-tag%22%3Emibender%3C%2FSPAN%3E%26gt%3B%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3Eget-command%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E-name%3C%2FSPAN%3E%20*%3CSPAN%20class%3D%22hljs-selector-tag%22%3Efirewall%3C%2FSPAN%3E*%0A%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3ECommandType%3C%2FSPAN%3E%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EName%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EVersion%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ESource%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3E-----------%3C%2FSPAN%3E%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E----%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E-------%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E------%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAdd-AdlAnalyticsFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeAnalytics%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAdd-AdlStoreFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeStore%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-AdlAnalyticsFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeAnalytics%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-AdlStoreFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeStore%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ERemove-AdlAnalyticsFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeAnalytics%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ERemove-AdlStoreFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeStore%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ESet-AdlAnalyticsFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeAnalytics%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAlias%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ESet-AdlStoreFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200%3CSPAN%20class%3D%22hljs-selector-class%22%3E.5%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EAz%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.DataLakeStore%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ECopy-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EDisable-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EEnable-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-NetFirewallAddressFilter%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-NetFirewallApplicationFilter%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-NetFirewallInterfaceFilter%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-NetFirewallInterfaceTypeFilter%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-NetFirewallPortFilter%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-NetFirewallProfile%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-NetFirewallSecurityFilter%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-NetFirewallServiceFilter%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-NetFirewallSetting%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENew-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EFrom%20the%20partial%20output%2C%20we%20received%20a%20variety%20of%20commands.%20This%20is%20because%20I%20used%20Wildcard%20(%3CCODE%3E*%3C%2FCODE%3E)%20before%20and%20after%20%3CCODE%3Efirewall%3C%2FCODE%3E.%20This%20gives%20me%20the%20largest%20pool%20of%20commands%20containing%20%22firewall%22%20anywhere%20in%20the%20name%20of%20the%20command.%3C%2FP%3E%0A%3CP%3EReviewing%20the%20results%2C%20I%20see%20that%20there%20is%20a%20noun%20of%20NetFirewallRule.%20That%20sounds%20like%20it%20may%20be%20what%20I'm%20looking%20for%20so%20let's%20try%20searching%20for%20-name%20%3CCODE%3E*netfirewallrule%3C%2FCODE%3E%2C%20and%20we%20see%20what%20results.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3E%3CSPAN%20class%3D%22hljs-selector-tag%22%3EPS%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EC%3C%2FSPAN%3E%3A%5C%3CSPAN%20class%3D%22hljs-selector-tag%22%3EUsers%3C%2FSPAN%3E%5C%3CSPAN%20class%3D%22hljs-selector-tag%22%3Emibender%3C%2FSPAN%3E%26gt%3B%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3Eget-command%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E-name%3C%2FSPAN%3E%20*%3CSPAN%20class%3D%22hljs-selector-tag%22%3Enetfirewallrule%3C%2FSPAN%3E%0A%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3ECommandType%3C%2FSPAN%3E%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EName%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EVersion%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ESource%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3E-----------%3C%2FSPAN%3E%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E----%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E-------%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3E------%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ECopy-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EDisable-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EEnable-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EGet-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENew-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ERemove-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ERename-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ESet-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-selector-tag%22%3EFunction%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EShow-NetFirewallRule%3C%2FSPAN%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-selector-class%22%3E.0%3C%2FSPAN%3E%20%20%20%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3ENetSecurity%3C%2FSPAN%3E%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EAh%20yes%2C%20now%20we%20are%20getting%20somewhere.%20I've%20managed%20to%20list%20all%20of%20the%20commands%20that%20work%20with%20NetFirewallRule.%20Ok.%20Which%20should%20I%20pick%3F%20Well%2C%20that%20can%20be%20tricky.%20We%20have%20a%20number%20of%20verbs%20here%20used%20with%20-NetFireWallRule.%20In%20this%20case%2C%20two%20verbs%20stick%20out%3A%20New%20and%20Set.%20Here's%20the%20best%20way%20to%20remember%20these%20verbs%20and%20how%20they%20work%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ENew%20%3CSTRONG%3EALWAYS%3C%2FSTRONG%3E%20should%20create%20net-new%20things.%20It%20should%20never%20be%20used%20to%20modify%20existing%20things.%20Use%20it%20to%20create%20new%20things.%3C%2FLI%3E%0A%3CLI%3ESet%20%3CSTRONG%3ENEVER%3C%2FSTRONG%3E%20should%20create%20net-new%20things.%20Use%20it%20to%20modify%20things.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ESo%20%3CCODE%3ESet-NetFirewallRule%3C%2FCODE%3E%20looks%20to%20be%20our%20winner.%20So%2C%20how%20do%20we%20use%20it%3F%20PowerShell%20Help%20to%20the%20rescue.%20PowerShell%20has%20a%20built-in%20help%20system%20to%20provide%20you%20all%20the%20information%20you%20need.%20It's%20run%20by%20typing%20%3CCODE%3EGet-Help%20%3CCOMMAND%3E%3C%2FCOMMAND%3E%3C%2FCODE%3E.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENote%3A%20If%20you%20don't%20see%20the%20output%20below%2C%20run%20%3CCODE%3EUpdate-Help%3C%2FCODE%3E.%20Microsoft%20updates%20help%20files%20on%20a%20regular%20basis%20so%20you%20should%20make%20sure%20to%20run%20this%20occassionaly.%20You%20may%20need%20to%20run%20PowerShell%20as%20an%20admin%20for%20%3CCODE%3EUpdate-Help%3C%2FCODE%3E%20to%20work.%20Also%2C%20all%20versions%20of%20PowerShell%20ship%20without%20the%20help%20files%20so%20they%20need%20to%20be%20updated%20upon%20first%20use.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3E%3CSPAN%20class%3D%22hljs-symbol%22%3EPS%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-symbol%22%3EC%3C%2FSPAN%3E%3A%5C%3CSPAN%20class%3D%22hljs-symbol%22%3EUsers%3C%2FSPAN%3E%5Cmibender%26gt%3B%20get-help%20set-netfirewallrule%0A%0A%3CSPAN%20class%3D%22hljs-symbol%22%3ENAME%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ESet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%0A%0A%3CSPAN%20class%3D%22hljs-symbol%22%3ESYNOPSIS%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EModifies%3C%2FSPAN%3E%20existing%20firewall%20rules.%0A%0A%0A%3CSPAN%20class%3D%22hljs-symbol%22%3ESYNTAX%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ESet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAction%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EAction%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAsJob%3C%2FSPAN%3E%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAuthentication%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EAuthentication%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ECimSession%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3ECimSession%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDescription%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDirection%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EDirection%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDynamicTarget%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EDynamicTransport%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEdgeTraversalPolicy%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEdgeTraversal%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEnabled%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEnabled%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEncryption%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEncryption%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EGPOSession%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EIcmpType%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceAlias%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EWildcardPattern%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceType%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceType%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalAddress%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalOnlyMapping%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalPort%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalUser%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELooseSourceMapping%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ENewDisplayName%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EOverrideBlockRules%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EOwner%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPackage%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPassThru%3C%2FSPAN%3E%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPlatform%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPolicyStore%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProfile%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EProfile%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProgram%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProtocol%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteAddress%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteMachine%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemotePort%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteUser%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EService%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EThrottleLimit%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EInt32%3C%2FSPAN%3E%26gt%3B%5D%20-%3CSPAN%20class%3D%22hljs-symbol%22%3EDisplayGroup%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EConfirm%3C%2FSPAN%3E%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EWhatIf%3C%2FSPAN%3E%5D%20%5B%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3ECommonParameters%3C%2FSPAN%3E%26gt%3B%5D%0A%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ESet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAction%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EAction%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAsJob%3C%2FSPAN%3E%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAuthentication%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EAuthentication%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ECimSession%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3ECimSession%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDescription%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDirection%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EDirection%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDynamicTarget%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EDynamicTransport%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEdgeTraversalPolicy%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEdgeTraversal%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEnabled%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEnabled%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEncryption%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEncryption%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EIcmpType%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceAlias%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EWildcardPattern%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceType%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceType%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalAddress%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalOnlyMapping%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalPort%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalUser%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELooseSourceMapping%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ENewDisplayName%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EOverrideBlockRules%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EOwner%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPackage%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPassThru%3C%2FSPAN%3E%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPlatform%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProfile%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EProfile%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProgram%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProtocol%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteAddress%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteMachine%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemotePort%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteUser%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EService%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EThrottleLimit%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EInt32%3C%2FSPAN%3E%26gt%3B%5D%20-%3CSPAN%20class%3D%22hljs-symbol%22%3EInputObject%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3ECimInstance%3C%2FSPAN%3E%5B%5D%26gt%3B%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EConfirm%3C%2FSPAN%3E%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EWhatIf%3C%2FSPAN%3E%5D%0A%20%20%20%20%5B%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3ECommonParameters%3C%2FSPAN%3E%26gt%3B%5D%0A%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ESet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAction%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EAction%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAsJob%3C%2FSPAN%3E%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAuthentication%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EAuthentication%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ECimSession%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3ECimSession%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDescription%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDirection%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EDirection%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDynamicTarget%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EDynamicTransport%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEdgeTraversalPolicy%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEdgeTraversal%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEnabled%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEnabled%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEncryption%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEncryption%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EGPOSession%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EIcmpType%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceAlias%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EWildcardPattern%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceType%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceType%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalAddress%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalOnlyMapping%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalPort%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalUser%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELooseSourceMapping%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ENewDisplayName%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EOverrideBlockRules%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EOwner%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPackage%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPassThru%3C%2FSPAN%3E%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPlatform%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPolicyStore%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProfile%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EProfile%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProgram%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProtocol%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteAddress%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteMachine%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemotePort%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteUser%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EService%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EThrottleLimit%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EInt32%3C%2FSPAN%3E%26gt%3B%5D%20-%3CSPAN%20class%3D%22hljs-symbol%22%3EDisplayName%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EConfirm%3C%2FSPAN%3E%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EWhatIf%3C%2FSPAN%3E%5D%20%5B%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3ECommonParameters%3C%2FSPAN%3E%26gt%3B%5D%0A%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ESet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EName%3C%2FSPAN%3E%5D%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAction%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EAction%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAsJob%3C%2FSPAN%3E%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAuthentication%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EAuthentication%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ECimSession%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3ECimSession%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDescription%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDirection%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EDirection%3C%2FSPAN%3E%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDynamicTarget%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EDynamicTransport%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEdgeTraversalPolicy%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEdgeTraversal%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEnabled%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEnabled%3C%2FSPAN%3E%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEncryption%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEncryption%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EGPOSession%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EIcmpType%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceAlias%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EWildcardPattern%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceType%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceType%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalAddress%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalOnlyMapping%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalPort%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalUser%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELooseSourceMapping%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ENewDisplayName%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EOverrideBlockRules%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EOwner%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPackage%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPassThru%3C%2FSPAN%3E%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPlatform%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPolicyStore%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProfile%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EProfile%3C%2FSPAN%3E%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProgram%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProtocol%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteAddress%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteMachine%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemotePort%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteUser%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EService%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EThrottleLimit%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EInt32%3C%2FSPAN%3E%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EConfirm%3C%2FSPAN%3E%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EWhatIf%3C%2FSPAN%3E%5D%20%5B%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3ECommonParameters%3C%2FSPAN%3E%26gt%3B%5D%0A%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ESet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAction%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EAction%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAsJob%3C%2FSPAN%3E%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EAuthentication%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EAuthentication%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ECimSession%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3ECimSession%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDescription%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDirection%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EDirection%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EDynamicTarget%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EDynamicTransport%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEdgeTraversalPolicy%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEdgeTraversal%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEnabled%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEnabled%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EEncryption%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EEncryption%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EGPOSession%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EIcmpType%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceAlias%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EWildcardPattern%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceType%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EInterfaceType%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalAddress%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalOnlyMapping%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalPort%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELocalUser%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ELooseSourceMapping%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ENewDisplayName%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EOverrideBlockRules%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EBoolean%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EOwner%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPackage%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPassThru%3C%2FSPAN%3E%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPlatform%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EPolicyStore%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProfile%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EProfile%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProgram%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EProtocol%3C%2FSPAN%3E%0A%20%20%20%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteAddress%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteMachine%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemotePort%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3ERemoteUser%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EService%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%26gt%3B%5D%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EThrottleLimit%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EInt32%3C%2FSPAN%3E%26gt%3B%5D%20-%3CSPAN%20class%3D%22hljs-symbol%22%3EGroup%3C%2FSPAN%3E%20%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3EString%3C%2FSPAN%3E%5B%5D%26gt%3B%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EConfirm%3C%2FSPAN%3E%5D%0A%20%20%20%20%5B-%3CSPAN%20class%3D%22hljs-symbol%22%3EWhatIf%3C%2FSPAN%3E%5D%20%5B%26lt%3B%3CSPAN%20class%3D%22hljs-symbol%22%3ECommonParameters%3C%2FSPAN%3E%26gt%3B%5D%0A%0A%0A%3CSPAN%20class%3D%22hljs-symbol%22%3EDESCRIPTION%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EThe%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-symbol%22%3ESet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%20cmdlet%20modifies%20existing%20firewall%20rule%20properties.%20%3CSPAN%20class%3D%22hljs-symbol%22%3EThis%3C%2FSPAN%3E%20cmdlet%20gets%20one%20or%0A%20%20%20%20more%20firewall%20rules%20to%20be%20modified%20with%20the%20%3CSPAN%20class%3D%22hljs-symbol%22%3EName%3C%2FSPAN%3E%20parameter%20(default)%2C%20the%20%3CSPAN%20class%3D%22hljs-symbol%22%3EDisplayName%3C%2FSPAN%3E%20parameter%2C%0A%20%20%20%20or%20by%20group%20association%20using%20the%20%3CSPAN%20class%3D%22hljs-symbol%22%3EDisplayGroup%3C%2FSPAN%3E%20or%20%3CSPAN%20class%3D%22hljs-symbol%22%3EGroup%3C%2FSPAN%3E%20parameter.%20%3CSPAN%20class%3D%22hljs-symbol%22%3ERules%3C%2FSPAN%3E%20cannot%20be%20queried%20by%0A%20%20%20%20property%20in%20this%20cmdlet%2C%20but%20the%20querying%20can%20be%20done%20by%20the%20%3CSPAN%20class%3D%22hljs-symbol%22%3EGet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%20cmdlet%20and%20piped%0A%20%20%20%20into%20this%20cmdlet.%20%3CSPAN%20class%3D%22hljs-symbol%22%3EThe%3C%2FSPAN%3E%20remaining%20parameters%20modify%20the%20properties%20of%20the%20specified%20rules.%20%3CSPAN%20class%3D%22hljs-symbol%22%3EIf%3C%2FSPAN%3E%20the%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EDisplayGroup%3C%2FSPAN%3E%20or%20%3CSPAN%20class%3D%22hljs-symbol%22%3EGroup%3C%2FSPAN%3E%20parameter%20is%20specified%2C%20then%20all%20sets%20associated%20with%20the%20specified%20group%0A%20%20%20%20receive%20the%20same%20modifications.%0A%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ETo%3C%2FSPAN%3E%20move%20a%20rule%20to%20a%20new%20%3CSPAN%20class%3D%22hljs-symbol%22%3EGPO%3C%2FSPAN%3E%2C%20copy%20the%20existing%20rule%20using%20the%20%3CSPAN%20class%3D%22hljs-symbol%22%3ECopy%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%20cmdlet%20with%20the%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ENewPolicyStore%3C%2FSPAN%3E%20parameter%2C%20then%20remove%20the%20old%20rule%20with%20this%20cmdlet.%0A%0A%0A%3CSPAN%20class%3D%22hljs-symbol%22%3ERELATED%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-symbol%22%3ELINKS%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EOnline%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-symbol%22%3EVersion%3C%2FSPAN%3E%3A%20http%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3F%3CSPAN%20class%3D%22hljs-symbol%22%3ELinkId%3C%2FSPAN%3E%3D%3CSPAN%20class%3D%22hljs-number%22%3E288218%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ECopy%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EDisable%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EEnable%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EGet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallAddressFilter%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EGet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallApplicationFilter%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EGet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallInterfaceFilter%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EGet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallInterfaceTypeFilter%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EGet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallPortFilter%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EGet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EGet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallSecurityFilter%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EGet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallServiceFilter%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ENew%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EOpen%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetGPO%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ERemove%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ERename%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ESave%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetGPO%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ESet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetIPsecRule%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ESet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ESet%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallSetting%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EShow%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3ENetFirewallRule%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ENew%3C%2FSPAN%3E-%3CSPAN%20class%3D%22hljs-symbol%22%3EGPO%3C%2FSPAN%3E%0A%0A%3CSPAN%20class%3D%22hljs-symbol%22%3EREMARKS%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3ETo%3C%2FSPAN%3E%20see%20the%20examples%2C%20type%3A%20%3CSPAN%20class%3D%22hljs-string%22%3E%22get-help%20Set-NetFirewallRule%20-examples%22%3C%2FSPAN%3E.%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EFor%3C%2FSPAN%3E%20more%20information%2C%20type%3A%20%3CSPAN%20class%3D%22hljs-string%22%3E%22get-help%20Set-NetFirewallRule%20-detailed%22%3C%2FSPAN%3E.%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EFor%3C%2FSPAN%3E%20technical%20information%2C%20type%3A%20%3CSPAN%20class%3D%22hljs-string%22%3E%22get-help%20Set-NetFirewallRule%20-full%22%3C%2FSPAN%3E.%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-symbol%22%3EFor%3C%2FSPAN%3E%20online%20help%2C%20type%3A%20%3CSPAN%20class%3D%22hljs-string%22%3E%22get-help%20Set-NetFirewallRule%20-online%22%3C%2FSPAN%3E%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EAnd%2C%20it%20is%20the%20command%20we%20are%20looking%20for.%20The%20Synopsis%20and%20Description%20tell%20us%20what%20the%20command%20does%20(modifies%20the%20firewall%20rules).%3C%2FP%3E%0A%3CP%3ETo%20begin%20using%20the%20command%2C%20you%20can%20review%20the%20syntax%20for%20the%20parameters%20available%20with%20the%20command.%20For%20those%20new%20to%20PowerShell%2C%20this%20can%20be%20daunting%20so%20I'll%20show%20you%20my%20favorite%20use%20of%20help%20with%20the%20%3CCODE%3E-examples%3C%2FCODE%3E%20parameter%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3EPS%20C%3A%5CUsers%5Cmibender%26gt%3B%20%3CSPAN%20class%3D%22hljs-built_in%22%3Eget%3C%2FSPAN%3E-help%20%3CSPAN%20class%3D%22hljs-built_in%22%3Eset%3C%2FSPAN%3E-netfirewallrule%20-examples%0A%0ANAME%0A%20%20%20%20Set-NetFirewallRule%0A%0ASYNOPSIS%0A%20%20%20%20Modifies%20existing%20firewall%20rules.%0A%0A%0A%20%20%20%20EXAMPLE%20%3CSPAN%20class%3D%22hljs-number%22%3E1%3C%2FSPAN%3E%0A%0A%20%20%20%20PS%20C%3A%5C%26gt%3BSet-NetFirewallRule%20-DisplayName%20%3CSPAN%20class%3D%22hljs-string%22%3E%22AllowWeb80%22%3C%2FSPAN%3E%20-RemoteAddress%20%3CSPAN%20class%3D%22hljs-string%22%3E%22192.168.0.2%22%3C%2FSPAN%3E%0A%0A%20%20%20%20This%20example%20changes%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ea%3C%2FSPAN%3E%20rule%20%3CSPAN%20class%3D%22hljs-built_in%22%3Eto%3C%2FSPAN%3E%20match%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ea%3C%2FSPAN%3E%20different%20remote%20IP%20address%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eof%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ea%3C%2FSPAN%3E%20web%20server%20%3CSPAN%20class%3D%22hljs-keyword%22%3Efor%3C%2FSPAN%3E%20which%0A%20%20%20%20traffic%20is%20allowed%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eby%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ea%3C%2FSPAN%3E%20rule.%0A%20%20%20%20EXAMPLE%20%3CSPAN%20class%3D%22hljs-number%22%3E2%3C%2FSPAN%3E%0A%0A%20%20%20%20PS%20C%3A%5C%26gt%3BSet-NetFirewallRule%20-DisplayGroup%20%3CSPAN%20class%3D%22hljs-string%22%3E%22Windows%20Firewall%20Remote%20Management%22%3C%2FSPAN%3E%20-Enabled%20True%0A%0A%0A%20%20%20%20This%20cmdlet%20shows%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ean%3C%2FSPAN%3E%20alternate%20way%20%3CSPAN%20class%3D%22hljs-built_in%22%3Eto%3C%2FSPAN%3E%20enable%20all%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eof%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethe%3C%2FSPAN%3E%20rules%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ein%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ea%3C%2FSPAN%3E%20predefined%20group.%0A%20%20%20%20PS%20C%3A%5C%26gt%3BEnable-NetFirewallRule%20-DisplayGroup%20%3CSPAN%20class%3D%22hljs-string%22%3E%22Windows%20Firewall%20Remote%20Management%22%3C%2FSPAN%3E%0A%0A%20%20%20%20This%20example%20enables%20all%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eof%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethe%3C%2FSPAN%3E%20rules%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ein%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ea%3C%2FSPAN%3E%20predefined%20group.%0A%20%20%20%20EXAMPLE%20%3CSPAN%20class%3D%22hljs-number%22%3E3%3C%2FSPAN%3E%0A%0A%20%20%20%20PS%20C%3A%5C%26gt%3BSet-NetFirewallRule%20-DisplayName%20%3CSPAN%20class%3D%22hljs-string%22%3E%22AllowMessenger%22%3C%2FSPAN%3E%20-Authentication%20Required%20%E2%80%93Profile%20Domain%0A%0A%20%20%20%20This%20example%20changes%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ea%3C%2FSPAN%3E%20rule%20%3CSPAN%20class%3D%22hljs-built_in%22%3Eto%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-built_in%22%3Erequire%3C%2FSPAN%3E%20authentication%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eand%3C%2FSPAN%3E%20scopes%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethe%3C%2FSPAN%3E%20rule%20%3CSPAN%20class%3D%22hljs-built_in%22%3Eto%3C%2FSPAN%3E%20apply%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eon%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Ethe%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Edomain%3C%2FSPAN%3E%0A%20%20%20%20profile.%20A%20separate%20IPsec%20rule%20must%20exist%20%3CSPAN%20class%3D%22hljs-built_in%22%3Eto%3C%2FSPAN%3E%20perform%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethe%3C%2FSPAN%3E%20authentication.%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThis%20handy%20parameter%20provides%20you%20examples%2C%20usually%20listed%20from%20simple%20to%20more%20complex%2C%20of%20how%20to%20work%20with%20the%20command.%20Often%20times%2C%20you'll%20find%20a%20command%20that%20does%20some%20or%20all%20of%20the%20things%20you%20want.%20I%20like%20to%20copy%20the%20command%20from%20the%20help%20and%20use%20it%20as%20a%20base%20as%20I%20work%20through%20a%20command's%20usage.%3C%2FP%3E%0A%3CP%3ELet's%20say%20example%201%20that%20sets%20the%20remote%20IP%20address%20on%20a%20rule%20is%20what%20you%20want%2C%20but%20your%20not%20sure%20how%20to%20use%20the%20%3CCODE%3E-remoteaddress%3C%2FCODE%3E%20parameter.%20For%20this%2C%20there%20are%20a%20couple%20of%20options.%3C%2FP%3E%0A%3CP%3EFirst%2C%20you%20can%20run%20%3CCODE%3EGet-Help%20%3CCOMMAND%3E%20-Full%3C%2FCOMMAND%3E%3C%2FCODE%3E%20to%20see%20all%20of%20the%20help%20content%20including%20detailed%20information%20on%20parameters.%20This%20will%20produce%20a%20ton%20of%20information%20in%20the%20console%20so%20try%20using%20help%2C%20a%20shortcut%20for%20get-help%2C%20instead.%20It%20still%20runs%20help%20but%20it%20adds%20the%20%3CCODE%3Emore%3C%2FCODE%3E%20functionality%20of%20paging%20each%20screen.%20This%20is%20great%20to%20use%20when%20you%20want%20all%20of%20the%20help%20information%20to%20review.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3EPS%20C%3A%5CUsers%5Cmibender%26gt%3B%20help%20Set-NetFirewallRule%20-Full%0A%0ANAME%0A%20%20%20%20Set-NetFirewallRule%0A%0ASYNOPSIS%0A%20%20%20%20Modifies%20existing%20firewall%20rules.%0A%0A%0ASYNTAX%0A%20%20%20%20Set-NetFirewallRule%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Action%20%3CACTION%3E%5D%3C%2FACTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-AsJob%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Authentication%20%3CAUTHENTICATION%3E%5D%3C%2FAUTHENTICATION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-CimSession%20%3CCIMSESSION%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FCIMSESSION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Description%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Direction%20%3CDIRECTION%3E%5D%3C%2FDIRECTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-DynamicTarget%20%3CDYNAMICTRANSPORT%3E%5D%3C%2FDYNAMICTRANSPORT%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-EdgeTraversalPolicy%20%3CEDGETRAVERSAL%3E%5D%3C%2FEDGETRAVERSAL%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Enabled%20%3CENABLED%3E%5D%3C%2FENABLED%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Encryption%20%3CENCRYPTION%3E%5D%3C%2FENCRYPTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-GPOSession%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-IcmpType%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-InterfaceAlias%20%3CWILDCARDPATTERN%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FWILDCARDPATTERN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-InterfaceType%20%3CINTERFACETYPE%3E%5D%3C%2FINTERFACETYPE%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalAddress%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalOnlyMapping%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalPort%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalUser%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LooseSourceMapping%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-NewDisplayName%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-OverrideBlockRules%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Owner%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Package%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-PassThru%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Platform%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-PolicyStore%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Profile%20%3CPROFILE%3E%5D%3C%2FPROFILE%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Program%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Protocol%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteAddress%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteMachine%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemotePort%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteUser%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Service%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-ThrottleLimit%20%3CINT32%3E%5D%3C%2FINT32%3E%3C%2FSPAN%3E%20-DisplayGroup%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Confirm%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-WhatIf%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%3CCOMMONPARAMETERS%3E%5D%3C%2FCOMMONPARAMETERS%3E%3C%2FSPAN%3E%0A%0A%20%20%20%20Set-NetFirewallRule%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Action%20%3CACTION%3E%5D%3C%2FACTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-AsJob%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Authentication%20%3CAUTHENTICATION%3E%5D%3C%2FAUTHENTICATION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-CimSession%20%3CCIMSESSION%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FCIMSESSION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Description%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Direction%20%3CDIRECTION%3E%5D%3C%2FDIRECTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-DynamicTarget%20%3CDYNAMICTRANSPORT%3E%5D%3C%2FDYNAMICTRANSPORT%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-EdgeTraversalPolicy%20%3CEDGETRAVERSAL%3E%5D%3C%2FEDGETRAVERSAL%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Enabled%20%3CENABLED%3E%5D%3C%2FENABLED%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Encryption%20%3CENCRYPTION%3E%5D%3C%2FENCRYPTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-IcmpType%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-InterfaceAlias%20%3CWILDCARDPATTERN%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FWILDCARDPATTERN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-InterfaceType%20%3CINTERFACETYPE%3E%5D%3C%2FINTERFACETYPE%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalAddress%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalOnlyMapping%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalPort%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalUser%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LooseSourceMapping%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-NewDisplayName%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-OverrideBlockRules%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Owner%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Package%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-PassThru%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Platform%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Profile%20%3CPROFILE%3E%5D%3C%2FPROFILE%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Program%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Protocol%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteAddress%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteMachine%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemotePort%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteUser%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Service%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-ThrottleLimit%20%3CINT32%3E%5D%3C%2FINT32%3E%3C%2FSPAN%3E%20-InputObject%20%3CCIMINSTANCE%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Confirm%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-WhatIf%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%3CCOMMONPARAMETERS%3E%5D%3C%2FCOMMONPARAMETERS%3E%3C%2FSPAN%3E%0A%0A%20%20%20%20Set-NetFirewallRule%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Action%20%3CACTION%3E%5D%3C%2FACTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-AsJob%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Authentication%20%3CAUTHENTICATION%3E%5D%3C%2FAUTHENTICATION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-CimSession%20%3CCIMSESSION%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FCIMSESSION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Description%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Direction%20%3CDIRECTION%3E%5D%3C%2FDIRECTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-DynamicTarget%20%3CDYNAMICTRANSPORT%3E%5D%3C%2FDYNAMICTRANSPORT%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-EdgeTraversalPolicy%20%3CEDGETRAVERSAL%3E%5D%3C%2FEDGETRAVERSAL%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Enabled%20%3CENABLED%3E%5D%3C%2FENABLED%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Encryption%20%3CENCRYPTION%3E%5D%3C%2FENCRYPTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-GPOSession%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-IcmpType%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-InterfaceAlias%20%3CWILDCARDPATTERN%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FWILDCARDPATTERN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-InterfaceType%20%3CINTERFACETYPE%3E%5D%3C%2FINTERFACETYPE%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalAddress%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalOnlyMapping%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalPort%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalUser%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LooseSourceMapping%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-NewDisplayName%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-OverrideBlockRules%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Owner%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Package%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-PassThru%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Platform%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-PolicyStore%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Profile%20%3CPROFILE%3E%5D%3C%2FPROFILE%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Program%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Protocol%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteAddress%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteMachine%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemotePort%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteUser%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Service%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-ThrottleLimit%20%3CINT32%3E%5D%3C%2FINT32%3E%3C%2FSPAN%3E%20-DisplayName%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Confirm%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-WhatIf%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%3CCOMMONPARAMETERS%3E%5D%3C%2FCOMMONPARAMETERS%3E%3C%2FSPAN%3E%0A%0A%20%20%20%20Set-NetFirewallRule%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Name%5D%3C%2FSPAN%3E%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Action%20%3CACTION%3E%5D%3C%2FACTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-AsJob%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Authentication%20%3CAUTHENTICATION%3E%5D%3C%2FAUTHENTICATION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-CimSession%20%3CCIMSESSION%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FCIMSESSION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Description%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Direction%20%3CDIRECTION%3E%5D%3C%2FDIRECTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-DynamicTarget%20%3CDYNAMICTRANSPORT%3E%5D%3C%2FDYNAMICTRANSPORT%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-EdgeTraversalPolicy%20%3CEDGETRAVERSAL%3E%5D%3C%2FEDGETRAVERSAL%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Enabled%20%3CENABLED%3E%5D%3C%2FENABLED%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Encryption%20%3CENCRYPTION%3E%5D%3C%2FENCRYPTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-GPOSession%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-IcmpType%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-InterfaceAlias%20%3CWILDCARDPATTERN%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FWILDCARDPATTERN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-InterfaceType%20%3CINTERFACETYPE%3E%5D%3C%2FINTERFACETYPE%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalAddress%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalOnlyMapping%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalPort%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalUser%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LooseSourceMapping%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-NewDisplayName%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-OverrideBlockRules%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Owner%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Package%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-PassThru%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Platform%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-PolicyStore%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Profile%20%3CPROFILE%3E%5D%3C%2FPROFILE%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Program%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Protocol%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteAddress%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteMachine%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemotePort%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteUser%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Service%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-ThrottleLimit%20%3CINT32%3E%5D%3C%2FINT32%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Confirm%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-WhatIf%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%3CCOMMONPARAMETERS%3E%5D%3C%2FCOMMONPARAMETERS%3E%3C%2FSPAN%3E%0A%0A%20%20%20%20Set-NetFirewallRule%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Action%20%3CACTION%3E%5D%3C%2FACTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-AsJob%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Authentication%20%3CAUTHENTICATION%3E%5D%3C%2FAUTHENTICATION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-CimSession%20%3CCIMSESSION%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FCIMSESSION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Description%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Direction%20%3CDIRECTION%3E%5D%3C%2FDIRECTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-DynamicTarget%20%3CDYNAMICTRANSPORT%3E%5D%3C%2FDYNAMICTRANSPORT%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-EdgeTraversalPolicy%20%3CEDGETRAVERSAL%3E%5D%3C%2FEDGETRAVERSAL%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Enabled%20%3CENABLED%3E%5D%3C%2FENABLED%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Encryption%20%3CENCRYPTION%3E%5D%3C%2FENCRYPTION%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-GPOSession%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-IcmpType%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-InterfaceAlias%20%3CWILDCARDPATTERN%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FWILDCARDPATTERN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-InterfaceType%20%3CINTERFACETYPE%3E%5D%3C%2FINTERFACETYPE%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalAddress%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalOnlyMapping%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalPort%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LocalUser%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-LooseSourceMapping%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-NewDisplayName%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-OverrideBlockRules%20%3CBOOLEAN%3E%5D%3C%2FBOOLEAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Owner%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Package%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-PassThru%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Platform%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-PolicyStore%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Profile%20%3CPROFILE%3E%5D%3C%2FPROFILE%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Program%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Protocol%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteAddress%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteMachine%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemotePort%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-RemoteUser%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Service%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-ThrottleLimit%20%3CINT32%3E%5D%3C%2FINT32%3E%3C%2FSPAN%3E%20-Group%20%3CSTRING%3E%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%5D%3C%2FSPAN%3E%26gt%3B%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-Confirm%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B-WhatIf%5D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-comment%22%3E%5B%3CCOMMONPARAMETERS%3E%5D%3C%2FCOMMONPARAMETERS%3E%3C%2FSPAN%3E%0A%0A%0ADESCRIPTION%0A%20%20%20%20The%20Set-NetFirewallRule%20cmdlet%20modifies%20existing%20firewall%20%3CSPAN%20class%3D%22hljs-keyword%22%3Erule%3C%2FSPAN%3E%20properties.%20This%20cmdlet%20gets%20one%20or%20more%20firewall%20rules%20to%20be%20modified%20with%20the%20Name%20parameter%20(default)%2C%20the%20DisplayName%20parameter%2C%20or%20by%20group%20association%20using%20the%20DisplayGroup%20or%20Group%20parameter.%20Rules%20cannot%20be%20queried%20by%20property%20in%20this%20cmdlet%2C%20but%20the%20querying%20can%20be%20done%20by%20the%20Get-NetFirewallRule%20cmdlet%20and%20piped%20into%20this%20cmdlet.%20The%20remaining%20parameters%20modify%20the%20properties%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eof%3C%2FSPAN%3E%20the%20specified%20rules.%20If%20the%20DisplayGroup%20or%20Group%20parameter%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eis%3C%2FSPAN%3E%20specified%2C%20then%20all%20sets%20associated%20with%20the%20specified%20group%20receive%20the%20same%20modifications.%0A%0A%20%20%20%20To%20move%20a%20%3CSPAN%20class%3D%22hljs-keyword%22%3Erule%3C%2FSPAN%3E%20to%20a%20new%20GPO%2C%20copy%20the%20existing%20%3CSPAN%20class%3D%22hljs-keyword%22%3Erule%3C%2FSPAN%3E%20using%20the%20Copy-NetFirewallRule%20cmdlet%20with%20the%20NewPolicyStore%20parameter%2C%20then%20remove%20the%20old%20%3CSPAN%20class%3D%22hljs-keyword%22%3Erule%3C%2FSPAN%3E%20with%20this%20cmdlet.%0A%0A%0APARAMETERS%0A%20%20%20%20-Action%20%3CACTION%3E%0A%20%20%20%20%20%20%20%20Specifies%20that%20matching%20firewall%20rules%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eof%3C%2FSPAN%3E%20the%20indicated%20action%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eare%3C%2FSPAN%3E%20modified.%0A%0A%20%20%20%20%20%20%20%20This%20parameter%20specifies%20the%20action%20to%20take%20on%20traffic%20that%20matches%20this%20%3CSPAN%20class%3D%22hljs-keyword%22%3Erule%3C%2FSPAN%3E.%0A%20%20%20%20%20%20%20%20The%20acceptable%20values%20for%20this%20parameter%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eare%3C%2FSPAN%3E%3A%20%20Allow%20or%20Block.%0A%0A%20%20%20%20%20%20%20%20%20--%20Allow%3A%20Network%20packets%20that%20match%20all%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eof%3C%2FSPAN%3E%20the%20criteria%20specified%20in%20this%20%3CSPAN%20class%3D%22hljs-keyword%22%3Erule%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eare%3C%2FSPAN%3E%20permitted%20through%20the%20firewall.%0A%0A%20%20%20%20%20%20%20%20%20--%20Block%3A%20Network%20packets%20that%20match%20all%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eof%3C%2FSPAN%3E%20the%20criteria%20specified%20in%20this%20%3CSPAN%20class%3D%22hljs-keyword%22%3Erule%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eare%3C%2FSPAN%3E%20dropped%20by%20the%20firewall.%0A%0A%20%20%20%20%20%20%20%20The%20default%20value%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eis%3C%2FSPAN%3E%20Allow.%0A%20%20%20%20%20%20%20%20Note%3A%20The%20OverrideBlockRules%20field%20changes%20an%20allow%20%3CSPAN%20class%3D%22hljs-keyword%22%3Erule%3C%2FSPAN%3E%20into%20an%20allow%20bypass%20%3CSPAN%20class%3D%22hljs-keyword%22%3Erule%3C%2FSPAN%3E.%0A%0A%20%20%20%20%20%20%20%20Required%3F%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20%20Position%3F%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20named%0A%20%20%20%20%20%20%20%20Default%20value%0A%20%20%20%20%20%20%20%20Accept%20pipeline%20input%3F%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20%20Accept%20wildcard%20characters%3F%20%20false%0A%3C%2FACTION%3E%3C%2FSTRING%3E%3C%2FSTRING%3E%3C%2FSTRING%3E%3C%2FCIMINSTANCE%3E%3C%2FSTRING%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThe%20next%20option%20is%20to%20get%20more%20granular%20and%20just%20search%20for%20the%20%3CCODE%3E-RemoteAddress%3C%2FCODE%3E%20parameter%20by%20using%20%3CCODE%3E-Parameter%3C%2FCODE%3E%20with%20help%20like%20this.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3EPS%20C%3A%5CUsers%5Cmibender%26gt%3B%20Help%20%3CSPAN%20class%3D%22hljs-built_in%22%3Eset%3C%2FSPAN%3E-netfirewallrule%20-Parameter%20RemoteAddress%0A%0A-RemoteAddress%20%3CSTRING%3E%0A%20%20%20%20Specifies%20that%20network%20packets%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ewith%3C%2FSPAN%3E%20matching%20IP%20addresses%20match%20this%20rule.%0A%0A%20%20%20%20This%20parameter%20%3CSPAN%20class%3D%22hljs-built_in%22%3Evalue%3C%2FSPAN%3E%20is%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethe%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-keyword%22%3Esecond%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-function%22%3E%3CSPAN%20class%3D%22hljs-keyword%22%3Eend%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Epoint%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Eof%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Ean%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3EIPsec%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Erule%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Eand%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Especifies%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Ethe%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Ecomputers%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Ethat%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Eare%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Esubject%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Eto%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Ethe%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Erequirements%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Eof%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Ethis%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-title%22%3Erule%3C%2FSPAN%3E.%3C%2FSPAN%3E%0A%0A%20%20%20%20This%20parameter%20%3CSPAN%20class%3D%22hljs-built_in%22%3Evalue%3C%2FSPAN%3E%20is%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ean%3C%2FSPAN%3E%20IPv4%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eor%3C%2FSPAN%3E%20IPv6%20address%2C%20hostname%2C%20subnet%2C%20range%2C%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eor%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethe%3C%2FSPAN%3E%20following%20keyword%3A%20Any.%0A%0A%20%20%20%20The%20acceptable%20formats%20%3CSPAN%20class%3D%22hljs-keyword%22%3Efor%3C%2FSPAN%3E%20this%20parameter%20are%3A%0A%0A%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E--%20Single%20IPv4%20Address%3A%201.2.3.4%3C%2FSPAN%3E%0A%0A%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E--%20Single%20IPv6%20Address%3A%20fe80%3A%3A1%3C%2FSPAN%3E%0A%0A%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E--%20IPv4%20Subnet%20(by%20network%20bit%20count)%3A%201.2.3.4%2F24%3C%2FSPAN%3E%0A%0A%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E--%20IPv6%20Subnet%20(by%20network%20bit%20count)%3A%20fe80%3A%3A1%2F48%3C%2FSPAN%3E%0A%0A%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E--%20IPv4%20Subnet%20(by%20network%20mask)%3A%201.2.3.4%2F255.255.255.0%3C%2FSPAN%3E%0A%0A%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E--%20IPv4%20Range%3A%201.2.3.4%20through%201.2.3.7%3C%2FSPAN%3E%0A%0A%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E--%20IPv6%20Range%3A%20fe80%3A%3A1%20through%20fe80%3A%3A9%3C%2FSPAN%3E%0A%20%20%20%20Note%3A%20Querying%20%3CSPAN%20class%3D%22hljs-keyword%22%3Efor%3C%2FSPAN%3E%20rules%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ewith%3C%2FSPAN%3E%20this%20parameter%20can%20only%20be%20performed%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eusing%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-built_in%22%3Efilter%3C%2FSPAN%3E%20objects.%20See%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethe%3C%2FSPAN%3E%20Get-NetFirewallAddressFilter%20cmdlet%20%3CSPAN%20class%3D%22hljs-keyword%22%3Efor%3C%2FSPAN%3E%20more%20information.%0A%0A%20%20%20%20Required%3F%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-literal%22%3Efalse%3C%2FSPAN%3E%0A%20%20%20%20Position%3F%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20named%0A%20%20%20%20Default%20%3CSPAN%20class%3D%22hljs-built_in%22%3Evalue%3C%2FSPAN%3E%0A%20%20%20%20Accept%20pipeline%20input%3F%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-literal%22%3Efalse%3C%2FSPAN%3E%0A%20%20%20%20Accept%20wildcard%20%3CSPAN%20class%3D%22hljs-keyword%22%3Echaracters%3C%2FSPAN%3E%3F%20%20%3CSPAN%20class%3D%22hljs-literal%22%3Efalse%3C%2FSPAN%3E%0A%3C%2FSTRING%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ENow%2C%20that%20gets%20us%20the%20information%20we%20are%20looking%20for%20including%20a%20description%20of%20the%20parameter%2C%20acceptable%20formats%20for%20the%20parameter%2C%20and%20more.%20One%20important%20piece%20of%20information%20is%20the%20%3CCODE%3E%26lt%3B...%26gt%3B%3C%2FCODE%3E%20value%20after%20the%20parameter%20name.%20This%20tells%20you%20the%20type%20of%20value%20the%20parameter%20accepts.%20In%20this%20case%20it's%20a%20string%20value%20(numbers%2Fletters%2Fsymbols).%20But%20it%20could%20have%20been%20a%20boolean%20or%20other%20value.%20This%20is%20important%20so%20you%20know%20what%20you%20can%20and%20can't%20use%20in%20a%20parameter.%20This%20becomes%20super%20important%20later%20in%20your%20PowerShell%20journey%20when%20you%20begin%20using%20the%20pipeline.%3C%2FP%3E%0A%3CP%3ESo%20there%20you%20have%20it!%20A%20quick%20and%20easy%20approach%20for%20finding%20commands%20%26amp%3B%20how%20to%20use%20them.%20Use%20%3CCODE%3EGet-Command%3C%2FCODE%3E%20and%20%3CCODE%3EGet-Help%3C%2FCODE%3E%20whenever%20you%20need%20to%20do%20something%20in%20PowerShell.%20Add%20on%20%3CCODE%3EGet-Member%3C%2FCODE%3E%2C%20and%20your%20on%20your%20way%20to%20becoming%20a%20PowerShell%20Guru!%3C%2FP%3E%0A%3CP%3EIf%20you%20want%20more%20information%20on%20each%20of%20these%20commands%2C%20check%20out%20the%20docs%20below%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fmicrosoft.powershell.core%2Fget-command%3FWT.mc_id%3Dblog-techcommunity-mibender%2Cview%3Dpowershell-6%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EGet-Command%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fmicrosoft.powershell.core%2Fget-help%3FWT.mc_id%3Dblog-techcommunity-mibender%2Cview%253Dpowershell-6%26amp%3Bview%3Dpowershell-6%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EGet-Help%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-300935%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20943px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F62639i75152B6332A36201%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22PowerShellBlogPost.PNG%22%20title%3D%22PowerShellBlogPost.PNG%22%20%2F%3E%3C%2FSPAN%3EFor%20me%2C%20one%20of%20the%20most%20important%20features%20of%20PowerShell%20is%20the%20ability%20to%20find%20all%20the%20answers%20you%20need%20in%20the%20shell.%20From%20the%20early%20days%2C%20PowerShell%20has%20included%20commands%20for%20finding%20cmdlets%20and%20functions%20within%20the%20shell%20including%20%3C%2FSPAN%3E%3CCODE%3EGet-Command%3C%2FCODE%3E%3CSPAN%3E.%20%3C%2FSPAN%3E%3CCODE%3EGet-Command%3C%2FCODE%3E%3CSPAN%3E%20is%20one%20of%20the%20three%20most%20well-known%20PowerShell%20commands%2C%20%3C%2FSPAN%3E%3CCODE%3EGet-Help%3C%2FCODE%3E%3CSPAN%3E%20and%20%3C%2FSPAN%3E%3CCODE%3EGet-Member%3C%2FCODE%3E%3CSPAN%3E%20being%20the%20other%20two.%20This%20post%20will%20be%20an%20exploration%20of%20using%20%3C%2FSPAN%3E%3CCODE%3EGet-Command%3C%2FCODE%3E%3CSPAN%3E%20and%20%3C%2FSPAN%3E%3CCODE%3EGet-Help%3C%2FCODE%3E%3CSPAN%3E.%20%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-300935%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

For me, one of the most important features of PowerShell is the ability to find all the answers you need in the shell. From the early days, PowerShell has included commands for finding cmdlets and functions within the shell including Get-Command. Get-Command is one of the three most well-known PowerShell commands, Get-Help and Get-Member being the other two. This post will be an exploration of using Get-Command and Get-Help. You can get information on Get-Member in this post.

Let's start with Get-Command. Let's say you want to see everything installed in your PowerShell console. That's pretty easy. Type Get-Command and it produces a list of all the commands installed (functions, aliases, cmdlets).

PS C:\Users\mibender> get-command

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           Add-AdlAnalyticsDataSource                         0.5.0      Az.DataLakeAnalytics
Alias           Add-AdlAnalyticsFirewallRule                       0.5.0      Az.DataLakeAnalytics
Alias           Add-AdlStoreFirewallRule                           0.5.0      Az.DataLakeStore
Alias           Add-AdlStoreItemContent                            0.5.0      Az.DataLakeStore
Alias           Add-AdlStoreTrustedIdProvider                      0.5.0      Az.DataLakeStore
Alias           Add-AdlStoreVirtualNetworkRule                     0.5.0      Az.DataLakeStore
...

This displays a few things of importance:

  • CommandType is the type of command. These include alias, function, and cmdlet commands currently installed.
  • Name is self-explanatory and is what you invoke to run the command.
  • Version is the current version of the command you have installed.
  • Source is the module that includes the command.

Let's say you want to find just functions in the console. To do this, you simply add the -commandtype parameter with a value of function and it produces a list of functions only.

PS C:\Users\mibender> get-command -CommandType Function

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        A:
Function        Add-BCDataCacheExtension                           1.0.0.0    BranchCache
Function        Add-BitLockerKeyProtector                          1.0.0.0    BitLocker
Function        Add-DnsClientNrptRule                              1.0.0.0    DnsClient
Function        AddDscResourceProperty                             0.0        PSDesiredStateConfiguration
Function        AddDscResourcePropertyFromMetadata                 0.0        PSDesiredStateConfiguration
Function        Add-EtwTraceProvider                               1.0.0.0    EventTracingManagement
...

Venturing further down the rabbit whole, let's see just the functions that start with the verb get- so we use the -name parameter with a value of Get-* and it produces the list we want.

PS C:\Users\mibender> get-command -CommandType Function -name Get-*

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        Get-AppxLastError                                  2.0.1.0    Appx
Function        Get-AppxLog                                        2.0.1.0    Appx
Function        Get-AssignedAccess                                 1.0.0.0    AssignedAccess
Function        Get-AutologgerConfig                               1.0.0.0    EventTracingManagement
Function        Get-BCClientConfiguration                          1.0.0.0    BranchCache
Function        Get-BCContentServerConfiguration                   1.0.0.0    BranchCache
Function        Get-BCDataCache                                    1.0.0.0    BranchCache
...

You'll notice I used a wildcard (*) in my value for name. It will get every command that begins with "Get-". You can also see I'm following a systematic approach to find to what I'm looking for: Start with a wide net, and gradually reduce the size of the items caught. I use this approach with all queries for information with PowerShell.

So, let's try something, I want to find a command that allows me to modify the firewall rules on a Windows host. Sure I could look on the internet, but that defeats the purpose of using tools in the box.

First, I'll do a search using Get-Command looking for commands with "FireWall" in the -name parameter.

PS C:\Users\mibender> get-command -name *firewall*

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           Add-AdlAnalyticsFirewallRule                       0.5.0      Az.DataLakeAnalytics
Alias           Add-AdlStoreFirewallRule                           0.5.0      Az.DataLakeStore
Alias           Get-AdlAnalyticsFirewallRule                       0.5.0      Az.DataLakeAnalytics
Alias           Get-AdlStoreFirewallRule                           0.5.0      Az.DataLakeStore
Alias           Remove-AdlAnalyticsFirewallRule                    0.5.0      Az.DataLakeAnalytics
Alias           Remove-AdlStoreFirewallRule                        0.5.0      Az.DataLakeStore
Alias           Set-AdlAnalyticsFirewallRule                       0.5.0      Az.DataLakeAnalytics
Alias           Set-AdlStoreFirewallRule                           0.5.0      Az.DataLakeStore
Function        Copy-NetFirewallRule                               2.0.0.0    NetSecurity
Function        Disable-NetFirewallRule                            2.0.0.0    NetSecurity
Function        Enable-NetFirewallRule                             2.0.0.0    NetSecurity
Function        Get-NetFirewallAddressFilter                       2.0.0.0    NetSecurity
Function        Get-NetFirewallApplicationFilter                   2.0.0.0    NetSecurity
Function        Get-NetFirewallInterfaceFilter                     2.0.0.0    NetSecurity
Function        Get-NetFirewallInterfaceTypeFilter                 2.0.0.0    NetSecurity
Function        Get-NetFirewallPortFilter                          2.0.0.0    NetSecurity
Function        Get-NetFirewallProfile                             2.0.0.0    NetSecurity
Function        Get-NetFirewallRule                                2.0.0.0    NetSecurity
Function        Get-NetFirewallSecurityFilter                      2.0.0.0    NetSecurity
Function        Get-NetFirewallServiceFilter                       2.0.0.0    NetSecurity
Function        Get-NetFirewallSetting                             2.0.0.0    NetSecurity
Function        New-NetFirewallRule                                2.0.0.0    NetSecurity

From the partial output, we received a variety of commands. This is because I used Wildcard (*) before and after firewall. This gives me the largest pool of commands containing "firewall" anywhere in the name of the command.

Reviewing the results, I see that there is a noun of NetFirewallRule. That sounds like it may be what I'm looking for so let's try searching for -name *netfirewallrule, and we see what results.

PS C:\Users\mibender> get-command -name *netfirewallrule

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        Copy-NetFirewallRule                               2.0.0.0    NetSecurity
Function        Disable-NetFirewallRule                            2.0.0.0    NetSecurity
Function        Enable-NetFirewallRule                             2.0.0.0    NetSecurity
Function        Get-NetFirewallRule                                2.0.0.0    NetSecurity
Function        New-NetFirewallRule                                2.0.0.0    NetSecurity
Function        Remove-NetFirewallRule                             2.0.0.0    NetSecurity
Function        Rename-NetFirewallRule                             2.0.0.0    NetSecurity
Function        Set-NetFirewallRule                                2.0.0.0    NetSecurity
Function        Show-NetFirewallRule                               2.0.0.0    NetSecurity

Ah yes, now we are getting somewhere. I've managed to list all of the commands that work with NetFirewallRule. Ok. Which should I pick? Well, that can be tricky. We have a number of verbs here used with -NetFireWallRule. In this case, two verbs stick out: New and Set. Here's the best way to remember these verbs and how they work:

  • New ALWAYS should create net-new things. It should never be used to modify existing things. Use it to create new things.
  • Set NEVER should create net-new things. Use it to modify things.

So Set-NetFirewallRule looks to be our winner. So, how do we use it? PowerShell Help to the rescue. PowerShell has a built-in help system to provide you all the information you need. It's run by typing Get-Help <Command>.

Note: If you don't see the output below, run Update-Help. Microsoft updates help files on a regular basis so you should make sure to run this occassionaly. You may need to run PowerShell as an admin for Update-Help to work. Also, all versions of PowerShell ship without the help files so they need to be updated upon first use.

PS C:\Users\mibender> get-help set-netfirewallrule

NAME
    Set-NetFirewallRule

SYNOPSIS
    Modifies existing firewall rules.


SYNTAX
    Set-NetFirewallRule [-Action <Action>] [-AsJob] [-Authentication <Authentication>] [-CimSession
    <CimSession[]>] [-Description <String>] [-Direction <Direction>] [-DynamicTarget
    <DynamicTransport>] [-EdgeTraversalPolicy <EdgeTraversal>] [-Enabled <Enabled>] [-Encryption
    <Encryption>] [-GPOSession <String>] [-IcmpType <String[]>] [-InterfaceAlias <WildcardPattern[]>]
    [-InterfaceType <InterfaceType>] [-LocalAddress <String[]>] [-LocalOnlyMapping <Boolean>]
    [-LocalPort <String[]>] [-LocalUser <String>] [-LooseSourceMapping <Boolean>] [-NewDisplayName
    <String>] [-OverrideBlockRules <Boolean>] [-Owner <String>] [-Package <String>] [-PassThru]
    [-Platform <String[]>] [-PolicyStore <String>] [-Profile <Profile>] [-Program <String>] [-Protocol
    <String>] [-RemoteAddress <String[]>] [-RemoteMachine <String>] [-RemotePort <String[]>]
    [-RemoteUser <String>] [-Service <String>] [-ThrottleLimit <Int32>] -DisplayGroup <String[]>
    [-Confirm] [-WhatIf] [<CommonParameters>]

    Set-NetFirewallRule [-Action <Action>] [-AsJob] [-Authentication <Authentication>] [-CimSession
    <CimSession[]>] [-Description <String>] [-Direction <Direction>] [-DynamicTarget
    <DynamicTransport>] [-EdgeTraversalPolicy <EdgeTraversal>] [-Enabled <Enabled>] [-Encryption
    <Encryption>] [-IcmpType <String[]>] [-InterfaceAlias <WildcardPattern[]>] [-InterfaceType
    <InterfaceType>] [-LocalAddress <String[]>] [-LocalOnlyMapping <Boolean>] [-LocalPort <String[]>]
    [-LocalUser <String>] [-LooseSourceMapping <Boolean>] [-NewDisplayName <String>]
    [-OverrideBlockRules <Boolean>] [-Owner <String>] [-Package <String>] [-PassThru] [-Platform
    <String[]>] [-Profile <Profile>] [-Program <String>] [-Protocol <String>] [-RemoteAddress
    <String[]>] [-RemoteMachine <String>] [-RemotePort <String[]>] [-RemoteUser <String>] [-Service
    <String>] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf]
    [<CommonParameters>]

    Set-NetFirewallRule [-Action <Action>] [-AsJob] [-Authentication <Authentication>] [-CimSession
    <CimSession[]>] [-Description <String>] [-Direction <Direction>] [-DynamicTarget
    <DynamicTransport>] [-EdgeTraversalPolicy <EdgeTraversal>] [-Enabled <Enabled>] [-Encryption
    <Encryption>] [-GPOSession <String>] [-IcmpType <String[]>] [-InterfaceAlias <WildcardPattern[]>]
    [-InterfaceType <InterfaceType>] [-LocalAddress <String[]>] [-LocalOnlyMapping <Boolean>]
    [-LocalPort <String[]>] [-LocalUser <String>] [-LooseSourceMapping <Boolean>] [-NewDisplayName
    <String>] [-OverrideBlockRules <Boolean>] [-Owner <String>] [-Package <String>] [-PassThru]
    [-Platform <String[]>] [-PolicyStore <String>] [-Profile <Profile>] [-Program <String>] [-Protocol
    <String>] [-RemoteAddress <String[]>] [-RemoteMachine <String>] [-RemotePort <String[]>]
    [-RemoteUser <String>] [-Service <String>] [-ThrottleLimit <Int32>] -DisplayName <String[]>
    [-Confirm] [-WhatIf] [<CommonParameters>]

    Set-NetFirewallRule [-Name] <String[]> [-Action <Action>] [-AsJob] [-Authentication
    <Authentication>] [-CimSession <CimSession[]>] [-Description <String>] [-Direction <Direction>]
    [-DynamicTarget <DynamicTransport>] [-EdgeTraversalPolicy <EdgeTraversal>] [-Enabled <Enabled>]
    [-Encryption <Encryption>] [-GPOSession <String>] [-IcmpType <String[]>] [-InterfaceAlias
    <WildcardPattern[]>] [-InterfaceType <InterfaceType>] [-LocalAddress <String[]>]
    [-LocalOnlyMapping <Boolean>] [-LocalPort <String[]>] [-LocalUser <String>] [-LooseSourceMapping
    <Boolean>] [-NewDisplayName <String>] [-OverrideBlockRules <Boolean>] [-Owner <String>] [-Package
    <String>] [-PassThru] [-Platform <String[]>] [-PolicyStore <String>] [-Profile <Profile>]
    [-Program <String>] [-Protocol <String>] [-RemoteAddress <String[]>] [-RemoteMachine <String>]
    [-RemotePort <String[]>] [-RemoteUser <String>] [-Service <String>] [-ThrottleLimit <Int32>]
    [-Confirm] [-WhatIf] [<CommonParameters>]

    Set-NetFirewallRule [-Action <Action>] [-AsJob] [-Authentication <Authentication>] [-CimSession
    <CimSession[]>] [-Description <String>] [-Direction <Direction>] [-DynamicTarget
    <DynamicTransport>] [-EdgeTraversalPolicy <EdgeTraversal>] [-Enabled <Enabled>] [-Encryption
    <Encryption>] [-GPOSession <String>] [-IcmpType <String[]>] [-InterfaceAlias <WildcardPattern[]>]
    [-InterfaceType <InterfaceType>] [-LocalAddress <String[]>] [-LocalOnlyMapping <Boolean>]
    [-LocalPort <String[]>] [-LocalUser <String>] [-LooseSourceMapping <Boolean>] [-NewDisplayName
    <String>] [-OverrideBlockRules <Boolean>] [-Owner <String>] [-Package <String>] [-PassThru]
    [-Platform <String[]>] [-PolicyStore <String>] [-Profile <Profile>] [-Program <String>] [-Protocol
    <String>] [-RemoteAddress <String[]>] [-RemoteMachine <String>] [-RemotePort <String[]>]
    [-RemoteUser <String>] [-Service <String>] [-ThrottleLimit <Int32>] -Group <String[]> [-Confirm]
    [-WhatIf] [<CommonParameters>]


DESCRIPTION
    The Set-NetFirewallRule cmdlet modifies existing firewall rule properties. This cmdlet gets one or
    more firewall rules to be modified with the Name parameter (default), the DisplayName parameter,
    or by group association using the DisplayGroup or Group parameter. Rules cannot be queried by
    property in this cmdlet, but the querying can be done by the Get-NetFirewallRule cmdlet and piped
    into this cmdlet. The remaining parameters modify the properties of the specified rules. If the
    DisplayGroup or Group parameter is specified, then all sets associated with the specified group
    receive the same modifications.

    To move a rule to a new GPO, copy the existing rule using the Copy-NetFirewallRule cmdlet with the
    NewPolicyStore parameter, then remove the old rule with this cmdlet.


RELATED LINKS
    Online Version: http://go.microsoft.com/fwlink/?LinkId=288218
    Copy-NetFirewallRule
    Disable-NetFirewallRule
    Enable-NetFirewallRule
    Get-NetFirewallAddressFilter
    Get-NetFirewallApplicationFilter
    Get-NetFirewallInterfaceFilter
    Get-NetFirewallInterfaceTypeFilter
    Get-NetFirewallPortFilter
    Get-NetFirewallRule
    Get-NetFirewallSecurityFilter
    Get-NetFirewallServiceFilter
    New-NetFirewallRule
    Open-NetGPO
    Remove-NetFirewallRule
    Rename-NetFirewallRule
    Save-NetGPO
    Set-NetIPsecRule
    Set-NetFirewallRule
    Set-NetFirewallSetting
    Show-NetFirewallRule
    New-GPO

REMARKS
    To see the examples, type: "get-help Set-NetFirewallRule -examples".
    For more information, type: "get-help Set-NetFirewallRule -detailed".
    For technical information, type: "get-help Set-NetFirewallRule -full".
    For online help, type: "get-help Set-NetFirewallRule -online"

And, it is the command we are looking for. The Synopsis and Description tell us what the command does (modifies the firewall rules).

To begin using the command, you can review the syntax for the parameters available with the command. For those new to PowerShell, this can be daunting so I'll show you my favorite use of help with the -examples parameter

PS C:\Users\mibender> get-help set-netfirewallrule -examples

NAME
    Set-NetFirewallRule

SYNOPSIS
    Modifies existing firewall rules.


    EXAMPLE 1

    PS C:\>Set-NetFirewallRule -DisplayName "AllowWeb80" -RemoteAddress "192.168.0.2"

    This example changes a rule to match a different remote IP address of a web server for which
    traffic is allowed by a rule.
    EXAMPLE 2

    PS C:\>Set-NetFirewallRule -DisplayGroup "Windows Firewall Remote Management" -Enabled True


    This cmdlet shows an alternate way to enable all of the rules in a predefined group.
    PS C:\>Enable-NetFirewallRule -DisplayGroup "Windows Firewall Remote Management"

    This example enables all of the rules in a predefined group.
    EXAMPLE 3

    PS C:\>Set-NetFirewallRule -DisplayName "AllowMessenger" -Authentication Required –Profile Domain

    This example changes a rule to require authentication and scopes the rule to apply on the domain
    profile. A separate IPsec rule must exist to perform the authentication.

This handy parameter provides you examples, usually listed from simple to more complex, of how to work with the command. Often times, you'll find a command that does some or all of the things you want. I like to copy the command from the help and use it as a base as I work through a command's usage.

Let's say example 1 that sets the remote IP address on a rule is what you want, but your not sure how to use the -remoteaddress parameter. For this, there are a couple of options.

First, you can run Get-Help <command> -Full to see all of the help content including detailed information on parameters. This will produce a ton of information in the console so try using help, a shortcut for get-help, instead. It still runs help but it adds the more functionality of paging each screen. This is great to use when you want all of the help information to review.

PS C:\Users\mibender> help Set-NetFirewallRule -Full

NAME
    Set-NetFirewallRule

SYNOPSIS
    Modifies existing firewall rules.


SYNTAX
    Set-NetFirewallRule [-Action <Action>] [-AsJob] [-Authentication <Authentication>] [-CimSession <CimSession[]>] [-Description <String>] [-Direction <Direction>] [-DynamicTarget <DynamicTransport>] [-EdgeTraversalPolicy <EdgeTraversal>] [-Enabled <Enabled>] [-Encryption <Encryption>] [-GPOSession <String>] [-IcmpType <String[]>] [-InterfaceAlias <WildcardPattern[]>] [-InterfaceType <InterfaceType>] [-LocalAddress <String[]>] [-LocalOnlyMapping <Boolean>] [-LocalPort <String[]>] [-LocalUser <String>] [-LooseSourceMapping <Boolean>] [-NewDisplayName <String>] [-OverrideBlockRules <Boolean>] [-Owner <String>] [-Package <String>] [-PassThru] [-Platform <String[]>] [-PolicyStore <String>] [-Profile <Profile>] [-Program <String>] [-Protocol <String>] [-RemoteAddress <String[]>] [-RemoteMachine <String>] [-RemotePort <String[]>] [-RemoteUser <String>] [-Service <String>] [-ThrottleLimit <Int32>] -DisplayGroup <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]

    Set-NetFirewallRule [-Action <Action>] [-AsJob] [-Authentication <Authentication>] [-CimSession <CimSession[]>] [-Description <String>] [-Direction <Direction>] [-DynamicTarget <DynamicTransport>] [-EdgeTraversalPolicy <EdgeTraversal>] [-Enabled <Enabled>] [-Encryption <Encryption>] [-IcmpType <String[]>] [-InterfaceAlias <WildcardPattern[]>] [-InterfaceType <InterfaceType>] [-LocalAddress <String[]>] [-LocalOnlyMapping <Boolean>] [-LocalPort <String[]>] [-LocalUser <String>] [-LooseSourceMapping <Boolean>] [-NewDisplayName <String>] [-OverrideBlockRules <Boolean>] [-Owner <String>] [-Package <String>] [-PassThru] [-Platform <String[]>] [-Profile <Profile>] [-Program <String>] [-Protocol <String>] [-RemoteAddress <String[]>] [-RemoteMachine <String>] [-RemotePort <String[]>] [-RemoteUser <String>] [-Service <String>] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]

    Set-NetFirewallRule [-Action <Action>] [-AsJob] [-Authentication <Authentication>] [-CimSession <CimSession[]>] [-Description <String>] [-Direction <Direction>] [-DynamicTarget <DynamicTransport>] [-EdgeTraversalPolicy <EdgeTraversal>] [-Enabled <Enabled>] [-Encryption <Encryption>] [-GPOSession <String>] [-IcmpType <String[]>] [-InterfaceAlias <WildcardPattern[]>] [-InterfaceType <InterfaceType>] [-LocalAddress <String[]>] [-LocalOnlyMapping <Boolean>] [-LocalPort <String[]>] [-LocalUser <String>] [-LooseSourceMapping <Boolean>] [-NewDisplayName <String>] [-OverrideBlockRules <Boolean>] [-Owner <String>] [-Package <String>] [-PassThru] [-Platform <String[]>] [-PolicyStore <String>] [-Profile <Profile>] [-Program <String>] [-Protocol <String>] [-RemoteAddress <String[]>] [-RemoteMachine <String>] [-RemotePort <String[]>] [-RemoteUser <String>] [-Service <String>] [-ThrottleLimit <Int32>] -DisplayName <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]

    Set-NetFirewallRule [-Name] <String[]> [-Action <Action>] [-AsJob] [-Authentication <Authentication>] [-CimSession <CimSession[]>] [-Description <String>] [-Direction <Direction>] [-DynamicTarget <DynamicTransport>] [-EdgeTraversalPolicy <EdgeTraversal>] [-Enabled <Enabled>] [-Encryption <Encryption>] [-GPOSession <String>] [-IcmpType <String[]>] [-InterfaceAlias <WildcardPattern[]>] [-InterfaceType <InterfaceType>] [-LocalAddress <String[]>] [-LocalOnlyMapping <Boolean>] [-LocalPort <String[]>] [-LocalUser <String>] [-LooseSourceMapping <Boolean>] [-NewDisplayName <String>] [-OverrideBlockRules <Boolean>] [-Owner <String>] [-Package <String>] [-PassThru] [-Platform <String[]>] [-PolicyStore <String>] [-Profile <Profile>] [-Program <String>] [-Protocol <String>] [-RemoteAddress <String[]>] [-RemoteMachine <String>] [-RemotePort <String[]>] [-RemoteUser <String>] [-Service <String>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]

    Set-NetFirewallRule [-Action <Action>] [-AsJob] [-Authentication <Authentication>] [-CimSession <CimSession[]>] [-Description <String>] [-Direction <Direction>] [-DynamicTarget <DynamicTransport>] [-EdgeTraversalPolicy <EdgeTraversal>] [-Enabled <Enabled>] [-Encryption <Encryption>] [-GPOSession <String>] [-IcmpType <String[]>] [-InterfaceAlias <WildcardPattern[]>] [-InterfaceType <InterfaceType>] [-LocalAddress <String[]>] [-LocalOnlyMapping <Boolean>] [-LocalPort <String[]>] [-LocalUser <String>] [-LooseSourceMapping <Boolean>] [-NewDisplayName <String>] [-OverrideBlockRules <Boolean>] [-Owner <String>] [-Package <String>] [-PassThru] [-Platform <String[]>] [-PolicyStore <String>] [-Profile <Profile>] [-Program <String>] [-Protocol <String>] [-RemoteAddress <String[]>] [-RemoteMachine <String>] [-RemotePort <String[]>] [-RemoteUser <String>] [-Service <String>] [-ThrottleLimit <Int32>] -Group <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]


DESCRIPTION
    The Set-NetFirewallRule cmdlet modifies existing firewall rule properties. This cmdlet gets one or more firewall rules to be modified with the Name parameter (default), the DisplayName parameter, or by group association using the DisplayGroup or Group parameter. Rules cannot be queried by property in this cmdlet, but the querying can be done by the Get-NetFirewallRule cmdlet and piped into this cmdlet. The remaining parameters modify the properties of the specified rules. If the DisplayGroup or Group parameter is specified, then all sets associated with the specified group receive the same modifications.

    To move a rule to a new GPO, copy the existing rule using the Copy-NetFirewallRule cmdlet with the NewPolicyStore parameter, then remove the old rule with this cmdlet.


PARAMETERS
    -Action <Action>
        Specifies that matching firewall rules of the indicated action are modified.

        This parameter specifies the action to take on traffic that matches this rule.
        The acceptable values for this parameter are:  Allow or Block.

         -- Allow: Network packets that match all of the criteria specified in this rule are permitted through the firewall.

         -- Block: Network packets that match all of the criteria specified in this rule are dropped by the firewall.

        The default value is Allow.
        Note: The OverrideBlockRules field changes an allow rule into an allow bypass rule.

        Required?                    false
        Position?                    named
        Default value
        Accept pipeline input?       false
        Accept wildcard characters?  false

The next option is to get more granular and just search for the -RemoteAddress parameter by using -Parameter with help like this.

PS C:\Users\mibender> Help set-netfirewallrule -Parameter RemoteAddress

-RemoteAddress <String[]>
    Specifies that network packets with matching IP addresses match this rule.

    This parameter value is the second end point of an IPsec rule and specifies the computers that are subject to the requirements of this rule.

    This parameter value is an IPv4 or IPv6 address, hostname, subnet, range, or the following keyword: Any.

    The acceptable formats for this parameter are:

     -- Single IPv4 Address: 1.2.3.4

     -- Single IPv6 Address: fe80::1

     -- IPv4 Subnet (by network bit count): 1.2.3.4/24

     -- IPv6 Subnet (by network bit count): fe80::1/48

     -- IPv4 Subnet (by network mask): 1.2.3.4/255.255.255.0

     -- IPv4 Range: 1.2.3.4 through 1.2.3.7

     -- IPv6 Range: fe80::1 through fe80::9
    Note: Querying for rules with this parameter can only be performed using filter objects. See the Get-NetFirewallAddressFilter cmdlet for more information.

    Required?                    false
    Position?                    named
    Default value
    Accept pipeline input?       false
    Accept wildcard characters?  false

Now, that gets us the information we are looking for including a description of the parameter, acceptable formats for the parameter, and more. One important piece of information is the <...> value after the parameter name. This tells you the type of value the parameter accepts. In this case it's a string value (numbers/letters/symbols). But it could have been a boolean or other value. This is important so you know what you can and can't use in a parameter. This becomes super important later in your PowerShell journey when you begin using the pipeline.

So there you have it! A quick and easy approach for finding commands & how to use them. Use Get-Command and Get-Help whenever you need to do something in PowerShell. Add on Get-Member, and your on your way to becoming a PowerShell Guru!

If you want more information on each of these commands, check out the docs below:

Get-Command

Get-Help