8,196 questions

Sort by: Updated
1 answer

How can we avoid annoying gibberish (mojibake) in PSRemoting output ?

We use PowerShell Remoting (PSRemoting) for various maintenance tasks on member servers and workstations in a bilingual environment (English and French). Output from Microsoft utilities are perfectly displayed in either language when run on the local…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-11-16T16:15:05.43+00:00
Serge Caron 65 Reputation points
answered 2026-11-16T17:05:46.2+00:00
Ronald Sabiiti 1,995 Reputation points Independent Advisor
1 answer

Authenticate Connect-SPOService without user interaction

Hi Experts, I am using Connect-SPOService to connect to the SharePoint admin site and then making setting changes to it. I have created a script for this purpose and we are intending to run the script using a pipeline in DevOps. But in the whole…

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
asked 2021-07-30T11:05:58.777+00:00
Garima Das 1,041 Reputation points
answered 2026-11-15T08:16:40.2166667+00:00
Salamat Shah 990 Reputation points MVP
11 answers

Create a local Admin user from AD with power shell script

Hi, I want to create a local Admin user on the client machine from existing AD user. For example the AD user is called "smustermann" but the local admin user on the client machine should be called "smustermannChief" The password…

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
asked 2022-03-16T15:50:27.72+00:00
PerserPolis-1732 1,951 Reputation points
edited an answer 2026-11-13T04:52:42.66+00:00
PerserPolis-1732 1,951 Reputation points
0 answers

How to deploy Arc Extension Microsoft.Azure.Automation.HybridWorker via REST API

