How do I change both the URL and description of a "Link" field using a Powershell script?
In the past I've used the following:
$newitem = $splist.Items.Add() $newitem["Title"] = $somestuff
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
Extending your example above:
$newitem = $splist.Items.Add() $somestuff = "http://www.google.com, Google" $newitem["Link"] = $somestuff
That will, assuming "Link" is a type of "Hyperlink or Picture" (Hyperlink), create a link that says Google and links to http://www.google.com