Forum Discussion
RippieUK
Dec 06, 2021Brass Contributor
Conditional Access: Can someone please explain sign-in frequency and persistent browser session
Good morning, afternoon and evening everyone. So can someone please explain the difference between Sign-in Frequency and persistent browser session. Do I need to use both? I can read that sig...
NickNeo
Jun 28, 2024Copper Contributor
Hi Guys.
I have a similar question. I want that everytime i turn on the computer my office credentials, including browsers and onedrive, ask again for my password once for the duration of the session. I am trying with Azure Portal Sign In Frequency and Persistent Browser. Can someone help me archive it? I believe i'm close but when i use "every time" frequency onedrive goes nuts and tries to log in continuously.
I am using a powershell script to make all onedrive files offline.
# Username holder
$username = "myname"
# Full paths to your OneDrive and SharePoint folders
$OneDrivePath1 = "C:\Users\$username\OneDrive - companyname\home"
$OneDrivePath2 = "C:\Users\$username\companyname"
# Function to set files in a directory to be available offline
function Set-FilesOffline {
param (
[string]$Path
)
# Get all files in the specified directory recursively
$files = Get-ChildItem -Path $Path -Recurse -File
# Loop through each file and make it available offline
foreach ($file in $files) {
attrib.exe +U -P $file.FullName
}
}
Any detailed answer will be greatly appreciated.