How to enable schedule patching on azure vm using powershell
I am using below command as per documentation https://learn.microsoft.com/en-us/azure/update-manager/prerequsite-for-schedule-patching?tabs=new-prereq-powershell%2Cauto-portal&WT.mc_id=Portal-Microsoft_Azure_Automation#code-try-4 But it is asking to…
Get-MgUserAuthenticationMethod Command doesn't return any information
I am trying to build a PowerShell script we can use to run hourly that would basically look for users who have recently signed up for Multifactor Authenticator or have Authenticator setup on their account in general and then add them to the group that…
How to configure Group Policy "Turn on script execution" for Windows 10 LTSB 2016?
Hello! I am having trouble setting the "Turn on script execution" option in Group Policy -> User Configuration -> Administrative Templates on Windows 10 LTSB 2016. No matter if I choose "Disabled" or "Enabled," it has…
AzureAD group membership
Hi All In our hybrid environment, all users are initially created on-premises and then synced to Azure AD. I've created five security groups within Azure AD. Specifically, I've granted ownership of these five AD groups to a user, let's call them user1.…
How do I use InTune to change font on all devices
I am having a problem with the new Aptos font, and I am trying to change all the device's font in InTune back to Arial. The problem I have is that Outlook for iOS doesn't seem to like Aptos too much- and I am trying to find a way to set the default font…
Graph API: ManagedDevices not updating Primary User when changed from the Intune Portal
I've noticed that if I change the primary user for a device in the Intune Portal, that change is not reflected when making a Get request to "https://graph.microsoft.com/v1.0/devicemanagement/manageddevices/<deviceID>" Oddly, though, if I…
SetDatabaseConnection WMIMethodException Error
I'm using a slightly modified version of the script found here: https://blog.aelterman.com/2018/01/03/complete-automated-configuration-of-sql-server-2017-reporting-services/. The modification is that I'm pointing to (local)\SQLExpress on line 41 as the…
NT service\SQLTELMETRY provided for NT service\SQLTELMETRY$XCLERAINST is either not a valid account or cannot be used for this service
Hi Experts, While I was trying to install the 2019 MS SQL via PowerShell. I am getting the below error message. The following error occured: NT service\SQLTELMETRY provided for NT service\SQLTELMETRY$XCLERAINST is either not a valid account or cannot…
Does anyone know how to extract the OS language of PCs in Intune via Powershell
Hello, Can someone please share me a script on how I can go about extracting the OS language of my devices in Intune. I have scoured the internet and came across Graph Beta which seems to be able to do it but I cannot figure out how to do it. I'm…
Using Managed Identity for Application Insights in Powershell
Hello, we are using logging with Application Insights in our Powershell scripts. We would like to move and use the Managed Identity with Connection String auth. I couldn't find resources how to do so.…
Can someone explain to me how to Get Mailbox folder permissions in recoverable items use PowerShell? Its possible or not
Get-MailboxFolderPermission -Identity " testid@223.microsoft.com\Recoverable Items"
Update snapshot Property by using Azure Automation account
Hello, I have a Backup vault that takes snapshot for OS disks and shared disks everyday, during 14 days. When checking the snapshot file, the network setting is enabled public access from all network. Because there are a lot of snapshot file that I need…
Connect-ExchangeOnline Error using AccessToken
Im trying to connect using Connect-ExchangeOnline -DelegatedOrganization $upnDomain -AccessToken $accessToken -UserPrincipalName $upn -ShowProgress $false But for few tenants getting below error. Please help Unexpected character encountered…
Powershell Get-Content loads in a previous version of a file that has been modified
I have a problem with the Get-Content command since it often loads an older version of the file it is reading. When this happens, you have to run the Get-Content command several times to update it to load the latest version of the file. I have searched…
Script to check if files or folders syncing with Onedrive
Hi Team, Hope you are doing well. I am facing the issue related to get the Onedrive sync status via Powershell. Like my concern is before unlinking the account from onedrive need to check the Onedrive sync status, means if any files or folders are still…
File System Ownership problems with USB hard drive (Windows 10, Windows 11, Seagate External USB Drive))
I have a Seagate external USB hard drive that I am using to back up photos. I am having a recurring problem with this drive, that when I use it on a new computer, I get a "access denied" error, that can be fixed by running the takeown command…
Get-EXOMailbox -> How to obtain all mailboxes with pagination
Hi, I am using cmdlet Get-EXOMailbox -resultSize unlimited. But this return a lot of data and it take a lot of time. I would like to use some skip or nextLink but it is not working. I tried this: Get-EXOMailbox | select-object -Skip 10 -First 10…
Modily site URL into csv for granting permission to document library
I wan to run following script by modifying SiteURL in csv same as the following csv How can I modify site URL into csv so I could use script smoothly #Config Variables $SiteURL = "https://tsubaki518.sharepoint.com/sites/allcompany" $CSVFile =…
How to Get the Folder and all Sub-Folders GUIDs using Power Shell
I have a request to provide a list of sub-Folder GUIDs. I can generate one Folder GUID from this script, but I need the sub-folders within it. Can you assist with a script that will provide a list of sub-folder GUIDs? Cheri #Variables $SiteURL =…
hoe kan ik het probleem oplossen livekernelevent hardware probleem zodat windows niet goed functioneerd zegt ie
LiveKernelEvent Code: 144 Parameter 1: 3003 Parameter 2: ffff988e8d4875b0 Parameter 3: 40010000 Parameter 4: 0 Versie besturingssysteem: 10_0_19045 Servicepack: 0_0 Product: 256_1 Versie van…