Hi, I am trying to deploy an Microsoft.Azure.Automation.HybridWorker via powershell and REST API but it fails with the following error: {"Message":"Specified machineId is not associated with automation account. This is the method I am…

Azure Arc
Azure Arc

A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.

648 questions
Azure Automation
Azure Automation

An Azure service that is used to automate, configure, and install updates across hybrid environments.

1,488 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2022-02-02T15:50:27.613+00:00
Peter Smit 1 Reputation point
2 answers

Using "Connect-IPPSSession" with credentials

Is it possible pass the credentials: username and password to connecto to EOP by the command "Connect-IPPSSession -ConnectionUri https://ps.protection.outlook.com/powershell-liveid/"? I know that I could youse -UserPrincipalName but this…

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

8,185 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2021-12-27T14:33:40.68+00:00
Marc 611 Reputation points
edited an answer 2026-11-13T04:42:33.5066667+00:00
Marc 611 Reputation points
1 answer

What PowerShell can grant a specific user Admin permissions on ALL site collections in SharePoint Online?

Hi there What PowerShell can grant specific user Admin permissions on ALL site collections in SharePoint Online? Thank you.

Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
asked 2021-12-22T00:22:39.467+00:00
frob 4,231 Reputation points
edited an answer 2026-11-13T04:42:05.06+00:00
frob 4,231 Reputation points
1 answer

Is there any PowerShell that can read from a CSV file and create SharePoint groups and add members like this?

Hi there Is there any PowerShell that can read from a CSV file and create SharePoint groups and add members? CSV file looks like this: Users, SharePointGroupName John@Anonymous .com, Group 1 John@Anonymous .com, Group 2 …

Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
asked 2021-08-09T22:12:10.17+00:00
frob 4,231 Reputation points
answered 2026-11-13T04:40:25.8633333+00:00
Marcin Policht 113.3K Reputation points MVP Volunteer Moderator
1 answer

What is wrong? How can I Fix it?

Issue scripting: Import-CSV address BulkuserMailboxes.csv | ForEach {New-Mailbox -Alias $ .alias -Name $.name -userPrincipalName $.UPN -Database “Mailbox Database 2091411052” -OrganizationalUnit Users -Password $Password} csv text: Alias…

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

8,185 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2021-12-01T19:19:16.29+00:00
Abdel loukan 21 Reputation points
edited an answer 2026-11-13T04:39:29.97+00:00
Abdel loukan 21 Reputation points
0 answers

Switch Logged in user using powershell

Logging in as a Admin, I'm creating a Scheduled Task to be run as a User. The task when fired is run in background. However I need it to be run in foreground. I read that if the same user is logged in, Task Scheduler will run the same task in foreground.…

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
asked 2021-01-09T01:54:49.94+00:00
SP 41 Reputation points
1 answer

How to create a SharePoint list item with a PowerShell script without installing module(s)

Hello! Has anyone figured out how to create a new SharePoint list item via PowerShell script WITHOUT having to install modules? I have a simple 4-column SharePoint list & need to add records to it via PowerShell script. Most of the…

Microsoft 365 and Office | SharePoint | Development
Windows for business | Windows Server | User experience | PowerShell
asked 2025-01-27T22:55:17.97+00:00
CodeMeUp 0 Reputation points
edited an answer 2026-11-13T04:10:57.19+00:00
CodeMeUp 0 Reputation points
0 answers

Get the information of the logged on user in O365 with GRAPH and Powershell.

Hello, I want to get these properties for automatically create the signature in Outlook. I already created the GRAPH application with user.read permission and a client secret. I can get the token via the module MSAL-PS but I receive an authentication…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph
asked 2024-02-19T12:00:57.0266667+00:00
1 answer

Changing user password in Azure AD with MgGraph

Hello, I'm creating script that get finds wanted service accounts in Azure AD and then changes their password. To find wanted account I'm using following line which works fine $accounts = Get-MgUser -ConsistencyLevel eventual -Count userCount -Search…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
asked 2023-10-25T07:20:02.8966667+00:00
bombbe 1,446 Reputation points
edited an answer 2026-11-13T03:51:51.5+00:00
bombbe 1,446 Reputation points
0 answers

Is it possible to get Powershell runbook output via HTTP?

I've set up an Azure Automation Account and have created some Powershell runbooks which execute successfully via Powershell and HTTP POST requests. However, while I am able to view the output from the runbook's job history, or from Powershell, I cannot…

Azure Automation
Azure Automation

An Azure service that is used to automate, configure, and install updates across hybrid environments.

1,488 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2023-09-08T08:41:52.1833333+00:00
Thomas Lu 21 Reputation points
1 answer

Microsoft.Graph.Users module New-MgUser "-Authentication" parameter

Hello, I have tried adding an email authentication method while creating a new user via the New-MgUser command. At the current time, it looks like this: New-MgUser -DisplayName 'Test User' -Surname 'User' -GivenName 'Test' -AccountEnabled -OtherMails…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
asked 2023-07-28T11:24:34.17+00:00
Gregor Anton Grinč 151 Reputation points
edited an answer 2026-11-13T03:46:05.4533333+00:00
Gregor Anton Grinč 151 Reputation points
0 answers

Can anyone help me with Azure PowerShell function

I need to create a Azure PowerShell timer function to transfer files from storage account container to SharePoint. I have tried all possible ways but luck. Any help highly appreciated. Thanks,

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

6,394 questions
Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
asked 2023-07-19T12:37:43.13+00:00
Mohammed Sohel 46 Reputation points
2 answers

How to specify the Azure function in the Powershell New-AzApiManagementBackend command?

I'm following along with this blog/tutorial: https://techcommunity.microsoft.com/t5/azure-paas-blog/import-azure-function-app-to-azure-api-management/ba-p/2594810 I have created a powershell script that uses the commands in the tutorial. When I add the…

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

2,803 questions
Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

6,394 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2023-06-13T23:37:50.91+00:00
Siegfried Heintze 1,866 Reputation points
edited an answer 2026-11-13T03:42:23.8866667+00:00
Siegfried Heintze 1,866 Reputation points
3 answers

Unable to download files from FTP server

Problem Description: I put a file on FTP server (server created in Windows 10) so clients can download that file. The problem is that clients connected to the Internet with valid IP addresses can download this file, but clients connected to the Internet…

Windows development | Internet Information Services
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
Windows for business | Windows Client for IT Pros | User experience | Other
asked 2023-06-20T05:11:38.54+00:00
36548900 0 Reputation points
edited an answer 2026-11-13T03:42:08.0766667+00:00
36548900 0 Reputation points
0 answers

Automatic generation of SAS Key

How to automatically generate SAS Key for a given blob in Gen 2 storage account and store the key in key vault secret automatically post generation.

Azure Storage
Azure Storage

Globally unique resources that provide access to data management services and serve as the parent namespace for the services.

3,845 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2023-06-14T03:42:06.7333333+00:00
NIKHIL KUMAR 106 Reputation points
1 answer

Get User OneDrive Drive ID

Is there a way to get the OneDrive Drive ID of a User using PowerShell Microsoft.Graph.Files module? I have tried: Get-MgUser -userid {UserPrincipalName / Id} -property Drive | Select-object -expandproperty Drive The results I get are: Id Name…

Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph
asked 2023-06-06T19:53:25.4366667+00:00
MattGlomski-3549 0 Reputation points
edited an answer 2026-11-13T03:39:18.2833333+00:00
MattGlomski-3549 0 Reputation points
4 answers

Search for Check-In and Check out files in Sharepoint Document Library

Hi, We have a customer who doesn't have a file server and their only file storage is Microsoft SharePoint. One of their staff is having a hard time monitoring the files whether they're Check-In or Check-out. Made my research and found a set of cmdlets on…

Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
asked 2020-10-06T07:50:32.963+00:00
Jefferson Co 161 Reputation points
edited an answer 2026-11-13T03:21:12.99+00:00
Jefferson Co 161 Reputation points