Search found 12664 matches

by jvierra
Thu Sep 13, 2018 9:37 am
Forum: Windows PowerShell
Topic: Connection error
Replies: 8
Views: 159

Re: Connection error

You cannot remotely execute many commands because of the "second hop" restriction. The error says that this is the cause as you are getting an error trying to connect to the farm. This is a limitation on all Windows remoting and is not caused by PSS. "Cannot access the local farm" This is because th...
by jvierra
Thu Sep 13, 2018 9:05 am
Forum: Windows PowerShell
Topic: outlook email with body and signature
Replies: 6
Views: 131

Re: outlook email with body and signature

To preserve the inserted signature do the following.

$oMailMsg.Body = 'Hello World' + $oMailMsg.Body
by jvierra
Thu Sep 13, 2018 9:03 am
Forum: Windows PowerShell
Topic: Connection error
Replies: 8
Views: 159

Re: Connection error

PowerShell Studio just runs the code in PowerShell. No code runs under PSS. Your question is about how to use a PS command and not how to use PSS.

Please post a simple example of your PSF file so we can look at what you are doing.
by jvierra
Thu Sep 13, 2018 8:52 am
Forum: Windows PowerShell
Topic: Adding and Removing permissions from shared folder
Replies: 3
Views: 116

Re: Adding and Removing permissions from shared folder

When you need companion CmdLets use help to find them.

help get-acl -online

The help will list the paired commands and will give you examples.
by jvierra
Wed Sep 12, 2018 11:32 pm
Forum: Windows PowerShell
Topic: outlook email with body and signature
Replies: 6
Views: 131

Re: outlook email with body and signature

To assign the body do this: $oMailMsg.Body = 'Hello World' There is no method for adding a signature. To add the default signature the "Display()" must be called before the body is assigned. $oOutlook = New-Object -ComObject Outlook.Application $oMapiNs = $oOutlook.GetNameSpace("MAPI") $oMailMsg = $...
by jvierra
Wed Sep 12, 2018 4:00 pm
Forum: Windows PowerShell
Topic: Connection error
Replies: 8
Views: 159

Re: Connection error

You have to specify the site:

Get-SPSite 'http://<site name>'
by jvierra
Tue Sep 11, 2018 5:38 am
Forum: PowerShell GUIs
Topic: Save Checkbox state in a file
Replies: 3
Views: 132

Re: Save Checkbox state in a file

Save it like this:

Code: Select all

$form.Controls | Where{ $_.GetType().Name -eq 'CheckBox'} | Select Name, Text, @{n='Checked';e={[int]$_.Checked}}
by jvierra
Mon Sep 10, 2018 12:47 pm
Forum: Windows PowerShell
Topic: Remotly connect to SharePoint PowerShell
Replies: 11
Views: 322

Re: Remotly connect to SharePoint PowerShell

Sharktracker wrote:
Mon Sep 10, 2018 12:45 pm
By the way the person in Sapien support that told me it is a scripting problem was Dave.
David is correct. It is a scripting issue and requires that you write the scripts for the results you seek. It is not product related.
by jvierra
Mon Sep 10, 2018 12:39 pm
Forum: Windows PowerShell
Topic: Remotly connect to SharePoint PowerShell
Replies: 11
Views: 322

Re: Remotly connect to SharePoint PowerShell

Some issues you must clarify first.

What version of SharePoint?
SharePoint online or on premise?
Manage document libraries or mange SharePoint?

The best place to learn how to use PowerShell with SharePoint is here: https://docs.microsoft.com/en-us/powers ... repoint-ps
by jvierra
Mon Sep 10, 2018 12:23 pm
Forum: Windows PowerShell
Topic: Remotly connect to SharePoint PowerShell
Replies: 11
Views: 322

Re: Remotly connect to SharePoint PowerShell

What support company told you it was a scripting issue?

How are you trying to connect to SharePoint? PSS 2018 has no special facilities for support of SharePoint. You must use one of the standard SharePoint connection methods.