I support Office 365 so someone that deals specifically with RemoteSessions, I would appreciate any input!
I am wondering if someone than lob some ideas out there to get me thinking about approaching this a different way.
Does anyone have general recommendations for the following:
2 – How can you pick up from a command if you were disconnected/pipeline gets throttled?
Another thing revolving around this, WMF/PowerShell 4.0/Windows 8.1 don't seem to be getting along at the moment: http://blogs.msdn.com/b/powershell/archive/2013/10/25/windows-management-framework-4-0-is-now-available.aspx Things like -ErrorAction 'Stop' are ignored from the Exchange command-lets.
3 – How do you work with a 'large' pipeline across a remote session reliably?
4 – How do you work with throttling? Can you create yourself a "bookmark" and resume from that?
Thanks for any suggestions.
O365 and Exchange do put some throttles in place to protect the system – you kind of have to "chunk" your workload so you're only working with a few things at a time.
1 – You can monitor the state of the PSSession object, but that's something you have to check. I don't *think* it fires an event when it disconnects, although there might be something you could tap into. Moral: Don't do -ResultSize Unlimited. Find a way to break the workload into pieces, like grabbing "A-C" then "D-F" and so on.
2 – I'm not sure what you mean by "pick up from a command." If you mean resume it, you can't. And yeah, the Exchange cmdlets are known to be funky with -ErrorAction. No fixing that.
3 – Break it into chunks. Don't try and grab everything all at once; grab it in pieces and then assemble the pieces on your end. The back-end isn't going to let you do what you're trying to do.
4 – You work with a small enough set that you won't get cut off. There's no pick-up-where-you-left-off, no. The back-end has to spend enormous processing power handling things like what you're trying to do, and it doesn't want to do that. You're not the only one using it, after all. So you have to structure your workload to be smaller sets.
Hi Don! Thanks for the reply.
What's your opinion about a PowerShell workflow for this scenario?
You must be logged in to reply to this topic.