April 2019
Intermediate to advanced
372 pages
12h 47m
English
Every time you work remotely with Invoke-Command, your commands or scripts will be executed locally on the remote hosts. Any processing that you do later will be done with a remnant of the original data. During a process called serialization, objects are deconstructed so that they can be sent over your connection. On your end, the objects will be reconstructed, or deserialized.
During this process, most .NET types will lose some fidelity, most notably their methods. Be careful when working remotely: Only if you are working within the confines of Invoke-Command will object methods be executable. As soon as the data is transferred to your local session, you will lose many if not all methods.
Read now
Unlock full access