Microsoft Q&A

Windows Server PowerShell

4,766 questions

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.

Browse all Windows tags

4,766 questions with Windows Server PowerShell tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

New-MsolUser : You have exceeded the maximum number of allowable transactions. Please try again later.

I've been using this code for more than 2 months. And just got error 2 today ago. So I use this code : Import-CSV –Path C:\Office\4.csv |ForEach-Object { New-MsolUser -UserPrincipalName $_.username -DisplayName $_.displayname –Password $_.Password…

Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
404 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.
4,766 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
418 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
3,161 questions
asked 2023-03-31T14:44:05.8433333+00:00
marialozy 0 Reputation points
edited a comment 2023-03-31T16:09:00.1766667+00:00
marialozy 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to install SmbBandwidthLimit in Powershell?

I am trying to install SMB Bandwidth Limit feature but I am getting error, showing "The SMB Bandwidth Limit Feature is not installed". When I am trying to install it using Install-WindowsFeature FS-SMBB , it is showing "The term…

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.
4,766 questions
asked 2023-03-27T09:04:32.0466667+00:00
Ayushi Chaudhuri 165 Reputation points
answered 2023-03-31T14:23:47.4433333+00:00
Jinfa Zhou 0 Reputation points
2 answers

Error when adding many office users with powershell

I'm trying to create a user (office365) using powershell a lot Import-CSV –Path C:\PODCAST\file.csv |ForEach-Object { New-MsolUser -UserPrincipalName $_.username -DisplayName $_.displayname –Password $_.Password -UsageLocation $_.Location…

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.
4,766 questions
Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
404 questions
asked 2023-03-30T12:45:39.53+00:00
marialozy 0 Reputation points
commented 2023-03-31T14:14:51.8666667+00:00
marialozy 0 Reputation points
1 answer

How to change the bytes in and bytes out value using netsh?

I was monitoring the network traffic of my machine using netsh command. When I have used netsh interface ip show subinterfaces command, it shows all the network interfaces along with other parameters, like "bytes in" and "bytes out".…

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.
4,766 questions
asked 2023-03-31T10:02:36.0233333+00:00
Ayushi Chaudhuri 165 Reputation points
answered 2023-03-31T12:28:01.7333333+00:00
MotoX80 24,801 Reputation points
1 answer

Delete/Add A/PTR Record script

I need help with below script and what is wrong with it param( [Parameter(Mandatory=$true)] [string]$ARecord, [Parameter(Mandatory=$true)] [string]$Zone, [Parameter(Mandatory=$true)] [string]$DnsServer ) # Check if A Record…

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.
4,766 questions
asked 2023-03-31T05:20:21.5033333+00:00
JoeyD 1 Reputation point
answered 2023-03-31T10:21:28.74+00:00
Limitless Technology 17,821 Reputation points
6 answers

Unable to run Set-Transport Config from Powershell for Office 365 Tenant

![156412-error.jpg][1] [1]: /api/attachments/156412-error.jpg?platform=QnA I am unable to run the Set-Transport keeps coming up with this error Set-TransportConfig : The term 'Set-TransportConfig' is not recognized as the name of a cmdlet, function,…

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.
4,766 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.
6,334 questions
asked 2021-12-09T22:27:29.923+00:00
Packiyarajan Ganesamoorthy 21 Reputation points
commented 2023-03-31T07:10:14.8933333+00:00
Admin Perimeters 20 Reputation points
3 answers

Text 4 Shell Vulnerability

Hello All, I am having the Several systems which is having the Text 4 Shell vulnerabilities. The recommendation is to remove the .Jar file or Update the .Jar file. Can anyone please advise on how to remove the .jar file from all the systems. It is on the…

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.
4,766 questions
asked 2023-03-01T06:50:59.7+00:00
Loganathan R 66 Reputation points
edited the question 2023-03-31T06:39:44.26+00:00
AllenLiu-MSFT 24,521 Reputation points Microsoft Vendor
1 answer

What permissions are required by an Azure app to call a Teams powershell command?

I want to connect powershell to a Teams tenant using Application-based Access Tokens and then execute the Get-CsCallQueue cmdlet. I can connect successfully with my AppID but I get permission denied when I execute the cmdlet. Does anyone know what Azure…

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,678 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.
4,766 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
1,899 questions
asked 2023-03-16T12:51:09.3+00:00
David - 0 Reputation points
commented 2023-03-31T05:55:38.6533333+00:00
Sandeep G-MSFT 5,256 Reputation points Microsoft Employee
1 answer

How can I connect to my Azure account?

"Hello, I accidentally deleted the verification code for my authentication app, which prevents me from accessing my Azure account. Is there a solution to reconnect me?" I hope this helps!

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.
4,766 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
25,550 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,512 questions
asked 2023-03-30T12:19:10.9066667+00:00
Hazem Jebali 0 Reputation points
edited the question 2023-03-31T00:35:40.64+00:00
Kael Yao-MSFT 24,596 Reputation points Microsoft Vendor
1 answer

how to get the list of applications report(.csv file) assigned to user in azure using Powershell(Script)/Command.

Hi, I need to download the report for the list of applications assigned to the user in Azure AD via PowerShell Script/Command . need help in this , thanks in advance.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
418 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,678 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.
4,766 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
4,007 questions
asked 2023-03-30T14:04:14.8266667+00:00
test A 66 Reputation points
edited an answer 2023-03-30T20:08:08.7433333+00:00
Alfredo Revilla (MSFT) 17,096 Reputation points Microsoft Employee
1 answer

