Trouble with remote PowerShell scripts

BatchPatch Forums Home Forums BatchPatch Support Forum Trouble with remote PowerShell scripts

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9324
    pete826
    Participant

    I must be missing something, suppose I want to run this script

    https://github.com/lemtek/Powershell/blob/master/Clear_Browser_Caches

    to clear out the cache on various machines. When I try, it show as successful but has not really completed. Could you give me a step by step for this?

    thanks

    #11510
    doug
    Moderator

    I would suggest save the script as “script.ps1” for example.

    Then use the BatchPatch Deployment feature ‘Actions > Deploy’ to deploy “script.ps1” to the target computer(s), and in the deployment configuration check the box that says “Retrieve console output…”

    Lastly, before you run the deployment, you need to make one more change. Under ‘Tools > Settings > Remote Execution’ you need to change the ‘Deployment’ remote execution context setting to ‘Elevated token.’ This script will not run as SYSTEM, but when I tested as ‘Elevated token’ it worked.

    -Doug

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.