windows – Is there a reliable way, via powershell, to detect if a user has been logged on with a temporary User Profile Disk?

I am migrating my users from a Server 2012 R2 farm using Roaming Profiles to a Server 2019 RDS deployment using User Profile Disks. I have created a script that will copy the “important” folders from the UNC where the roaming profile is stored into the user’s new UPD, and have deployed that script via GPO as an immediate schedule task that only is created if a particular “Profile migrated” flag is non-existent (which the script obviously creates).

It is works very well under “normal” circumstances.

But, if a user happens to log on and their UPD is locked (an admin user primarily, who has the rights to log into multiple session host servers at once, and knows that this might happen under those conditions) and they get assigned a temporary profile/UPD, I want to detect that and NOT run the script.

I have not found a reliable way that I can check to see if the current session is using a temporary profile that I can use in “Item Level Targeting” to further filter and prevent this scheduled task from being created if the user is running under said condition.

Any suggestions? Registry settings seem to be the most likely candidate, but I haven’t found one that works yet.

hooks – After webform submission restrict/greyout certain fields when user goes back in to edit

On my Drupal 7 instance I am letting anonymous users “edit own webform content” or “access own webform results.” The thing is, I want one or two of the fields to become un-editable after the initial submission. Once they click through the link in their confirmation email to edit their submission, I want the email and company name fields to be greyed out but all other fields to be editable. What is my path of least resistance?

oracle – Create non-sysdba user that can grant tablespace to other users

I am creating an Oracle role with Admin option Grants so that user with this role assigned, will not be a full sysdba but will be able to create other users and grant them permissions.

What I hypothetically need would look like this – Grant grant tablespace to someRole

And I don’t want use this GRANT SYSDBA TO myuser

plugins – Getting User email on logout. wp_logout

I have looked at a couple of different ways to check when a user, of a particular role, has logged out. The call is made within a plugin.

In the main loop I have the following:

add_action( 'wp_logout', mmd_JudgeLogoutCheck, 10,0);

function mmd_JudgeLogoutCheck()
$current_user  = wp_get_current_user(); 
if ( !in_array( 'judge', (array) $current_user->roles ) && !in_array( 'editor', (array) $current_user->roles ) && !in_array( 'administrator', (array) $current_user->roles )) // 'judge'
    mmd_StoreJudgeStatus($current_user->user_email, JUDGE_LOGGED_OUT, 0);  

Each time the call to the wp_get_current_user returns a blank. That email is key to my functionality. I also tried

add_action( 'wp_logout', function() {
    $user = wp_get_current_user();
    // ...
}, 10, 0);

function mmd_JudgeLogoutCheck($current_user  )
if ( !in_array( 'judge', (array) $current_user->roles ) && !in_array( 'editor', (array) $current_user->roles ) && !in_array( 'administrator', (array) $current_user->roles )) // 'judge'
    mmd_StoreJudgeStatus($current_user->user_email, JUDGE_LOGGED_OUT, 0);  

Same results. Calls that happen earlier do not appear to have user information. Any assistance with how to get which particular user is logging out, would be helpful.

running CLion on windows on different user

I updated CLion under a different user on Windows 10 and now I can’t start it because it gets an error:
enter image description here

It doesn’t even start when I “Run as administrator”, which is strange, because I am the administrator (I checked).

I’ve given myself full access to this executable via Properties -> Security -> Advanced -> Permissions but it still doesn’t work:

enter image description here

Then I’ve given myself full access to clion64.exe.vmoptions and got this error:

enter image description here

How can I give full control to ALL FILES in this goddamn folder (CLion 2020.3.3)?

I’ve already done this, by the way, but Windows does not acknowledge:

enter image description here

If anyone knows how to fix this issue, please, help!

sql server – Disabled SA user is listed as logged in

I was looking for the last time users have been logged into the system and saw SA as being used. Strange is that SA is disabled by default and not used on our systems. How is that possible, what am I missing?

Here is the code used to list users:

SELECT login_name (Login) , MAX(login_time) AS (Last Login Time)
FROM sys.dm_exec_sessions
GROUP BY login_name;

And here is the SA listed as disabled and as logged in:

enter image description here


single sign on – With Microsoft 365 SSO. Delete user in third-party App when such user gets deleted in Active Directory

I have an application connected to Microsoft Active Directory using SSO. So basically users in the third-party App authenticate with Microsoft 365 using SSO however we would like to delete a user in the third-party app when such user gets deleted from our Active Directory.

Is this possible? Where could we find some documentation?

Airtable filter base collaborator field to logged-in user

I have a base with a Collaborator field, for which I would like to create a view that is filtered to the collaborator who is logged in. The SharePoint equivalent filter is:

  • Show items where column: Collaborator
  • Operator: is equal to
  • Value: [Me]

enter image description here

Is this possible in Airtable filters/views?

plugins – Method to restrict user access to posts within a role

To explain what I need, here is what I need to be done:

  1. Create a custom user role which has access only to a certain type of post.
  2. Within those posts also, the user can only see what he/she has added, and not have access to posts others have added.

So far, I have found the below plugins would fill in point 1. :


However, I could not find a good method to do no. 2.

I would require help with regard to this.

Media library does not display grid properly when accessed as non-admin user

Using Drupal core 9.1.7
Theme: Eclipse multipurpose theme

  1. Enable Media and Media library modules
  2. Add a field to a content type as Media (Entity reference)
  3. Setup form display to show this field as Media library
  4. Add content using this field
  5. Click Add media

Media will be displayed as grid. However, if you are adding content as a non-admin, existing media items are displayed one item in a row, while when the content is added as added, the items are displayed nicely formatted in a grid.

Inspected in a browser console errors are reported when logged on as non-admin user. No errors are reported when logged on as admin user.