@theopenem_admin Yeah i get that, but I found a program, which installs only without specifying any scope in the command. I guess it's a problem of the package maintainer, but it's better to have us as system admins specify, which scope we wish to apply from e.g. a drop-down menu in the winget module.
Posts made by Eruthon
-
RE: Adding support for WinGet
-
RE: Adding support for WinGet
@theopenem_admin
Is the --scope machine hard-coded into TOEMS when installing with winget modules? Some packages cannot get installed with it and practically I have no way of overriding this option, because --scope user doesn't work, too. -
Message module question
I am trying to make a policy that runs on login for one particular user and shows a "Warning" message to that user. Login policies should run in the context of logged in users, so I created a PS script that checks who is logged in with this:
# Get the currently logged-in user $currentUserName = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name # Check if the username is "user" if ($currentUserName -eq "user") { Write-Host "Logged in user is 'user'." exit 0 } else { Write-Host "Logged in user is not 'user'. Logged in user is '$currentUserName'." exit 1 }
and used it as a Condition script for policy and/or module. But the condition always fails with MarkNotApplicable.
I could make an Impersonation account for this one, butSecond problem is that when I tried to use "Send Message" to that PC, it output an error:
ERROR [45] ApiRequest - Error Retrieving API Response: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:9000 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetResponse() at RestSharp.Http.<ExecuteRequest>g__GetRawResponse|185_1(WebRequest request) at RestSharp.Http.ExecuteRequest(String httpMethod, Action`1 prepareRequest)
-
RE: Image deploy With Toec cient not connecting on reboot
You probably don't have compatible ethernet drivers for that ThinkCentre installed in your WIE.
-
Module replication throws errors
I don't know for how long this was happening. I can't get the uploaded files to replicate from SMB to TOEMS server (again). The Application.log is full of these:
2024-02-21 13:06:58,027 [Worker #7] INFO Toems_Service.Workflows.FolderSync A Replication process is already in progress.
and
2024-02-21 13:16:34,694 [Worker #3] ERROR Toems_DataModel.RawSqlRepository You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND (a.provision_status = 8 OR a.provision_status = 6 OR a.provision_status = ' at line 1
The Replication job seemingly never finishes, and I have to copy the contents of the uploaded files from SMB to the only TOEMS server.
-
RE: Support for diacritics in scripts
@theopenem_admin I tried that, adding powershell.exe as command and a whole bunch of arguments to run it with execution bypass and adding path to application, name of the .lnk file and location to save the .lnk to.
After adding the argument with the name of the location for the .lnk, namely "Výučbový softvér", TOEMS was unable run this instant module.
Command: powershell.exe
Arguments:-executionpolicy bypass -windowstyle hidden -noninteractive -nologo -file "C:\CIT\Scripts\shortcut-script.ps1" -SoftwarePath "C:\Program Files\Wireshark\Wireshark.exe" -ShortcutDirectory "Výučbový softvér" -ShortcutName "Wireshark.lnk"
Script contents:
param( [string]$SoftwarePath, [string]$ShortcutDirectory, [string]$ShortcutName ) $publicDesktopPath = [System.Environment]::GetFolderPath('CommonDesktopDirectory') # Create a WScript Shell object $shell = New-Object -ComObject WScript.Shell # Create the software directory if it doesn't exist $softwareDirectory = "$publicDesktopPath\$ShortcutDirectory" if (-not (Test-Path -Path $softwareDirectory -PathType Container)) { New-Item -Path $softwareDirectory -ItemType Directory -Force } # Create a shortcut object $shortcut = $shell.CreateShortcut("$softwareDirectory\$ShortcutName") # Set the target path for the shortcut $shortcut.TargetPath = $SoftwarePath # Save the shortcut $shortcut.Save() Write-Host "Shortcut for software created on the public desktop." Exit 0
I could try to create a singular script for every shortcut then.
-
RE: Support for diacritics in scripts
@tyler I tried to create them via Powershell script module.
-
RE: Support for diacritics in scripts
In Notepad++ I found that setting the script contents to show in ANSI while being encoded in UTF8 creates exactly the same problem with letters with diacritics as the Powershell script.
Still no way to fix it though. -
Support for diacritics in scripts
I'm trying to simply create a .lnk files on Public Desktop, but inside a folder with diacritics for my language. Sadly it creates messed up names and I haven't found out how to make it work with correct letters. Has anyone figured it out?
-
RE: Multisast Documentation
@jithinpsk
I hope I'm not wrong here, but essentialy I understand it as SMB server doesn't support multicasting, because it doesn't use UDP. At least that's the problem I had, but my SMB is not on the same server as TOEMS, but on my TrueNAS.
Your client PCs connect either to your HTTP server on TOEMS, which can use udpcast-sender.exe, or to your SMB, which doesn't support udpcast (probably).I think the problem with documentation is, that not many people use it with TOEMS and documentation is still being migrated and getting completed. So multicast wasn't on wiki creators' to-do list very high.
Also some info here, specifically last response from hodgesc: https://forum.theopenem.com/topic/175/multicast
-
RE: Multisast Documentation
@jithinpsk
Your SMB storage can work in two modes:- Direct - you upload and deploy your images to/from your SMB storage without the need of the images being present on the server
- Non-direct - you have your SMB as replication server, i.e. you upload your image to a server, that server sends it to the SMB and SMB sends it to other servers you can have
And how clients know what address to join - you either create a multicast for a group you created or you create an on-demand task in Imaging Task menu and you choose how many clients need to join etc. Then you boot your clients to the LIE/WIE environments, choose multicast and choose a multicast session you want
-
RE: Multisast Documentation
@jithinpsk
Multicast can't work with SMB... either you have Upload / Deploy Direct to SMB on and no multicast or you have Upload / Deploy Direct to SMB disabled and then you can use multicasting...
Also my multicast config looks like this after I was troubleshooting its ins and outs when imaging between VLANs, BUT it's not properly tested by me, because I started to use the Direct SMB feature:
-
[Policy] Login trigger and frequency
In current release 1.5.5 I've stumbled upon a problem with setting Policy Trigger to Login and Frequency to OncePerUserPerComputer. After I set it and update the policy, the frequency resets back to Ongoing state and the Frequency menu shows options for not-Login Triggers intead:
-
[Toec] Some enhancements
I'd welcome some of these features to Toec client:
- Faster check-in of Toec to Toems - mainly after startup of the PC, because waiting for it to register can be a bit annoying when I need to be quick
- Notifications in some kind of popup/baloon fashion to inform the users what kind of policy, module, etc. is currently running; it could also be toggleable to hide the notifications
- Some actions like manual check-in from some kind of Toec menu, could provide ability to reimage PC etc, only for admins
- Categories added to modules and policies could be used to make Toec menu folders to make it easier to navigate it, if you have many modules and policies like me
- Adding Logs to the Toec interface to have faster access to it, and have the logs in more readable state, where it's not one big file, but the logs would be attached to the history of running/already run modules and policies
If it's not the wish of the creators to add any interface to Toec, I'd wish to have it implemented in the web at least. You possibly won't add it to current Toems interface, but hopefully it could be implemented in the 12/2024 release of Toems 2.0 with Blazor.
-
iVentoy - alternative to tftpd32 PXE
Just adding a link for iVentoy, which allows you to boot TOEM WIE and LIE ISOs together with many other via its PXE server.
https://www.iventoy.com/en/index.html -
RE: [Policy] Could Not Verify Group Policy Deserialization
@theopenem_admin Yep, that solved it. Thank you
-
[Policy] Could Not Verify Group Policy Deserialization
I created many modules for automatic software installation and for each group of modules for specific software I created a policy (consisting mainly of WinGet script modules). I added 38 policies to a dynamic group of 41 PCs and after adding the 39-th policy the error "Could Not Verify Group Policy Deserialization" started to show next to the Actions button.
Is there a limited number of policies? Should I rather put many modules to a least possible number of policies?
-
RE: [WIE] Problem with RST drivers
@theopenem_admin Seems so, but it's simple enough to put it into WIE either manually or with the new Web GUI option, so thx for the latest update - got it working without issues so far. Just had to find the generated ISO in the folders and copy it to tftpboot and WinPE module. Worked after the drivers were added.