Search found 252 matches

by mqh77777
Fri Oct 03, 2014 7:58 am
Forum: PowerShell GUIs
Topic: Create a form with no input?
Replies: 9
Views: 8169

Re: Create a form with no input?

I did not see anything that looked like a countdown applet. I see button, text, radio button etc.... what would do the countdown? Also, I did create a form that upon launch runs start-sleep -s 180 but since it runs at "launch" you never see the form. how do I make my form seen and only hav...
by mqh77777
Fri Oct 03, 2014 6:50 am
Forum: PowerShell GUIs
Topic: Create a form with no input?
Replies: 9
Views: 8169

Create a form with no input?

Is it possible to create a form that only displays text and a countdown? I want to create a compiled .EXE that will show the following text. Attention: Your system will reboot in 3 minutes. Close all work. And then show a countdown for the 3 minutes. And then of course after 3 minutes run a Shutdown...
by mqh77777
Wed Sep 24, 2014 1:50 pm
Forum: PowerShell Studio
Topic: Code not running
Replies: 20
Views: 30703

Re: Code not running

For each machine that was offline I would get 6 or 7 GUI errors pop up. So I'm not sure how to code around that. The silent command works. I'm just happy I got it working since I needed this done this week. If you have any links or examples of how to code around errors I'd love to read them. Thanks,
by mqh77777
Wed Sep 24, 2014 1:35 pm
Forum: PowerShell Studio
Topic: Code not running
Replies: 20
Views: 30703

Re: Code not running

$ErrorActionPreference = 'silentlycontinue'


that works. Thanks for all of your help, I do appreciate it :)
by mqh77777
Wed Sep 24, 2014 1:14 pm
Forum: PowerShell Studio
Topic: Code not running
Replies: 20
Views: 30703

Re: Code not running

you are correct sir. When I run this on a x86 machine it worked. Now, the next issue :D I ran this against a .TXT file that had 6 machines in it. All 6 were online and it worked. I then added another 20 machines to my .TXT and a couple of them were offline. this generated errors. so I ran the MSG co...
by mqh77777
Wed Sep 24, 2014 11:17 am
Forum: PowerShell Studio
Topic: Code not running
Replies: 20
Views: 30703

Re: Code not running

OK, I've learned something :-) I changed the Platform to Powershell V3 (windows). I run my .EXE and it says:

msg: the term 'msg' is not recognized as the name of a cmdlet, function,

:-) Ok, that helps but how do I get around that?
by mqh77777
Wed Sep 24, 2014 11:01 am
Forum: PowerShell Studio
Topic: Code not running
Replies: 20
Views: 30703

Re: Code not running

OK, I'm at my wits end with this tool. I've changed my code and removed any/all AD queries. All I want to do is read a .TXT file and execute a MSG command. I have 3 buttons on my Project, here is the exact code: $OnLoadFormEvent={ #TODO: Initialize Form Controls here } $buttonSendMSGTo1Computer_Clic...
by mqh77777
Wed Sep 24, 2014 9:44 am
Forum: PowerShell Studio
Topic: Code not running
Replies: 20
Views: 30703

Re: Code not running

I created my Project to run like this: Settings\Platform: PowerShell V2 Host (Command Line) Win32 Embed a default manifest for elevation Run Mode: Current User Now when I run it I see the CMD window pop up. Is that what you wanted me to test? I see no errors in the CMD window. The only difference is...
by mqh77777
Wed Sep 24, 2014 6:06 am
Forum: PowerShell Studio
Topic: Code not running
Replies: 20
Views: 30703

Re: Code not running

I have tried to use the "RunAs" a different user and it still does not work. And I picked this RunAs from within this PowerShell Studio tool (Deploy Tab\Settings) Now, as I've said, I can run PowerShell ISE no problem and do any AD query I want. I can take .PS1 scripts and run them all ove...
by mqh77777
Tue Sep 23, 2014 2:40 pm
Forum: PowerShell Studio
Topic: Code not running
Replies: 20
Views: 30703

Re: Code not running

I'll try that but I don't see how it is PERMS. I am doing all of this from my workstation. I am an Admin on my workstation and I'm a domain admin, schema admin and enterprise admin. I tried this as well. I opened up PowerShell ISE. I ran this code. import-module activedirectory Start-Sleep -s 1 remo...