Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

how to link powershell scripts and commands

$
0
0

Dear all,

I had used codeplex site code for a fileserver - folder copy to Sharepoint 2010 document library.

https://spfileupload.codeplex.com/releases/view/53408

This works as a charm when I run it manually from fileserver folder to Sharepoint libary.

When I run it on the console - I do the following things.

1. Get-SPScripts.copy-filestosp

2. Import-module

3. running the command specified in the Docmanifest.xml -->  Copy-FilestoSP -LocalPath\\x.x.x.x\groups\IT\SOP -SiteUrl http://intranet/verticals/IT -Library "Projects" -ManifestFilePath "d:\Code\DocManifest.xml" - IncludeSubFolders -Overwrite

My requirement:- I want to run this script and automatic sync/schedule should happen to SharePoint document library. i had tried creating the task for Get-Spscripts.copy-filestosp - but this is not working - as I need to do import-module and the command specified above.

I am going through the powershell videos to understand it better.

Let me know if you can provide inputs.

Cheers

Sathya


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>