Update all users alias with new domain
I am not expert with PS. I am trying to remove primary domain from tenantA to TenantB. For that i have chnaged all users email and upn domains to default oldcompay.onmicrosoft.com. But now to completely remove the primary domain, the other dependency…
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…
How to create multiple vm by using powershell
Hi Team, I am creating multiple virtual machine by using powershell script. I am getting below error. How can I fix this. New-AzNetworkInterface : Cannot attach a Standard public IP address…
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…
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.…
Import the .nupkg file
Hello, How can i import the .nupkg file to powershell? Please help
Connect-msolservice issues while using Import-CliXml credentials
Hi, I'm having some trouble figuring out why some automation wont' work. I'm moving a script from one server which is to be decommissioned so just in process of testing everything is setup as needs so installed required PowerShell modules, updating…
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…
Why is my DNS servers not updating when connecting to a hotspot?
This is on a Surface Pro running Windows 10. Pro The issue is, when I connect to a hotspot outside my home, the DNS servers do not update. They still show the servers from when I was connected to my home Wi-Fi. This is an issue since the first two…
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…
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"
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…