![]() Write-Host "Outlook is Closed" -ForegroundColor Green Write-Host "Outlook is open, closing app." -ForegroundColor Green If($process=(get-process 'outlook' -ErrorAction Silentl圜ontinue)) So the question is, is there mistake on my script and that is the reason why it does not proceed on target PC or I just need to upload it on server. In other scripts I don't point to remote or target pc in scripts and they just work. Is it because execution from "Open console" is different then if script is uploaded on server "Run custom Powershell scripts"? Before I proceed with that I tested and tried connect to target PC and then open console and then run this PS script and nothing happened. The main idea is to upload this script on CCCM folder on server where I have all scripts. ![]() I have script which successfully creates new Outlook profile but I would like to achieve that I can do this on remote computer.īasically I connect to target PC using Client Center for Configuration Manager and I launch PS script which closes and creates new Outlook profile.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |