2,093 questions with PowerShell-related tags

Sort by: Updated
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,384 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 questions
asked 2024-05-08T16:31:13.0966667+00:00
Jairo Javier Baleta Cali 106 Reputation points
answered 2024-05-08T17:02:49.3066667+00:00
Michael Taylor 48,736 Reputation points
0 answers

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,692 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,384 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 questions
asked 2024-05-08T15:42:14.6566667+00:00
Michael DiGregorio 1 Reputation point
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,093 questions
asked 2024-05-08T07:21:20.33+00:00
John P 0 Reputation points
commented 2024-05-08T15:18:58.2+00:00
Rich Matheisen 45,096 Reputation points
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,778 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 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,995 Reputation points
0 answers

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.
834 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 questions
asked 2024-05-08T09:25:16.3766667+00:00
Prabhjot Singh 145 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,093 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,714 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,093 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 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.
879 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 questions
asked 2024-05-07T13:01:14.3866667+00:00
Chris Network Admin 5 Reputation points
answered 2024-05-08T02:42:19+00:00
Crystal-MSFT 43,391 Reputation points Microsoft Vendor
1 answer

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,093 questions
asked 2024-05-07T06:15:46.07+00:00
Audi911 0 Reputation points
commented 2024-05-08T00:51:23.4066667+00:00
Audi911 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,714 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 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,678 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,549 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,384 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 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.
22 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,995 Reputation points
0 answers

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,093 questions
asked 2024-04-23T14:49:55.79+00:00
Hanh Trinh 41 Reputation points
commented 2024-05-07T15:12:36.29+00:00
Hanh Trinh 41 Reputation points
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,028 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,903 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,360 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,384 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 questions
asked 2024-04-29T13:24:19.3866667+00:00
Sujith M 0 Reputation points
edited the question 2024-05-07T11:26:33.47+00:00
Sujith M 0 Reputation points
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,782 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 questions
asked 2024-05-06T19:26:46.2033333+00:00
Mike Horton 0 Reputation points
edited the question 2024-05-07T02:31:33.8733333+00:00
CosmogHong-MSFT 23,321 Reputation points Microsoft Vendor
1 answer

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…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,914 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,384 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 questions
asked 2024-04-24T12:19:23.93+00:00
EnterpriseArchitect 4,801 Reputation points
commented 2024-05-07T02:16:03.7066667+00:00
EnterpriseArchitect 4,801 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,093 questions
asked 2024-05-06T15:28:43.7033333+00:00
Boopathi Subramaniam 3,196 Reputation points
edited an answer 2024-05-07T01:56:08.04+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 30,361 Reputation points Microsoft Vendor
1 answer

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

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 questions
asked 2024-05-01T11:55:56.1033333+00:00
Anant Bera 86 Reputation points
commented 2024-05-07T01:49:10.47+00:00
Rich Matheisen 45,096 Reputation points
6 answers One of the answers was accepted by the question author.

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…

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,384 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 questions
asked 2023-03-25T04:01:16.9866667+00:00
Hsieh, Iverson 65 Reputation points
commented 2024-05-07T01:28:12.0166667+00:00
Hsieh, Iverson 65 Reputation points
2 answers

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

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,914 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,384 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 questions
asked 2024-04-19T11:35:32.11+00:00
Richa Kumari 286 Reputation points
commented 2024-05-07T01:10:36.27+00:00
Neuvi Jiang 5 Reputation points Microsoft Vendor
2 answers

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…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,149 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,093 questions
asked 2023-09-11T09:44:11.8766667+00:00
Paul Jefferies 15 Reputation points
commented 2024-05-06T20:40:49.76+00:00
Christopher Mak 0 Reputation points