Jump to content

Running PS script from Automation


Nick Grey

Recommended Posts

Hi All we are trying to run the following as a PS script in Pulseway. We have no issues with running the script from the machine but when we running the script via Automation it says it worked and was successful but it makes no changes. thanks Nick 

New-Item -Path "HKCU:\SOFTWARE\Microsoft\Office\16.0\Outlook\Profiles" -Name "GO_365" -Force

Set-ItemProperty "HKCU:\SOFTWARE\Microsoft\Office\16.0\Outlook" -Name "DefaultProfile" -Value "GO_365"
 

Link to comment
Share on other sites

We are the administrators of the computers/company. We need to reset 400 Outlook mail profiles to reset and run as the default account. We are moving the client from Exchnage 2016 to Microsoft 365 and don't want to have to log onto each machine and reset the Profile and Outlook.

Link to comment
Share on other sites

  • Administrators
Hey @Nick Grey

My suggestion is to test using Workflows >> choose trigger type as Ad-hoc and try to run the action Execute shell command or add the script on a notepad save it as ps1 push the scripts to all the machines using write file option in workflows and then use Execute File action in the workflows.
 
This is just a suggestion and if it doesn't help you out, I will raise a support ticket for you and we can solve the issue. 
 
Thanks, 
Stefan 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...