Search found 11345 matches

by jvierra
Tue Oct 17, 2017 7:14 pm
Forum: PowerShell GUIs
Topic: ADAccountPassword will not work on Win10 or 2012R2 but will on 2008R2.
Replies: 5
Views: 58

Re: ADAccountPassword will not work on Win10 or 2012R2 but will on 2008R2.

No. The error is very clear. Read the full error message. It clearly shows the line causing the error The term 'new' is not recognized as the name of a cmdlet , function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and ...
by jvierra
Tue Oct 17, 2017 5:09 pm
Forum: PowerShell GUIs
Topic: ADAccountPassword will not work on Win10 or 2012R2 but will on 2008R2.
Replies: 5
Views: 58

Re: ADAccountPassword will not work on Win10 or 2012R2 but will on 2008R2.

The correct syntax is:

$output.Font = [System.Drawing.Font]::New('Serif', 48)

or

$output.Font = New-Object System.Drawing.Font('Serif', 48)

or
$output.Font = 'Microsoft Sans Serif, 48pt'
by jvierra
Tue Oct 17, 2017 5:49 am
Forum: PowerShell GUIs
Topic: How do you add extra tab in TabControl
Replies: 1
Views: 49

Re: How do you add extra tab in TabControl

Just set the number of pages in the designer or click on little arrow to add pages.
by jvierra
Tue Oct 17, 2017 1:37 am
Forum: Windows PowerShell
Topic: how to Change the Sevice Name?
Replies: 1
Views: 41

Re: how to Change the Sevice Name?

To correctly install your service just run the exe with the "-I" switch. "-I" for "install".
by jvierra
Mon Oct 16, 2017 2:05 pm
Forum: Windows PowerShell
Topic: Get-childitem filter down
Replies: 2
Views: 86

Re: Get-childitem filter down

Try it like this:

Code: Select all

Get-ChildItem \\server1\data\*\logs  -Directory | 
	ForEach-Object{ 
		Get-ChildItem $_ 
	} |
	Select-String  'Network Limit', 'Run Interval'
by jvierra
Mon Oct 16, 2017 9:11 am
Forum: PowerShell GUIs
Topic: Query a form controls BackColor?
Replies: 3
Views: 47

Re: Query a form controls BackColor?

Normally we would handle errors like this: https://info.sapien.com/index.php/guis/ ... er-control
by jvierra
Mon Oct 16, 2017 8:52 am
Forum: PowerShell GUIs
Topic: Query a form controls BackColor?
Replies: 3
Views: 47

Re: Query a form controls BackColor?

Well - not a really good guess. Here is how it works. Function validateMandatoryControlsCompleted() { $controlList = @( $textbox1,` $textbox2, $textbox3, $textbox4, $combobox1, $maskedtextbox1, $listbox1, $maskedtextbox2 ) foreach ($control in $controlList) { $control.BackColor #Write-Host $control....
by jvierra
Mon Oct 16, 2017 5:18 am
Forum: PowerShell GUIs
Topic: ActiveDirectory module greyed out
Replies: 5
Views: 55

Re: ActiveDirectory module greyed out

Now you know how to manage the cache. If you want to be sure all modules are loaded then do a full rebuild and PSS will find all installed modules and register them.
by jvierra
Mon Oct 16, 2017 4:42 am
Forum: PowerShell GUIs
Topic: ActiveDirectory module greyed out
Replies: 5
Views: 55

Re: ActiveDirectory module greyed out

cacher.png
cacher.png (66.06 KiB) Viewed 31 times
by jvierra
Mon Oct 16, 2017 2:47 am
Forum: PowerShell GUIs
Topic: ActiveDirectory module greyed out
Replies: 5
Views: 55

Re: ActiveDirectory module greyed out

They have to be added t the cache. Try a cache rebuild.

The AD CmdLets won't work correctly if you are not in a domain.
Be sure to test the CmdLets at in the PS command shell - "powershell.exe".