PowerShell

[Pages:257]PowerShell

#powershell

1

1: PowerShell

2

2

2

Examples

2

3

Windows

3

3

, ,

3

4

- PowerShell

6

6

.Net

7

7

2: Cmdlet Naming

9

9

Examples

9

9

9

3: HashTables

10

10

10

Examples

10

10

- .

10

-

11

-

11

12

-

12

4: Loops

13

13

13

13

13

14

Examples

14

14

15

15

ForEach-Object

16

16

16

17

ForEach ()

18

18

19

5: MongoDB

20

20

Examples

20

MongoDB C # 1.7 PowerShell

20

3 Powershell

20

6: PowerShell ??; Debug, Verbose, Warning, Error, Output Information

22

22

Examples

22

Write-Output

22

22

7: PSScriptAnalyzer - PowerShell

24

24

24

Examples

24

24

25

25

8: Splatting

26

26

26

Examples

26

26

Switch Splatting

27

27

Splatting

28

9: sql- powershell

29

29

29

29

Examples

31

SQLExample

31

SQLQuery

31

10: WMI CIM

33

33

CIM WMI

33

34

Examples

34

34

CIM-

34

35

WQL-:

35

36

36

37

37

38

11:

40

40

Examples

40

40

12:

41

41

41

Examples

41

$ PID

41

41

$

42

$ OFS

42

$ _ / $ PSItem

42

$?

43

$

43

13: - 2

45

45

45

Examples

45

$ PSVersionTable

45

14: IP (v4 v6) Powershell

46

46

Examples

46

IP-

46

15:

48

48

48

48

49

Examples

49

-

49

ZIP Compress-Archive

49

ZIP -

49

16:

50

Examples

50

- .Net Cryptography

50

17: Pester

51

51

Examples

51

Pester

51

18: Psake

53

53

53

Examples

53

53

FormatTaskName

53

54

ContinueOnError

54

19: (C # | VB)

55

55

55

55

55

CSharp .NET

55

Examples

56

C #

56



56

20: PowerShell

58

58

58

Examples

58

58

!

59

!

59

60

60

21:

62

62

Examples

62

$ PSScriptRoot

62

$ Args

62

$ PSItem

62

$?

63

$

63

22:

64

Examples

64

64

64

64

65

23: Powershell

66

Examples

66

WPF GUI Get-Service

66

24: PowerShell

68

Examples

68

??

68

25: ShouldProcess

70

70

70

70

Examples

70

-WhatIf -Confirm

70

ShouldProcess ()

70

71

26:

73

73

Examples

73

73

74

27:

76

76

Examples

76

76

Get-Help

76

-

77

77

77

77

28:

78

78

Examples

78

GUID

78

.Net Math Class

78

79

29: Artifactory Powers

80

80

Examples

80

Powershell artifcat

80

30: PowerShell

81

81

Examples

81

81

81

83

83

83

84

31: / URL

86

86

Examples

86

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download