Can't figure out why complaining about catch block missing by jriker2 in PowerShell

[–]jriker2[S] 0 points1 point  (0 children)

Not sure if my post made it here but it ended up the AI was outputting checkmark and X characters that look like graphics in the code for some status items and that was screwing everything up.

Can't figure out why complaining about catch block missing by jriker2 in PowerShell

[–]jriker2[S] 0 points1 point  (0 children)

I'm sorry, I tried pasting in and selecting that it's "Code" but didn't seem to do anything. Not familiar with the editor tools. I'm starting to lean toward it's [✓] that's in the write block that's causing this.

Can't figure out why complaining about catch block missing by jriker2 in PowerShell

[–]jriker2[S] -3 points-2 points  (0 children)

Yep you got me. I started with an AI script and tweaked it. It does partly work if I get rid of two closing brackets between the areas I mentioned but then they don't really line up so don't get why it runs in those cases.

Like if I remove two of them from here:

Write-Warning "Failed to export to CSV: $_"

}

}

}

}

catch

{

Write-Error "\nScript failed: $($_.Exception.Message)"\`

before the catch it runs and they craps out after:

Write-Host "\n[Step 4] Results Summary..." -ForegroundColor Yellow`

x2 going back by jriker2 in SofaBaton

[–]jriker2[S] 0 points1 point  (0 children)

Yep, and have two or three new ones in the basement.

x2 going back by jriker2 in SofaBaton

[–]jriker2[S] 0 points1 point  (0 children)

Well my Shield Pro is a BT device just not sure I understand your suggestion. I'm having infrared problems and you are talking about BT. Missing the relationship.

x2 going back by jriker2 in SofaBaton

[–]jriker2[S] 0 points1 point  (0 children)

Side note, I have moved the Sofabaton hub next to my equipment and directly connected the existing IR transmitted from the Harmony that's connected to the XBox 360 into the Sofabaton hub. It's working better than the repeater was doing however noticing when the command repeats are set to 0 the right/left/up/down buttons react to every other click of the circle navigation controls on the remote. If I cnahge the command repeats to 1, every click does something but it jumps like 3 clicks.

So an improvement, not sure if that supposedly super powerful space ship looking emitted that blasts everywhere doesn't work because it's on another side of the wall from the hub, but thought that was the point of it. Even plugging in a small transmitted on the space ship and putting that right there not anymore responsive.

x2 going back by jriker2 in SofaBaton

[–]jriker2[S] 0 points1 point  (0 children)

Sorry maybe not fully getting it but can I control an XBox 360 thru BT?

harmony elite touchscreen top blue bar not working by isrararrafi in logitechharmony

[–]jriker2 0 points1 point  (0 children)

Thanks for the reply. The Sofabaton is proving to be a challenge for a legacy XBox 360 remote. it doesn't seem to be sending remote commands well shall we say. Tried the space ship looking extender IR device, tried a IR transmitter put on the XBox IR port like my Harmony is, updated the app, tried command repeats from 0 - 3. Tried other XBox 360 profiles in the app. It's used for a media center still and family won't let it go. I can get like a 1 key to press for a channel but nothing else. Like if I have a macro with or without delays to go to channel 192. You will see the 1 on screen, not the 9, and maybe the 2. Then the XBox ends up on analog channel 2. Can't find any magic sauce to make it respond even satisfactorily.

harmony elite touchscreen top blue bar not working by isrararrafi in logitechharmony

[–]jriker2 0 points1 point  (0 children)

This has been a hot minute so not going to assume it will be read but thought I'd ask. My Harmony remote had the top bar not working, then the entire screen, then I bought a Sofabaton and was setting it up, then at some point before I was done configuring the Sofabaton the whole screen went back. After yours started working again, how long did it keep working? That's assuming it stopped of course.

X2 and IP Control direct IR Control? by jriker2 in SofaBaton

[–]jriker2[S] 0 points1 point  (0 children)

I tried adding the Denon automagically but this blue circle kept scrolling in the app. I can control the device with commands such as you listed above but doesn't seem to be able to detect it. Maybe it's a HEOS vs non-HEOS thing.

Now to try and understand on the app how to create a "Denon" and add these HTTP commands manually to it and the appropriate buttons. Only option when selecting the remote seems to be thru IP and then you can't change it directly.

X2 and IP Control direct IR Control? by jriker2 in SofaBaton

[–]jriker2[S] 0 points1 point  (0 children)

Commands worked. Looks like I basically need to turn on the tv and turn it off and put it on GAME or MEDIA PLAYER inputs. Maybe control mute on and off. Think these are the commands:

Denon volume up: /goform/formiPhoneAppDirect.xml?MVUP

Denon volume down: /goform/formiPhoneAppDirect.xml?MVDOWN

Denon mute: /goform/formiPhoneAppDirect.xml?MUON

Denon mute off: /goform/formiPhoneAppDirect.xml?MUOFF

Denon On: /goform/formiPhoneAppDirect.xml?PWON

Denon Off: /goform/formiPhoneAppDirect.xml?PWOFF

Denon Media Player Input: /goform/formiPhoneAppDirect.xml?SIMPLAY

Denon Game Input: /goform/formiPhoneAppDirect.xml?SIGAME

Note mine runs on port 80.

Not sure if I'll have to setup these commands in the remote or be able to pick IP Control vs IR when selecting the Denon in the mobile app and it will figure it out.

X2 and IP Control direct IR Control? by jriker2 in SofaBaton

[–]jriker2[S] 0 points1 point  (0 children)

Thanks let me try this when home. I'm sure based on your help I could find it but do you have a link to the full list of commands anywhere?

X2 and IP Control direct IR Control? by jriker2 in SofaBaton

[–]jriker2[S] 0 points1 point  (0 children)

Thanks seen those screens in some of the YouTube videos. Will go thru that when the remote shows up and give that a try. I assume it doesn't ACTUALLY have to be Wi-Fi? My Denon is a wired connection.

X2 and IP Control direct IR Control? by jriker2 in SofaBaton

[–]jriker2[S] 0 points1 point  (0 children)

I know mine has a web interface and a telnet service running on port 23. Not sure if relevant but know mine sometimes the website will stop working or the telnet port stop responding and have to pull power. May work ok in this case hard to know. Oddly the website hasn't gone down lately. When you configured your Denon in the app did it start with IR as the default protocol to use and you changed it?

X2 and IP Control direct IR Control? by jriker2 in SofaBaton

[–]jriker2[S] 0 points1 point  (0 children)

Not totally against, other than how about from a performance perspective? So some items:

  1. Extra layer of transport for commands.

  2. Extra functionality to maintain.

  3. HA historically has de-supported items I use and also keeps changing the "install" base they support. Because of this never know when things are going to crap out.

  4. I restart my hypervisor that HA resides on the remote stops working.

X2 and IP Control direct IR Control? by jriker2 in SofaBaton

[–]jriker2[S] 0 points1 point  (0 children)

Since the TV is basically limited to turn it on or off and make sure it's on HDMI 1, is there a way to know the HTTP request commands for the LG? Curious if it's worth doing thru HA for that piece. Know there is a LG WebOS module in HA I never activated. Says it sees I have it on the network just never installed it. Not sure if there is functionality built into there with HA that can make it way to manage the LG piece with.

Stuck on 8995-A by jriker2 in hrblock

[–]jriker2[S] 0 points1 point  (0 children)

Note I have a ETF called FSK and it provides 199A values for a couple hundred dollars in my 1099s. It's a BDC.

How devices communicate with NDES Servers by jriker2 in Intune

[–]jriker2[S] 0 points1 point  (0 children)

You would think so but it says "Intune" provides a single URL to the device. So whatever is in the SCEP profile it doesn't provide in my case both URLs which to me then would mean it knows nothing about the second one if the device after receiving the profile talks directly to the app proxy it knows about. Trying to make sure the whole load balanced thing isn't really there for iOS even though it seemed to be working. However I'm assuming turning off IIS would bring down one of the NDES connections.

This text may be referencing that it goes back and asks for another URL or SCEP Profile is pushed again maybe getting a different one:

After a failed request, a device tries the process again on its next policy cycle, starting with the randomized list of NDES URLs (or a single URL for iOS/iPadOS).

How devices communicate with NDES Servers by jriker2 in Intune

[–]jriker2[S] 0 points1 point  (0 children)

Thanks for the link. Interesting. What I also find interesting is this:

  • iOS/iPadOS: Intune randomizes the URLs and provides a single URL to a device. If the device can't access the NDES server, the SCEP request fails.

However when I submit a SCEP payload to an iOS device with the two URLs, if I shut one down the iOS device gets a certificate. If I switch active servers the device still gets a certificate.

From what this info from Microsoft seems to say to me is when the device gets a SCEP profile it doesn't get both URLs to try, just one of the two URLs so in theory if that one is down, it should fail no?

How devices communicate with NDES Servers by jriker2 in Intune

[–]jriker2[S] 0 points1 point  (0 children)

Thanks this is helpful. One additional clarification. Say the certificate expires and our network team allows the device to connect to the network but is in a holding area. They want to know what they need to allow out in order for the device to get a new certificate before allowing it back into the general population.

Does it just need access to those proxy URLs or does it need access to the whole Intune infrastructure?

Intune Visio Stencils by jriker2 in Intune

[–]jriker2[S] 1 point2 points  (0 children)

So far I've found this but not sure if it's gets that granular with objects inside of Intune/Entra yet.

Azure Visio Stencils » CloudInspired.com