Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: 02_PersBISF_CTX.ps1 never finishes on Azure AD only Azure VMs #374

Closed
xenadmin opened this issue Feb 28, 2023 · 4 comments
Closed

Comments

@xenadmin
Copy link
Contributor

Describe the bug

I'm building an Azure AD only Win 10 22H2 Multi User image with Citrix DaaS. I implement BIS-F, but the PERS at start up always hangs at the same step. It never finishes the 02_PersBISF_CTX.ps1 script.

28.02.2023 19:54:17 | AZ-XAD-D-W10-01$ | INFORMATION... | =========================== 02_PersBISF_CTX.ps1 ===========================
28.02.2023 19:54:17 | AZ-XAD-D-W10-01$ | INFORMATION... | Check Citrix STA in C:\Program Files (x86)\Citrix\system32\CtxSta.config
28.02.2023 19:54:17 | AZ-XAD-D-W10-01$ | INFORMATION... | STA file C:\Program Files (x86)\Citrix\system32\CtxSta.config not found
28.02.2023 19:54:17 | AZ-XAD-D-W10-01$ | INFORMATION... | Citrix VDA installed, skipping Citrix license cache location
28.02.2023 19:54:17 | AZ-XAD-D-W10-01$ | INFORMATION... | Processing function Test-BISFService
28.02.2023 19:54:17 | AZ-XAD-D-W10-01$ | INFORMATION... | Service MSMQ does not exist
28.02.2023 19:54:17 | AZ-XAD-D-W10-01$ | INFORMATION... | Performing actions for Citrix VDA only
28.02.2023 19:54:17 | AZ-XAD-D-W10-01$ | INFORMATION... | reset Performance Counters
28.02.2023 19:54:17 | AZ-XAD-D-W10-01$ | INFORMATION... | Processing function Start-BISFProcWithProgBar
28.02.2023 19:54:17 | AZ-XAD-D-W10-01$ | INFORMATION... | Starting Process lodctr.exe with ArgumentList /r
28.02.2023 19:54:17 | AZ-XAD-D-W10-01$ | INFORMATION... | Processing function Show-BISFProgressBar
28.02.2023 19:54:17 | AZ-XAD-D-W10-01$ | INFORMATION... | Maximum execution time used the GPO value with 120 minutes
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | Processing function Get-BISFLogContent
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | Get content from file C:\Windows\logs\BISFtmpProcessLog.log...please wait
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | -----snip-----
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | EXTERNAL LOG.... | Info: Die Leistungsindikatoreinstellung konnte erfolgreich aus dem Systemsicherungsspeicher neu erstellt werden.
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | -----snap-----
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | Processing function Test-BISFService
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | Service Norskale Agent Host Service does not exist
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | Product Citrix Workspace Environment Management (WEM) Legacy Agent is NOT installed
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | Processing function Test-BISFService
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | Service WemAgentSvc exists
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | Product Citrix Workspace Environment Management (WEM) Agent (Version 2212.1.0.1) installed
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | Processing function Invoke-BISFService
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | Reconfigure Service WemAgentSvc
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | Service WemAgentSvc will be stopped
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | Processing function Test-BISFServiceState
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | The Service Citrix WEM Agent Host Service is successfully in Stopped state
28.02.2023 19:54:22 | AZ-XAD-D-W10-01$ | INFORMATION... | DiskMode will not be checked
28.02.2023 19:54:32 | AZ-XAD-D-W10-01$ | INFORMATION... | Processing function Invoke-BISFService
28.02.2023 19:54:32 | AZ-XAD-D-W10-01$ | INFORMATION... | Reconfigure Service WemAgentSvc
28.02.2023 19:54:32 | AZ-XAD-D-W10-01$ | INFORMATION... | DiskMode will not be checked
28.02.2023 19:54:34 | AZ-XAD-D-W10-01$ | INFORMATION... | Service WemAgentSvc is running now
28.02.2023 19:54:34 | AZ-XAD-D-W10-01$ | INFORMATION... | Processing function Test-BISFServiceState
28.02.2023 19:54:34 | AZ-XAD-D-W10-01$ | INFORMATION... | The Service Citrix WEM Agent Host Service is successfully in Running state
28.02.2023 19:54:34 | AZ-XAD-D-W10-01$ | INFORMATION... | Processing function Invoke-BISFService
28.02.2023 19:54:34 | AZ-XAD-D-W10-01$ | INFORMATION... | Reconfigure Service Netlogon
28.02.2023 19:54:34 | AZ-XAD-D-W10-01$ | INFORMATION... | DiskMode will not be checked

It seems to wait forever for the Netlogon service, which won't start on an AzureAD only VM, and therefore never finishes. I was able to "fix" this by deleting line 174 from 02_PersBISF_CTX.ps1 for this situation:
((Get-Content "$BISFDir\Personalization\02_PersBISF_CTX.ps1" -Raw) -replace 'Invoke-BISFService -ServiceName "Netlogon" -Action Start', '') | Set-Content -Path "$BISFDir\Personalization\02_PersBISF_CTX.ps1"

Steps to reproduce

  1. Create a Citrix DaaS Machine Catalog which is of type Azure AD joined only.
  2. Install BIS-F
  3. Seal Image with BIS-F
  4. Boot Machine from catalog
  5. Check C:\Windows\Logs\BIS-F\Pers.log
  6. BIS-F never finishes

Expected behavior

It should detect an Azure AD only VM on Azure and not require the check on the Netlogon service.

Screenshots

No response

Desktop, please complete the following information.

No response

Smartphone, please complete the following information.

No response

Additional context

No response

@matthias-schlimm
Copy link
Collaborator

@xenadmin please upload the complete BIS-F log here. anonymous any sensitive data before. Ich will check how BIS-F is able to check Azure AD VM's only

@matthias-schlimm
Copy link
Collaborator

Dsregcmd required to get these 2 values

AzureAdJoined : YES
DomainJoined : No

Function Get-DSRegState already in BISF.psm1 implemented to use

@matthias-schlimm
Copy link
Collaborator

Get-BISFDSRegState -Key "AzureAdJoined"

Get-BISFDSRegState -Key "DomainJoined"

@matthias-schlimm
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants