I created a super basic implementation of a self-service portal using the API, it works in a pinch but I wouldn't use it in production without heavy improvement. Mostly just curiosity about what's possible with the API
https://github.com/AidanRB/toem-store
Best posts made by mzprays
-
RE: Self-service portal
Latest posts made by mzprays
-
RE: Self-service portal
I created a super basic implementation of a self-service portal using the API, it works in a pinch but I wouldn't use it in production without heavy improvement. Mostly just curiosity about what's possible with the API
https://github.com/AidanRB/toem-store -
RE: Imaging unable to create partitions
I did some digging and it appears bootType is being incorrectly detected as legacy, so the script is formatting the drive as MBR.
$env:firmware_type
contains the correct value, EFI. I found that the boot type is determined usingConfirm-SecureBootUEFI
, interpreting a failure to run as legacy boot. This system does not support secure boot, causingConfirm-SecureBootUEFI
to crash, although it does use UEFI. Is there a reasonConfirm-SecureBootUEFI
is used instead of$env:firmware_type
for the boot type? -
Imaging unable to create partitions
I'm having issues deploying an image onto a specific device model, other devices are fine. It seems to be a problem with partitioning, but I can't figure out why.
WinPE Version: 10.0.25398.0 System Architecture: @{OSArchitecture=64-bit} Using Legacy BIOS ** Looking For Active Task For .MT43I28SF-2XZ2103040540010009.23A728AC-658E-8E45-BFB1-77447A51C546 ** {"computerId":"false","task":"ond","taskId":null,"computerName":null} ...... This Computer Was Not Found ** Looking For Active Task For EC:D6:8A:83:21:1A.MT43I28SF-2XZ2103040540010009.23A728AC-658E-8E45-BFB1-77447A51C546 ** {"computerId":"5531","task":"deploy","taskId":"89","computerName":"BX40T-A4"} ...... Success ** Verifying Active Task ** computer_name=BX40T-A4 image_name=Windows11_23H2_On-Prem profile_id=3 pre_scripts="" before_file_scripts="" after_file_scripts="" file_copy=True sysprep_tags="" image_type=File set_bootmgr=True display_sleep_time=5 web_cancel=true task_completed_action="Reboot" direct_smb=true change_computer_name=true skip_expand_volumes=true fix_bcd=true randomize_guids=true skip_nvram=true fix_bootloader=true force_dynamic_partitions=true partition_method=dynamic image_server="http://covs-toemweb.hcps.k12.local:8888/clientimaging/" ...... Success Current Boot Order Firmware Boot Manager --------------------- identifier {fwbootmgr} displayorder {bootmgr} timeout 2 Windows Boot Manager -------------------- identifier {bootmgr} device partition=\Device\HarddiskVolume1 path \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI description Windows Boot Manager locale en-US inherit {globalsettings} default {default} resumeobject {98dae182-9de5-11ed-95a6-ecd68a839e4b} displayorder {default} {98dae180-9de5-11ed-95a6-ecd68a839e4b} toolsdisplayorder {memdiag} timeout 0 ** Mounting SMB Share ** ...... Connecting To //COVS-TOEMWEB/toems_local_storage The command completed successfully. ...... Success file_copy_schema: profileId=3 Count FilesAndFolders ----- --------------- 1 {@{DestinationFolder=; DestinationPartition=; FileName=drivers_tested.zip; ModuleGuid... ** Looking For Hard Drive(s) ** ** Displaying Available Devices ** Number F Serial Number HealthStatus OperationalStatus Total Size r i e n d l y N a m e ------ - ------------- ------------ ----------------- ---------- 0 K 50026B7684785F75 Healthy Online 238.47 GB ...... Found 1 Drives ** Displaying Current Partition Table On 0 DiskPath: \\?\scsi#disk&ven_&prod_kingston_om8p0s3#4&2b547927&0&000000#{53f56307-b6bf-11d0- 94f2-00a0c91efb8b} PartitionNumber DriveLetter Offset Size Type --------------- ----------- ------ ---- ---- 1 1048576 100 MB System 2 105906176 16 MB Reserved 3 C 122683392 237.86 GB Basic 4 255520145408 515 MB Recovery ** Processing Hard Drive 0 Get hd_schema: profileId=3&clientHdNumber=0&newHdSize=256060514304&schemaHds=&clientLbs=0 {"BootPartition":"","Guid":"{9f23656f-e22e-42b0-9a5c-95c42987f7a5}","IsValid":"true","Message":null,"PartitionType":"GPT","PhysicalPartitionCount":4,"PhysicalPartitions":[{"Compression":null,"EfiBootLoader":"","FileSystem":"FAT32","Guid":"{69088a00-e706-481b-8367-59d15c8f3ba9}","ImageType":null,"Number":"1","PartcloneFileSystem":null,"Prefix":null,"Type":"System","Uuid":"","VolumeGroup":null},{"Compression":null,"EfiBootLoader":"","FileSystem":"","Guid":"{bd23da07-dea8-4ca5-b7d4-6b207aec4b41}","ImageType":null,"Number":"2","PartcloneFileSystem":null,"Prefix":null,"Type":"Reserved","Uuid":"","VolumeGroup":null},{"Compression":null,"EfiBootLoader":"","FileSystem":"NTFS","Guid":"{e96f0c84-a44d-4ee4-951e-f5b592e2b9d8}","ImageType":null,"Number":"3","PartcloneFileSystem":null,"Prefix":null,"Type":"Basic","Uuid":"","VolumeGroup":null},{"Compression":null,"EfiBootLoader":"","FileSystem":"NTFS","Guid":"{d853c12f-b7a4-4109-9f62-97e73770e35e}","ImageType":null,"Number":"4","PartcloneFileSystem":null,"Prefix":null,"Type":"Recovery","Uuid":"","VolumeGroup":null}],"SchemaHdNumber":0,"UsesLvm":"false"} ...... HD Meets The Minimum Sized Required imageProfileId=3&hdToGet=0&newHDSize=256060514304&clientHD=0&taskType=deploy&partitionPrefix=&lbs=512 http://covs-toemweb.hcps.k12.local:8888/clientimaging/GetPartLayout ** Partition Creation Script ** New-Partition 0 -GptType '{c12a7328-f81f-11d2-ba4b-00a0c93ec93b}' -Size 100MB 2>&1 >> $clientLog New-Partition 0 -GptType '{e3c9e316-0b5c-4db8-817d-f92df00215ae}' -Size 16MB 2>&1 >> $clientLog New-Partition 0 -GptType '{ebd0a0a2-b9e5-4433-87c0-68b6b72699c7}' -Size 239044MB | Format-Volume -FileSystem NTFS 2>&1 >> $clientLog New-Partition 0 -GptType '{de94bba4-06d1-4d40-a16a-bfd50179d6ac}' -Size 800MB | Format-Volume -FileSystem NTFS -NewFileSystemLabel WindowsRE 2>&1 >> $clientLog New-Partition : A parameter is not valid for this type of partition. Extended information: The parameters GptType, IsHidden, and IsDAX cannot be used on an MBR disk. Activity ID: {d7502885-d397-0001-392d-50d797d3da01} At X:\newPartLayout.ps1:1 char:1 + New-Partition 0 -GptType '{c12a7328-f81f-11d2-ba4b-00a0c93ec93b}' -Si ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (StorageWMI:ROOT/Microsoft/Windows/Storage/MSF T_Disk) [New-Partition], CimException + FullyQualifiedErrorId : StorageWMI 41006,New-Partition New-Partition : A parameter is not valid for this type of partition. Extended information: The parameters GptType, IsHidden, and IsDAX cannot be used on an MBR disk. Activity ID: {d7502885-d397-0001-392d-50d797d3da01} At X:\newPartLayout.ps1:2 char:1 + New-Partition 0 -GptType '{e3c9e316-0b5c-4db8-817d-f92df00215ae}' -Si ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (StorageWMI:ROOT/Microsoft/Windows/Storage/MSF T_Disk) [New-Partition], CimException + FullyQualifiedErrorId : StorageWMI 41006,New-Partition boot partition is ** New Partition Table Is ** @{Compression=; EfiBootLoader=; FileSystem=FAT32; Guid={69088a00-e706-481b-8367-59d15c8f3ba9}; ImageType=; Number=1; PartcloneFileSystem=; Prefix=; Type=System; Uuid=; VolumeGroup=} @{Compression=; EfiBootLoader=; FileSystem=; Guid={bd23da07-dea8-4ca5-b7d4-6b207aec4b41}; ImageType=; Number=2; PartcloneFileSystem=; Prefix=; Type=Reserved; Uuid=; VolumeGroup=} @{Compression=; EfiBootLoader=; FileSystem=NTFS; Guid={e96f0c84-a44d-4ee4-951e-f5b592e2b9d8}; ImageType=; Number=3; PartcloneFileSystem=; Prefix=; Type=Basic; Uuid=; VolumeGroup=} ** Starting Image Download For Hard Drive 0 Partition 3 Set-Partition : The requested object could not be found. At X:\wie_deploy.ps1:275 char:5 + Set-Partition -DiskNumber $($hardDrive.Number) -PartitionNumber $ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (PS_StorageCmdlets:ROOT/Microsoft/..._StorageCm dlets) [Set-Partition], CimException + FullyQualifiedErrorId : MI RESULT 6,Set-Partition wimapply s:\images\Windows11_23H2_On-Prem\hd0\part3.winpe.wim C: 2>>x:\clientlog.log > x:\wim.progress wimapply : At X:\wie_deploy.ps1:301 char:13 + wimapply $script:imagePath\part$wimSource.winpe.wim C: 2> ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError [WARNING] Failed to get volume information for "C:" (err=3): The system cannot find the path specified [WARNING] Ignoring FILE_ATTRIBUTE_COMPRESSED of 48 files [WARNING] Ignoring FILE_ATTRIBUTE_SPARSE_FILE of 6 files [WARNING] Extracting 46031 hard links as independent files [WARNING] Ignoring reparse data of 58 files [WARNING] Ignoring Windows NT security descriptors of 173642 files [WARNING] Ignoring extended attributes of 39720 files [WARNING] Ignoring object IDs of 32 files [WARNING] Ignoring DOS names of 148687 files [ERROR] Can't open or create directory "C:" (status=c000003a): {Path Not Found} The path %hs does not exist ERROR: Exiting with error code 48: Failed to open a directory. ** Processing File Copy ** @{Compression=; EfiBootLoader=; FileSystem=NTFS; Guid={d853c12f-b7a4-4109-9f62-97e73770e35e}; ImageType=; Number=4; PartcloneFileSystem=; Prefix=; Type=Recovery; Uuid=; VolumeGroup=} Updated Boot Order The boot configuration data store could not be opened. The requested system device cannot be found. ** Closing Active Task **
-
1.5.6 detected as virus
I'm trying to download the update for 1.5.6, but it's being detected as a virus by my machine. VirusTotal isn't happy about it either: https://www.virustotal.com/gui/file/1f6cc11bec13944ab4a15a860f3bdf6388781e6acb144de41069f52cb883a4de/details
Is this the correct file? I checked previous versions and they do not have the same warnings. What changed that's triggering all these AVs?
-
RE: Target group members where software is not currently installed
@theopenem_admin Was this added in a release? I'm running into the same problem. I'm unsure how to script a condition as well, where can I find that?
-
Help icon missing
Just installed a new instance of Theopenem, and after getting through the setup process, I'm not seeing the "i" icon in the top right of each page with the documentation. In the HTML, it's there, but commented out, and uncommenting it and clicking it does nothing. Did I miss something in the setup process? I went back and checked all the steps.
-
TOEC unstable to connect to server
Hello! I'm setting up a new environment, and I'm having an issue deploying TOEC. After installing on the clients, it isn't connecting to the server. I ran it in the terminal, and got the following output:
PS C:\Program Files\Toec> .\Toec.exe --console 2023-10-19 08:54:43,728 INFO [1] Host ****\**** - Starting Toec Service Toec Running Press [Enter] to Exit. 2023-10-19 08:54:44,009 INFO [4] ServiceInitialize ****\**** - Toec Version: 1.5.4.0 2023-10-19 08:54:46,092 ERROR [4] ServiceInitialize ****\**** - Database Access Failed. Service Cannot Continue. Exiting.... 2023-10-19 08:54:46,092 ERROR [4] ServiceInitialize ****\**** - An exception occurred while initializing the database. See the InnerException for details.