SharePoint Commands Run itself bu Not with Powershell Studio
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.
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.
Re: SharePoint Commands Run itself bu Not with Powershell Studio
Still stucking at same point.
I quite a new on this and running out of idea about what to do.
I quite a new on this and running out of idea about what to do.
- Attachments
-
- Untitled.png (4.91 KiB) Viewed 1600 times
-
- deneme.psf
- (22.52 KiB) Downloaded 69 times
Re: SharePoint Commands Run itself bu Not with Powershell Studio
Sorry - I had a typo/defficiency.
This line:
$textboxCorrelationID.Text = [Microsoft.VisualBasic.Interaction]::InputBox('Correlation', 'Enter the CorrelationID:')
Should be:
$textboxCorrelationID.Text = [Microsoft.VisualBasic.Interaction]::InputBox('Correlation', 'Enter the CorrelationID:')
Also - why did you add these two lines. They are unneccesary.
[b}$user = $env:USERNAME
$path = [void][Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic')
[/b]
This line:
$textboxCorrelationID.Text = [Microsoft.VisualBasic.Interaction]::InputBox('Correlation', 'Enter the CorrelationID:')
Should be:
$textboxCorrelationID.Text = [Microsoft.VisualBasic.Interaction]::InputBox('Correlation', 'Enter the CorrelationID:')
Also - why did you add these two lines. They are unneccesary.
[b}$user = $env:USERNAME
$path = [void][Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic')
[/b]
Re: SharePoint Commands Run itself bu Not with Powershell Studio
I corrected the mistakes but i don`t know why it not completing the cmdlet. I thought its just basic project where i can perform daily basis but it seems that will be harder every step.
The account have every permissions.
More than about cmdlet , i think something need to be checked at the end of the script but my knowledge not enough the figure out what
The account have every permissions.
More than about cmdlet , i think something need to be checked at the end of the script but my knowledge not enough the figure out what
- Attachments
-
- Untitled.png (67.17 KiB) Viewed 1594 times
Re: SharePoint Commands Run itself bu Not with Powershell Studio
Because its not creating a file where it supposed to be on desktop. -path C:\user..... The screenshot i added because more than error, i wanted to show that progress bar. That stucks all time at same point.
Re: SharePoint Commands Run itself bu Not with Powershell Studio
What progress bar? The progress bar indicates that the command is running. It can take a lot of time.
Be sure you test the command at a prompt. Also test the command with a hard coded value that you know works.
Also try what Alex posted and be sure to set the threading model.
Be sure you test the command at a prompt. Also test the command with a hard coded value that you know works.
Also try what Alex posted and be sure to set the threading model.