Search found 59 matches

by obrienc
Wed May 17, 2017 8:22 pm
Forum: PowerShell GUIs
Topic: Combobox variable for memory set GB, MB, KB
Replies: 29
Views: 5132

Re: Combobox variable for memory set GB, MB, KB

thanks for the reply. it broke something so I'm not sure if I was to take your sample and use it or figure out how to use it but i am a little lost. The dropdown displays this @{Name=1; Value=1073741824} instead of an integer 1..8 ERROR: Set-VM : Cannot bind parameter 'MemoryMinimumBytes'. Cannot co...
by obrienc
Wed May 17, 2017 6:19 pm
Forum: PowerShell GUIs
Topic: Combobox variable for memory set GB, MB, KB
Replies: 29
Views: 5132

Combobox variable for memory set GB, MB, KB

I have a req to load a combobox so someone can choose memory for a VM from a dropdown. Load-ComboBox -ComboBox $combobox4 -Items (1 .. 8) In Powershell this works but I want to turn it into a variable Set-VM -Name $a$_ -DynamicMemory -MemoryStartupBytes 4GB $vmem = $combobox4.SelectedItem $m = "GB" ...
by obrienc
Mon Feb 20, 2017 1:53 pm
Forum: WMI Explorer
Topic: DHCP info
Replies: 1
Views: 2815

DHCP info

Product, version and build: 2017 (*** Please do not write "latest" as a version, specify a version number ***) 32 or 64 bit version of product: 64 Operating system: Windows 7 32 or 64 bit OS: 64 DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM Could someone please hel...
by obrienc
Thu Jan 19, 2017 9:28 am
Forum: WMI Explorer
Topic: Network Policy Server
Replies: 3
Views: 2451

Re: Network Policy Server

Thanks for the replies. I can get connected to the NPS but can't quite find the right key. I want to read and create new templates for shared secret. i need to create 100+. Under tools I searched for secret, shared, nps found some entries but when i executed didnt return what i wanted. Could you ple...
by obrienc
Tue Jan 17, 2017 10:28 am
Forum: WMI Explorer
Topic: Network Policy Server
Replies: 3
Views: 2451

Network Policy Server

Product, version and build: WMI 2016 (*** Please do not write "latest" as a version, specify a version number ***) 32 or 64 bit version of product: 64 Operating system: Windows 7 32 or 64 bit OS: 64 DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM I am having trouble ...
by obrienc
Thu Jan 12, 2017 11:53 am
Forum: Windows PowerShell
Topic: Log PS output to a file?
Replies: 13
Views: 19806

Re: Log PS output to a file?

I use "Start and Stop-Transcript"


Page_Load
Start-Transcript -path C:\temp\*.txt -append -NoClobber -IncludeInvocationHeader

do stuff

Stop-Transcript
by obrienc
Mon Jan 09, 2017 1:07 pm
Forum: PowerShell GUIs
Topic: Works in PowerShell not in PSStudio
Replies: 7
Views: 1298

Re: Works in PowerShell not in PSStudio

I actually just bought WMI Explorer and am looking for How To's. No clue how to get values but that's for another post, thread.

Thanks for the carrot.
by obrienc
Mon Jan 09, 2017 12:27 pm
Forum: PowerShell GUIs
Topic: Works in PowerShell not in PSStudio
Replies: 7
Views: 1298

Re: Works in PowerShell not in PSStudio

It's a vmware script that allows you to change names, ips, etc..
by obrienc
Mon Jan 09, 2017 12:04 pm
Forum: PowerShell GUIs
Topic: Works in PowerShell not in PSStudio
Replies: 7
Views: 1298

Works in PowerShell not in PSStudio

This works in PowerShell when I add the IP addresses as strings directly but when I try to call them from a Textbox it fails. I've tried changing the syntax without success. Invoke-VMScript -VM $vm.Name -ScriptText "netsh interface ipv4 set address ""Ethernet"" static 10.0.99.249 255.255.255.0 10.0....