Search found 399 matches

by mxtrinidad
Fri May 18, 2018 6:29 pm
Forum: PowerShell Studio
Topic: Staying connnected to O365 in between script executions
Replies: 14
Views: 5688

Re: Staying connnected to O365 in between script executions

OK! Lets clear this up.. is this Exchange or Office 365? I got PowerShell Studio 2018 version 5.5.152. I can execute my script I show you with Ctrl-F8 and I still stay connected. Which mean that I can go to the PowerShell Studio console (Windows PowerShell 64bit) and continue to type O365 cmdlets. I...
by mxtrinidad
Fri May 18, 2018 1:21 pm
Forum: PowerShell GUIs
Topic: Closing a form in code
Replies: 2
Views: 1760

Re: Closing a form in code

Use $MainForm.Close() or name of the form with *.close().

$NameOfTheForm.Close()

Code: Select all

$buttonCallChildForm_Click={
	#TODO: Place custom script here
	if((Show-ChildForm_psf) -eq 'OK')
	{
		
	}
	## - sample of closing main form after working with the Childform:
	$MainForm.Close()
}

:)
by mxtrinidad
Fri May 18, 2018 12:58 pm
Forum: PowerShell Studio
Topic: Staying connnected to O365 in between script executions
Replies: 14
Views: 5688

Re: Staying connnected to O365 in between script executions

Sure thing! It's a simple code that help automate connection as long as you're using it for yourself. Of, course you could be very creative with PowerShell with other technologies (ie. SQLServer). You did a good job with the other piece. ## - O365 - Credential automation to prevent popup Windows: $M...
by mxtrinidad
Fri May 18, 2018 11:32 am
Forum: PowerShell Studio
Topic: Staying connnected to O365 in between script executions
Replies: 14
Views: 5688

Re: Staying connnected to O365 in between script executions

Good! I only have O365 and not Exchange (you miss to say that). PowerShell Studio can work with remote modules at the console only (the same technique you already know). My O365 MSOnline connectivity never got dropped, so it stay connected until I clear the connection. But then again, I'm Admin in m...
by mxtrinidad
Fri May 18, 2018 9:45 am
Forum: PowerShell Studio
Topic: Staying connnected to O365 in between script executions
Replies: 14
Views: 5688

Re: Staying connnected to O365 in between script executions

OK!! There's some missing information. Which version of Windows PowerShell you are on? And, is it 32 or 64 bit? Make sure you on the correct Windows PowerShell environment. Now, the Connect-MSolService will start the windows popup. Check if its behind an application, because it won't show in from of...
by mxtrinidad
Fri May 18, 2018 9:14 am
Forum: PowerShell Studio
Topic: Staying connnected to O365 in between script executions
Replies: 14
Views: 5688

Re: Staying connnected to O365 in between script executions

Interesting! Last time I use O365 with PowerShell I only use code to connect to it. I never use the popup windows for it. If I can recall, unless it has change since that time, I remember O365 connecting thru a PSSession which remote connect to it. Let me do some research, I do have O365. Also, let ...
by mxtrinidad
Thu May 17, 2018 6:47 pm
Forum: PowerShell Studio
Topic: Staying connnected to O365 in between script executions
Replies: 14
Views: 5688

Re: Staying connnected to O365 in between script executions

What's the problem with PowerShell Studio? You can highlight the connection code, right-click and "Run Selection in Console". This will get you connected. Then highlight the next set of code, right-click and "Run Selection in Console". You shouldn't have any problem with it. Just...
by mxtrinidad
Thu May 17, 2018 1:01 pm
Forum: PowerShell
Topic: Combining two cell values and checking Active Directory.
Replies: 11
Views: 4790

Re: Combining two cell values and checking Active Directory.

Or, you could use column names and highlight the whole line with the cell with issue: ## - Button Click event: : Update-DataGridView -DataGridView $datagridview1 -Item $x -AutoSizeColumns DisplayedCells; foreach ($i in $datagridview1.rows) { ## - Section to highlightline and columns: if (($i.Cells['...
by mxtrinidad
Thu May 17, 2018 7:44 am
Forum: PowerShell Studio
Topic: MSI Installer Module issues
Replies: 5
Views: 2919

Re: MSI Installer Module issues

Yes! PowerShell will support multiple version of the same module. I want to keep things simple or you ended up using module namespace. I have a lot of issues with different versions of the same modules (AzureRM, SQLPS..). One thing in common, their installed module path is included in the $env:PSMod...
by mxtrinidad
Thu May 17, 2018 7:05 am
Forum: PowerShell
Topic: Combining two cell values and checking Active Directory.
Replies: 11
Views: 4790

Re: Combining two cell values and checking Active Directory.

I was trying to give the hint of creating a psobject property to identify the ones with issues.
Then, use that object property object value to paint the cell.

I think it should work!