2,131 questions with PowerShell-related tags

Sort by: Updated
0 answers

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…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-13T16:30:49.98+00:00
Bhasker Chittanoori 0 Reputation points
0 answers

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…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,755 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-10T07:52:08.4633333+00:00
Rafał Łakus 0 Reputation points
commented 2024-05-13T14:03:56.2166667+00:00
Daisy Zhou 18,956 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

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…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,242 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-13T08:47:48.07+00:00
Punitha Keswani 20 Reputation points
commented 2024-05-13T10:45:19.69+00:00
Punitha Keswani 20 Reputation points
1 answer

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…

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,140 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-04-23T14:49:55.79+00:00
Hanh Trinh 41 Reputation points
edited the question 2024-05-13T08:49:34.8666667+00:00
SadiqhAhmed-MSFT 38,736 Reputation points Microsoft Employee
1 answer

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.…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,959 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,396 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,767 questions
asked 2024-05-10T05:37:17.0433333+00:00
Glenn Maxwell 10,146 Reputation points
commented 2024-05-13T06:52:24.1933333+00:00
Deepanshu katara 5,370 Reputation points
2 answers

Import the .nupkg file

Hello, How can i import the .nupkg file to powershell? Please help

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-06T15:28:43.7033333+00:00
Boopathi Subramaniam 3,196 Reputation points
commented 2024-05-13T04:43:33.6366667+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 30,861 Reputation points Microsoft Vendor
0 answers

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…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2023-10-26T14:49:37.8933333+00:00
DaveK 1,851 Reputation points
commented 2024-05-12T23:47:45.04+00:00
Ryan ppp 0 Reputation points
2 answers One of the answers was accepted by the question author.

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…

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
5,619 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,771 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-09T17:27:25.7166667+00:00
Miranda-5426 20 Reputation points
commented 2024-05-11T06:43:59.57+00:00
Vasil Michev 96,436 Reputation points MVP
6 answers

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…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,755 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,279 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
662 questions
Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,023 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-03-13T16:45:06.1333333+00:00
Bobo DaMonkey 0 Reputation points
answered 2024-05-11T01:32:21.9933333+00:00
Clint Johnson 0 Reputation points
1 answer

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…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
247 questions
asked 2024-05-10T11:18:38+00:00
Azuretech 90 Reputation points
answered 2024-05-10T17:42:47.46+00:00
Gowtham CP 1,005 Reputation points
1 answer

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…

Microsoft Intune Application management
Microsoft Intune Application management
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Application management: The process of creating, configuring, managing, and monitoring applications.
889 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-07T13:01:14.3866667+00:00
Chris Network Admin 5 Reputation points
commented 2024-05-10T05:33:26.22+00:00
Crystal-MSFT 43,996 Reputation points Microsoft Vendor
1 answer

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,771 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,451 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-08T15:42:14.6566667+00:00
Michael DiGregorio 1 Reputation point
commented 2024-05-10T02:46:31.04+00:00
Crystal-MSFT 43,996 Reputation points Microsoft Vendor
0 answers

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…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,852 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-06T19:26:46.2033333+00:00
Mike Horton 0 Reputation points
commented 2024-05-09T20:41:46.0333333+00:00
Erland Sommarskog 102.1K Reputation points MVP
3 answers One of the answers was accepted by the question author.

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…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,852 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,396 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-09T04:53:35.4933333+00:00
Jimmy Afflick 20 Reputation points
commented 2024-05-09T18:42:28.8566667+00:00
Jimmy Afflick 20 Reputation points
2 answers

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…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-07T06:15:46.07+00:00
Audi911 0 Reputation points
answered 2024-05-09T18:28:35.5533333+00:00
Audi911 0 Reputation points
0 answers

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.…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-09T11:38:53.63+00:00
Anna Kosiorek 0 Reputation points Microsoft Employee
5 answers

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"

Outlook
Outlook
A family of Microsoft email and calendar products.
3,076 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,927 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,379 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,396 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-04-29T13:24:19.3866667+00:00
Sujith M 0 Reputation points
commented 2024-05-09T10:01:44.2766667+00:00
Mike Hu-MSFT 625 Reputation points Microsoft Vendor
0 answers

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
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-08T07:21:20.33+00:00
John P 0 Reputation points
commented 2024-05-09T06:42:33.5966667+00:00
John P 0 Reputation points
1 answer

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…

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,396 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-08T16:31:13.0966667+00:00
Jairo Javier Baleta Cali 106 Reputation points
commented 2024-05-09T01:49:11.9533333+00:00
Rich Matheisen 45,111 Reputation points
1 answer

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…

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
847 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,131 questions
asked 2024-05-08T09:25:16.3766667+00:00
Prabhjot Singh 145 Reputation points
answered 2024-05-09T00:29:19.31+00:00
Emi Zhang-MSFT 22,161 Reputation points Microsoft Vendor