Running PowerShell Scripts With Windows PowerShell Modules

Follow

Comments

1 comment

  • Avatar
    Kendall Baker

    I find it best to enclose the nearly the whole script in a try/catch as an exception throw will crash the service. The given Get-PSSession doesn't work in my environment but just using invoke-command with computername localhost does work to get the session in a workable environment for the lithnet module. 

    0
    Comment actions Permalink

Please sign in to leave a comment.