Get-PWDocumentsBySearch : Not logged in as a ProjectWise Administrator.

When running a simple 'Get-PWDocumentsBySearch' command
$Docs = Get-PWDocumentsBySearch -SearchName "$ProjectFolderPath\$pdfSearchName" -filename '%.pdf' -GetAttributes

I now get an error, which I never used to get before
Get-PWDocumentsBySearch : Not logged in as a ProjectWise Administrator.

I am using the Open-PWConnection method because I don't want to use an administrator login -Admin parameter, the New-PWLogin method requires an administrator login and I don't want to use the GUI because this is on an automatic scheduled task.

ModuleType Version    Name
---------- -------    ----
Binary     1.5.5.0    PWPS_DAB

Any assistance will be greatly appreciated
Kind regards Gavin Chapman

Parents
  • See version 1.5.9.0 just posted. You can now login with New-PWLogin and use the cmdlets with a non-admin user who is a member of a group called PowerShell Users.

    $encryptedPassword = Read-Host -Prompt "Enter Password:" -AsSecureString
    New-PWLogin Naou22468a:PW_GAS_PRD -UserName PowerShellUser -Password $encryptedPassword -NonAdminLogin

    Think I finally understood what you guys were asking for: the ability to do bulk processing against a datasource that may not be your own.  Did not even occur to me...

    Anyway.  Hope that helps.  Added Sqlite support for 64-bit, too.

    Dave

    Answer Verified By: Gavin Chapman 

Reply
  • See version 1.5.9.0 just posted. You can now login with New-PWLogin and use the cmdlets with a non-admin user who is a member of a group called PowerShell Users.

    $encryptedPassword = Read-Host -Prompt "Enter Password:" -AsSecureString
    New-PWLogin Naou22468a:PW_GAS_PRD -UserName PowerShellUser -Password $encryptedPassword -NonAdminLogin

    Think I finally understood what you guys were asking for: the ability to do bulk processing against a datasource that may not be your own.  Did not even occur to me...

    Anyway.  Hope that helps.  Added Sqlite support for 64-bit, too.

    Dave

    Answer Verified By: Gavin Chapman 

Children