Skip to content

Instantly share code, notes, and snippets.

@jstrong013
Created October 30, 2019 20:51
Show Gist options
  • Select an option

  • Save jstrong013/59affebc66fcc6d412a019d1084fa83a to your computer and use it in GitHub Desktop.

Select an option

Save jstrong013/59affebc66fcc6d412a019d1084fa83a to your computer and use it in GitHub Desktop.
# Question located here: https://community.sharefilesupport.com/citrixsharefile/topics/powershell-api-new-sfclient-giving-errors
#To create
Add-PSSnapin ShareFile
New-SFClient -Name $env:USERPROFILE\sfClient.sfps
# Enter Your ShareFile Credentials
# For future scripts, to use these credentials, you could do this:
Add-PSSnapin ShareFile
$sfClient = Get-SFClient -Name $env:USERPROFILE\sfClient.sfps
# do your Commands - example below
Send-SfRequest -Client $sfClient -Method GET -Entity Accounts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment