Untitled
unknown
plain_text
a year ago
2.5 kB
9
Indexable
Cannot index into a null array.
At C:\Source\IPAddress.ps1:56 char:1
+ $originalIPAddress = $nic.IPAddress[0].IPAddress
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Cannot index into a null array.
At C:\Source\IPAddress.ps1:57 char:1
+ $originalSubnetMask = $nic.IPAddress[0].SubnetMask
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Cannot index into a null array.
At C:\Source\IPAddress.ps1:58 char:1
+ $originalGateway = $nic.IPAddress[0].Gateway
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Cannot index into a null array.
At C:\Source\IPAddress.ps1:59 char:1
+ $originalDNSServer = $nic.IPAddress[0].DNSServer
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Error changing NIC settings: The property 'IPAddress' cannot be found on this object. Verify that the property exists and can be set.
New-Timer : The term 'New-Timer' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Source\IPAddress.ps1:65 char:10
+ $timer = New-Timer -Interval 30000
+ ~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-Timer:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Register-ObjectEvent : Cannot bind argument to parameter 'InputObject' because it is null.
At C:\Source\IPAddress.ps1:66 char:35
+ Register-ObjectEvent -InputObject $timer -EventName Elapsed -SourceId ...
+ ~~~~~~
+ CategoryInfo : InvalidData: (:) [Register-ObjectEvent], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.RegisterObj
ectEventCommand
You cannot call a method on a null-valued expression.
At C:\Source\IPAddress.ps1:70 char:1
+ $timer.Start()
+ ~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNullEditor is loading...
Leave a Comment