Search found 55 matches

by weiyen.tan@gmail.com
Sun Jul 26, 2015 12:07 pm
Forum: PowerShell GUIs
Topic: Retaining variable values when running different functions
Replies: 1
Views: 792

Retaining variable values when running different functions

I have two functions that return to me a variable that I place in a text box. The variables that I return back by the way are a file location and distinguished name from Active Directory. These functions are executed by the user pressing a button. I use the MainForm_Activated to create an event that...
by weiyen.tan@gmail.com
Fri Jul 24, 2015 5:11 am
Forum: PowerShell GUIs
Topic: Passing a result from a function to a variable
Replies: 8
Views: 1200

Re: Passing a result from a function to a variable

Thank you Jvierra for pointing me in the right direction. I read in one article that Powershell is smart enough to keep the variables in memory to be shared with other things. In this case it was that variable that was outputted from the function. Once I got that concept I now know how to transverse...
by weiyen.tan@gmail.com
Thu Jul 23, 2015 1:02 pm
Forum: PowerShell GUIs
Topic: Passing a result from a function to a variable
Replies: 8
Views: 1200

Re: Passing a result from a function to a variable

Thank you jvierra for your reply. There is no issue...its just that I am really new to programming powershell even programming in general. I have just started picking it up over the last few weeks. I am unsure as to where to define this variable. Is it in the form or in the global.ps1. Once the user...
by weiyen.tan@gmail.com
Thu Jul 23, 2015 12:25 pm
Forum: PowerShell GUIs
Topic: Passing a result from a function to a variable
Replies: 8
Views: 1200

Re: Passing a result from a function to a variable

I am sing powershell studio 2012 so i dont think i can open it...
by weiyen.tan@gmail.com
Thu Jul 23, 2015 11:29 am
Forum: PowerShell GUIs
Topic: Passing a result from a function to a variable
Replies: 8
Views: 1200

Passing a result from a function to a variable

Hi guys, I am trying to turn a command into some kind of GUI that a helpdesk can use in their day to day tasks in Active Directory. The helpdesk gets a whole lot of requests that require moving bulk users to different OUs, amongst other things. I am going to tackle the task of moving users to differ...