13. What are the two categories of variables in PS? 14. What are some of the types and uses of automatic variables in PS?

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter16: Graphics
Section: Chapter Questions
Problem 1DE
icon
Related questions
Question
100%

Book reference: Windows PowerShell Step by Step 3rd Edition - Ed Wilson
Subj: PWS0 - PowerShell

Chapter 5

13. What are the two categories of variables in PS?

14. What are some of the types and uses of automatic variables in PS?

15. Name two common data types in PS.

16. What is the reason for the below error?

[INT]$R = 10

$R = "Ten"

Cannot convert value "Ten" to type "System.Int32". Error: "Input string was not in a correct format."

At line:2 char:1

+ $R = "Ten"

+ ~~~~~~~~~~

+ CategoryInfo : MetadataError: (:) [], ArgumentTransformationMetadataException

+ FullyQualifiedErrorId : RuntimeException

17. How would you create a constant data type using the set-Variable cmdlet?

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT