A couple of comdlets that I’ve not really used much before have just come into prominance for me to solve a problem I’ve been working on. These cmdlets are:
The two cmdlets work with commands in a remote session but have subtle differences in terms of what they actually do.
This cmdlet imports commands (cmdlets, functions and aliases) from a PSsession on a remote (or local) machine into your current PowerShell session. You must have a remoting session open to the machine from which you want to import and that session must remain open while you are using the commands.
A temporary module is created to hold the imported commands. when you close PowerShell it is removed. Each command has an –AsJob parameter added.
The commands are imported into your session as functions and rely on remoting to access the remote machine. This means that you get…
View original post 100 altre parole