Search found 5 matches

by NicholasGerritz
Mon Jul 26, 2021 2:37 am
Forum: PowerShell GUIs
Topic: How to Clear Hostname Variable
Replies: 11
Views: 5347

Re: How to Clear Hostname Variable

also, i think it prudent to point out, If i select env1 and then ping my webserver called "Webserver" i get ping output of 192.168.0.1 if i then select env2 and switch to it and my host file updates, and i click my button called Ping Webserver, it now returns 172.16.0.1 So this works, Same...
by NicholasGerritz
Mon Jul 26, 2021 2:14 am
Forum: PowerShell GUIs
Topic: How to Clear Hostname Variable
Replies: 11
Views: 5347

Re: How to Clear Hostname Variable

OK let me explain what an environment is. It is an isolated network running in a workgroup type of configuration, hosts are stored within a canister running on cloud infrustructure. We have well over 100 environments, that are all identicle in structure host configuration, since they are all provisi...
by NicholasGerritz
Mon Jul 26, 2021 1:24 am
Forum: PowerShell GUIs
Topic: How to Clear Hostname Variable
Replies: 11
Views: 5347

Re: How to Clear Hostname Variable

Thanks for the Feedback Jverra, You are correct, I am not a developer and do not claim to have programming skills to the level you are suggesting. I have however built a complex GUI Powershell Application that works very well, and serves the purpose of the organization that purchased the software fo...
by NicholasGerritz
Fri Jul 23, 2021 12:51 am
Forum: PowerShell GUIs
Topic: How to Clear Hostname Variable
Replies: 11
Views: 5347

Re: How to Clear Hostname Variable

Hi @jvierra thanks for the reply, So I Have a variable that is called $textbox_return which I later then print to a textbox object $txtbox1 using $txtbox1.text = $textbox_return I set $textbox_return = Invoke-SQLCMD -query "select * from table where columnID = 27" -ServerInstance DBHost1\I...
by NicholasGerritz
Tue Jul 20, 2021 7:52 am
Forum: PowerShell GUIs
Topic: How to Clear Hostname Variable
Replies: 11
Views: 5347

How to Clear Hostname Variable

Hi Support, I have a Powershell GUI Script/App which does a SQLCMD query to a (hostname) DB table lets call it MyDB\INST1 and then pipes the result to an out-string, which is then set to a variable. It works perfectly well. I have a problem however when I switch to a different environment (from with...