2,099 questions with PowerShell-related tags

Sort by: Updated
0 answers

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,099 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
234 questions
asked 2024-05-10T11:18:38+00:00
Azuretech 90 Reputation points
2 answers

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,572 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,708 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 questions
asked 2024-05-09T17:27:25.7166667+00:00
Miranda-5426 0 Reputation points
answered 2024-05-10T08:10:16.7533333+00:00
Vasil Michev 95,836 Reputation points MVP
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,696 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 questions
asked 2024-05-10T07:52:08.4633333+00:00
Rafał Łakus 0 Reputation points
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,929 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,388 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 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,652 questions
asked 2024-05-10T05:37:17.0433333+00:00
Glenn Maxwell 10,146 Reputation points
commented 2024-05-10T06:07:18.1266667+00:00
Deepanshu katara 5,145 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.
881 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 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,721 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,708 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,398 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 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,721 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,800 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 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 101.7K 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,800 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,388 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 questions
asked 2024-05-09T04:53:35.4933333+00:00
Jimmy Afflick 0 Reputation points
commented 2024-05-09T18:42:28.8566667+00:00
Jimmy Afflick 0 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,099 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,099 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,039 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,910 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,364 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,388 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 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 395 Reputation points Microsoft Vendor
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,133 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,131 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 questions
asked 2024-04-23T14:49:55.79+00:00
Hanh Trinh 41 Reputation points
answered 2024-05-09T09:11:26.37+00:00
SadiqhAhmed-MSFT 38,401 Reputation points Microsoft Employee
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,099 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,388 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 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,096 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.
838 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 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,011 Reputation points Microsoft Vendor
1 answer

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…

Windows
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.
4,792 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 questions
asked 2024-05-02T06:44:47.4566667+00:00
Simey de Klerk 0 Reputation points
answered 2024-05-08T13:18:55.1233333+00:00
Wesley Li 4,920 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Microsoft Exchange Online
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 questions
asked 2024-04-30T09:33:18.1533333+00:00
Trubianska, Juliana 46 Reputation points
edited the question 2024-05-08T06:00:19.9633333+00:00
Jayce Yang-MSFT 1,251 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

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

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,728 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,576 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 questions
asked 2023-06-28T06:17:43.4166667+00:00
ネパリ サンデャ 380 Reputation points
commented 2024-05-08T04:36:27.44+00:00
Tường Văn 0 Reputation points
1 answer

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

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,728 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 questions
asked 2024-05-01T17:09:13.0666667+00:00
Cheri Bell 1 Reputation point
commented 2024-05-07T22:58:33.15+00:00
Cheri Bell 1 Reputation point
1 answer

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…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,696 questions
Windows Hardware Performance
Windows Hardware Performance
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.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,551 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,388 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,099 questions
Windows Server Licensing
Windows Server Licensing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Licensing: Rules, regulations, and restrictions that define how software can be used and distributed.
23 questions
asked 2024-05-07T15:01:00.13+00:00
Stefan Van der bruggen 0 Reputation points
answered 2024-05-07T15:48:24.75+00:00
Wesley Li 4,920 Reputation points