TorBT - Torrents and Magnet Links Search Engine
Dent Ch. - Mastering PowerShell Scripting, 4th Edition - 2021
- Date: 2022-03-09
- Size: 19 MB
- Files: 1947
File Name
Size
code/.gitignore
5.5 kB
code/Chapter01/10.1.1.Get-ExperimentalFeature.ps1
490 B
code/Chapter01/10.1.2.Get-ExperimentalFeature_Table.ps1
64 B
code/Chapter01/10.1.3.Enable-ExperimentalFeature.ps1
62 B
code/Chapter01/10.1.4.PSCommandNotFoundSuggestion.ps1
405 B
code/Chapter01/10.1.5.Disable-ExperimentalFeature.ps1
63 B
code/Chapter01/3.1.1.Get-Help.ps1
17 B
code/Chapter01/3.1.2.UpdatableHelp.ps1
29 B
code/Chapter01/3.2.1.Get-Help.ps1
8 B
code/Chapter01/3.2.10.Get-Help_Parameter.ps1
312 B
code/Chapter01/3.2.11.Get-Help_Detailed.ps1
30 B
code/Chapter01/3.2.12.Get-Help_Full.ps1
601 B
code/Chapter01/3.2.2.Get-Help_more.ps1
23 B
code/Chapter01/3.2.3.Get-Help_ShowWindow.ps1
28 B
code/Chapter01/3.2.4.Get-Help_All.ps1
34 B
code/Chapter01/3.2.5.Get-Help_Example.ps1
21 B
code/Chapter01/3.2.6.Get-Help_Online.ps1
28 B
code/Chapter01/3.2.7.HelpUri.ps1
49 B
code/Chapter01/3.2.8.Get-Process.ps1
55 B
code/Chapter01/3.2.9.Get-Help_Examples.ps1
30 B
code/Chapter01/3.3.1.Save-Help.ps1
78 B
code/Chapter01/3.3.2.Get-UICulture.ps1
228 B
code/Chapter01/3.3.3.Save-Help_UICulture.ps1
95 B
code/Chapter01/3.3.4.Save-Help_Limit.ps1
281 B
code/Chapter01/3.3.5.Save-Help_Force.ps1
432 B
code/Chapter01/3.3.6.Save-Help_All.ps1
55 B
code/Chapter01/3.4.1.Update-Help.ps1
11 B
code/Chapter01/3.4.2.Update-Help_UICulture.ps1
30 B
code/Chapter01/3.4.3.Update-Help_ImportHelp.ps1
33 B
code/Chapter01/3.4.3.Update-Help_Limit.ps1
75 B
code/Chapter01/3.4.4.Update-Help_FromFolder.ps1
35 B
code/Chapter01/3.4.5.Update-Help_UICulture_Error.ps1
447 B
code/Chapter01/3.4.6.Update-Help_FromFolder_UICulture.ps1
92 B
code/Chapter01/3.5.1.Get-Help_About.ps1
27 B
code/Chapter01/3.5.2.Get-Help_About_Wildcard.ps1
24 B
code/Chapter01/4.1.1.Get-Verb.ps1
8 B
code/Chapter01/4.3.1.Get-Command.ps1
28 B
code/Chapter01/4.4.1.Get-Alias.ps1
255 B
code/Chapter01/4.4.2.Get-Alias_ByName.ps1
13 B
code/Chapter01/4.5.2.Get-Alias_ByDefinition.ps1
304 B
code/Chapter01/4.5.3.AliasUse.ps1
36 B
code/Chapter01/4.5.4.New-Alias.ps1
37 B
code/Chapter01/5.1.1.PositionalParams.ps1
52 B
code/Chapter01/5.1.2.MandatoryNamedParams.ps1
50 B
code/Chapter01/5.1.3.MandatoryPositionalParams.ps1
58 B
code/Chapter01/5.1.4.MultipleMandatoryPositionalParams.ps1
259 B
code/Chapter01/5.1.5.SwitchParam.ps1
35 B
code/Chapter01/5.1.6.SwitchParam_FromVariable.ps1
111 B
code/Chapter01/5.2.1.ParameterValues.ps1
42 B
code/Chapter01/5.2.2.ParameterValues_Scalar.ps1
231 B
code/Chapter01/5.2.3.ParameterValues_Array.ps1
286 B
code/Chapter01/5.2.4.ParameterValues_ScalarForArrayParam.ps1
29 B
code/Chapter01/5.2.5.ParameterValues_Positional.ps1
55 B
code/Chapter01/5.3.1.ParameterSets.ps1
19 B
code/Chapter01/5.3.2.ParameterSetSelection.ps1
128 B
code/Chapter01/5.4.1.About_CommonParameters.ps1
33 B
code/Chapter01/5.4.2.About_CommonParameters_Verbose.ps1
171 B
code/Chapter01/5.5.1.PreferenceVariables.ps1
35 B
code/Chapter01/5.5.10.BypassingWhatIf.ps1
61 B
code/Chapter01/5.5.11.WhatIfPreference.ps1
25 B
code/Chapter01/5.5.12.ConfirmAndWhatIfPreference.ps1
214 B
code/Chapter01/5.5.3.Confirm.ps1
375 B
code/Chapter01/5.5.4.Confirm_False.ps1
96 B
code/Chapter01/5.5.5.Clear-RecycleBin_Confirm.ps1
301 B
code/Chapter01/5.5.6.Clear-RecycleBin_Confirm_False.ps1
32 B
code/Chapter01/5.5.7.ConfirmPreference.ps1
47 B
code/Chapter01/5.5.8.ConfirmPreference_Set.ps1
26 B
code/Chapter01/5.5.9.WhatIf.ps1
232 B
code/Chapter01/5.6.1.Force.ps1
37 B
code/Chapter01/5.6.2.WithoutForce.ps1
379 B
code/Chapter01/5.6.3.WithForce.ps1
33 B
code/Chapter01/5.7.1.PassThru.ps1
262 B
code/Chapter01/5.7.2.PassThru_Set-Service.ps1
95 B
code/Chapter01/6.1.1.Providers.ps1
24 B
code/Chapter01/6.1.10.Get-ChildItem_RegistryProvider.ps1
26 B
code/Chapter01/6.1.11.Get-Item.ps1
25 B
code/Chapter01/6.1.12.Get-ChildItem_FileSystemProvider.ps1
37 B
code/Chapter01/6.1.2.Get-PSProvider.ps1
666 B
code/Chapter01/6.1.3.ProviderHelp.ps1
26 B
code/Chapter01/6.1.4.ProviderHelpFiles_Certificate.ps1
43 B
code/Chapter01/6.1.5.ProviderHelpFiles_All.ps1
33 B
code/Chapter01/6.1.6.ProviderHelp_WindowsPowerShell_Certificate.ps1
47 B
code/Chapter01/6.1.7.ProviderHelp_WindowsPowerShell_All.ps1
29 B
code/Chapter01/6.1.8.Provider_Tab_Completion.ps1
167 B
code/Chapter01/6.1.9.Get-ChildItem_VariableProvider.ps1
26 B
code/Chapter01/6.2.1.Get-PSDrive.ps1
636 B
code/Chapter01/6.2.2.CertProvider.ps1
522 B
code/Chapter01/6.2.3.New-PSDrive.ps1
65 B
code/Chapter01/6.2.4.Get-ChildItem_HKCC.ps1
199 B
code/Chapter01/7.1.1.Splatting.ps1
69 B
code/Chapter01/7.1.2.Splatting_CallOperator.ps1
71 B
code/Chapter01/7.2.1.LongCommand.ps1
307 B
code/Chapter01/7.2.2.UsingTick.ps1
372 B
code/Chapter01/7.2.3.Splatting_Register-ScheduledTask.ps1
446 B
code/Chapter01/7.3.1.ConditionalParam_RepeatedCommand.ps1
129 B
code/Chapter01/7.3.2.ConditionalParam_Splatting.ps1
119 B
code/Chapter01/7.4.1.MultipleSplattingVariables.ps1
760 B
code/Chapter01/7.5.1.ExampleCommand.ps1
35 B
code/Chapter01/7.5.2.PositionalSplatting.ps1
67 B
code/Chapter01/7.5.3.PositionalSplattingExe.ps1
79 B
code/Chapter01/9.1.1.ArgumentMode_string.ps1
24 B
code/Chapter01/9.1.2.ArgumentMode.ps1
424 B
code/Chapter01/9.1.3.ExpressionMode.ps1
539 B
code/Chapter01/9.1.4.ArgumentMode_Enum.ps1
244 B
code/Chapter01/9.1.5.ExpressionMode_Enum.ps1
32 B
code/Chapter02/1.1.1.Get-Module.ps1
10 B
code/Chapter02/1.1.2.Get-Module_ListAvailable.ps1
25 B
code/Chapter02/1.2.1.Autoloading.ps1
362 B
code/Chapter02/1.2.2.AutoloadingPreference.ps1
40 B
code/Chapter02/1.2.3.Import-Module.ps1
91 B
code/Chapter02/1.2.4.Get-Command.ps1
30 B
code/Chapter02/1.2.5.Import-Module_MaximumVersion.ps1
54 B
code/Chapter02/1.4.1.PSMODULEPATH.ps1
300 B
code/Chapter02/1.5.1.Get-Module_SkipEditionCheck.ps1
358 B
code/Chapter02/1.5.2.Import-Module_SkipEditionCheck.ps1
36 B
code/Chapter02/1.5.3.Import-Module_UseWindowsPowershell.ps1
370 B
code/Chapter02/1.5.4.Get-PSSession_WinPSCompatSession.ps1
39 B
code/Chapter02/1.5.5.Using_WinPSCompatSession.ps1
168 B
code/Chapter02/1.5.6.Serialization_Before.ps1
128 B
code/Chapter02/1.5.7.Serialization_Error.ps1
469 B
code/Chapter02/2.3.1.Find-Module.ps1
70 B
code/Chapter02/2.3.2.Find-Module_Filter.ps1
23 B
code/Chapter02/2.4.1.Install-Module.ps1
62 B
code/Chapter02/2.4.2.Install-Module_Scope.ps1
40 B
code/Chapter02/2.4.3.Install-Module_Scope_Force.ps1
47 B
code/Chapter02/2.4.4.Install-Module_Reinstall.ps1
30 B
code/Chapter02/2.6.1.Save-Module.ps1
41 B
code/Chapter02/3.1.1.Install-Module_PowerShellGet3.ps1
53 B
code/Chapter02/3.1.2.Register-PSResourceRepository.ps1
41 B
code/Chapter02/3.1.3.Find-PSResource.ps1
51 B
code/Chapter02/3.3.1.Find-PSResource_Version.ps1
47 B
code/Chapter02/3.3.2.Find-PSResource_Version_Range.ps1
110 B
code/Chapter02/3.3.3.Find-PSResource_Version_Range_Inclusive.ps1
110 B
code/Chapter02/4.1.1.Register-PSRepository_SMB.ps1
168 B
code/Chapter02/4.1.2.Publish-Module_SMB.ps1
133 B
code/Chapter02/5.1.1.Get-PSSnapIn.ps1
24 B
code/Chapter02/5.2.1.Add-PSSnapIn.ps1
29 B
code/Chapter02/5.2.3.Get-Command_SnapIn.ps1
36 B
code/Chapter03/1.1.1.AssigningOutput.ps1
66 B
code/Chapter03/1.2.1.VerboseOutput.ps1
563 B
code/Chapter03/1.3.1.ObjectPipeline.ps1
127 B
code/Chapter03/1.3.2.ObjectPipeline_Pipe_at_end.ps1
92 B
code/Chapter03/1.3.3.ObjectPipeline_Pipe_at_start.ps1
80 B
code/Chapter03/2.1.1.Get-Member.ps1
69 B
code/Chapter03/2.1.2.Get-Member_MemberType.ps1
89 B
code/Chapter03/2.2.1.Property.ps1
46 B
code/Chapter03/2.2.2.Property_Parens.ps1
27 B
code/Chapter03/2.2.3.Property_Sub-property.ps1
61 B
code/Chapter03/2.2.4.Property_Sub-property_Parens.ps1
42 B
code/Chapter03/2.2.5.Property_with_spaces.ps1
115 B
code/Chapter03/2.2.6.Property_with_variable.ps1
130 B
code/Chapter03/2.3.1.AccessModifiers.ps1
624 B
code/Chapter03/2.3.2.AccessModifiers_ReadOnly.ps1
130 B
code/Chapter03/2.3.3.AccessModifiers_Set.ps1
92 B
code/Chapter03/2.3.4.AccessModifiers_Result.ps1
65 B
code/Chapter03/2.4.1.Method_show.ps1
162 B
code/Chapter03/2.4.2.Method_invoke.ps1
101 B
code/Chapter03/2.4.3.Method_ToString.ps1
79 B
code/Chapter03/2.4.4.Get-Date_Format_alternative.ps1
73 B
code/Chapter03/2.4.5.Method_chaining.ps1
42 B
code/Chapter03/2.4.6.Method_arguments.ps1
89 B
code/Chapter03/2.4.7.Method_results.ps1
41 B
code/Chapter03/2.4.8.Method_close.ps1
18 B
code/Chapter03/2.5.1.Add-Member_NoteProperty.ps1
165 B
code/Chapter03/2.5.2.Add-Member_ScriptProperty.ps1
340 B
code/Chapter03/2.5.3.Add-Member_ScriptMethod.ps1
303 B
code/Chapter03/2.5.4.Add-Member_ScriptMethod_output.ps1
55 B
code/Chapter03/3.0.1.Get-PSDrive_Example.ps1
373 B
code/Chapter03/3.1.1.ForEach-Object.ps1
78 B
code/Chapter03/3.1.10.ForEach-Object_MemberExpansion.ps1
46 B
code/Chapter03/3.1.11.ForEach-Object_MemberInvocation.ps1
138 B
code/Chapter03/3.1.2.ForEach-Object_Process.ps1
88 B
code/Chapter03/3.1.3.ForEach-Object_Begin_Process_and_End.ps1
249 B
code/Chapter03/3.1.4.ForEach-Object_Parallel.ps1
71 B
code/Chapter03/3.1.5.ForEach-Object_Using variables.ps1
107 B
code/Chapter03/3.1.6.ForEach-Object_Parallel_Using_variables.ps1
134 B
code/Chapter03/3.1.7.ForEach-Object_Parallel_Using_is_Read_Only.ps1
361 B
code/Chapter03/3.1.8.ForEach-Object_Parallel_Using_and_collections.ps1
90 B
code/Chapter03/3.1.9.ForEach-Object_Assignment.ps1
49 B
code/Chapter03/3.2.1.Where-Object.ps1
60 B
code/Chapter03/3.2.2.Where-Object_OddOrder.ps1
80 B
code/Chapter03/3.2.3.Where-Object_FilterScript.ps1
94 B
code/Chapter03/3.2.4.Where-Object_OrderedExpressions.ps1
184 B
code/Chapter03/4.1.1.Select-Object.ps1
48 B
code/Chapter03/4.1.10.Select-Object_CalculatedProperties.ps1
147 B
code/Chapter03/4.1.11.Select-Object_CalculatedProperties_Multiline.ps1
168 B
code/Chapter03/4.1.12.Select-Object_CalculatedProperties_Combined.ps1
326 B
code/Chapter03/4.1.13.Select-Object_GetType.ps1
49 B
code/Chapter03/4.1.14.Select-Object_GetType_CustomObject.ps1
73 B
code/Chapter03/4.1.15.Select-Object_ExpandProperty.ps1
58 B
code/Chapter03/4.1.16.Select-Object_ExpandProperty_and_Property.ps1
131 B
code/Chapter03/4.1.17.Select-Object_ExpandProperty_merging.ps1
404 B
code/Chapter03/4.1.18.Select-Object_Unique.ps1
47 B
code/Chapter03/4.1.19.Select-Object_Unique_Before.ps1
180 B
code/Chapter03/4.1.2.Select-Object_Wildcards.ps1
51 B
code/Chapter03/4.1.20.Select-Object_Unique_After.ps1
213 B
code/Chapter03/4.1.21.PropertySets.ps1
352 B
code/Chapter03/4.1.22.Select-Object_PropertySet.ps1
205 B
code/Chapter03/4.1.3.Select-Object_Exclude_Wildcards.ps1
66 B
code/Chapter03/4.1.4.Select-Object_First.ps1
51 B
code/Chapter03/4.1.5.Select-Object_Last.ps1
41 B
code/Chapter03/4.1.6.Select-Object_Skip_First.ps1
51 B
code/Chapter03/4.1.7.Select-Object_Skip_Last.ps1
50 B
code/Chapter03/4.1.8.Select-Object_Index.ps1
49 B
code/Chapter03/4.1.9.Select-Object_SkipIndex.ps1
53 B
code/Chapter03/4.2.1.Sort-Object.ps1
76 B
code/Chapter03/4.2.2.Sort-Object_CaseInsensitive.ps1
79 B
code/Chapter03/4.2.3.Sort-Object_Property.ps1
38 B
code/Chapter03/4.2.4.Sort-Object_MultipleProperties.ps1
72 B
code/Chapter03/4.2.5.ExamResults_Result.ps1
733 B
code/Chapter03/4.2.6.ExamResults_ResultAndMark.ps1
724 B
code/Chapter03/4.2.7.ExamResults_ResultAndMark_Descending.ps1
736 B
code/Chapter03/4.2.8.ExamResults_ResultAscdending_MarkDescending.ps1
769 B
code/Chapter03/5.1.1.Group-Object.ps1
263 B
code/Chapter03/5.1.2.Group-Object_NoElement.ps1
142 B
code/Chapter03/5.1.3.Group-Object_Property.ps1
81 B
code/Chapter03/5.1.4.Group-Object_Pipeline.ps1
685 B
code/Chapter03/5.1.5.Group-Object_Pipeline_MultipleProperties.ps1
681 B
code/Chapter03/5.1.6.Group-Object_ScriptBlock.ps1
343 B
code/Chapter03/5.1.7.Group-Object_AsHashtable.ps1
743 B
code/Chapter03/5.1.8.Group-Object_AsHashtable_TypeSensitive.ps1
716 B
code/Chapter03/5.1.9.Group-Object_CaseSensitive.ps1
241 B
code/Chapter03/5.2.1.Measure-Object.ps1
141 B
code/Chapter03/5.2.2.Measure-Object_Sum.ps1
158 B
code/Chapter03/5.2.3.Measure-Object_All.ps1
201 B
code/Chapter03/5.2.4.Measure-Object_Property.ps1
213 B
code/Chapter03/5.2.5.Measure-Object_WordAndCharacter.ps1
237 B
code/Chapter03/6.1.1.Compare-Object.ps1
59 B
code/Chapter03/6.1.2.Compare-Object_SideIndicator.ps1
183 B
code/Chapter03/6.1.3.Compare-Object_IncludeEqual.ps1
289 B
code/Chapter03/6.1.4.Compare-Object_ExcludeDifferent_PassThru.ps1
205 B
code/Chapter03/6.1.5.Compare-Object_MultipleProprerties.ps1
270 B
code/Chapter03/6.1.6.Compare-Object_AvoidingNull.ps1
181 B
code/Chapter03/7.1.1.Export-Csv.ps1
38 B
code/Chapter03/7.1.2.Export-Csv_Append_TypeMismatch.ps1
462 B
code/Chapter03/7.1.3.Export-Csv_Append.ps1
167 B
code/Chapter03/7.1.4.Export-Csv_NoTypeInformation.ps1
57 B
code/Chapter03/7.1.5.ConvertTo-Csv.ps1
182 B
code/Chapter03/7.1.6.ConvertTo-Csv_Arrays.ps1
178 B
code/Chapter03/7.1.7.ConvertTo-Csv_Arrays_Why.ps1
149 B
code/Chapter03/7.1.8.ConvertTo-Csv_Arrays_Conversion.ps1
243 B
code/Chapter03/7.2.1.Import-Csv.ps1
45 B
code/Chapter03/7.2.2.Import-Csv_Sort-Object.ps1
232 B
code/Chapter03/7.2.3.Import-Csv_Sort-Object_Casting.ps1
153 B
code/Chapter03/7.2.4.ConvertFrom-Csv.ps1
136 B
code/Chapter03/7.3.1.Export-CliXml.ps1
115 B
code/Chapter03/7.3.2.Import-CliXml.ps1
36 B
code/Chapter03/7.3.3.Import-CliXml_GetType.ps1
213 B
code/Chapter03/7.3.4.Export-CliXml_Credentials.ps1
48 B
code/Chapter03/7.3.5.Import-CliXml_Credentials.ps1
45 B
code/Chapter03/7.4.1.Tee-Object.ps1
46 B
code/Chapter04/1.1.1.OperatorPrecedence.ps1
52 B
code/Chapter04/1.1.2.OperatorPrecedence_Brackets.ps1
11 B
code/Chapter04/1.2.1.Addition_Simple.ps1
17 B
code/Chapter04/1.2.2.Concatenation.ps1
16 B
code/Chapter04/1.2.3.Concatenation_casting.ps1
19 B
code/Chapter04/1.2.4.Concatenation_lhs_wins.ps1
205 B
code/Chapter04/1.2.5.JoinArray.ps1
11 B
code/Chapter04/1.2.6.JoinArray_Examples.ps1
105 B
code/Chapter04/1.2.7.JoinHashtable.ps1
25 B
code/Chapter04/1.2.8.JoinHashtable_DuplicateKeys.ps1
171 B
code/Chapter04/1.3.1.Subtraction.ps1
13 B
code/Chapter04/1.4.1.Multiplication.ps1
7 B
code/Chapter04/1.4.2.Multiplication_Strings.ps1
11 B
code/Chapter04/1.4.3.Multiplication_Strings_IncorrectOrder.ps1
160 B
code/Chapter04/1.4.4.ArrayMultiplication.ps1
57 B
code/Chapter04/1.5.1.Division.ps1
6 B
code/Chapter04/1.5.2.Division_DivideByZero.ps1
80 B
code/Chapter04/1.6.1.Remainder.ps1
5 B
code/Chapter04/1.6.2.Remainder_Alternation.ps1
247 B
code/Chapter04/2.1.1.Assignment.ps1
24 B
code/Chapter04/2.1.10.AddToHashtable.ps1
50 B
code/Chapter04/2.1.11.SubtractAndAssign.ps1
15 B
code/Chapter04/2.1.2.Assignment_Property.ps1
48 B
code/Chapter04/2.1.3.AddAndAssign.ps1
16 B
code/Chapter04/2.1.4.AddAndAssign_Equivalent.ps1
20 B
code/Chapter04/2.1.5.ConcatenateAndAssign.ps1
33 B
code/Chapter04/2.1.7.TypeMismatch.ps1
180 B
code/Chapter04/2.1.8.AddToArray.ps1
26 B
code/Chapter04/2.1.9.AddArrayToArray.ps1
29 B
code/Chapter04/2.2.1.MultiplyAndAssign.ps1
15 B
code/Chapter04/2.2.2.MultiplyStringAndAssign.ps1
29 B
code/Chapter04/2.2.3.ImplicitConversion.ps1
31 B
code/Chapter04/2.2.4.MultiplyStringAndAssign_Error.ps1
178 B
code/Chapter04/2.2.5.MultiplyArrayAndAssign.ps1
31 B
code/Chapter04/2.2.6.DivideAndAssign.ps1
28 B
code/Chapter04/2.2.7.RemainderAndAssign.ps1
29 B
code/Chapter04/2.3.1.Assign_statement.ps1
408 B
code/Chapter04/3.1.1.Equals.ps1
19 B
code/Chapter04/3.1.2.CaseSensitiveEquals.ps1
20 B
code/Chapter04/3.1.3.ExplicitCaseInsensitiveEquals.ps1
20 B
code/Chapter04/3.2.1.ComparisonAndArrays.ps1
160 B
code/Chapter04/3.2.2.ArrayEqualsNull.ps1
70 B
code/Chapter04/3.2.3.ArrayEqualsNull_InvalidComparison.ps1
132 B
code/Chapter04/3.2.4.ImplicitBoolean.ps1
89 B
code/Chapter04/3.2.5.NullEqualsArray.ps1
86 B
code/Chapter04/3.3.1.Equal_Examples.ps1
76 B
code/Chapter04/3.3.2.NotEqual_Examples.ps1
51 B
code/Chapter04/3.4.1.LikeAndNotLike.ps1
111 B
code/Chapter04/3.5.1.GreaterThanAndLessThan.ps1
122 B
code/Chapter04/3.5.2.GreaterThanAndLessThan_Alphabetical_CaseInsensitive.ps1
161 B
code/Chapter04/3.5.3.GreaterThanAndLessThan_Alphabetical_CaseSensitive.ps1
104 B
code/Chapter04/3.6.1.ContainsAndNotContains.ps1
76 B
code/Chapter04/3.6.2.In.ps1
65 B
code/Chapter04/4.1.1.Match.ps1
120 B
code/Chapter04/4.1.2.MatchAndMatches.ps1
195 B
code/Chapter04/4.1.3.MatchAndNumberedGroups.ps1
317 B
code/Chapter04/4.1.4.CaptureGroups.ps1
84 B
code/Chapter04/4.2.1.Replace.ps1
64 B
code/Chapter04/4.2.2.ReplaceWithNothing.ps1
57 B
code/Chapter04/4.2.3.ReplaceWithTokens.ps1
60 B
code/Chapter04/4.2.4.ReplaceWithTokens_DoubleQuotes.ps1
309 B
code/Chapter04/4.3.1.Split.ps1
71 B
code/Chapter04/4.3.2.Split_MultipleVariables.ps1
49 B
code/Chapter04/4.3.3.Split_DiscardingValues.ps1
48 B
code/Chapter04/4.3.4.Split_Maximum.ps1
35 B
code/Chapter04/4.3.5.Split_SimpleMatch.ps1
41 B
code/Chapter04/4.3.6.Split_SplitOptions.ps1
66 B
code/Chapter04/5.1.1.And.ps1
142 B
code/Chapter04/5.2.1.Or.ps1
124 B
code/Chapter04/5.3.1.ExclusiveOr.ps1
90 B
code/Chapter04/5.4.1.Not.ps1
78 B
code/Chapter04/6.1.1.BinaryAnd.ps1
36 B
code/Chapter04/6.2.1.BinaryOr.ps1
37 B
code/Chapter04/6.3.1.BinaryExclusiveOr.ps1
37 B
code/Chapter04/6.3.2.BinaryExclusiveOr_Toggle.ps1
100 B
code/Chapter04/6.4.1.BinaryNot.ps1
38 B
code/Chapter04/6.5.1.Shift_Precedence.ps1
17 B
code/Chapter04/6.5.10.Shift_IPAddress.ps1
83 B
code/Chapter04/6.5.2.Shift_Left.ps1
25 B
code/Chapter04/6.5.3.Shift_Right.ps1
25 B
code/Chapter04/6.5.4.Shift_Right_Discard_bits.ps1
22 B
code/Chapter04/6.5.5.Shift_Left_Discard_bits.ps1
34 B
code/Chapter04/6.5.6.Shift_Left_Int16.ps1
33 B
code/Chapter04/6.5.9.Shift_Signing_bit.ps1
35 B
code/Chapter04/7.1.1.As.ps1
36 B
code/Chapter04/7.1.2.As_TestForType.ps1
202 B
code/Chapter04/7.2.1.IsAndIsNot.ps1
78 B
code/Chapter04/8.1.1.RedirectIntroduction.ps1
279 B
code/Chapter04/8.2.1.RedirectToFile.ps1
210 B
code/Chapter04/8.2.2.RedirectToFile_Append.ps1
169 B
code/Chapter04/8.2.3.RedirectToFile_Multiple.ps1
183 B
code/Chapter04/8.2.4.RedirectFile_AllStreams.ps1
327 B
code/Chapter04/8.3.1.RedirectToStandardOut.ps1
209 B
code/Chapter04/8.3.2.RedirectMultipleToStandardOut.ps1
165 B
code/Chapter04/8.3.3.RedirectAllToStandardOut.ps1
313 B
code/Chapter04/8.4.1.RedirectToNull.ps1
19 B
code/Chapter04/8.4.2.RedirectToNull_EmptyString.ps1
16 B
code/Chapter04/8.4.3.RedirectMultipleToNull.ps1
65 B
code/Chapter04/9.1.1.Call.ps1
44 B
code/Chapter04/9.1.2.Call_Variable.ps1
57 B
code/Chapter04/9.1.3.Call_Arguments.ps1
112 B
code/Chapter04/9.1.4.Call_ArgumentsFromVariable.ps1
169 B
code/Chapter04/9.1.5.CallScriptBlock.ps1
58 B
code/Chapter04/9.10.1.PipelineChain_And.ps1
122 B
code/Chapter04/9.10.2.PipelineChain_And_Fail.ps1
111 B
code/Chapter04/9.10.3.InstallApp.ps1
85 B
code/Chapter04/9.10.4.InstallApp_without_operators.ps1
105 B
code/Chapter04/9.10.5.PipelineChain_Or.ps1
121 B
code/Chapter04/9.11.1.Background.ps1
22 B
code/Chapter04/9.11.2.Background_Get-Job.ps1
40 B
code/Chapter04/9.11.3.Background_Recieve-Job.ps1
40 B
code/Chapter04/9.2.1.Comma.ps1
19 B
code/Chapter04/9.2.2.SingleElementArray.ps1
13 B
code/Chapter04/9.3.1.Format.ps1
35 B
code/Chapter04/9.3.2.Format_Percentage.ps1
31 B
code/Chapter04/9.3.3.Format_Hex.ps1
37 B
code/Chapter04/9.3.4.Format_Currency.ps1
28 B
code/Chapter04/9.3.5.Format_Date.ps1
57 B
code/Chapter04/9.4.1.PostIncrement.ps1
75 B
code/Chapter04/9.4.2.PostDecrement.ps1
73 B
code/Chapter04/9.4.3.PostIncrementExample.ps1
166 B
code/Chapter04/9.4.4.PreIncrementExample.ps1
159 B
code/Chapter04/9.5.1.Join.ps1
84 B
code/Chapter04/9.5.2.JoinNoSeparator.ps1
100 B
code/Chapter04/9.6.1.Ternary_Before.ps1
52 B
code/Chapter04/9.6.2.Ternary_After.ps1
26 B
code/Chapter04/9.6.3.Ternary_Complex.ps1
53 B
code/Chapter04/9.7.1.Null-coalescing_Before.ps1
126 B
code/Chapter04/9.7.2.Null-coalescing_After.ps1
66 B
code/Chapter04/9.7.3.Null-coalescing_After_NotNull.ps1
68 B
code/Chapter04/9.7.4.Null-coalescing_Chain.ps1
112 B
code/Chapter04/9.7.5.Null-coalescing_Chain_with_default.ps1
45 B
code/Chapter04/9.8.1.Null-coalescing-assignment_Before.ps1
60 B
code/Chapter04/9.8.2.Null-coalescing-assignment_After.ps1
30 B
code/Chapter04/9.8.3.Null-coalescing-assignment_After_NotNull.ps1
24 B
code/Chapter04/9.8.4.Null-coalescing-assignment_Start-Process.ps1
107 B
code/Chapter04/9.9.1.Null-Conditional_Enable_Feature.ps1
145 B
code/Chapter04/9.9.2.Null-Conditional_Before.ps1
122 B
code/Chapter04/9.9.3.Null-Conditional_After.ps1
27 B
code/Chapter04/9.9.4.Null-Conditional_ObjectProperty.ps1
99 B
code/Chapter05/1.1.1.VariableName.ps1
12 B
code/Chapter05/1.1.2.VariableNames.ps1
54 B
code/Chapter05/1.1.3.VariableWithCurlyBraces.ps1
29 B
code/Chapter05/1.1.4.Interpolation.ps1
86 B
code/Chapter05/1.1.5.FileSystemProvider.ps1
46 B
code/Chapter05/1.1.6.FileSystemProvider_Get-Content.ps1
80 B
code/Chapter05/1.1.7.Assignment.ps1
106 B
code/Chapter05/1.1.8.AssignmentMultiple.ps1
12 B
code/Chapter05/2.1.1.Assignment_ValueTypes.ps1
12 B
code/Chapter05/2.1.2.Assignment_ValueTypes_Updated.ps1
37 B
code/Chapter05/2.1.3.Assignment_ReferenceType.ps1
69 B
code/Chapter05/2.1.4.Assignment_ReferenceType_Update.ps1
27 B
code/Chapter05/2.1.5.Assignment_ReferenceType_UpdateImpact.ps1
84 B
code/Chapter05/3.1.1.Clear-Variable.ps1
216 B
code/Chapter05/3.2.1.Get-Variable.ps1
46 B
code/Chapter05/3.2.2.Get-Variable_Output.ps1
983 B
code/Chapter05/3.3.1.New-Variable.ps1
42 B
code/Chapter05/3.3.2.New-Variable_Equivalent.ps1
17 B
code/Chapter05/3.3.3.New-Variable_Constant.ps1
64 B
code/Chapter05/3.3.4.New-Variable_Constant_Error.ps1
160 B
code/Chapter05/3.4.1.Remove-Variable.ps1
65 B
code/Chapter05/3.4.2.Remove-Variable_ReferenceOnly.ps1
142 B
code/Chapter05/3.5.1.Set-Variable.ps1
53 B
code/Chapter05/3.5.2.Set-Variable_Description.ps1
74 B
code/Chapter05/3.5.3.Set-Variable_Private.ps1
40 B
code/Chapter05/4.1.1.VariableProvider.ps1
23 B
code/Chapter05/4.1.2.VariableProvider_Test-Path.ps1
37 B
code/Chapter05/4.1.3.VariableProvider_Set-Item.ps1
38 B
code/Chapter05/4.1.4.VariableProvider_Get-Content.ps1
37 B
code/Chapter05/4.1.5.VariableProvider_OptionalSeparator.ps1
56 B
code/Chapter05/5.1.1.MixedScope.ps1
179 B
code/Chapter05/5.1.2.ParentScope.ps1
115 B
code/Chapter05/5.1.3.LocalScope.ps1
218 B
code/Chapter05/5.2.1.Global_Modifier.ps1
27 B
code/Chapter05/5.3.1.Functions.ps1
174 B
code/Chapter05/5.3.2.Functions_ParentScopes.ps1
231 B
code/Chapter05/5.3.3.NumberedScopes.ps1
453 B
code/Chapter05/5.3.4.NumberedScopes_Invalid.ps1
1.0 kB
code/Chapter05/5.4.1.PrivateScope.ps1
79 B
code/Chapter05/5.4.2.UsingPrivateScope.ps1
217 B
code/Chapter05/6.1.1.TypeConversion_ToString.ps1
61 B
code/Chapter05/6.1.10.TypePersistence.ps1
297 B
code/Chapter05/6.1.2.TypeConversion_ToDateTime.ps1
70 B
code/Chapter05/6.1.3.TypeConversion_ToDateTime_InvalidDate.ps1
192 B
code/Chapter05/6.1.4.TypeConversion_As.ps1
28 B
code/Chapter05/6.1.5.Casting_right-hand_side.ps1
37 B
code/Chapter05/6.1.6.AssignedType.ps1
253 B
code/Chapter05/6.1.7.ArgumentConverterAttribute.ps1
268 B
code/Chapter05/6.1.8.ArgumentConverterAttribute_Reflection.ps1
217 B
code/Chapter05/6.1.9.ChangingType.ps1
266 B
code/Chapter05/6.2.1.NumericTypes.ps1
201 B
code/Chapter05/6.2.2.NumericTypes_Invalid.ps1
212 B
code/Chapter05/7.0.1.ArrayFromCommand.ps1
25 B
code/Chapter05/7.1.1.CreateArray.ps1
14 B
code/Chapter05/7.1.2.CreateArrayOfSize.ps1
159 B
code/Chapter05/7.1.3.ArrayOfElements.ps1
55 B
code/Chapter05/7.1.4.ArrayOfElements_Alternate.ps1
58 B
code/Chapter05/7.1.5.ArrayOfElements_Multiline.ps1
76 B
code/Chapter05/7.1.6.ArrayOfElements_MixedType.ps1
47 B
code/Chapter05/7.2.1.ArrayOfType.ps1
39 B
code/Chapter05/7.2.2.ArrayOfType_TypeMismatch.ps1
195 B
code/Chapter05/7.3.1.AddElement.ps1
39 B
code/Chapter05/7.3.2.AddElement_Equivalent.ps1
33 B
code/Chapter05/7.3.3.AddElement_BadPractice.ps1
110 B
code/Chapter05/7.3.4.AddElement_BetterPractice.ps1
95 B
code/Chapter05/7.3.5.ArrayAddition.ps1
90 B
code/Chapter05/7.3.6.ArrayAddition_Alternative.ps1
57 B
code/Chapter05/7.3.7.ArrayAddition_Mixed.ps1
97 B
code/Chapter05/7.4.1.GetByIndex.ps1
66 B
code/Chapter05/7.4.10.Array_ComparisonOperator_Chain.ps1
22 B
code/Chapter05/7.4.11.Array_Where-Object.ps1
52 B
code/Chapter05/7.4.12.Array_Where.ps1
42 B
code/Chapter05/7.4.2.IndexFromEnd.ps1
26 B
code/Chapter05/7.4.3.IndexRange.ps1
32 B
code/Chapter05/7.4.4.ArrayOfIndexes.ps1
26 B
code/Chapter05/7.4.5.ArrayOfIndexes_FirstMustBeArray.ps1
167 B
code/Chapter05/7.4.6.ArrayOfIndexes_FirstMustBeArray_Cause.ps1
16 B
code/Chapter05/7.4.7.ArrayOfIndexes_FirstMustBeArray_Fix.ps1
82 B
code/Chapter05/7.4.8.Array_IndexOf.ps1
48 B
code/Chapter05/7.4.9.Array_ComparisonOperator.ps1
32 B
code/Chapter05/7.5.1.Updating.ps1
41 B
code/Chapter05/7.5.2.UpdatingInLoop.ps1
94 B
code/Chapter05/7.6.1.RemovingElements_NullElements.ps1
55 B
code/Chapter05/7.6.10.RemovingElements_ByValue_ComparisonOperator.ps1
29 B
code/Chapter05/7.6.11.RemovingElements_ByValue_Where-Object.ps1
50 B
code/Chapter05/7.6.13.RemovingElements_ByValue_IndexOf_New.ps1
32 B
code/Chapter05/7.6.14.RemovingElements_ByValue_OmitElement.ps1
140 B
code/Chapter05/7.6.2.RemovingElements_NullElements_Count.ps1
43 B
code/Chapter05/7.6.3.RemovingElements_NullElements_Pipeline.ps1
43 B
code/Chapter05/7.6.4.RemovingElements_NullElements_Where-Object.ps1
65 B
code/Chapter05/7.6.5.RemovingElements_ByIndex.ps1
18 B
code/Chapter05/7.6.6.RemovingElements_ByIndex_NewArray.ps1
48 B
code/Chapter05/7.6.7.RemovingElements_ArrayCopy.ps1
442 B
code/Chapter05/7.6.8.RemovingElements_UsingLoop.ps1
111 B
code/Chapter05/7.6.9.RemovingElements_ByValue_Start.ps1
18 B
code/Chapter05/7.7.1.Clear.ps1
46 B
code/Chapter05/7.8.1.SetVariablesFromArray.ps1
13 B
code/Chapter05/7.8.2.SetVariablesFromArray_Split.ps1
96 B
code/Chapter05/7.8.3.SetVariablesFromArray_Overflow.ps1
26 B
code/Chapter05/7.8.4.SetVariablesFromArray_Underrun.ps1
17 B
code/Chapter05/7.9.1.MultiDimensionalArray.ps1
72 B
code/Chapter05/7.9.2.MultiDimensionalArray_AccessingElements.ps1
49 B
code/Chapter05/7.9.3.MultiDimensionalArray_AccessingElements_2.ps1
49 B
code/Chapter05/7.9.4.JaggedArray.ps1
87 B
code/Chapter05/7.9.5.JaggedArray_AccessingElements.ps1
51 B
code/Chapter05/8.0.1.CommandsUsingHashtables.ps1
36 B
code/Chapter05/8.1.1.CreateEmptyHashtable.ps1
16 B
code/Chapter05/8.1.2.CreateHashtableWithKeys.ps1
48 B
code/Chapter05/8.1.3.CreateHashtableWithKeys_Multiline.ps1
62 B
code/Chapter05/8.2.1.AddMethod.ps1
50 B
code/Chapter05/8.2.10.Keys_ForEach-Object.ps1
176 B
code/Chapter05/8.2.2.AddMethod_ExistingKey.ps1
266 B
code/Chapter05/8.2.3.ContainsMethod.ps1
98 B
code/Chapter05/8.2.4.ImplicitAdd.ps1
135 B
code/Chapter05/8.2.5.ImplicitAdd_PropertyNotation.ps1
135 B
code/Chapter05/8.2.6.UpdateOnly.ps1
110 B
code/Chapter05/8.2.7.AddOnly.ps1
105 B
code/Chapter05/8.2.8.CannotModifyCollection.ps1
245 B
code/Chapter05/8.2.9.KeysArray.ps1
160 B
code/Chapter05/8.3.1.AccessKey.ps1
18 B
code/Chapter05/8.3.2.AccessKey_PropertyNotation.ps1
16 B
code/Chapter05/8.3.3.AccessKey_NumericKey.ps1
25 B
code/Chapter05/8.3.4.AccessKey_IntegerKey.ps1
54 B
code/Chapter05/8.3.5.AccessKey_IntegerKey_Failure.ps1
52 B
code/Chapter05/8.4.1.Start.ps1
60 B
code/Chapter05/8.4.2.KeysProperty.ps1
15 B
code/Chapter05/8.4.3.ValuesProperty.ps1
17 B
code/Chapter05/8.4.4.Loop.ps1
98 B
code/Chapter05/8.4.5.GetEnumerator.ps1
214 B
code/Chapter05/8.5.1.RemoveMethod.ps1
70 B
code/Chapter05/8.5.2.CannotModifyCollection.ps1
239 B
code/Chapter05/8.5.3.ClearMethod.ps1
65 B
code/Chapter05/9.1.1.List.ps1
58 B
code/Chapter05/9.1.10.RemoveAndRemoveAt.ps1
212 B
code/Chapter05/9.1.11.RemoveAll.ps1
44 B
code/Chapter05/9.1.12.Reassign.ps1
103 B
code/Chapter05/9.1.2.ArrayList.ps1
52 B
code/Chapter05/9.1.3.AddMethod.ps1
76 B
code/Chapter05/9.1.4.AddRangeMethod.ps1
35 B
code/Chapter05/9.1.5.InsertMethod.ps1
48 B
code/Chapter05/9.1.6.AddRange_And_Index.ps1
141 B
code/Chapter05/9.1.7.FindIndex.ps1
54 B
code/Chapter05/9.1.8.IndexOf.ps1
121 B
code/Chapter05/9.1.9.BinarySearch.ps1
886 B
code/Chapter05/9.2.1.Dictionary.ps1
248 B
code/Chapter05/9.2.10.EnumerateDictionary_Start.ps1
175 B
code/Chapter05/9.2.11.KeysProperty.ps1
16 B
code/Chapter05/9.2.12.ValuesProperty.ps1
18 B
code/Chapter05/9.2.13.Loop.ps1
100 B
code/Chapter05/9.2.14.RemoveMethod.ps1
33 B
code/Chapter05/9.2.2.AddMethod.ps1
46 B
code/Chapter05/9.2.3.ContainsKey.ps1
102 B
code/Chapter05/9.2.4.PropertyNotation.ps1
40 B
code/Chapter05/9.2.5.StronglyTypedKey.ps1
22 B
code/Chapter05/9.2.6.StronglyTypedKey_Usage.ps1
312 B
code/Chapter05/9.2.7.AccessByKey.ps1
87 B
code/Chapter05/9.2.8.AccessByKey_StronglyTypedKey.ps1
159 B
code/Chapter05/9.2.9.AccessByKey_StronglyTypedKey_Usage.ps1
51 B
code/Chapter05/9.3.1.Queue.ps1
60 B
code/Chapter05/9.3.2.EnumerateQueue.ps1
16 B
code/Chapter05/9.3.3.PeekMethod.ps1
13 B
code/Chapter05/9.3.4.EnqueueMethod.ps1
75 B
code/Chapter05/9.3.5.DequeueMethod.ps1
36 B
code/Chapter05/9.3.6.DequeueMethod_Empty.ps1
152 B
code/Chapter05/9.3.7.DequeueMethod_Empty_Count.ps1
255 B
code/Chapter05/9.4.1.Stack.ps1
60 B
code/Chapter05/9.4.2.EnumerateStack.ps1
16 B
code/Chapter05/9.4.3.PeekMethod.ps1
13 B
code/Chapter05/9.4.4.PushMethod.ps1
91 B
code/Chapter05/9.4.5.PopMethod.ps1
47 B
code/Chapter05/9.4.6.PopMethod_Empty.ps1
144 B
code/Chapter05/9.4.7.PopMethod_Empty_Count.ps1
284 B
code/Chapter06/1.1.1.If_ElseIf.ps1
127 B
code/Chapter06/1.2.1.If_Assignment.ps1
54 B
code/Chapter06/1.2.2.If_Assignment_WorkingExample.ps1
110 B
code/Chapter06/2.1.1.Switch_and_Default.ps1
122 B
code/Chapter06/2.2.1.Switch_and_Arrays.ps1
100 B
code/Chapter06/2.2.2.Switch_EmptyArray.ps1
66 B
code/Chapter06/2.2.3.Switch_ExplicitNull.ps1
64 B
code/Chapter06/2.4.1.Switch_and_Wildcard.ps1
184 B
code/Chapter06/2.4.2.Switch_and_Regex.ps1
202 B
code/Chapter06/2.5.1.Switch_and_ScriptBlock.ps1
152 B
code/Chapter06/2.5.2.Switch_and_ScriptBlock_Mixed.ps1
146 B
code/Chapter06/2.6.1.Switch_and_SharedConditions.ps1
499 B
code/Chapter06/2.6.2.Switch_and_RewritingPipeline.ps1
618 B
code/Chapter06/2.7.1.Switch_default_fall-through.ps1
105 B
code/Chapter06/2.7.2.Switch_default_fall-through_array.ps1
82 B
code/Chapter06/2.7.3.Switch_break.ps1
89 B
code/Chapter06/2.7.4.Switch_continue.ps1
132 B
code/Chapter06/2.7.5.Switch_break_and_continue.ps1
154 B
code/Chapter06/3.1.1.foreach.ps1
67 B
code/Chapter06/3.2.1.for.ps1
108 B
code/Chapter06/3.2.2.for_interval.ps1
86 B
code/Chapter06/3.2.3.for_reverse.ps1
87 B
code/Chapter06/3.2.4.for_adjacent.ps1
252 B
code/Chapter06/3.2.5.for_ever.ps1
23 B
code/Chapter06/3.2.6.for_multiple.ps1
84 B
code/Chapter06/3.2.7.for_condition.ps1
25 B
code/Chapter06/3.3.1.do_until.ps1
123 B
code/Chapter06/3.3.2.do_while.ps1
127 B
code/Chapter06/3.4.1.while.ps1
91 B
code/Chapter06/4.1.1.break.ps1
116 B
code/Chapter06/4.1.2.break_innerloop.ps1
384 B
code/Chapter06/4.1.3.continue.ps1
194 B
code/Chapter06/4.2.1.break_misuse.ps1
139 B
code/Chapter06/4.2.2.break_scope_fault.ps1
188 B
code/Chapter06/4.3.1.Labels.ps1
55 B
code/Chapter06/4.3.2.Labels_Multiple.ps1
196 B
code/Chapter06/5.1.1.ImplicitBoolean.ps1
59 B
code/Chapter06/5.1.2.ExplicitBoolean.ps1
71 B
code/Chapter07/1.1.1.ShowAssemblyForType.ps1
114 B
code/Chapter07/1.1.2.ListLoadedAssemblies.ps1
754 B
code/Chapter07/1.1.3.ClassExplorer.ps1
746 B
code/Chapter07/1.1.4.Add-Type.ps1
44 B
code/Chapter07/1.1.5.PowerShell_Assembly.ps1
51 B
code/Chapter07/1.1.6.PowerShell_Assembly_Alternate.ps1
102 B
code/Chapter07/1.2.0.GAC.ps1
478 B
code/Chapter07/1.2.1.Add-Type_FullName.ps1
113 B
code/Chapter07/1.2.2.Get-GacAssembly.ps1
389 B
code/Chapter07/2.1.1.Get-Member.ps1
350 B
code/Chapter07/2.1.2.GetType.ps1
231 B
code/Chapter07/3.1.1.GetType_Enumeration.ps1
263 B
code/Chapter07/3.1.2.GetEnumValues.ps1
140 B
code/Chapter07/5.1.1.Namespace.ps1
60 B
code/Chapter07/5.1.2.Implicit_System.ps1
43 B
code/Chapter07/5.1.3.Implicit_System_2.ps1
44 B
code/Chapter07/6.1.1.InvalidNamespace.ps1
75 B
code/Chapter07/6.1.2.Using_Namespace.ps1
221 B
code/Chapter07/6.1.3.Using_Namespace_Multiple.ps1
64 B
code/Chapter07/6.1.4.Using_Namespace_LastResolves.ps1
255 B
code/Chapter07/6.1.5.Using_Namespace_LastResolves.ps1
108 B
code/Chapter07/6.1.6.Using_Namespace_Multiple_SingleStatement.ps1
65 B
code/Chapter07/6.1.7.Using_Namespace_BeforeAssembly.ps1
296 B
code/Chapter07/6.2.1.Using_Assembly_WindowsPowerShell.ps1
63 B
code/Chapter07/6.2.2.Using_Assembly_PowerShell7.ps1
93 B
code/Chapter07/7.1.1.TypeAccelerators.ps1
22 B
code/Chapter07/7.1.2.TypeAccelerators_ADSI.ps1
103 B
code/Chapter07/7.1.3.TypeAccelerators_FullName.ps1
79 B
code/Chapter07/7.1.4.TypeAccelerators_Help.ps1
33 B
code/Chapter07/8.1.1.New-Object.ps1
37 B
code/Chapter07/8.1.2.new_method.ps1
35 B
code/Chapter07/8.1.3.new_method_arguments.ps1
185 B
code/Chapter07/8.2.1.Property_vs_Field.ps1
134 B
code/Chapter07/8.2.2.Property_vs_Field_Get-Member.ps1
477 B
code/Chapter07/8.2.3.Property_vs_Field_GetMembers.ps1
451 B
code/Chapter07/8.3.1.Methods.ps1
81 B
code/Chapter07/8.3.2.Methods_Overloads.ps1
31 B
code/Chapter07/8.3.3.Methods_ReturnValues.ps1
179 B
code/Chapter07/8.3.4.ToString.ps1
63 B
code/Chapter07/8.3.5.ToString_Overloads.ps1
155 B
code/Chapter07/8.3.6.Fluent_StringBuilder.ps1
111 B
code/Chapter07/8.3.7.Fluent_PowerShell.ps1
204 B
code/Chapter07/8.3.8.Fluent_PowerShell_EquivalentCommand.ps1
58 B
code/Chapter07/8.4.1.Get-Member_StaticMethod.ps1
51 B
code/Chapter07/8.4.2.StaticMethod_Usage.ps1
57 B
code/Chapter07/8.4.3.StaticMethod_ReferenceObject.ps1
42 B
code/Chapter07/8.4.4.StaticMethod_ReferenceObject_Result.ps1
58 B
code/Chapter07/8.4.5.NewMethod.ps1
35 B
code/Chapter07/8.4.6.NewMethod_ConstructorOverloads.ps1
425 B
code/Chapter07/8.5.1.Get-Member_StaticProperty.ps1
475 B
code/Chapter07/8.5.2.StaticProperty_Usage.ps1
16 B
code/Chapter07/9.1.1.Reflection_Assembly.ps1
22 B
code/Chapter07/9.1.2.Reflection_GetType.ps1
321 B
code/Chapter07/9.1.3.Reflection_GetType_Assigned.ps1
105 B
code/Chapter07/9.1.4.Reflection_Get-Member.ps1
575 B
code/Chapter07/9.1.5.Reflection_ListTypeAccelerators.ps1
41 B
code/Chapter07/9.1.6.Reflection_AddTypeAccelerator.ps1
90 B
code/Chapter07/9.1.7.Reflection_UsingAccelerator.ps1
52 B
code/Chapter07/9.2.1.ArgumentTypeConverterAttribute.ps1
28 B
code/Chapter07/9.2.10.ImpliedReflection_ArgumentTypeConverterAttribute.ps1
340 B
code/Chapter07/9.2.2.ArgumentTypeConverterAttribute_PublicProperties.ps1
206 B
code/Chapter07/9.2.3.ArgumentTypeConverterAttribute_GetType.ps1
129 B
code/Chapter07/9.2.4.ArgumentTypeConverterAttribute_GetMembers.ps1
751 B
code/Chapter07/9.2.5.ArgumentTypeConverterAttribute_NonPublic.ps1
425 B
code/Chapter07/9.2.6.ArgumentTypeConverterAttribute_TargetType.ps1
248 B
code/Chapter07/9.2.7.ArgumentTypeConverterAttribute_TargetType_GetValue.ps1
305 B
code/Chapter07/9.2.8.ArgumentTypeConverterAttribute_TargetType_GetValue_Output.ps1
281 B
code/Chapter07/9.2.9.ImpliedReflection.ps1
58 B
code/Chapter08/1.1.1.IndexIntoString.ps1
171 B
code/Chapter08/1.1.2.RangeAndJoin.ps1
46 B
code/Chapter08/1.10.1.Contains.ps1
72 B
code/Chapter08/1.10.2.StartsWithAndEndsWith.ps1
65 B
code/Chapter08/1.10.3.StartsWith_ControllingCaseSensitivity.ps1
87 B
code/Chapter08/1.11.1.MethodsAndArrays_Trim.ps1
68 B
code/Chapter08/1.11.2.MethodsAndArrays_Split.ps1
63 B
code/Chapter08/1.11.3.FindingMethods.ps1
180 B
code/Chapter08/1.11.4.MethodsAndArrays_DateTime.ps1
62 B
code/Chapter08/1.11.5.PropertiesAndArrays_DateTime.ps1
61 B
code/Chapter08/1.11.6.FindingMethods_DateTime.ps1
138 B
code/Chapter08/1.12.1.MethodChaining.ps1
58 B
code/Chapter08/1.12.2.Start.ps1
85 B
code/Chapter08/1.12.3.FindingPositions.ps1
442 B
code/Chapter08/1.12.4.ShowPositions.ps1
127 B
code/Chapter08/1.12.5.ReplacingValues.ps1
253 B
code/Chapter08/1.2.1.Substring_Usage.ps1
169 B
code/Chapter08/1.2.2.Substring.ps1
104 B
code/Chapter08/1.2.3.Substring_StartAndLength.ps1
103 B
code/Chapter08/1.2.4.Substring_LengthError.ps1
231 B
code/Chapter08/1.2.5.Substring_TestLength.ps1
86 B
code/Chapter08/1.2.6.Substring_MathMin.ps1
81 B
code/Chapter08/1.3.1.Split.ps1
53 B
code/Chapter08/1.3.2.Split_EmptyEntries.ps1
121 B
code/Chapter08/1.3.3.Split_RemoveEmptyEntries.ps1
145 B
code/Chapter08/1.3.4.Split_RemoveEmptyEntries_Assign.ps1
130 B
code/Chapter08/1.3.5.SplitMethodOverloads.ps1
788 B
code/Chapter08/1.3.6.SplitChoosesCharArray.ps1
47 B
code/Chapter08/1.3.7.ForceSplitString.ps1
86 B
code/Chapter08/1.4.1.Replace.ps1
73 B
code/Chapter08/1.4.2.Replace_vs_-replace.ps1
121 B
code/Chapter08/1.4.3.Replace_case_sensitive.ps1
59 B
code/Chapter08/1.4.4.Replace_case_sensitivity_options.ps1
120 B
code/Chapter08/1.5.1.Trim.ps1
113 B
code/Chapter08/1.5.2.Trim_ArrayOfChar.ps1
77 B
code/Chapter08/1.5.3.Trim_Overloads.ps1
140 B
code/Chapter08/1.5.4.TrimEndTooFar.ps1
86 B
code/Chapter08/1.6.1.Insert.ps1
129 B
code/Chapter08/1.6.2.Remove.ps1
55 B
code/Chapter08/1.7.1.IndexOfAndLastIndexOf.ps1
137 B
code/Chapter08/1.7.2.IndexOfAndIf.ps1
90 B
code/Chapter08/1.7.3.IndexOfAndSubstring.ps1
231 B
code/Chapter08/1.8.1.PadLeftAndPadRight.ps1
338 B
code/Chapter08/1.8.2.PadRight.ps1
107 B
code/Chapter08/1.8.3.PadLeft.ps1
106 B
code/Chapter08/1.8.4.PadWithFormatOperator.ps1
73 B
code/Chapter08/1.9.1.ToUpperAndToLower.ps1
66 B
code/Chapter08/1.9.2.ToLowerAndReplace.ps1
81 B
code/Chapter08/1.9.3.ToTitleCase.ps1
86 B
code/Chapter08/1.9.4.ToTitleCase_Alternative.ps1
58 B
code/Chapter08/2.1.1.ConvertTo-Csv.ps1
178 B
code/Chapter08/2.1.2.ConvertFrom-Csv.ps1
154 B
code/Chapter08/2.1.3.ConvertFrom-Csv_MultilineField.ps1
119 B
code/Chapter08/2.1.4.ConvertFrom-Csv_FirstLineIsHeader.ps1
40 B
code/Chapter08/2.1.5.Export-CsvAndImport-Csv.ps1
112 B
code/Chapter08/2.2.1.ConvertFrom-StringData.ps1
99 B
code/Chapter08/2.2.2.ConvertFrom-StringData_ConvertToCustomObject.ps1
117 B
code/Chapter08/2.2.3.ConvertFrom-StringData_Array.ps1
381 B
code/Chapter08/2.2.4.ConvertFrom-StringData_Array_Out-String.ps1
141 B
code/Chapter08/2.3.1.Convert-String.ps1
125 B
code/Chapter08/2.3.2.Convert-String_AbstractExample.ps1
170 B
code/Chapter08/2.3.3.Convert-String_Hashtable.ps1
177 B
code/Chapter08/2.4.4.ConvertFrom-String.ps1
197 B
code/Chapter08/2.4.5.ConvertFrom-String_Template.ps1
532 B
code/Chapter08/2.5.1.FromBase64String.ps1
120 B
code/Chapter08/2.5.2.ToBase64String_CharArray.ps1
89 B
code/Chapter08/2.5.3.ToBase64String_Unicode.ps1
130 B
code/Chapter08/2.5.4.EncodedCommand.ps1
86 B
code/Chapter08/3.0.1.NumersAndTheFormatOperator.ps1
329 B
code/Chapter08/3.1.1.ByteMultiplicationOperators.ps1
45 B
code/Chapter08/3.1.2.ByteMultiplicationOperatorsAndFormat.ps1
94 B
code/Chapter08/3.2.1.PowerOf10Operator.ps1
67 B
code/Chapter08/3.3.1.Hexadecimal.ps1
41 B
code/Chapter08/3.4.1.Math_StaticMethods.ps1
28 B
code/Chapter08/3.4.2.Math_RoundMethod.ps1
29 B
code/Chapter08/3.4.3.Math_RoundMethodMidpointRounding.ps1
155 B
code/Chapter08/3.4.4.Math_CeilingAndFloor.ps1
77 B
code/Chapter08/3.4.5.Math_Abs.ps1
19 B
code/Chapter08/3.4.6.Math_Pow.ps1
36 B
code/Chapter08/3.4.7.Math_Sqrt.ps1
30 B
code/Chapter08/3.4.8.Math_PiAndE.ps1
72 B
code/Chapter08/3.5.1.Casting.ps1
156 B
code/Chapter08/3.5.2.Hexadecimal_FromString.ps1
62 B
code/Chapter08/3.5.3.ByteStringToNumber.ps1
27 B
code/Chapter08/3.5.4.ByteStringToNumber_WithReplace.ps1
49 B
code/Chapter08/3.5.5.Convert_ToInt32_FromBinary.ps1
56 B
code/Chapter08/4.1.1.DateTime_ParseExact.ps1
128 B
code/Chapter08/4.1.2.DateTime_ParseExact_MultipleFormats.ps1
208 B
code/Chapter08/4.1.3.DateTime_TryParseExact.ps1
201 B
code/Chapter08/4.2.1.Get-Date_And_New-TImeSpan.ps1
36 B
code/Chapter08/4.2.10.Get-Date_Format_And_ToString.ps1
75 B
code/Chapter08/4.2.11.Get-Date_MethodChaining.ps1
90 B
code/Chapter08/4.2.12.Get-Date_Format_LiteralStrings.ps1
93 B
code/Chapter08/4.2.13.Get-Date_FormatOperator.ps1
51 B
code/Chapter08/4.2.14.Get-Date_StoringDates.ps1
43 B
code/Chapter08/4.2.15.Get-Date_StoringDates_ISO8601.ps1
61 B
code/Chapter08/4.2.2.Get-Date_StartOfDay.ps1
15 B
code/Chapter08/4.2.3.Get-Date_AddDays.ps1
85 B
code/Chapter08/4.2.4.Get-Date_AddDays_Get-ChildItem.ps1
80 B
code/Chapter08/4.2.5.Get-Date_AddDays_Get-ChildItem_Range.ps1
167 B
code/Chapter08/4.2.6.Get-Date_Add_Other.ps1
172 B
code/Chapter08/4.2.7.Get-Date_ToUniversalTime.ps1
28 B
code/Chapter08/4.2.8.Get-Date_Kind.ps1
177 B
code/Chapter08/4.2.9.Get-Date_UtcKind.ps1
51 B
code/Chapter08/4.3.1.CastToDateTime.ps1
134 B
code/Chapter08/4.3.2.Test-DateTime.ps1
112 B
code/Chapter08/4.3.3.Test-DateTime_Get-Date.ps1
43 B
code/Chapter08/4.3.4.Test-Path_NewerThan.ps1
61 B
code/Chapter08/4.3.5.Get-WinEvent_StartTime_EndTime.ps1
147 B
code/Chapter08/4.4.1.ComparingDates.ps1
81 B
code/Chapter08/4.4.2.ComparingDates_RightHandSideCasting.ps1
91 B
code/Chapter08/4.4.3.ComparingDates_RightHandSideCasting_USFormat.ps1
40 B
code/Chapter09/1.1.1.SpecialCharacters.ps1
70 B
code/Chapter09/1.1.2.matches.ps1
221 B
code/Chapter09/1.1.3.matches_NotCleared.ps1
251 B
code/Chapter09/1.2.1.AnyCharacter.ps1
24 B
code/Chapter09/1.2.2.AnyCharacter_NoAnchors.ps1
30 B
code/Chapter09/1.3.1.Repetition_ZeroOrMore.ps1
48 B
code/Chapter09/1.3.2.Repetition_ZeroOrMore_Zero.ps1
51 B
code/Chapter09/1.3.3.Repetition_OneOrMore.ps1
85 B
code/Chapter09/1.3.4.RepetitionAndPeriod.ps1
155 B
code/Chapter09/1.3.5.FailureWithoutPrecedingCharacter.ps1
124 B
code/Chapter09/1.4.1.EscapeCharacter.ps1
19 B
code/Chapter09/1.4.2.EscapingTheEscapeCharacter.ps1
65 B
code/Chapter09/1.4.3.EscapingTheEscapeCharacter_WithReplace.ps1
47 B
code/Chapter09/1.4.4.ValidButInvalid.ps1
32 B
code/Chapter09/1.4.5.LiteralPeriod.ps1
32 B
code/Chapter09/1.4.6.RemoveAllBeforeCharacter.ps1
65 B
code/Chapter09/1.4.7.RemoveAllAfterCharacter.ps1
65 B
code/Chapter09/1.4.8.Regex_Escape.ps1
114 B
code/Chapter09/1.5.1.OptionalCharacters.ps1
50 B
code/Chapter09/1.7.1.SyntaxError.ps1
126 B
code/Chapter09/10.1.1.MatchMACAddress_Windows.ps1
195 B
code/Chapter09/10.1.2.MatchMACAddress_Linux.ps1
191 B
code/Chapter09/10.2.1.SingleOctet.ps1
94 B
code/Chapter09/10.2.2.SingleOctet_Invalid.ps1
95 B
code/Chapter09/10.2.2.UseIPAddressTryParse.ps1
123 B
code/Chapter09/10.2.3.IPAddress.ps1
416 B
code/Chapter09/10.2.4.IgnoreUnnamedGroups.ps1
567 B
code/Chapter09/10.3.1.netstat_output.ps1
306 B
code/Chapter09/10.3.2.netstat_MatchTcp.ps1
538 B
code/Chapter09/10.3.3.netstat_MatchTcpAndUdp.ps1
539 B
code/Chapter09/10.3.4.netstat_MatchTcpAndUdp_Reordered.ps1
918 B
code/Chapter09/10.4.1.FormattingCertificates.ps1
200 B
code/Chapter09/10.4.2.FormattingCertificates_Regex.ps1
261 B
code/Chapter09/2.1.1.StartOfString.ps1
54 B
code/Chapter09/2.1.2.Without_Where-Object.ps1
34 B
code/Chapter09/2.1.3.Match_Array_Chain.ps1
44 B
code/Chapter09/2.1.3.ReplaceTooMuch.ps1
214 B
code/Chapter09/2.1.4.WordBoundary.ps1
218 B
code/Chapter09/3.1.1.GreedyQuanifier.ps1
138 B
code/Chapter09/3.1.2.LazyQuanifier.ps1
121 B
code/Chapter09/3.1.3.GreedyQuantifierAndHtml.ps1
197 B
code/Chapter09/3.1.4.GreedyQuantifierAndHtml_CharacterClass.ps1
185 B
code/Chapter09/3.1.5.LazyQuantifierAndHtml.ps1
185 B
code/Chapter09/4.1.1.CharacterClasses.ps1
49 B
code/Chapter09/4.1.10.Range_LIteralHyphen_Escaped.ps1
36 B
code/Chapter09/4.1.2.Range.ps1
105 B
code/Chapter09/4.1.3.Range_IsASCII.ps1
97 B
code/Chapter09/4.1.4.Range_HexadecimalNumber.ps1
134 B
code/Chapter09/4.1.5.Range_HexadecimalNumber_CaseSensitive.ps1
56 B
code/Chapter09/4.1.6.Range_SimpleIPAddress.ps1
157 B
code/Chapter09/4.1.7.Range_VersionString.ps1
60 B
code/Chapter09/4.1.8.Range_LIteralHyphen.ps1
87 B
code/Chapter09/4.1.9.Range_LIteralHyphen_Alternative.ps1
35 B
code/Chapter09/4.2.1.NegatedCharacterClass.ps1
103 B
code/Chapter09/4.3.1.ClassSubtraction_Start.ps1
46 B
code/Chapter09/4.3.2.ClassSubtraction_UsingSpecificRanges.ps1
56 B
code/Chapter09/4.3.3.ClassSubtraction_UsingSubtraction.ps1
52 B
code/Chapter09/4.4.1.UnicodeCategory.ps1
217 B
code/Chapter09/4.4.2.UnicodeCategory_Puncuation_Dash.ps1
79 B
code/Chapter09/4.4.3.UnicodeCategory_Puncuation_Dash_Alternate.ps1
84 B
code/Chapter09/4.4.4.DashCausesErrors.ps1
274 B
code/Chapter09/5.1.1.Alternation.ps1
42 B
code/Chapter09/5.1.2.Alternation_Example.ps1
139 B
code/Chapter09/5.1.3.Alternation_WIthAnchors.ps1
70 B
code/Chapter09/5.1.4.Alternation_WIthAnchors_AndGroup.ps1
70 B
code/Chapter09/6.1.1.Repetition_Start.ps1
30 B
code/Chapter09/6.1.2.Repetition_Groups.ps1
19 B
code/Chapter09/6.1.3.Repetition_ZeroOrMore.ps1
17 B
code/Chapter09/6.1.4.Repetition_ZeroOrMore_Versions.ps1
220 B
code/Chapter09/6.2.1.Alternation_LineBreak.ps1
168 B
code/Chapter09/6.2.2.Alternation_WordList.ps1
103 B
code/Chapter09/6.3.1.CaptureGroups.ps1
205 B
code/Chapter09/6.3.10.NonCapturingGroups_RemoveNestedGroup.ps1
365 B
code/Chapter09/6.3.11.NonCapturingGroup_Replace.ps1
123 B
code/Chapter09/6.3.2.CaptureGroups_Nested.ps1
227 B
code/Chapter09/6.3.3.CaptureGroups_Tokens.ps1
122 B
code/Chapter09/6.3.4.CaptureGroups_Named.ps1
243 B
code/Chapter09/6.3.5.CaptureGroups_Named_PSCustomObject.ps1
176 B
code/Chapter09/6.3.6.CaptureGroups_Named_CastToPSCustomObject.ps1
213 B
code/Chapter09/6.3.7.NamedGroupsAndReplace.ps1
157 B
code/Chapter09/6.3.8.NonCapturingGroups_Start.ps1
206 B
code/Chapter09/6.3.9.NonCapturingGroups_NestedGroup.ps1
410 B
code/Chapter09/7.1.1.Look-behind_and_Look-ahead.ps1
360 B
code/Chapter09/8.1.1.ExampleString.ps1
76 B
code/Chapter09/8.1.2.UsingMatch.ps1
302 B
code/Chapter09/8.1.3.SplitAndDictionary.ps1
214 B
code/Chapter09/8.1.4.UsingMatches.ps1
454 B
code/Chapter09/8.1.5.Regex_Matches_IgnoreCase.ps1
98 B
code/Chapter09/9.1.1.DefaultOptions.ps1
113 B
code/Chapter09/9.1.2.Single_line_mode.ps1
131 B
code/Chapter09/9.1.3.Case-sensitivity.ps1
130 B
code/Chapter09/9.1.4.Mixing_options_1.ps1
51 B
code/Chapter09/9.1.5.Mixing_options_2.ps1
52 B
code/Chapter09/9.1.6.Enable_and_disable_options.ps1
252 B
code/Chapter09/9.1.7.IgnoreWhiteSpace_and_Comments.ps1
59 B
code/Chapter10/1.0.1.ListProviderCommands.ps1
256 B
code/Chapter10/1.0.2.FileSystemProvider_NavigationSupport.ps1
262 B
code/Chapter10/1.0.3.FileSystemProvider_SupportedOperations.ps1
445 B
code/Chapter10/1.0.4.ProvidersAndGet-Help.ps1
39 B
code/Chapter10/1.1.1.Set-Location.ps1
388 B
code/Chapter10/1.1.2.PWD.ps1
133 B
code/Chapter10/1.1.3.Push-Location.ps1
25 B
code/Chapter10/1.1.4.Pop-Location.ps1
13 B
code/Chapter10/1.1.5.Set-Location_Backwards.ps1
79 B
code/Chapter10/1.1.6.Set-Location_Forwards.ps1
21 B
code/Chapter10/1.2.1.Get-Item.ps1
326 B
code/Chapter10/1.2.2.Get-Item_Error.ps1
126 B
code/Chapter10/1.2.3.Get-Item_Force.ps1
283 B
code/Chapter10/1.3.1.New-PSDrive.ps1
134 B
code/Chapter10/2.1.1.Test-Path.ps1
37 B
code/Chapter10/2.1.2.Test-Path_PathType.ps1
96 B
code/Chapter10/2.1.3.Test-Path_PathType_False.ps1
87 B
code/Chapter10/2.1.4.Test-Path_If.ps1
121 B
code/Chapter10/2.2.1.New-Item.ps1
147 B
code/Chapter10/2.2.2.New-Item_ItemType.ps1
184 B
code/Chapter10/2.2.3.Remove-Item.ps1
94 B
code/Chapter10/2.3.1.Invoke-Item.ps1
273 B
code/Chapter10/2.4.1.Set-ItemProperty.ps1
96 B
code/Chapter10/2.4.10.FileAttributes_AsString_Explain.ps1
95 B
code/Chapter10/2.4.2.Get-Item_SetProperty.ps1
45 B
code/Chapter10/2.4.3.FileAttributes.ps1
68 B
code/Chapter10/2.4.4.FileAttribute_eq.ps1
50 B
code/Chapter10/2.4.5.FileAttribute_replace.ps1
58 B
code/Chapter10/2.4.6.FileAttributes_bxor.ps1
86 B
code/Chapter10/2.4.7.FileAttribute_bor.ps1
85 B
code/Chapter10/2.4.8.FileAttributes_assign.ps1
109 B
code/Chapter10/2.4.9.FileAttribute_AsString.ps1
84 B
code/Chapter10/2.5.1.Get-ItemProperty.ps1
153 B
code/Chapter10/2.5.2.Set-ItemProperty.ps1
70 B
code/Chapter10/2.5.3.Remove-ItemProperty.ps1
58 B
code/Chapter10/2.5.4.New-ItemProperty.ps1
179 B
code/Chapter10/3.0.1.Setup.ps1
288 B
code/Chapter10/3.1.1.Get-Acl_Audit.ps1
44 B
code/Chapter10/3.2.1.Set-Acl_Protection_Enable.ps1
113 B
code/Chapter10/3.2.2.Set-Acl_Protection_Disable.ps1
114 B
code/Chapter10/3.2.3.Get-Acl.ps1
1.3 kB
code/Chapter10/3.2.4.Set-Acl_Protection_Discard.ps1
113 B
code/Chapter10/3.2.5.Get-Acl_Error.ps1
111 B
code/Chapter10/3.2.6.Set-Acl_Fix.ps1
114 B
code/Chapter10/3.4.1.Set-Acl_Setup_1.ps1
112 B
code/Chapter10/3.4.2.Set-Acl_Setup_2.ps1
113 B
code/Chapter10/3.4.3.Get-Acl.ps1
1.3 kB
code/Chapter10/3.4.4.RemoveAccessRuleSpecific.ps1
176 B
code/Chapter10/3.5.1.Setup.ps1
242 B
code/Chapter10/3.5.2.CopyAcl.ps1
68 B
code/Chapter10/3.5.3.CopyAce.ps1
364 B
code/Chapter10/3.6.1.RightsEnum.ps1
63 B
code/Chapter10/3.6.2.ShowRightsEnum.ps1
284 B
code/Chapter10/3.6.3.FileSystemAccessRule.ps1
459 B
code/Chapter10/3.6.4.AddAccessRule.ps1
94 B
code/Chapter10/3.6.5.RegistryAccessRule.ps1
455 B
code/Chapter10/3.6.6.AddAccessRule.ps1
142 B
code/Chapter10/3.6.7.GenericAccessRights.ps1
263 B
code/Chapter10/3.6.8.ConvertGenericAccessRights.ps1
797 B
code/Chapter10/3.8.1.Ownership.ps1
109 B
code/Chapter10/3.8.2.SetOwner.ps1
135 B
code/Chapter10/4.1.1.Get-PSProvider.ps1
560 B
code/Chapter10/4.1.2.Start-Transaction.ps1
236 B
code/Chapter10/4.1.3.Undo-Transaction.ps1
17 B
code/Chapter10/4.1.4.Complete-Transaction.ps1
21 B
code/Chapter10/4.1.5.Get-Command_UseTransaction.ps1
42 B
code/Chapter10/5.0.1.FileCatalogSetup.ps1
329 B
code/Chapter10/5.1.1.New-FileCatalog.ps1
136 B
code/Chapter10/5.2.1.Test-FileCatalog.ps1
137 B
code/Chapter10/5.2.10.Test-FileCatalog_RemovedFiles_ShowHash.ps1
107 B
code/Chapter10/5.2.11.Test-FileCatalog_AddedOrModified.ps1
97 B
code/Chapter10/5.2.12.Test-FileCatalog_ModifiedOnly.ps1
143 B
code/Chapter10/5.2.3.Test-FileCatalog_ValidationFailed.ps1
523 B
code/Chapter10/5.2.4.Test-FileCatalog_Setup.ps1
100 B
code/Chapter10/5.2.5.Test-FileCatalog_Validate.ps1
175 B
code/Chapter10/5.2.6.Test-FileCatalog_ViewPathItems.ps1
616 B
code/Chapter10/5.2.7.Test-FileCatalog_AddedFiles.ps1
88 B
code/Chapter10/5.2.8.Test-FileCatalog_AddedFiles_ShowHash.ps1
106 B
code/Chapter10/5.2.9.Test-FileCatalog_RemovedFiles.ps1
88 B
code/Chapter11/1.1.1.Get-CimInstance.ps1
129 B
code/Chapter11/1.1.2.Get-CimInstance_Filter.ps1
117 B
code/Chapter11/1.1.3.Get-CimInstance_Property.ps1
54 B
code/Chapter11/1.1.4.Get-CimInstance_Query.ps1
118 B
code/Chapter11/1.2.1.Get-CimClass.ps1
288 B
code/Chapter11/1.2.2.Get-CimClass_Namespace.ps1
44 B
code/Chapter11/1.2.3.Namespaces_recursive.ps1
322 B
code/Chapter11/1.3.1.CimClassMethods.ps1
425 B
code/Chapter11/1.3.2.CimClassMethods_Parameters.ps1
486 B
code/Chapter11/1.3.3.Invoke-CimMethod.ps1
171 B
code/Chapter11/1.3.4.Invoke-CimMethod_ReturnValue.ps1
159 B
code/Chapter11/1.3.5.Invoke-CimMethod_OnInstance.ps1
295 B
code/Chapter11/1.3.6.Invoke-CimMethod_Arguments.ps1
384 B
code/Chapter11/1.4.1.New-CimInstance.ps1
103 B
code/Chapter11/1.4.2.New-Object_CimInstance.ps1
88 B
code/Chapter11/1.4.3.new_CimInstance.ps1
85 B
code/Chapter11/1.4.4.New-CimInstance_Usage.ps1
429 B
code/Chapter11/1.5.1.New-CimSession.ps1
314 B
code/Chapter11/1.5.2.New-CimSessionOption.ps1
384 B
code/Chapter11/1.6.1.Get-CimAssociatedInstance.ps1
173 B
code/Chapter11/1.6.2.Get-CimAssociatedInstance_NetworkClasses.ps1
554 B
code/Chapter11/2.1.1.WQL.ps1
127 B
code/Chapter11/2.1.2.WQL_WHERE.ps1
74 B
code/Chapter11/2.2.1.WQL_Escape.ps1
309 B
code/Chapter11/2.2.2.WQL_LIKE.ps1
66 B
code/Chapter11/2.5.1.Quoting.ps1
56 B
code/Chapter11/2.5.2.Quoting_Alternate.ps1
56 B
code/Chapter11/2.5.3.Quoting_InterpolationAndSubexpressions.ps1
149 B
code/Chapter11/2.5.4.EscapingWithReplace.ps1
440 B
code/Chapter11/2.6.1.AssociatorClass.ps1
413 B
code/Chapter11/2.6.2.ObjectPath_FindingKeys.ps1
92 B
code/Chapter11/2.6.3.ObjectPath_WmiAccelerator.ps1
147 B
code/Chapter11/2.6.4.WQL_ASSOCIATORS_OF.ps1
68 B
code/Chapter11/2.6.5.WQL_ASSOCIATORS_OF_ShowClasses.ps1
275 B
code/Chapter11/2.6.6.WQL_ASSOCIATORS_OF_ResultClass.ps1
101 B
code/Chapter11/2.6.7.WQL_ASSOCIATORS_OF_ResultClass_pwsh.ps1
352 B
code/Chapter11/4.0.1.WmiAndWmiClassAccelerators.ps1
115 B
code/Chapter11/4.1.1.WmiSearcher.ps1
51 B
code/Chapter11/4.2.1.WmiSearcher_Dates.ps1
267 B
code/Chapter11/4.2.2.WmiSearcher_Dates_Conversion.ps1
272 B
code/Chapter11/4.3.1.WmiClass.ps1
26 B
code/Chapter11/4.4.1.CallingMethods.ps1
235 B
code/Chapter11/4.4.2.ShowingMethods.ps1
303 B
code/Chapter11/4.4.3.MethodArguments.ps1
365 B
code/Chapter11/4.4.4.CallingMethodWithArguments.ps1
136 B
code/Chapter11/4.4.5.PositionalArguments.ps1
212 B
code/Chapter11/4.4.6.GetMethodParameters.ps1
192 B
code/Chapter11/4.5.1.CreateInstance.ps1
45 B
code/Chapter11/4.6.1.GetRelated.ps1
291 B
code/Chapter11/5.1.1.CreateShare.ps1
275 B
code/Chapter11/5.1.10.FileSystemRights.ps1
107 B
code/Chapter11/5.1.11.ShowDACL.ps1
279 B
code/Chapter11/5.1.12.CreateTrustee.ps1
132 B
code/Chapter11/5.1.13.CreateACE.ps1
263 B
code/Chapter11/5.1.14.AddAceToDacl.ps1
24 B
code/Chapter11/5.1.15.SetSecurityDescriptor.ps1
151 B
code/Chapter11/5.1.16.Get-SmbShareAccess.ps1
320 B
code/Chapter11/5.1.2.CreateShare_TypeParameter.ps1
299 B
code/Chapter11/5.1.3.ShareSecurity.ps1
358 B
code/Chapter11/5.1.4.GetSecurityDescriptor.ps1
105 B
code/Chapter11/5.1.5.ACL.ps1
183 B
code/Chapter11/5.1.6.DACL.ps1
299 B
code/Chapter11/5.1.7.DACL_Trustee.ps1
225 B
code/Chapter11/5.1.8.AceFlags.ps1
75 B
code/Chapter11/5.1.9.AceType.ps1
78 B
code/Chapter11/5.2.1.Wmi_SystemSecurity.ps1
98 B
code/Chapter11/5.2.2.GetSecurityDescriptor_Method.ps1
172 B
code/Chapter11/5.2.3.GetSecurityDescriptorSDDLForm.ps1
337 B
code/Chapter11/5.2.4.GetSecurityDescriptorSDDLForm.ps1
67 B
code/Chapter11/5.2.5.Win32_SecurityDescriptorHelper.ps1
685 B
code/Chapter11/5.2.6.WMISecurity_GetSecurityDescriptor.ps1
363 B
code/Chapter11/5.2.7.WMISecurity_ShowSDDL.ps1
203 B
code/Chapter11/5.2.8.WMISecurity_ImportSDDL.ps1
363 B
code/Chapter11/5.2.9.WMISecurity_ShowDescriptor.ps1
258 B
code/Chapter12/1.1.1.ConvertTo-Html.ps1
59 B
code/Chapter12/1.2.1.ConvertTo-Html_CreateReport.ps1
468 B
code/Chapter12/1.3.1.ConvertTo-Html_CSS.ps1
382 B
code/Chapter12/1.3.2.ConvertTo-Html_Injecting_CSS.ps1
106 B
code/Chapter12/1.4.1.PreContent.ps1
564 B
code/Chapter12/1.4.2.System.Web.ps1
34 B
code/Chapter12/1.4.3.System.Web_HtmlEncode.ps1
111 B
code/Chapter12/1.4.4.System.Web_HtmlDecode.ps1
102 B
code/Chapter12/2.2.1.SampleDocument.ps1
292 B
code/Chapter12/2.2.2.Select-Xml.ps1
198 B
code/Chapter12/2.3.1.Select-Xml_Namespace.ps1
415 B
code/Chapter12/2.3.2.Select-Xml_Namespace_LocalName.ps1
530 B
code/Chapter12/2.4.1.ConvertTo-Xml.ps1
37 B
code/Chapter12/2.4.2.XmlIsText.ps1
152 B
code/Chapter12/3.1.1.XmlTypeAccelerator.ps1
294 B
code/Chapter12/3.1.2.ExpandingElements.ps1
170 B
code/Chapter12/3.1.3.ExpandingElements_and_Where-Object.ps1
233 B
code/Chapter12/3.10.1.InferSchema_Setup.ps1
121 B
code/Chapter12/3.10.2.InferSchema_XmlNodeReader.ps1
60 B
code/Chapter12/3.10.3.InferSchema.ps1
141 B
code/Chapter12/3.10.4.InferSchema_Complete.ps1
1009 B
code/Chapter12/3.10.5.InferSchema_Partial.ps1
224 B
code/Chapter12/3.2.1.XPath_SelectNodes.ps1
343 B
code/Chapter12/3.2.2.XPath_SelectSingleNode.ps1
385 B
code/Chapter12/3.3.1.Namespaces.ps1
221 B
code/Chapter12/3.4.1.XmlWriter.ps1
334 B
code/Chapter12/3.4.2.XmlWriter_XmlWriterSettings.ps1
433 B
code/Chapter12/3.5.1.Setting_Values.ps1
286 B
code/Chapter12/3.5.2.XmlDocument.ps1
97 B
code/Chapter12/3.5.3.SelectSingleNode_and_Assign.ps1
82 B
code/Chapter12/3.5.4.SetAttribute.ps1
179 B
code/Chapter12/3.6.1.AddingElements.ps1
192 B
code/Chapter12/3.7.1.RemovingElements.ps1
219 B
code/Chapter12/3.7.2.RemovingAttributes.ps1
52 B
code/Chapter12/3.8.1.CopyingElements_Setup.ps1
184 B
code/Chapter12/3.8.2.CopyingElements_ImportNode.ps1
166 B
code/Chapter12/3.8.3.CopyingElements_Result.ps1
161 B
code/Chapter12/3.9.1.DocumentWithSchema.ps1
371 B
code/Chapter12/3.9.2.Validating.ps1
838 B
code/Chapter12/3.9.3.CapturingValidateResults.ps1
486 B
code/Chapter12/3.9.4.CapturingValidateResults_Result.ps1
170 B
code/Chapter12/4.0.1.Add-Type.ps1
39 B
code/Chapter12/4.0.2.using_assembly.ps1
31 B
code/Chapter12/4.1.0.CreateAndSave.ps1
355 B
code/Chapter12/4.1.1.Load.ps1
64 B
code/Chapter12/4.2.1.Descendants.ps1
192 B
code/Chapter12/4.2.2.UsingXPath.ps1
123 B
code/Chapter12/4.3.1.CreatingInCode.ps1
305 B
code/Chapter12/4.3.2.ToString.ps1
158 B
code/Chapter12/4.3.3.SaveMethod.ps1
51 B
code/Chapter12/4.3.4.ViewDocument.ps1
215 B
code/Chapter12/4.4.1.Namespaces.ps1
267 B
code/Chapter12/4.4.2.Namespaces_Simplified.ps1
45 B
code/Chapter12/4.4.3.DescendantsWithNamespace.ps1
512 B
code/Chapter12/4.5.1.FilterAndSetElementValue.ps1
396 B
code/Chapter12/4.5.2.FilterAndSetAttributeValue.ps1
164 B
code/Chapter12/4.5.3.NonExistentAttribute.ps1
205 B
code/Chapter12/4.5.4.ReviewChanges.ps1
96 B
code/Chapter12/4.6.1.AddNode.ps1
284 B
code/Chapter12/4.7.1.RemoveNode.ps1
185 B
code/Chapter12/4.8.1.ValidateSchema.ps1
838 B
code/Chapter12/5.1.1.ConvertTo-Json.ps1
220 B
code/Chapter12/5.1.2.ConvertTo-Json_Depth.ps1
194 B
code/Chapter12/5.1.3.ConvertTo-Json_EnumValue.ps1
51 B
code/Chapter12/5.1.4.ConvertTo-Json_EnumsAsStrings.ps1
118 B
code/Chapter12/5.1.5.ConvertTo-Json_FlattensArray.ps1
66 B
code/Chapter12/5.1.6.ConvertTo-Json_ExplicitArray.ps1
83 B
code/Chapter12/5.1.7.ConvertTo-Json_AsArray.ps1
72 B
code/Chapter12/5.1.8.ConvertTo-Json_BeforeEscapeHandling.ps1
106 B
code/Chapter12/5.1.9.ConvertTo-Json_EscapeNonAscii.ps1
145 B
code/Chapter12/5.2.1.ConvertFrom-Json.ps1
45 B
code/Chapter12/5.2.10.ConvertFrom-Json_Scalar.ps1
316 B
code/Chapter12/5.2.11.ConvertFrom-Json_NoEnumerate.ps1
341 B
code/Chapter12/5.2.2.ConvertFrom-Json_Multiline.ps1
145 B
code/Chapter12/5.2.3.ConvertFrom-Json_Multiline_Result.ps1
137 B
code/Chapter12/5.2.4.ConvertFrom-Json_ValueType.ps1
505 B
code/Chapter12/5.2.5.ConvertTo-Json_DateTime.ps1
140 B
code/Chapter12/5.2.6.ConvertTo_And_From-Json_DateTime.ps1
241 B
code/Chapter12/5.2.7.DateTime_Remove-TypeData.ps1
449 B
code/Chapter12/5.2.8.ConvertFrom-Json_AsHashtable.ps1
161 B
code/Chapter12/5.2.9.ConvertFrom-Json_AsHashtable_Nested.ps1
126 B
code/Chapter13/1.0.1.Invoke-WebRequest.ps1
71 B
code/Chapter13/1.1.1.Invoke-WebRequest_Method.ps1
191 B
code/Chapter13/1.2.1.Invoke-WebRequest_ExpiredCertificate.ps1
586 B
code/Chapter13/1.2.2.Invoke-WebRequest_SkipCertificateCheck.ps1
68 B
code/Chapter13/1.3.1.ICertificatePolicy.ps1
440 B
code/Chapter13/1.3.2.ExpiredCertificate.ps1
184 B
code/Chapter13/1.4.1.ServerCertificateValidationCallback.ps1
606 B
code/Chapter13/1.4.2.SslStream.ps1
1.3 kB
code/Chapter13/1.4.3.Certificate.ps1
364 B
code/Chapter13/1.4.4.Chain.ps1
582 B
code/Chapter13/1.4.5.ChainStatus.ps1
274 B
code/Chapter13/2.2.1.Invoke-RestMethod.ps1
69 B
code/Chapter13/2.2.2.Tls12.ps1
122 B
code/Chapter13/2.3.1.ParseQueryString.ps1
270 B
code/Chapter13/2.3.2.ApiResponse.ps1
214 B
code/Chapter13/2.3.3.QueryInBody.ps1
138 B
code/Chapter13/2.3.4.NestedValues.ps1
254 B
code/Chapter13/2.3.5.CaseSensitive.ps1
334 B
code/Chapter13/2.4.1.ResponseHeadersVariable.ps1
297 B
code/Chapter13/2.4.2.Header.ps1
316 B
code/Chapter13/2.4.3.FollowRelLink.ps1
310 B
code/Chapter13/2.4.4.FollowRelLink_WindowsPowerShell.ps1
1.1 kB
code/Chapter13/2.6.1.BasicAuthentication.ps1
127 B
code/Chapter13/2.6.2.AuthenticationParameter.ps1
164 B
code/Chapter13/2.6.3.ClientIDAndSecret.ps1
142 B
code/Chapter13/2.6.4.AuthorizeUrl.ps1
119 B
code/Chapter13/2.6.5.HttpListener.ps1
824 B
code/Chapter13/2.6.6.AccessToken.ps1
361 B
code/Chapter13/2.6.7.AuthorizationHeader.ps1
76 B
code/Chapter13/2.6.8.UsingAuthorizationHeader.ps1
149 B
code/Chapter13/3.2.1.New-WebServiceProxy.ps1
356 B
code/Chapter13/3.2.10.UsingEnumValue.ps1
778 B
code/Chapter13/3.2.11.MethodRequiringObject.ps1
255 B
code/Chapter13/3.2.12.CreateInstance.ps1
142 B
code/Chapter13/3.2.13.PropertyIsEnum.ps1
314 B
code/Chapter13/3.2.14.CallingMethod.ps1
413 B
code/Chapter13/3.2.15.CreateOverlappingService.ps1
421 B
code/Chapter13/3.2.16.CastFailure.ps1
650 B
code/Chapter13/3.2.17.Workaround.ps1
394 B
code/Chapter13/3.2.18.AsType.ps1
168 B
code/Chapter13/3.2.2.New-WebServiceProxy_Namespace.ps1
207 B
code/Chapter13/3.2.3.Get-Member.ps1
757 B
code/Chapter13/3.2.4.InvokeMethod.ps1
655 B
code/Chapter13/3.2.5.InvokeMethod_Arguments.ps1
216 B
code/Chapter13/3.2.6.MethodRequiringEnum.ps1
327 B
code/Chapter13/3.2.7.ShowEnum.ps1
262 B
code/Chapter13/3.2.8.GetEnumValues.ps1
294 B
code/Chapter13/3.2.9.UsingEnumAsString.ps1
766 B
code/Chapter13/3.3.1.WSDL.ps1
196 B
code/Chapter13/3.3.2.Discovery.ps1
1.1 kB
code/Chapter13/3.3.3.EnumerationValues.ps1
283 B
code/Chapter13/3.3.4.InvokeMethod.ps1
666 B
code/Chapter13/3.3.5.InvokeMethod_Arguments.ps1
724 B
code/Chapter13/3.3.6.InvokeMethod_Arguments_Output.ps1
300 B
code/Chapter13/3.3.7.MethodRequiringObject.ps1
1.2 kB
code/Chapter13/SimpleSOAP/packages.config
141 B
code/Chapter13/SimpleSOAP/Readme.md
1.1 kB
code/Chapter13/SimpleSOAP/SimpleSOAP.sln
1.8 kB
code/Chapter13/SimpleSOAP/SimpleSOAP/App_Code/ComparisonOperator.cs
233 B
code/Chapter13/SimpleSOAP/SimpleSOAP/App_Code/Element.cs
258 B
code/Chapter13/SimpleSOAP/SimpleSOAP/App_Code/Group.cs
259 B
code/Chapter13/SimpleSOAP/SimpleSOAP/App_Code/SearchCondition.cs
1.6 kB
code/Chapter13/SimpleSOAP/SimpleSOAP/App_Code/Service.cs
2.2 kB
code/Chapter13/SimpleSOAP/SimpleSOAP/elements.json
19 kB
code/Chapter13/SimpleSOAP/SimpleSOAP/packages.config
140 B
code/Chapter13/SimpleSOAP/SimpleSOAP/Service.asmx
86 B
code/Chapter13/SimpleSOAP/SimpleSOAP/Web.config
8.3 kB
code/Chapter13/SimpleSOAP/SimpleSOAP/Web.Debug.config
1.3 kB
code/Chapter14/1.1.1.Disable-Remoting.ps1
589 B
code/Chapter14/1.2.1.Get-WSManInstance.ps1
63 B
code/Chapter14/1.3.1.MaxEnvelopeSize.ps1
48 B
code/Chapter14/1.3.2.Restart_winrm.ps1
23 B
code/Chapter14/1.4.1.New-SelfSignedCertificate.ps1
246 B
code/Chapter14/1.4.10.UpdateCertificate.ps1
220 B
code/Chapter14/1.4.2.CreateSSLListener.ps1
315 B
code/Chapter14/1.4.3.OpenFirewall.ps1
209 B
code/Chapter14/1.4.4.Set-WSManQuickConfig.ps1
28 B
code/Chapter14/1.4.5.ListListeners.ps1
397 B
code/Chapter14/1.4.6.ListListenersProperties.ps1
258 B
code/Chapter14/1.4.7.UsingSSL.ps1
580 B
code/Chapter14/1.4.8.SkipCACheck.ps1
108 B
code/Chapter14/1.4.9.Test-WSMan.ps1
18 B
code/Chapter14/1.5.1.Get-PSSessionConfiguration.ps1
48 B
code/Chapter14/1.5.2.Get-PSSessionConfiguration_WindowsPowerShell.ps1
54 B
code/Chapter14/1.5.3.Set-PSSessionConfiguration_ShowSecurityDescriptorUI.ps1
72 B
code/Chapter14/1.5.4.ReadPermissions.ps1
252 B
code/Chapter14/1.5.5.ReadAndWrite.ps1
44 B
code/Chapter14/1.5.6.Get-PSSessionAccess.ps1
1.3 kB
code/Chapter14/1.5.7.SIDTranslate.ps1
103 B
code/Chapter14/1.5.8.AddAccess.ps1
421 B
code/Chapter14/1.5.9.SetAcl.ps1
109 B
code/Chapter14/1.6.1.GetLocalAccountTokenFilterPolicy.ps1
168 B
code/Chapter14/1.6.2.SetLocalAccountTokenFilterPolicy.ps1
199 B
code/Chapter14/1.7.1.GetTrustedHosts.ps1
45 B
code/Chapter14/1.7.2.Add-TrustedHost.ps1
352 B
code/Chapter14/2.1.1.New-PSSession.ps1
357 B
code/Chapter14/2.2.1.Get-PSSession.ps1
186 B
code/Chapter14/2.2.2.SessionsAreGlobal.ps1
98 B
code/Chapter14/2.2.3.SessionsAreGlobal_Get-PSSession.ps1
283 B
code/Chapter14/2.3.1.Invoke-Command.ps1
115 B
code/Chapter14/2.3.10.Reconnect.ps1
89 B
code/Chapter14/2.3.11.SessionState.ps1
230 B
code/Chapter14/2.3.12.UsingScope.ps1
189 B
code/Chapter14/2.3.2.Invoke-Command_MultipleComputers.ps1
80 B
code/Chapter14/2.3.3.RemotingAndLocalFunctions.ps1
242 B
code/Chapter14/2.3.4.ArgumentList_Splatting.ps1
553 B
code/Chapter14/2.3.5.AsJob.ps1
138 B
code/Chapter14/2.3.6.AsJob_SessionAvailability.ps1
204 B
code/Chapter14/2.3.7.InDisconnectedSession.ps1
107 B
code/Chapter14/2.3.8.InDisconnectedSession_ConnectAndReceive.ps1
84 B
code/Chapter14/2.3.9.CreateAndDisconnect.ps1
154 B
code/Chapter14/2.4.1.Enter-PSSession.ps1
22 B
code/Chapter14/2.4.2.Enter-PSSession_Session.ps1
80 B
code/Chapter14/2.5.1.Import-PSSession.ps1
133 B
code/Chapter14/2.6.1.Export-PSSession.ps1
174 B
code/Chapter14/2.6.2.Import-Module_ExportedSession.ps1
40 B
code/Chapter14/2.7.1.Copy-Item_FromSession.ps1
112 B
code/Chapter14/2.7.2.Copy-Item_ToSession.ps1
110 B
code/Chapter14/3.1.1.ListShells.ps1
69 B
code/Chapter14/3.1.2.chsh.ps1
39 B
code/Chapter14/3.1.3.yum.ps1
106 B
code/Chapter14/3.1.4.firewall-cmd.ps1
155 B
code/Chapter14/3.1.5.Enter-PSSession.ps1
274 B
code/Chapter14/4.1.1.InstallOpenSSH_Feature.ps1
83 B
code/Chapter14/4.1.2.InstallOpenSSH_Chocolatey.ps1
41 B
code/Chapter14/4.1.3.ReconfigureAndRestartSSHD.ps1
214 B
code/Chapter14/4.1.4.GetPublicKey.ps1
65 B
code/Chapter14/4.1.5.AddToAuthorizedKeys.ps1
191 B
code/Chapter14/4.1.6.Enter-PSSession_SSHTransport.ps1
205 B
code/Chapter14/4.2.1.Enter-PSSession_WSMan.ps1
324 B
code/Chapter14/4.2.10.AddToAuthorizedKeys.ps1
135 B
code/Chapter14/4.2.11.Enter-PSSession_SSH_Authentication.ps1
205 B
code/Chapter14/4.2.2.InstallOpenSSH_Server_Feature.ps1
125 B
code/Chapter14/4.2.3.InstallSSHD.ps1
153 B
code/Chapter14/4.2.4.Open_Firewall.ps1
243 B
code/Chapter14/4.2.5.Test_SSH.ps1
67 B
code/Chapter14/4.2.6.Set_Default_Shell.ps1
185 B
code/Chapter14/4.2.7.Restart_SSHD.ps1
22 B
code/Chapter14/4.2.8.Enter-PSSession_PasswordInteractive.ps1
369 B
code/Chapter14/4.2.9.GetPublicKey.ps1
50 B
code/Chapter14/5.1.1.New-PSSession_CredSSP.ps1
140 B
code/Chapter14/5.1.2.Enable-WSManCredSSP.ps1
59 B
code/Chapter14/5.1.3.Enable-WSManCredSSP_Server.ps1
32 B
code/Chapter14/5.1.4.Disable-WSManCredSSP_Client.ps1
33 B
code/Chapter14/5.1.5.Disable-WSManCredSSP_Server.ps1
33 B
code/Chapter14/5.2.1.PassingCredentials.ps1
141 B
code/Chapter14/6.1.1.CimSessionCommands.ps1
37 B
code/Chapter14/6.2.1.New-CimSession_WSMan.ps1
235 B
code/Chapter14/6.2.2.New-CimSession_DCOM.ps1
205 B
code/Chapter14/6.2.3.New-CimSession_DCOM_Forced.ps1
328 B
code/Chapter14/6.2.4.Get-CimSession.ps1
231 B
code/Chapter14/6.3.1.UsingCimSession.ps1
201 B
code/Chapter14/7.1.1.New-PSSessionConfigurationFile.ps1
337 B
code/Chapter14/7.1.2.Register-PSSessionConfiguration.ps1
110 B
code/Chapter14/7.1.3.Enter-PSSession.ps1
68 B
code/Chapter14/7.1.4.Unregister-PSSessionConfiguration.ps1
51 B
code/Chapter14/7.2.1.New-PSRoleCapabilityFile.ps1
158 B
code/Chapter14/7.2.2.RoleDefinitions.ps1
307 B
code/Chapter15/1.1.1.Start-Job.ps1
676 B
code/Chapter15/1.1.2.Start-Job_Throttling.ps1
243 B
code/Chapter15/1.2.1.Receive-Job.ps1
284 B
code/Chapter15/1.3.1.Wait-Job_Alternative.ps1
150 B
code/Chapter15/1.3.2.Wait-Job_Drain.ps1
182 B
code/Chapter15/1.3.3.Wait-Job_Queue_and_Drain.ps1
393 B
code/Chapter15/1.4.1.Using_scope_modifier.ps1
144 B
code/Chapter15/1.4.2.Using_scope_modifier_and_scope.ps1
248 B
code/Chapter15/1.4.3.Using_scope_modifier_readonly.ps1
324 B
code/Chapter15/1.5.1.Background_operator.ps1
15 B
code/Chapter15/1.5.2.Background_operator_equivalent.ps1
40 B
code/Chapter15/1.5.3.Background_operator_command.ps1
146 B
code/Chapter15/1.6.1.ThreadJob.ps1
66 B
code/Chapter15/1.7.1.Batching_Jobs.ps1
445 B
code/Chapter15/2.1.1.Get-Member.ps1
619 B
code/Chapter15/2.1.2.FileSystemWatcher_Events.ps1
205 B
code/Chapter15/2.2.1.Register-ObjectEvent.ps1
182 B
code/Chapter15/2.2.2.Get-Event.ps1
474 B
code/Chapter15/2.2.3.Get-Event_SourceEventArgs.ps1
275 B
code/Chapter15/2.2.4.Get-Event_SourceEventArgs_Duplicate.ps1
319 B
code/Chapter15/2.3.1.Get-EventSubscriber.ps1
583 B
code/Chapter15/2.3.2.Unregister-Event.ps1
38 B
code/Chapter15/2.4.1.Register-ObjectEvent_Action.ps1
321 B
code/Chapter15/2.4.2.Raise_Event.ps1
270 B
code/Chapter15/2.4.3.Cleanup.ps1
77 B
code/Chapter15/2.4.4.Register-ObjectEvent_MessageData.ps1
912 B
code/Chapter15/2.4.5.Raise_Event.ps1
329 B
code/Chapter15/3.1.1.PowerShellInstance.ps1
36 B
code/Chapter15/3.1.2.AddCommand.ps1
112 B
code/Chapter15/3.1.3.AddStatement.ps1
218 B
code/Chapter15/3.1.4.Equivalent.ps1
66 B
code/Chapter15/3.1.5.AddScript.ps1
144 B
code/Chapter15/3.2.1.BeginInvoke.ps1
141 B
code/Chapter15/3.2.2.InvocationStateInfo.ps1
108 B
code/Chapter15/3.2.3.IASyncInfo.ps1
210 B
code/Chapter15/3.2.4.OnCompletion.ps1
180 B
code/Chapter15/3.2.5.OrphanedRunspace.ps1
254 B
code/Chapter15/3.2.6.OrphanedRunspace_InProgress.ps1
130 B
code/Chapter15/3.2.7.Stop.ps1
136 B
code/Chapter15/3.3.1.EndInvoke.ps1
134 B
code/Chapter15/3.3.2.BeginInvoke_PSDataCollection.ps1
388 B
code/Chapter15/3.3.3.BeginInvoke_InputPipeline.ps1
384 B
code/Chapter15/3.3.4.BeginInvoke_InputPipeline_Script.ps1
303 B
code/Chapter15/3.4.1.MultipleInstances.ps1
439 B
code/Chapter15/3.4.2.MultipleInstances_State.ps1
423 B
code/Chapter15/3.4.3.Waiting.ps1
73 B
code/Chapter15/3.5.1.CreateRunspacePool.ps1
43 B
code/Chapter15/3.5.2.RunspacePoolUsage.ps1
518 B
code/Chapter15/3.5.3.RunspacePool_Progress.ps1
678 B
code/Chapter15/3.5.4.RunspacePool_CleaningUp.ps1
64 B
code/Chapter15/3.5.5.RunspacePool_GC_Collect.ps1
15 B
code/Chapter15/3.6.1.InitialSessionState.ps1
62 B
code/Chapter15/3.6.10.SessionStateFunctionEntry.ps1
200 B
code/Chapter15/3.6.11.SessionStateFunctionEntry_FromFunction.ps1
294 B
code/Chapter15/3.6.2.InitialSessionState_CreateDefault.ps1
392 B
code/Chapter15/3.6.3.InitialSessionState_CreateDefault2.ps1
204 B
code/Chapter15/3.6.4.ImportPSModule.ps1
109 B
code/Chapter15/3.6.5.ImportPSModule_Multiple.ps1
117 B
code/Chapter15/3.6.6.ImportPSSnapIn.ps1
148 B
code/Chapter15/3.6.7.SessionStateVariableEntry.ps1
269 B
code/Chapter15/3.6.8.SessionStateVariableEntry_ScopeOptions.ps1
276 B
code/Chapter15/3.6.9.SessionStateVariableEntry_FromVariable.ps1
381 B
code/Chapter15/3.7.1.InitialSessionState_and_RunspacePool.ps1
139 B
code/Chapter15/3.7.2.SetMaxRunspaces.ps1
32 B
code/Chapter15/3.8.1.SynchronizedHashtable.ps1
77 B
code/Chapter15/3.8.2.SynchronizedHashtable_Usage.ps1
498 B
code/Chapter15/3.8.3.SynchronizedArrayList.ps1
93 B
code/Chapter15/3.8.4.ConcurrentStack.ps1
587 B
code/Chapter16/1.0.1.LoadingPresentationFramework.ps1
45 B
code/Chapter16/3.0.1.InterfaceInXaml.ps1
367 B
code/Chapter16/4.0.1.ShowDialog.ps1
39 B
code/Chapter16/4.0.2.Show-Window.ps1
240 B
code/Chapter16/4.0.3.SimpleWindow.ps1
290 B
code/Chapter16/4.0.4.Content.ps1
451 B
code/Chapter16/5.1.1.Grid.ps1
291 B
code/Chapter16/5.1.2.Grid_Columns.ps1
574 B
code/Chapter16/5.1.3.Grid_ColumnsAndRows.ps1
859 B
code/Chapter16/5.1.4.Grid_ColumnWidthy.ps1
616 B
code/Chapter16/5.2.1.StackPanel.ps1
400 B
code/Chapter16/5.2.2.StackPanel_Orientation.ps1
425 B
code/Chapter16/5.2.3.StackPanel_Width.ps1
411 B
code/Chapter16/5.3.1.DockPanel.ps1
504 B
code/Chapter16/5.3.2.DockPanel_Docking.ps1
915 B
code/Chapter16/5.4.1.Thickness.ps1
141 B
code/Chapter16/5.4.2.Thickness_Individual.ps1
147 B
code/Chapter16/5.4.3.MarginAndPadding.ps1
801 B
code/Chapter16/6.0.1.WindowWithButtons.ps1
488 B
code/Chapter16/6.0.2.FindingControlWithProperties.ps1
65 B
code/Chapter16/6.0.3.WindowWithNamedButtons.ps1
533 B
code/Chapter16/6.0.4.UsingFindName.ps1
168 B
code/Chapter16/6.0.5.ControlsHashtable.ps1
692 B
code/Chapter16/6.0.6.Import-Xaml.ps1
458 B
code/Chapter16/6.0.7.Using_Import-Xaml.ps1
462 B
code/Chapter16/6.0.8.Controls.ps1
314 B
code/Chapter16/7.0.1.BasicWindow.ps1
296 B
code/Chapter16/7.0.2.Get-Member_KeyDown_Handler.ps1
264 B
code/Chapter16/7.0.3.AddHandler.ps1
151 B
code/Chapter16/7.0.4.Show.ps1
46 B
code/Chapter16/7.1.1.Buttons.ps1
304 B
code/Chapter16/7.1.2.Click_Handler.ps1
146 B
code/Chapter16/7.1.3.Click_UpdateOther.ps1
525 B
code/Chapter16/7.2.1.ComboBox.ps1
692 B
code/Chapter16/7.3.1.Window.ps1
520 B
code/Chapter16/7.3.2.ClickFillsListView.ps1
654 B
code/Chapter16/7.4.1.Window.ps1
520 B
code/Chapter16/7.4.2.EmptySortHandler.ps1
53 B
code/Chapter16/7.4.3.CompleteSortHandler.ps1
654 B
code/Chapter16/7.4.4.AddSortHandlerToListView.ps1
768 B
code/Chapter16/8.1.1.BlockedUI.ps1
435 B
code/Chapter16/8.1.2.Import-Xaml_RunspaceSupport.ps1
898 B
code/Chapter16/8.2.1.UsingRunspace.ps1
692 B
code/Chapter16/8.2.2.Streams.ps1
140 B
code/Chapter16/8.2.3.CounterWindow.ps1
1.3 kB
code/Chapter16/8.2.4.ClickEventHandler.ps1
859 B
code/Chapter17/2.1.1.using.ps1
32 B
code/Chapter17/2.2.1.Requires.ps1
98 B
code/Chapter17/2.2.2.Requires_Help.ps1
24 B
code/Chapter17/2.3.1.NestedFunctions.ps1
144 B
code/Chapter17/2.4.1.ScriptBlock.ps1
66 B
code/Chapter17/2.4.2.ScriptBlock_ParentScopeVariable.ps1
67 B
code/Chapter17/2.4.3.ScriptBlock_Closure.ps1
107 B
code/Chapter17/3.0.1.ScriptParam.ps1
106 B
code/Chapter17/3.0.2.FunctionParam.ps1
85 B
code/Chapter17/3.0.3.ParamAlternate.ps1
72 B
code/Chapter17/3.1.1.ScriptParam_WithType.ps1
97 B
code/Chapter17/3.2.1.Param_DefaultValue.ps1
91 B
code/Chapter17/3.2.2.Param_DefaultValue_CommandBased.ps1
149 B
code/Chapter17/3.2.3.Param_DefaultValue_OldStyleMandatoryy.ps1
115 B
code/Chapter17/3.3.1.CrossReferencing.ps1
182 B
code/Chapter17/4.0.1.EmptyParam.ps1
65 B
code/Chapter17/4.1.1.CommonParams_Help.ps1
32 B
code/Chapter17/4.1.2.CommonParams.ps1
99 B
code/Chapter17/4.2.1.CmdletBinding.ps1
389 B
code/Chapter17/4.2.2.CmdletBinding_DisablePositionalBinding.ps1
112 B
code/Chapter17/4.2.3.CmdletBinding_ParameterBindingFailure.ps1
146 B
code/Chapter17/4.3.1.SupportsShouldProcess.ps1
91 B
code/Chapter17/4.3.10.ShouldContinue.ps1
312 B
code/Chapter17/4.3.11.ShouldContinue_Prompt.ps1
197 B
code/Chapter17/4.3.12.ShouldContinue_YesToAll_NoToAll.ps1
421 B
code/Chapter17/4.3.13.ShouldContinue_YesToAll_NoToAll_Prompt.ps1
226 B
code/Chapter17/4.3.14.ShouldContinue_With_Force.ps1
459 B
code/Chapter17/4.3.2.UsingShouldProcess.ps1
208 B
code/Chapter17/4.3.3.ShouldProcess_WhatIf.ps1
147 B
code/Chapter17/4.3.4.ShouldProcess_Overload.ps1
218 B
code/Chapter17/4.3.5.ShouldProcess_Overload_Output.ps1
135 B
code/Chapter17/4.3.6.ShouldProcess_Overload_Message.ps1
349 B
code/Chapter17/4.3.7.ShouldProcess_Confirm.ps1
232 B
code/Chapter17/4.3.8.ShouldProcess_YesToAll_NoToAll.ps1
424 B
code/Chapter17/4.3.9.ShouldProcess_ConfirmImpact.ps1
232 B
code/Chapter17/5.0.1.AliasAttribute.ps1
82 B
code/Chapter17/6.0.1.FunctionVsFilter.ps1
283 B
code/Chapter17/6.1.1.Begin.ps1
81 B
code/Chapter17/6.2.1.Process.ps1
241 B
code/Chapter17/6.2.2.Process_Output.ps1
149 B
code/Chapter17/6.2.3.Process_Output_Multiple.ps1
244 B
code/Chapter17/6.3.1.End.ps1
314 B
code/Chapter17/6.3.2.End_Output.ps1
176 B
code/Chapter17/6.3.3.CoutingPipelineInput.ps1
133 B
code/Chapter17/6.4.1.Cleanup_OpenStream.ps1
481 B
code/Chapter17/6.4.2.Cleanup.ps1
660 B
code/Chapter17/6.5.1.Return.ps1
161 B
code/Chapter17/6.5.2.Return_Effect.ps1
89 B
code/Chapter17/6.5.3.ReturnIsOptional.ps1
69 B
code/Chapter17/7.0.1.AdditionalOutput.ps1
232 B
code/Chapter17/7.0.2.MethodChaining.ps1
365 B
code/Chapter17/7.0.3.UndesirableOutput.ps1
201 B
code/Chapter17/7.1.1.Out-Null.ps1
310 B
code/Chapter17/7.2.1.AssignToNull.ps1
317 B
code/Chapter17/7.3.1.RedirectToNull.ps1
305 B
code/Chapter17/7.4.1.CastToVoid.ps1
256 B
code/Chapter17/7.4.2.CastToVoid_Command.ps1
32 B
code/Chapter17/7.4.3.GarbageCollector.ps1
16 B
code/Chapter17/8.1.1.LineBreakAfterPipe.ps1
63 B
code/Chapter17/8.1.2.LineBreakAfterBrace.ps1
96 B
code/Chapter17/8.2.1.LineBreakAfterOperator.ps1
94 B
code/Chapter17/8.2.2.LineBreakAfterOperator_Period.ps1
98 B
code/Chapter17/8.3.1.FormatOperator.ps1
308 B
code/Chapter17/8.3.2.LongRegex.ps1
335 B
code/Chapter17/8.3.3.LongRegex_Join.ps1
361 B
code/Chapter17/8.3.4.Select-ObjectAndArrayOperator.ps1
184 B
code/Chapter17/9.0.1.AboutCommentBasedHelp.ps1
34 B
code/Chapter17/9.0.2.CommentBasedHelpInScript.ps1
144 B
code/Chapter17/9.0.3.CommentBasedHelpInFunction.ps1
202 B
code/Chapter17/9.1.1.ParameterHelp_InCommentBlock.ps1
398 B
code/Chapter17/9.1.2.ParameterHelp_AboveParameter.ps1
356 B
code/Chapter17/9.1.3.Get-Help_Parameter.ps1
268 B
code/Chapter17/9.2.1.Examples.ps1
468 B
code/Chapter17/9.2.2.Get-Help_Examples.ps1
128 B
code/Chapter18/1.0.1.ParameterAttribute.ps1
609 B
code/Chapter18/1.0.2.ParameterAttributeImpliesCmdletBinding.ps1
226 B
code/Chapter18/1.0.3.ExpressionlessArguments.ps1
119 B
code/Chapter18/1.1.1.AutomaticPositionalBinding.ps1
196 B
code/Chapter18/1.1.2.AutomaticPositionalBinding_Output.ps1
63 B
code/Chapter18/1.1.3.ExplicitPosition.ps1
117 B
code/Chapter18/1.1.4.ShowPositionalBindingState.ps1
609 B
code/Chapter18/1.1.5.BindingFailure.ps1
139 B
code/Chapter18/1.2.1.DontShow.ps1
1.1 kB
code/Chapter18/1.3.1.UnboundArguments.ps1
105 B
code/Chapter18/1.3.2.UnboundArguments_Output.ps1
118 B
code/Chapter18/1.3.3.ValueFromRemainingArguments.ps1
190 B
code/Chapter18/1.4.1.HelpMessage.ps1
462 B
code/Chapter18/2.1.1.CustomObjectWithTypeName.ps1
88 B
code/Chapter18/2.1.2.Get-Member.ps1
444 B
code/Chapter18/2.1.3.PSTypeNames.ps1
136 B
code/Chapter18/2.1.4.AddTypeName.ps1
215 B
code/Chapter18/2.1.5.Add-Member.ps1
96 B
code/Chapter18/2.1.6.PSTypeNameAttribute.ps1
127 B
code/Chapter18/2.1.7.PSTypeName_UsageInBuiltInModules.ps1
139 B
code/Chapter18/2.1.8.PSTypeName_CimInstance.ps1
330 B
code/Chapter18/2.2.1.ValidateAttributeContructor.ps1
139 B
code/Chapter18/2.2.10.ValidatePattern.ps1
138 B
code/Chapter18/2.2.11.ValidatePattern_RegexOptions.ps1
161 B
code/Chapter18/2.2.12.ValidatePattern_Default.ps1
188 B
code/Chapter18/2.2.13.ValidatePattern_DefaultErrorMessage.ps1
288 B
code/Chapter18/2.2.14.ValidatePattern_ErrorMessageArgument.ps1
254 B
code/Chapter18/2.2.15.ValidatePattern_ErrorMessage.ps1
191 B
code/Chapter18/2.2.16.ValidateRange.ps1
128 B
code/Chapter18/2.2.17.ValidateScript.ps1
155 B
code/Chapter18/2.2.18.ValidateScript_ErrorMessageArgument.ps1
235 B
code/Chapter18/2.2.19.ValidateScript_CustomErrorWithThrow.ps1
291 B
code/Chapter18/2.2.2.ValidateNotNull.ps1
122 B
code/Chapter18/2.2.20.ValidateSet.ps1
138 B
code/Chapter18/2.2.21.ValidateSet_IgnoreCase.ps1
159 B
code/Chapter18/2.2.3.ValidateNotNull_Array.ps1
132 B
code/Chapter18/2.2.4.ValidateNotNull_Error.ps1
255 B
code/Chapter18/2.2.5.ValidateNotNullOrEmpty.ps1
211 B
code/Chapter18/2.2.6.ValidateCount.ps1
132 B
code/Chapter18/2.2.7.ValidateDrive.ps1
129 B
code/Chapter18/2.2.8.ValidateUserDrive.ps1
130 B
code/Chapter18/2.2.9.ValidateLength.ps1
134 B
code/Chapter18/2.3.1.AllowNull.ps1
149 B
code/Chapter18/2.3.2.AllowEmptyString.ps1
163 B
code/Chapter18/2.3.3.AllowEmptyCollection.ps1
173 B
code/Chapter18/2.3.4.AllowEmptyCollection_Usage.ps1
60 B
code/Chapter18/2.4.1.ReferenceTypes.ps1
112 B
code/Chapter18/2.4.2.ReferenceTypes_ChangedValue.ps1
122 B
code/Chapter18/2.4.3.ValueTypeAndRef.ps1
296 B
code/Chapter18/2.4.4.ValueTypeAndRef_Usage.ps1
185 B
code/Chapter18/3.1.1.ValueFromPipeline.ps1
260 B
code/Chapter18/3.2.1.PipelineAndNothing.ps1
225 B
code/Chapter18/3.2.2.PipelineAndExplicitNull.ps1
201 B
code/Chapter18/3.2.3.PipelineAndExplicitNull_AllowNull.ps1
308 B
code/Chapter18/3.2.4.PipelineAndExplicitNull_Where-Object.ps1
84 B
code/Chapter18/3.3.1.InputObjectType.ps1
237 B
code/Chapter18/3.3.2.BindingError.ps1
293 B
code/Chapter18/3.4.1.ValueFromPipeline_MultipleParameters.ps1
335 B
code/Chapter18/3.4.2.ValueFromPipeline_GreedyBinding.ps1
135 B
code/Chapter18/3.4.3.Trace-Command.ps1
92 B
code/Chapter18/3.4.4.BindingByType.ps1
465 B
code/Chapter18/3.5.1.PSTypeNameAndValueFromPipeline.ps1
215 B
code/Chapter18/3.5.2.PSTypeName_Pipeline.ps1
98 B
code/Chapter18/3.6.1.ValueFromPipelineByPropertyName.ps1
183 B
code/Chapter18/3.6.2.ValueFromPipelineByPropertyName_Example.ps1
298 B
code/Chapter18/3.6.3.ValueFromPipelineByPropertyName_Binding.ps1
90 B
code/Chapter18/3.7.1.ValueFromPipelineByPropertyName_Alias.ps1
187 B
code/Chapter18/3.7.2.ValueFromPipelineByPropertyName_Alias_Example.ps1
243 B
code/Chapter18/4.0.1.ParameterSet.ps1
222 B
code/Chapter18/4.0.2.ParameterSet_PositionalBindingFailure.ps1
259 B
code/Chapter18/4.0.3.DefaultParameterSetName.ps1
1.3 kB
code/Chapter18/4.0.4.AllParameterSets.ps1
244 B
code/Chapter18/4.0.5.GeneratedSyntax.ps1
230 B
code/Chapter18/4.0.6.MultipleNamedParameterSets.ps1
466 B
code/Chapter18/4.0.7.GetParamBlock.ps1
92 B
code/Chapter18/5.0.1.ArgumentCompleterScriptBlock.ps1
246 B
code/Chapter18/5.1.1.ArgumentCompleterAttribute.ps1
480 B
code/Chapter18/5.2.1.Register-ArgumentCompleter.ps1
554 B
code/Chapter18/5.2.2.Register-ArgumentCompleter_Native.ps1
388 B
code/Chapter18/5.3.1.ListingArgumentCompleters.ps1
770 B
code/Chapter18/6.0.1.dynamicparam.ps1
141 B
code/Chapter18/6.0.2.MissingNamedBlock.ps1
679 B
code/Chapter18/6.1.1.RuntimeDefinedParameter.ps1
267 B
code/Chapter18/6.1.2.RuntimeDefinedParameter_Equivalent.ps1
189 B
code/Chapter18/6.1.3.RuntimeDefinedParameter_ParameterAttribute.ps1
359 B
code/Chapter18/6.2.1.RuntimeDefinedParameterDictionary.ps1
662 B
code/Chapter18/6.3.1.UsingDynamicParams.ps1
727 B
code/Chapter18/6.3.2.PSBoundParameters_ContainsKey.ps1
1.1 kB
code/Chapter18/6.3.3.PSBoundParameters_ContainsKey_Usage.ps1
253 B
code/Chapter18/6.4.1.ConditionalParameters.ps1
885 B
code/Chapter19/1.0.1.Enum.ps1
61 B
code/Chapter19/1.0.2.Enum_DuplicateValues.ps1
76 B
code/Chapter19/1.1.1.Enum_UnderlyingType.ps1
227 B
code/Chapter19/1.1.2.Enum_DefineType.ps1
72 B
code/Chapter19/1.1.3.CastToNumericType.ps1
39 B
code/Chapter19/1.1.4.CastToUnderlyingType.ps1
71 B
code/Chapter19/1.1.5.Value__.ps1
42 B
code/Chapter19/1.2.1.AutomaticValueAssignment.ps1
33 B
code/Chapter19/1.2.2.AutomaticFromValue.ps1
37 B
code/Chapter19/1.2.3.AutomaticRestarting.ps1
85 B
code/Chapter19/1.3.1.ValidateSet.ps1
149 B
code/Chapter19/1.3.2.EnumInsteadOfValidateSet.ps1
146 B
code/Chapter19/1.3.3.AutomaticCasting.ps1
55 B
code/Chapter19/1.3.4.ShowValue.ps1
66 B
code/Chapter19/1.4.1.ExistingFlagsEnum.ps1
67 B
code/Chapter19/1.4.10.CompositeValue_Usage.ps1
150 B
code/Chapter19/1.4.11.CompositeValue_ShowIndividualFlags.ps1
254 B
code/Chapter19/1.4.2.FlagsAttribute.ps1
145 B
code/Chapter19/1.4.3.UsingFlags.ps1
71 B
code/Chapter19/1.4.4.Flags_Bits.ps1
89 B
code/Chapter19/1.4.5.Flags_Hexadecimal.ps1
172 B
code/Chapter19/1.4.6.MultipleFlags.ps1
65 B
code/Chapter19/1.4.7.Get-FlagName.ps1
463 B
code/Chapter19/1.4.8.CompositeValue_Get-FlagName.ps1
541 B
code/Chapter19/1.4.9.CompositeValue.ps1
138 B
code/Chapter19/1.5.1.ConvertViaEnum.ps1
102 B
code/Chapter19/1.5.2.Get-CimAliasInstance.ps1
223 B
code/Chapter19/1.5.3.Get-CimAliasInstance_Usage.ps1
209 B
code/Chapter19/2.0.1.SimpleClass.ps1
50 B
code/Chapter19/2.0.2.CreateInstanceOfClass.ps1
151 B
code/Chapter19/2.1.1.PropertiesAndTypes.ps1
50 B
code/Chapter19/2.1.2.ImplicitGetAndSet.ps1
295 B
code/Chapter19/2.1.3.ShowPropertyValue.ps1
95 B
code/Chapter19/2.2.1.Constructor.ps1
96 B
code/Chapter19/2.2.2.Constructor_Arguments.ps1
208 B
code/Chapter19/2.2.3.Constructor_Arguments_Usage.ps1
99 B
code/Chapter19/2.2.4.Constructor_SetProperty.ps1
267 B
code/Chapter19/2.3.1.Methods.ps1
112 B
code/Chapter19/2.3.2.Methods_ToString.ps1
113 B
code/Chapter19/2.3.3.Methods_ToString_Output.ps1
81 B
code/Chapter19/2.3.4.Methods_Overloading.ps1
367 B
code/Chapter19/2.4.1.Hidden.ps1
170 B
code/Chapter19/2.4.2.Hidden_And_Get-Member.ps1
242 B
code/Chapter19/2.5.1.Static.ps1
136 B
code/Chapter19/2.5.2.Static_Invocation.ps1
58 B
code/Chapter19/2.6.1.Inheritance.ps1
127 B
code/Chapter19/2.6.10.ConstructorInheritance_base.ps1
255 B
code/Chapter19/2.6.11.ConstructorInheritance_base_Output.ps1
144 B
code/Chapter19/2.6.12.ConstructorInheritance_base_Arguments.ps1
249 B
code/Chapter19/2.6.13.ConstructorInheritance_base_Arguments_Output.ps1
133 B
code/Chapter19/2.6.14.MethodsInBaseClass.ps1
304 B
code/Chapter19/2.6.15.MethodsInBaseClass_Output.ps1
96 B
code/Chapter19/2.6.2.ShowBaseType.ps1
134 B
code/Chapter19/2.6.3.OverrideMethods.ps1
143 B
code/Chapter19/2.6.4.ConstructorInheritance.ps1
204 B
code/Chapter19/2.6.5.ConstructorInheritance_Invocation.ps1
128 B
code/Chapter19/2.6.6.ConstructorInheritance_Overloading.ps1
294 B
code/Chapter19/2.6.7.ConstructorInheritance_OverloadCallsDefault.ps1
130 B
code/Chapter19/2.6.8.ConstructorInheritance_InvalidInheritedConstructor.ps1
238 B
code/Chapter19/2.6.9.ConstructorInheritance_InvalidInheritedConstructor_Error copy.ps1
263 B
code/Chapter19/2.7.1.SimpleClass.ps1
36 B
code/Chapter19/2.7.2.IComparable.ps1
288 B
code/Chapter19/2.7.3.IComparable_GreaterThan_LessThan.ps1
183 B
code/Chapter19/2.7.4.IComparable_GreaterThanOrEqual_LessThanOrEqual.ps1
182 B
code/Chapter19/2.7.5.IComparable_NotEquality.ps1
76 B
code/Chapter19/2.7.6.IEquatable.ps1
477 B
code/Chapter19/2.7.7.IEquatable_Output.ps1
134 B
code/Chapter19/2.8.1.SimpleClass.ps1
119 B
code/Chapter19/2.8.2.CastUsingConstructor.ps1
77 B
code/Chapter19/2.8.3.CastFailsForOtherTypes.ps1
145 B
code/Chapter19/2.8.4.CastUsingParse.ps1
249 B
code/Chapter19/2.8.5.CastUsingParse_Usage.ps1
86 B
code/Chapter19/2.8.6.op_Implicit.ps1
255 B
code/Chapter19/2.8.7.op_Implicit_Usage.ps1
107 B
code/Chapter19/2.8.8.op_Implicit_Overload.ps1
383 B
code/Chapter19/3.1.1.DateTimeStringTransformationAttribute.ps1
735 B
code/Chapter19/3.1.2.DateTimeStringTransformationAttribute_WithMethod.ps1
897 B
code/Chapter19/3.1.3.DateTimeStringTransformationAttribute_Usage.ps1
134 B
code/Chapter19/3.1.4.DateTimeStringTransformationAttribute_Output.ps1
141 B
code/Chapter19/3.2.1.ValidateNotNullOrWhitespaceAttribute.ps1
372 B
code/Chapter19/3.2.2.ValidateNotNullOrWhitespaceAttribute_Usage.ps1
180 B
code/Chapter19/3.2.3.ValidateNotNullOrWhitespaceAttribute_Output.ps1
153 B
code/Chapter19/3.2.4.ValidatePrivateIPAddressAttribute.ps1
1.0 kB
code/Chapter19/3.2.5.ValidatePrivateIPAddressAttribute_Usage.ps1
161 B
code/Chapter19/3.2.6.ValidatePrivateIPAddressAttribute_Output.ps1
96 B
code/Chapter19/3.2.7.ValidatePrivateIPAddressAttribute_InvalidAddress.ps1
189 B
code/Chapter19/3.2.8.ValidatePrivateIPAddressAttribute_InvalidValue.ps1
278 B
code/Chapter19/3.3.1.EnvironmentVariable.ps1
186 B
code/Chapter19/3.3.2.EnvironmentVariable_Usage.ps1
199 B
code/Chapter19/4.0.1.DSCClassLayout.ps1
220 B
code/Chapter19/4.0.2.SampleClassWithProperties.ps1
392 B
code/Chapter19/4.1.1.GetMethod.ps1
448 B
code/Chapter19/4.1.2.GetMethod_Hashtable.ps1
499 B
code/Chapter19/4.2.1.SetMethod.ps1
693 B
code/Chapter19/4.3.1.TestMethod.ps1
550 B
code/Chapter19/4.4.1.CompleteClass.ps1
1.6 kB
code/Chapter19/4.4.2.ModuleInstallation.ps1
621 B
code/Chapter19/4.4.3.ExecuteViaUsingModule.ps1
149 B
code/Chapter19/4.4.4.InvokeGet.ps1
133 B
code/Chapter19/4.4.5.Get-DscResource.ps1
269 B
code/Chapter19/4.4.6.Invoke-DscResource.ps1
277 B
code/Chapter20/1.1.1.RootModule_Get-ComputerDescription.ps1
318 B
code/Chapter20/1.1.2.Import-Module.ps1
79 B
code/Chapter20/1.1.3.Get-Module.ps1
256 B
code/Chapter20/1.1.4.SetComputerDescription.ps1
211 B
code/Chapter20/1.2.1.PrivateFunction.ps1
223 B
code/Chapter20/1.2.2.Get-ComputerDescription.ps1
221 B
code/Chapter20/1.2.3.Remove-ComputerDescription.ps1
310 B
code/Chapter20/1.2.4.Set-ComputerDescription.ps1
723 B
code/Chapter20/1.2.5.ImportUpdatedModule.ps1
734 B
code/Chapter20/1.2.6.Export-ModuleMember.ps1
201 B
code/Chapter20/1.2.7.ImportUpdatedModule.ps1
379 B
code/Chapter20/1.3.1.New-ModuleManifest.ps1
473 B
code/Chapter20/1.3.2.Test-ModuleManifest.ps1
567 B
code/Chapter20/1.3.3.Update-ModuleManifest.ps1
210 B
code/Chapter20/1.3.4.IncrementVersion.ps1
278 B
code/Chapter20/2.0.1.PSRepository_Folder.ps1
93 B
code/Chapter20/2.0.2.Publish-Module.ps1
43 B
code/Chapter20/2.0.3.ViewNupkg.ps1
257 B
code/Chapter20/2.0.4.VersionedFolder.ps1
105 B
code/Chapter20/3.1.1.DotSourcing.ps1
126 B
code/Chapter20/3.1.2.DotSourcingRecursive.ps1
177 B
code/Chapter20/3.1.3.DotSourcingNamed.ps1
286 B
code/Chapter20/3.2.1.build.psd1.ps1
135 B
code/Chapter20/3.2.2.ModuleBuilder.ps1
89 B
code/Chapter20/3.2.3.ModuleBuilder_FromModuleRoot.ps1
41 B
code/Chapter20/3.3.1.FindDscResourcesInPsm1.ps1
587 B
code/Chapter20/3.3.2.DscResourcesToExport.ps1
387 B
code/Chapter20/4.0.1.SaveInModuleScope.ps1
249 B
code/Chapter20/4.0.2.GetFromModuleScope.ps1
249 B
code/Chapter20/4.0.3.UseInCommand.ps1
163 B
code/Chapter20/4.1.1.Module.ps1
406 B
code/Chapter20/4.1.2.Get-Command.ps1
238 B
code/Chapter20/4.1.3.GetVariablesFromModuleScope.ps1
102 B
code/Chapter20/4.1.4.RunPrivateFunction.ps1
70 B
code/Chapter20/4.1.5.ListCommands.ps1
344 B
code/Chapter20/4.2.1.ModuleWithEnum.ps1
276 B
code/Chapter20/4.2.2.ModuleWithClass.ps1
178 B
code/Chapter20/4.2.3.ReturnClassInstance.ps1
83 B
code/Chapter20/4.2.4.ClassIsNotExported.ps1
114 B
code/Chapter20/4.2.5.ModuleWithClass_FileBased.ps1
154 B
code/Chapter20/4.2.6.UsingModule.ps1
54 B
code/Chapter20/4.2.7.ClassIsAccessible.ps1
90 B
code/Chapter20/5.1.1.ClassInScriptsToProcess.ps1
354 B
code/Chapter20/5.1.2.ClassInScriptsToProcess_Output.ps1
124 B
code/Chapter20/5.1.3.ScriptsToProcess_Scope.ps1
100 B
code/Chapter20/5.1.4.ScriptsToProcess_OutOfScope.ps1
375 B
code/Chapter20/5.2.1.OnRemove_Module.ps1
340 B
code/Chapter20/5.2.2.Import-Module.ps1
330 B
code/Chapter20/5.2.3.FileInUse.ps1
188 B
code/Chapter20/5.2.4.AfterRemove.ps1
156 B
code/Chapter20/LocalMachine/MultiFile/LocalMachine/LocalMachine.psd1
4.1 kB
code/Chapter20/LocalMachine/MultiFile/LocalMachine/LocalMachine.psm1
177 B
code/Chapter20/LocalMachine/MultiFile/LocalMachine/private/GetRegistryParameter.ps1
464 B
code/Chapter20/LocalMachine/MultiFile/LocalMachine/public/Get-ComputerDescription.ps1
416 B
code/Chapter20/LocalMachine/MultiFile/LocalMachine/public/Remove-ComputerDescription.ps1
528 B
code/Chapter20/LocalMachine/MultiFile/LocalMachine/public/Set-ComputerDescription.ps1
1.0 kB
code/Chapter20/LocalMachine/MultiFileWithModuleBuilder/build.ps1
1.0 kB
code/Chapter20/LocalMachine/MultiFileWithModuleBuilder/build/LocalMachine/1.0.0/LocalMachine.psd1
4.2 kB
code/Chapter20/LocalMachine/MultiFileWithModuleBuilder/build/LocalMachine/1.0.0/LocalMachine.psm1
4.0 kB
code/Chapter20/LocalMachine/MultiFileWithModuleBuilder/LocalMachine/build.psd1
135 B
code/Chapter20/LocalMachine/MultiFileWithModuleBuilder/LocalMachine/classes/ComputerDescription.ps1
1014 B
code/Chapter20/LocalMachine/MultiFileWithModuleBuilder/LocalMachine/enum/Ensure.ps1
39 B
code/Chapter20/LocalMachine/MultiFileWithModuleBuilder/LocalMachine/LocalMachine.psd1
4.2 kB
code/Chapter20/LocalMachine/MultiFileWithModuleBuilder/LocalMachine/LocalMachine.psm1
177 B
code/Chapter20/LocalMachine/MultiFileWithModuleBuilder/LocalMachine/private/GetRegistryParameter.ps1
464 B
code/Chapter20/LocalMachine/MultiFileWithModuleBuilder/LocalMachine/public/Get-ComputerDescription.ps1
416 B
code/Chapter20/LocalMachine/MultiFileWithModuleBuilder/LocalMachine/public/Remove-ComputerDescription.ps1
528 B
code/Chapter20/LocalMachine/MultiFileWithModuleBuilder/LocalMachine/public/Set-ComputerDescription.ps1
1.0 kB
code/Chapter20/LocalMachine/SingleFile/LocalMachine/LocalMachine.psm1
1.4 kB
code/Chapter20/LocalMachine/SingleFileWithManifest/LocalMachine/LocalMachine.psd1
4.1 kB
code/Chapter20/LocalMachine/SingleFileWithManifest/LocalMachine/LocalMachine.psm1
1.3 kB
code/Chapter21/1.1.1.InstallPSScriptAnalyzer.ps1
32 B
code/Chapter21/1.1.10.SuppressingRules.ps1
275 B
code/Chapter21/1.1.2.SampleScript.ps1
272 B
code/Chapter21/1.1.3.Invoke-ScriptAnalyzer.ps1
684 B
code/Chapter21/1.1.4.ShowConfigurableRules.ps1
103 B
code/Chapter21/1.1.5.ShowDefaultRules.ps1
103 B
code/Chapter21/1.1.6.UsingConfigurableRules.ps1
216 B
code/Chapter21/1.1.7.BuiltInSettingsTabCompletion.ps1
67 B
code/Chapter21/1.1.8.SuppressingRules_SampleScript.ps1
191 B
code/Chapter21/1.1.9.SuppressingRules_TriggeredRule.ps1
367 B
code/Chapter21/1.2.1.AstAndScriptBlock.ps1
357 B
code/Chapter21/1.2.10.Show-Ast.ps1
59 B
code/Chapter21/1.2.11.Ast_ChildProperties_Revisited.ps1
111 B
code/Chapter21/1.2.12.Predicate.ps1
23 B
code/Chapter21/1.2.13.Find_Usage.ps1
142 B
code/Chapter21/1.2.14.Find_Output.ps1
503 B
code/Chapter21/1.2.15.Predicate_SpecificNodes.ps1
234 B
code/Chapter21/1.2.16.Predicate_SpecificNodes_Output.ps1
311 B
code/Chapter21/1.2.17.Extent.ps1
442 B
code/Chapter21/1.2.2.AstAndGet-Command.ps1
88 B
code/Chapter21/1.2.3.AstAndGet-Item.ps1
95 B
code/Chapter21/1.2.4.ParserError.ps1
177 B
code/Chapter21/1.2.5.ParseInput.ps1
156 B
code/Chapter21/1.2.6.ParseInput_TokensAndErrors.ps1
184 B
code/Chapter21/1.2.7.ViewErrors.ps1
393 B
code/Chapter21/1.2.8.Ast_ChildProperties.ps1
111 B
code/Chapter21/1.2.9.InstallShowPSAst.ps1
44 B
code/Chapter21/1.3.1.Tokens.ps1
204 B
code/Chapter21/1.3.2.Tokens_Output.ps1
324 B
code/Chapter21/1.4.1.CustomRule_AstBased.ps1
532 B
code/Chapter21/1.4.2.CustomRule_Usage.ps1
259 B
code/Chapter21/1.4.3.CustomRule_Output.ps1
321 B
code/Chapter21/1.4.4.CustomRule_TokenBased.ps1
593 B
code/Chapter21/1.4.5.CustomRule_Usage.ps1
97 B
code/Chapter21/1.4.6.CustomRule_Output.ps1
350 B
code/Chapter21/2.0.1.InstallPester.ps1
160 B
code/Chapter21/2.0.2.SimpleTests.ps1
247 B
code/Chapter21/2.0.3.SimpleTests_Output.ps1
277 B
code/Chapter21/2.0.4.SimpleTests_Output_Detailed.ps1
438 B
code/Chapter21/2.10.1.MockUsingPSCustomObject.ps1
44 B
code/Chapter21/2.10.10.Mock_Open_ChangeParentObject.ps1
460 B
code/Chapter21/2.10.11.New-MockObject.ps1
236 B
code/Chapter21/2.10.12.CimInstancePipeline.ps1
85 B
code/Chapter21/2.10.13.CimInstanceHelp.ps1
418 B
code/Chapter21/2.10.14.PSTypeName.ps1
281 B
code/Chapter21/2.10.15.CimClass.ps1
129 B
code/Chapter21/2.10.16.New-CimInstance.ps1
135 B
code/Chapter21/2.10.17.Tests.ps1
711 B
code/Chapter21/2.10.2.MockUsingPSCustomObject_AddScriptMethod.ps1
102 B
code/Chapter21/2.10.3.MockUsingPSCustomObject_OverrideMethod.ps1
115 B
code/Chapter21/2.10.4.ExampleFunction.ps1
262 B
code/Chapter21/2.10.5.TestForFunction.ps1
146 B
code/Chapter21/2.10.6.Tests.ps1
339 B
code/Chapter21/2.10.7.Mock_Open_WithScriptMethod.ps1
288 B
code/Chapter21/2.10.8.Mock_Open_FakeReturnValue.ps1
296 B
code/Chapter21/2.10.9.Mock_Open_UsingScopedVariable.ps1
424 B
code/Chapter21/2.11.1.SampleModule.ps1
426 B
code/Chapter21/2.11.10.ModuleNameParameter_Output.ps1
265 B
code/Chapter21/2.11.2.InModuleScope_TestPrivateCommand.ps1
310 B
code/Chapter21/2.11.3.InModuleScope_Output.ps1
346 B
code/Chapter21/2.11.4.InModuleScope_MockPrivateCommand.ps1
96 B
code/Chapter21/2.11.5.Tests.ps1
431 B
code/Chapter21/2.11.6.Tests_Output.ps1
304 B
code/Chapter21/2.11.7.Invoke-Pester_InScript.ps1
87 B
code/Chapter21/2.11.8.RunScript.ps1
549 B
code/Chapter21/2.11.9.ModuleNameParameter.ps1
436 B
code/Chapter21/2.3.1.DescribeAndContext.ps1
192 B
code/Chapter21/2.3.2.It.ps1
334 B
code/Chapter21/2.4.1.Should.ps1
362 B
code/Chapter21/2.4.2.Should_NotThrow.ps1
532 B
code/Chapter21/2.4.3.Should_Throw.ps1
197 B
code/Chapter21/2.4.4.Should_Throw_AnyError.ps1
199 B
code/Chapter21/2.4.5.Should_Throw_AnyError_Usage.ps1
303 B
code/Chapter21/2.4.6.Should_Throw_ValidateMessage.ps1
245 B
code/Chapter21/2.4.7.Should_Throw_ErrorID.ps1
291 B
code/Chapter21/2.5.1.choco_list_terraform.ps1
89 B
code/Chapter21/2.5.2.TestCases.ps1
498 B
code/Chapter21/2.5.3.TestCases_Output.ps1
462 B
code/Chapter21/2.5.4.ForEach.ps1
416 B
code/Chapter21/2.6.1.Set-ItResult.ps1
503 B
code/Chapter21/2.6.2.Set-ItResult_Output.ps1
584 B
code/Chapter21/2.6.3.Skip.ps1
320 B
code/Chapter21/2.7.1.BeforeDiscovery.ps1
501 B
code/Chapter21/2.9.1.Mock_SampleModule.ps1
452 B
code/Chapter21/2.9.10.DefaultMocks.ps1
516 B
code/Chapter21/2.9.11.ShouldInvoke_NoChanges.ps1
221 B
code/Chapter21/2.9.12.ShouldInvoke_Start_1_Times.ps1
329 B
code/Chapter21/2.9.13.ShouldInvoke_Stop_1_Times.ps1
376 B
code/Chapter21/2.9.14.Tests_Output.ps1
672 B
code/Chapter21/2.9.15.FunctionDependsOnNonLocalModule.ps1
382 B
code/Chapter21/2.9.16.MockEmptyFunctions.ps1
437 B
code/Chapter21/2.9.17.CopyParamBlock.ps1
140 B
code/Chapter21/2.9.18.CopyParamBlock_Example.ps1
379 B
code/Chapter21/2.9.19.StubFunction.ps1
493 B
code/Chapter21/2.9.2.Mock_Simple.ps1
99 B
code/Chapter21/2.9.3.Mock_Body_Import-Csv.ps1
172 B
code/Chapter21/2.9.4.Mock_Body_Get-Service.ps1
139 B
code/Chapter21/2.9.5.Tests.ps1
663 B
code/Chapter21/2.9.6.Tests_Output.ps1
304 B
code/Chapter21/2.9.7.Mock_ExtendBody.ps1
410 B
code/Chapter21/2.9.8.Mock_ParameterFilter.ps1
399 B
code/Chapter21/2.9.9.UpdatedIt.ps1
245 B
code/Chapter22/1.1.1.Write-Error.ps1
333 B
code/Chapter22/1.1.2.Write-Error_Output.ps1
221 B
code/Chapter22/1.2.1.throw.ps1
91 B
code/Chapter22/1.2.2.throw_Output.ps1
255 B
code/Chapter22/1.2.3.throw_ErrorAction.ps1
113 B
code/Chapter22/2.0.1.ErrorAction.ps1
141 B
code/Chapter22/2.0.2.The_Error_Variable.ps1
90 B
code/Chapter22/2.0.3.ErrorAction_Stop.ps1
1.6 kB
code/Chapter22/2.1.1.Get-Error.ps1
1.0 kB
code/Chapter22/2.1.2.Get-Error_FromErrorVariable.ps1
22 B
code/Chapter22/3.1.1.ErrorRecord.ps1
28 B
code/Chapter22/3.1.2.ScriptStackTrace.ps1
102 B
code/Chapter22/3.1.3.CreateErrorRecord.ps1
475 B
code/Chapter22/3.1.4.TargetObject.ps1
146 B
code/Chapter22/3.2.1.Write-Error_Message.ps1
31 B
code/Chapter22/3.2.2.Write-Error_CategoryAndErrorID.ps1
120 B
code/Chapter22/3.2.3.Write-Error_NonTerminating.ps1
147 B
code/Chapter22/3.2.4.Write-Error_NonTerminating_Output.ps1
131 B
code/Chapter22/3.2.5.Write-Error_Terminating.ps1
94 B
code/Chapter22/3.2.6.Write-Error_StatusOfLastCommand.ps1
163 B
code/Chapter22/3.2.7.WriteError_Method.ps1
376 B
code/Chapter22/3.2.8.WriteError_StatusOfLastCommand.ps1
163 B
code/Chapter22/3.3.1.throw_Message.ps1
22 B
code/Chapter22/3.3.2.throw_ExceptionType.ps1
52 B
code/Chapter22/3.3.3.throw_ErrorRecord.ps1
199 B
code/Chapter22/3.3.4.ThrowTerminatingError.ps1
338 B
code/Chapter22/3.3.5.ThrowTerminatingError_Output.ps1
82 B
code/Chapter22/4.1.1.SampleFunction.ps1
109 B
code/Chapter22/4.1.2.ErrorVariable.ps1
135 B
code/Chapter22/4.1.3.ErrorVariable_Output.ps1
116 B
code/Chapter22/4.1.4.ErrorVariable_AppendToVariable.ps1
115 B
code/Chapter22/4.2.1.try_catch.ps1
72 B
code/Chapter22/4.2.2.try_catch_PSItemVariable.ps1
62 B
code/Chapter22/4.2.3.try_catch_ExceptionType.ps1
74 B
code/Chapter22/4.2.4.try_catch_SpecificExceptionType.ps1
139 B
code/Chapter22/4.2.5.try_catch_catch.ps1
232 B
code/Chapter22/4.2.6.try_catch_catch_NonSpecific.ps1
192 B
code/Chapter22/4.2.7.try_catch_MultipleTypes.ps1
178 B
code/Chapter22/4.2.8.try_finally.ps1
438 B
code/Chapter22/4.2.9.try_catch_finally.ps1
173 B
code/Chapter22/4.3.1.try_throw_catch_throw.ps1
85 B
code/Chapter22/4.3.10.GetBaseException.ps1
295 B
code/Chapter22/4.3.2.try_throw_catch_ThrowTerminatingError.ps1
210 B
code/Chapter22/4.3.3.DuplicateRecord.ps1
189 B
code/Chapter22/4.3.4.ErrorRecordDuplicateSuppression.ps1
261 B
code/Chapter22/4.3.5.InnerException.ps1
279 B
code/Chapter22/4.3.6.MethodInvocationException.ps1
97 B
code/Chapter22/4.3.7.MethodInvocationException_catch.ps1
184 B
code/Chapter22/4.3.8.MethodInvocationException_catch_ExceptionType.ps1
116 B
code/Chapter22/4.3.9.GetInnerException.ps1
291 B
code/Chapter22/4.4.1.ThrowInCallStack.ps1
160 B
code/Chapter22/4.4.2.ScriptTerminatingError.ps1
122 B
code/Chapter22/4.4.3.StatementTerminatingError.ps1
375 B
code/Chapter22/4.4.4.StatementTerminatingError_Output.ps1
150 B
code/Chapter22/4.4.5.Cmdlet_StatementTerminatingError.ps1
103 B
code/Chapter22/4.4.6.Cmdlet_StatementTerminatingError_Output.ps1
323 B
code/Chapter22/4.4.7.DotNetMethod_StatementTerminatingError.ps1
115 B
code/Chapter22/4.5.1.FunctionWithThrow.ps1
111 B
code/Chapter22/4.5.10.ThrowTerminatingErrorInCatch_Output.ps1
86 B
code/Chapter22/4.5.2.TerminatingError.ps1
148 B
code/Chapter22/4.5.3.throw_ErrorAction.ps1
97 B
code/Chapter22/4.5.4.throw_ErrorActionPreference.ps1
111 B
code/Chapter22/4.5.5.try_throw_catch.ps1
188 B
code/Chapter22/4.5.6.try_throw_catch_Output.ps1
105 B
code/Chapter22/4.5.7.throwInCatch.ps1
183 B
code/Chapter22/4.5.8.throwInCatch_Output.ps1
276 B
code/Chapter22/4.5.9.ThrowTerminatingErrorInCatch.ps1
193 B
code/Chapter22/4.6.1.Connect-Server.ps1
27 B
code/Chapter22/4.6.2.Get-ManagementObject.ps1
165 B
code/Chapter22/4.6.3.Set-ManagementObject.ps1
413 B
code/Chapter22/4.6.4.try_catch_loop.ps1
274 B
code/Chapter22/4.7.1.trap.ps1
44 B
code/Chapter22/4.7.2.trap_ExceptionType.ps1
65 B
code/Chapter22/4.7.3.trap_Multiple.ps1
128 B
code/Chapter22/4.7.4.trap_ScriptBlock.ps1
130 B
code/Chapter22/4.7.5.trap_continue.ps1
159 B
code/Chapter22/4.7.6.trap_continue_scope.ps1
253 B
code/Chapter23/1.1.1.DashCharacters.ps1
54 B
code/Chapter23/1.1.2.DashCharacters_Forced.ps1
76 B
code/Chapter23/1.2.1.AssignmentInParens.ps1
49 B
code/Chapter23/1.2.2.AssignmentInsteadOfComparison.ps1
115 B
code/Chapter23/1.2.3.AssignmentInIf.ps1
244 B
code/Chapter23/1.2.4.OrInsteadOfAnd.ps1
107 B
code/Chapter23/1.2.5.AndInsteadOfOr.ps1
108 B
code/Chapter23/1.2.6.ArrayComparisonNotMatch.ps1
135 B
code/Chapter23/1.2.7.ArrayComparisonNotAndMatch.ps1
139 B
code/Chapter23/1.3.1.ConfusedNamedBlocks_Allman.ps1
256 B
code/Chapter23/1.3.2.ConfusedNamedBlocks_OTBS.ps1
248 B
code/Chapter23/1.3.3.ConfusedNamedBlocks_OTBS_Error.ps1
291 B
code/Chapter23/1.3.4.PipelineWithoutProcess.ps1
149 B
code/Chapter23/1.3.5.PipelineWithoutProcess_Output.ps1
63 B
code/Chapter23/1.3.6.PipelineWithoutProcess_Fixed.ps1
173 B
code/Chapter23/1.4.1.Set-StrictMode.ps1
31 B
code/Chapter23/1.4.10.AutomaticVariables.ps1
35 B
code/Chapter23/1.4.11.Switch.ps1
89 B
code/Chapter23/1.4.12.Switch_Enumerator.ps1
344 B
code/Chapter23/1.4.13.Remove-Variable.ps1
23 B
code/Chapter23/1.4.2.Set-StrictMode_InvalidVariableName.ps1
162 B
code/Chapter23/1.4.3.Set-StrictMode_InvalidVariableName_Error.ps1
244 B
code/Chapter23/1.4.4.InvalidProperties.ps1
101 B
code/Chapter23/1.4.5.InvalidProperties_StrictMode.ps1
222 B
code/Chapter23/1.4.6.TestForProperty.ps1
185 B
code/Chapter23/1.4.7.DisabledStrictMode.ps1
20 B
code/Chapter23/1.4.8.VariableType.ps1
32 B
code/Chapter23/1.4.9.CoerceToString.ps1
263 B
code/Chapter23/2.0.1.AboutDebuggers.ps1
25 B
code/Chapter23/2.1.1.Set-PSBreakPoint.ps1
384 B
code/Chapter23/2.1.2.DBG_ShowVariable.ps1
80 B
code/Chapter23/2.1.3.DBG_list.ps1
162 B
code/Chapter23/2.1.4.DBG_c.ps1
109 B
code/Chapter23/2.1.5.Remove-PSBreakpoint.ps1
39 B
code/Chapter23/2.2.1.SampleLoop.ps1
52 B
code/Chapter23/2.2.2.Set-PSBreakpoint_WriteToVariable.ps1
143 B
code/Chapter23/2.2.3.Set-PSBreakpoint_NoTriggerOnCollectionChange.ps1
153 B
code/Chapter23/2.2.4.Set-PSBreakpoint_ReadVariable.ps1
178 B
code/Chapter23/2.3.1.Set-PSBreakpoint_Line.ps1
208 B
code/Chapter23/2.3.2.DebuggerAndAutomaticVariables.ps1
232 B
code/Chapter23/2.3.3.DebuggerAndAutomaticVariables_Output.ps1
323 B
code/Chapter23/3.1.1.SampleLoop.ps1
120 B
code/Chapter23/3.2.1.SimpleCallStackSample.ps1
25 B
code/Chapter23/3.2.2.ExtendedCallStackSample.ps1
114 B
code/Chapter23/3.4.1.WatchLoopSample.ps1
94 B
code/LICENSE
1.0 kB
code/README.md
1.7 kB
code/Software and hardware list.pdf
114 kB
Dent Ch. - Mastering PowerShell Scripting, 4th Edition - 2021.epub
7.5 MB
Dent Ch. - Mastering PowerShell Scripting, 4th Edition - 2021.pdf
11 MB