Windows Hello
3 TopicsSelect-Object -Property
Hi everOne! I'm completely beginner in this field saying "PowerShell" And maybe it could be a stupid question but like someone said "stupid question doesn't exist" soo , here i am 😜 I have a small question: Please explain me one thing : When we using "Select-Object" - and selecting by -Property so, how will I know whats available property i can choose from? For example we choosing -Property from Wim-Object from HardDisk like DeviceID, DriveType, VolumeName, FreeSpaceGB, Capacity, DriveType - how can i see this available list? Thanks in advice dear DevOps! Greeting, Jacob :=> )Solved1.9KViews0likes2CommentsHow to suspend execution until excel workbook 100% synced with Microsoft forms
I have a PowerShell script that's extracting cell values from a table that's synced to a Microsoft Form. However, when I run the script in the morning it's extracting the cell values before the forms is 100% synced so I'm not getting all of the data from the day before. I can sleep the script for maybe 20 seconds but is there a way to suspend execution of the script until the forms is 100% synced then immediately continue execution because sometimes it's already synced and other times it's not? # create excel instance $excel = new-object -comobject excel.application # open excel workbook try { $workbook = $excel.Workbooks.Open($filePath, $true) } catch { throw "microsoft excel cannot access file -> please run the script again" } # set excel worksheet $worksheet = $workbook.Sheets.Item(1) # set excel table $table = $worksheet.ListObjects.Item("Form") # extract cell values $values = @() for ($i = 9; $i -le 15; $i++) { foreach ($cell in $table.Range.Columns.Item($i).SpecialCells(12).Cells) { $values += $cell.Value2 | Where-Object { $_ -match "^\d" } } }211Views0likes0CommentsFetch Email of Login User In System Context
Dear Team, We are working on retrieving email address of the user joined to Entra ID from Entra-joined Windows devices, specifically while running in a system context.The whoami /upn command successfully returns the joined user’s email address in a user context, but it does not work in a system context, particularly when using an elevated terminal via the psexec utility.We also tested the dsregcmd /status command; however, in a system context, the User Identity tab in the SSO State section only appears when there is an error in AzureAdPrt. Under normal, healthy operating conditions, this command does not provide the user identity or the full domain username. We would greatly appreciate guidance on how to retrieve the Entra ID joined user’s email address in a system context, especially from those with prior experience in this area. Thank you for your support.Solved133Views0likes3Comments