how to get reverse lookup zone when adding new A record and PTR with powershell

I am trying to create new A and PTr record in DNs but I dont know how to lookup the reverse lookup zone or the IP any idea?

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
418 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.
4,766 questions
asked 2023-03-30T16:55:06.4266667+00:00
JoeyD 1 Reputation point
answered 2023-03-30T19:24:23.8733333+00:00
Rich Matheisen 36,331 Reputation points
4 answers

How to copy folder/subfolders from source to destination using csv in powershell

Hello, I am a new to Powershell and I have been given a task to copy all folders/subfolders files from source to destination using csv file in powershell. I have managed to pull files from source to one destination but what if I need to copy the same…

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.
4,766 questions
asked 2021-09-16T18:50:38.817+00:00
Akshay Solanki 1 Reputation point
commented 2023-03-30T13:52:56.19+00:00
MotoX80 24,801 Reputation points
1 answer

Need script to sent Email of cpu and diskspace and memory usage on a list of server windows server

Need powershell script to sent Email of cpu and diskspace and memory usage on a list of server windows server

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.
4,766 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,891 questions
asked 2023-03-30T06:58:13.6866667+00:00
mahmoud fikry rashad 0 Reputation points
answered 2023-03-30T11:33:31.64+00:00
Limitless Technology 17,821 Reputation points
1 answer

Connect-ExchangeOnline: Write-ErrorMessage : Expired or Invalid pagination request. Default Expiry time is 00:30:00

I wrote a script a while back that gets the the UserPrincipalName, DisplayName, LastLogonTime, CreationTime, Inactive Days, MailboxType, AssignedLicenses, ItemCount, MB Size, and Roles from MSOnline and Exchange Online. It works fine on one server and my…

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
3,161 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.
4,766 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,315 questions
asked 2022-09-26T17:20:13.937+00:00
Dane Briggs 156 Reputation points
commented 2023-03-30T10:48:44.2833333+00:00
Gerrit Gogel 0 Reputation points
1 answer

Unattended Scripts to connect

For the MFA enabled account I need to run the PowerShell scripts without any user intersection for the below connections 1.Connect-MsolService 2.Connect-SPOService 3.Connect-MicrosoftTeams Please help to get the steps to connect.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
418 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.
4,766 questions
asked 2023-03-30T05:26:56.15+00:00
Ameerm2023 0 Reputation points
commented 2023-03-30T10:25:57.0333333+00:00
Ameerm2023 0 Reputation points
1 answer One of the answers was accepted by the question author.

What is MinBandwidthWeightAction in NetQos Policy?

I was searching for a command to allocate a certain value to the bandwidth and came across the MinBandwidthWeightAction parameter of NetQosPolicy. Does anyone know what is the function of it?

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.
4,766 questions
asked 2023-03-30T06:22:56.95+00:00
Ayushi Chaudhuri 165 Reputation points
commented 2023-03-30T08:40:10.6666667+00:00
Ayushi Chaudhuri 165 Reputation points
1 answer One of the answers was accepted by the question author.

add normal user or users to local administrator group for certain time through GPO and PowerShell

Hi besides adding a normal user to the local administrator manually on his computer. how to add a normal user or users to the local administrator group on their computer for a certain time, where the user or users are automatically removed from the local…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
418 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.
4,766 questions
Windows Group Policy
Windows Group Policy
A feature of Windows that enables policy-based administration using Active Directory.
2,021 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
6,739 questions
asked 2023-03-29T10:02:20.36+00:00
SysAdmin 101 Reputation points
accepted 2023-03-30T07:04:37.4866667+00:00
SysAdmin 101 Reputation points
2 answers

How to extract used or free ips for all vnet with ip address space in powershell script

Extract used or free ips for all vnet with subnet and also giving the ip address space for bith vnet by using powershell. and also get the result for extracting output in CSV file.

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.
4,766 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
4,933 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,678 questions
asked 2023-03-27T11:19:14.5166667+00:00
Saranya Manivannan 0 Reputation points
commented 2023-03-29T12:55:36.2533333+00:00
KapilAnanth-MSFT 11,611 Reputation points Microsoft Employee
1 answer

windows winrm server keeps replying 400 when I try to send encrypted kerberos message over HTTP

To start with, our product is written in Java, we use a custom transport that wraps org.apache.http.client and javax.security.auth to communicate to windows Remote management service. What we have now: firstly we authenticate through kerberos, then send…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,891 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.
4,766 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
1,949 questions
asked 2023-03-28T19:43:05.5366667+00:00
zbeyebee 20 Reputation points
answered 2023-03-29T11:25:40.86+00:00
Limitless Technology 17,821 Reputation points
1 answer One of the answers was accepted by the question author.

How to give random bandwidth value using Windows Powershell?

I want to assign a random bandwidth value to my Windows machine using Powershell only. Does anyone know any commands to do this?

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.
4,766 questions
asked 2023-03-29T06:20:06.4766667+00:00
Ayushi Chaudhuri 165 Reputation points
accepted 2023-03-29T11:03:19.56+00:00
Ayushi Chaudhuri 165 Reputation points