+ CategoryInfo : ObjectNotFound: (//sharepoint/pa.der destination Pushd : Cannot find path '//sharepoint/path/name/folder destination'Īt D:\Scripts\automation\macroautomationprocess.ps1:188 char:9 Changing directory to //sharepoint/path/name/folder destination When we check logs this is what the error says: There is a folder for backup and a folder for macros. If file exists then it creates two copies, one to back up and another to run macros. Script checks "Inbox" which is a folder location on SharePoint. Locally we are able to change to this directory. We are able to browse to the folder using Windows Explorer from the server but if we open up powershell we get the sameĮrror. The syntax to the command is correct and we are able to run the script locally (cuurently script resides on a Server 2012 R2 box). I have been searching for a reason as to why this is broken but have not been able to find a clearĪnswer. It was working fine until we noticed that the script had stopped for some reason. Test automated a process using a sharepoint site and a powershell script. $y = Invoke-Sqlcmd -Query $Query -ServerInstance $ServerInstance -Database $database Get-DL -TaskName $Taskname -FileName $Filename I am trying to get the module Get-Dl to return the $emailto back
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |