Search found 11 matches

by arrrghhh
21 Nov 2016, 10:33
Forum: Ask for Help (v1)
Topic: Powershell / AHK Integration
Replies: 12
Views: 6160

Re: Powershell / AHK Integration

Re: "Is there some way around this?"... ROFL. Imagine a sliding scale from 1(totally new to AHK) to 10 (AHK gods and gurus like Lexikos). I'm between 2-4 depending on the task. Sorry but I'm at my limit of being able to advise further. Have a look at Lexikos' reply here: https://autohotkey.com/boar...
by arrrghhh
15 Nov 2016, 12:54
Forum: Ask for Help (v1)
Topic: Powershell / AHK Integration
Replies: 12
Views: 6160

Re: Powershell / AHK Integration

I'm realizing that using wmic/comspec is going away partially (if not completely). Just curious about this... do you have a link by any chance with more info? Sorry I don't have anything to prove it - I am just noticing a lot of Windows management is now done via powershell. I'm sure this is becaus...
by arrrghhh
15 Nov 2016, 12:52
Forum: Ask for Help (v1)
Topic: Powershell / AHK Integration
Replies: 12
Views: 6160

Re: Powershell / AHK Integration

Instead of Get-WindowsFeature or Add-WindowsFeature Web-WebServer you may need to use Get-WindowsOptionalFeature (with IIS-WebServer ) instead. I can't duplicate your environment but to generate a list of optional features, including their enabled status, I use the following in Win 10: ; Note: This...
by arrrghhh
28 Oct 2016, 13:07
Forum: Ask for Help (v1)
Topic: Powershell / AHK Integration
Replies: 12
Views: 6160

Re: Powershell / AHK Integration

Ok let me re-ask my question. Why does this work: Run powershell.exe -NoExit -Command Get-Hotfix But this does not: Run powershell.exe -NoExit -Command Get-WindowsFeature I am running this on a Windows 2012R2 server, and when I run the powershell prompt by hand I can do Get-WindowsFeature, Add-Windo...
by arrrghhh
27 Oct 2016, 23:17
Forum: Ask for Help (v1)
Topic: Powershell / AHK Integration
Replies: 12
Views: 6160

Re: Powershell / AHK Integration

Hm, I will try this... But my preference would be to eliminate wmic/comspec entirely and just run powershell directly. Is there some reason why the -ComputerName option would screw up PS? If I run the cmdlet without -ComputerName, it runs fine (locally of course). The output to the end-user is just ...
by arrrghhh
27 Oct 2016, 15:07
Forum: Ask for Help (v1)
Topic: Powershell / AHK Integration
Replies: 12
Views: 6160

Powershell / AHK Integration

Hello, I have built a lot of system management tools into AHK, and I'm realizing that using wmic/comspec is going away partially (if not completely). In trying to get my scripts to work in powershell, I am having a lot of issues. For example, this first code snippet works: Run, %comspec% /k wmic /no...
by arrrghhh
27 Oct 2016, 14:31
Forum: Tips and Tricks (v1)
Topic: TIP: PowerShell comments in AHK
Replies: 5
Views: 7131

Re: TIP: PowerShell comments in AHK

No worries, I'll post a new thread - didn't mean to steal yours, you just seemed to know your stuff about powershell & AHK. As for testing, I always test the scripts in a Server 2012 R2 environment now, to rule out any environmental issues. I always did final testing on an actual server environment,...
by arrrghhh
18 Oct 2016, 08:45
Forum: Forum Issues
Topic: Welcome and if you need help
Replies: 87
Views: 126368

Re: Welcome and if you need help

joedf wrote:You sure you're not using a proxy or TOR?
I never answered that question previously, and I am positive I am not using TOR. At work, we could be on a proxy - I don't think we are, but I'll doublecheck. I'm definitely not at home, and I had the issue in both locations the other day.
by arrrghhh
17 Oct 2016, 21:14
Forum: Tips and Tricks (v1)
Topic: TIP: PowerShell comments in AHK
Replies: 5
Views: 7131

Re: TIP: PowerShell comments in AHK

I've just tried to run Install-WindowsFeature -Name Web-Server -IncludeAllSubFeature -WhatIf at a PowerShell command prompt in Win 10 AU and get the message that the cmdlet isn't recognised. I could be wrong but AFAIK the cmdlet is not (yet) available in Windows 10. This TechNet article ( https://t...
by arrrghhh
17 Oct 2016, 17:16
Forum: Forum Issues
Topic: Welcome and if you need help
Replies: 87
Views: 126368

Re: Welcome and if you need help

Ditto as well. Surprised if this post will actually submit, I haven't been able to submit any posts elsewhere for a day or so now. Edit - hey, that actually worked! I've been trying to post a response to a thread in the 'tutorials' section (not even post a new thread, just respond to a post) and hav...
by arrrghhh
13 Oct 2016, 15:18
Forum: Tips and Tricks (v1)
Topic: TIP: PowerShell comments in AHK
Replies: 5
Views: 7131

Re: TIP: PowerShell comments in AHK

OK, stupid question which is somewhat related to your post... How do I run 'any' PowerShell cmdlet? I used your code, and I am able to run the "Get-Hotfix" cmdlet, the pipe with select, no problem. However, I would like to run a different cmdlet - Install-WindowsFeature. If I run this from its own p...

Go to advanced search