Dynamic Types- Not strictly typed
PS C:\Users\Windows-32> $value = "string" + 1
PS C:\Users\Windows-32> $value.GetType()
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True String System.Object
PS C:\Users\Windows-32>-
Basis of
PowerShelltypes is.Net -
Type Adaption– Provides access to alternate object systems like WMI, COM, ADSI etc. -
Single quotedvsDouble qouted
PS C:\Users\Windows-32> $str = "This is a string"
PS C:\Users\Windows-32> $str.GetType()
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True String System.Object
PS C:\Users\Windows-32>PS C:\Users\Windows-32> $str = 'This is a string'
PS C:\Users\Windows-32> $str.GetType()
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True String System.Object
PS C:\Users\Windows-32>PS C:\Users\Windows-32> "Another String $str"
Another String This is a string
PS C:\Users\Windows-32>
PS C:\Users\Windows-32> 'Another String $str'
Another String $str
PS C:\Users\Windows-32>Here Strings- Multiline
PS C:\Users\Windows-32> @"
>> hi
>> this
>> is
>> a
>> line
>> "@
>>
hi
this
is
a
line
PS C:\Users\Windows-32>