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…
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…
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…
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…
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…
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 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…
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…
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…
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…
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"
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…
Risk and consequence when executing Kerberos password reset in a Hybrid Azure AD - OnPremise AD DS?
What are the risks and consequences of resetting the Kerberos krbtgt account during business hours using the steps defined…
Import the .nupkg file
Hello, How can i import the .nupkg file to powershell? Please help
Finding current Logged in user while running as System Object
Hello experts We are executing a PowerShell script that requires retrieving the following details: $fromDomain = $env:USERDOMAIN $computerName = $env:COMPUTERNAME $userProf = $env:USERPROFILE $username =…
Why can't I use Invoke-WebRequest twice?
Hi All, I need to rely on the first Invoke-WebRequest to piece together a URL for the second Invoke-WebRequest, but the second time is forcibly terminated. My Script: Import-Module -ErrorAction Stop…
How to get list of all attribute in AD
Hello, How To get list of all attribute in AD(default and custom attribute ) in csv file. Thanks Rich
How to launch Microsoft Edge to a specific Workspace?
How can I launch Microsoft Edge directly to a specific shared Edge Workspace, ie what is the command line switch? Preferably I would like to launch two workspaces at once; more preferably I would like to launch them on to the last desktop region that…