Skip to content

Can't get Connect-Pfa2Array to work correctly on Windows Task Scheduler #32

@lemastermj

Description

@lemastermj

We are wanting to backup a large MS SQL database using the pure array. It successfully works when ran manually. But when we attempt to put it in Windows Task Scheduler we receive errors.

To narrow the error down I created a more simple power shell script that attempts to connect to the pure array. As with the other the file runs successfully when executed manually. However when we execute in Windows task scheduler we receive an error:

Error connecting to Pure Flash Array: Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxx' or one of its dependencies. The system cannot find the file specified.

I found a KB related to this on:

https://support.purestorage.com/bundle/m_microsoft_platform_guide/page/Solutions/Microsoft_Platform_Guide/a_Windows_PowerShell/topics/concept/c_issue_11.html

It mentioned using the MSI installer (which we didn't.) It goes on to mention modifying the the machine.config which we attempted to with no change.

I checked the permissions on the PEM file and even if I manually run the windows sheduled task (I am admin of the box,) it still fails. Note I currently have the job set to run in my name.

We have explicitly given the path to the PEM file code.

Hello_Pure_bogus_var.txt

Note: this is a powershell (not txt)

Any help or suggestions? Thank you all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions