Update a Sharepoint list using VBSCRIPT via Web Se

Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 14 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Update a Sharepoint list using VBSCRIPT via Web Se

Post by jvierra »

Here is the easiest method for upadting lists on a Sharepoint site. It uses PowerShell as this is the most relaible method for all sharepoint server installations and bypasses configuration issues with customdeployments and Small Business Server url redirection.

Code: Select all

[System.Reflection.Assembly]::LoadWithPartialName(
User avatar
ismailc
Posts: 37
Last visit: Tue Jun 09, 2015 12:16 am

Update a Sharepoint list using VBSCRIPT via Web Se

Post by ismailc »

Thank You for helping.

It does not like the code in a vbscript file:

Code: Select all

	[System.Reflection.Assembly]::LoadWithPartialName(
User avatar
ismailc
Posts: 37
Last visit: Tue Jun 09, 2015 12:16 am

Update a Sharepoint list using VBSCRIPT via Web Se

Post by ismailc »

Thank You - i'm struggling to long.

Any ideas on how to query the Sharepoint DB & update the column


Thanks
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Update a Sharepoint list using VBSCRIPT via Web Se

Post by jvierra »

Code: Select all

	
	[System.Reflection.Assembly]::LoadWithPartialName(
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Update a Sharepoint list using VBSCRIPT via Web Se

Post by jvierra »

You cannot use vbscrip to update teh server due to numerous issues. The code poted is for PowerShell and will work to update lists.
User avatar
ismailc
Posts: 37
Last visit: Tue Jun 09, 2015 12:16 am

Update a Sharepoint list using VBSCRIPT via Web Se

Post by ismailc »

how do i create the Powershell file

and then perhaps in vbscript call a command to execute the file.

possible steps?

please
User avatar
ismailc
Posts: 37
Last visit: Tue Jun 09, 2015 12:16 am

Update a Sharepoint list using VBSCRIPT via Web Se

Post by ismailc »

aplogies my friend, really not on the same page.
I'm trying to create simple powershell file.

new txt file
text = "New-Item -ItemType file freespace.txt "

save file as test.ps1

not workingismailc2010-01-05 04:33:12
User avatar
ismailc
Posts: 37
Last visit: Tue Jun 09, 2015 12:16 am

Update a Sharepoint list using VBSCRIPT via Web Se

Post by ismailc »

I tried the foll from a start - run

powershell.exe c:test.ps1
but error: Windows cannot find Powershell.exe
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Update a Sharepoint list using VBSCRIPT via Web Se

Post by jvierra »

You have to install PowerShell before you can run it.

Use notepad to create text files.

You have to either run this on Sharepoint server or install the SharePoint SDK as I noted in my earlier post.

jvierra2010-01-05 07:47:10
User avatar
ismailc
Posts: 37
Last visit: Tue Jun 09, 2015 12:16 am

Update a Sharepoint list using VBSCRIPT via Web Se

Post by ismailc »

Help, How can I remotely execute the SSIS package passing var defined in the package with VBScript
This topic is 14 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked