5,389 questions with Windows Server PowerShell tags

Sort by: Updated
0 answers

Need to configure Report to check daily backup, patch and Reboot status for azure virtual machine using Powershell script

Need to configure Report to check daily backup, patch and Reboot status for azure virtual using Powershell script

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,134 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,196 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,389 questions
asked 2024-05-10T17:57:15.4233333+00:00
Himanshu Garg 0 Reputation points
commented 2024-05-10T20:55:02.9566667+00:00
SadiqhAhmed-MSFT 38,401 Reputation points Microsoft Employee
2 answers

visual studio docker error: NU1301: Unable to > load the service index for source

Dear All. Can not containerize .NET Web Api project in Visual Studio 2022. Below is my dockerfile: FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src COPY…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,643 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,389 questions
asked 2023-06-17T07:23:18.7533333+00:00
Teymur Hajiyev 35 Reputation points
commented 2024-05-10T19:19:14.9633333+00:00
Manny Saleta 0 Reputation points
1 answer

Powershell broke - basic commands not working, not loading modules from common folders

At some point my Powershell broke. Standard commands like 'Write-Host' stopped working. I was using VS Code on Windows 10 and using PowerShell 5.1 Checked all the environmental variables, everything looks fine. Couldn't fix it and got a new…

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,389 questions
asked 2021-01-05T04:12:12.313+00:00
Mikhail Ladanov 1 Reputation point
commented 2024-05-10T18:57:20.2866667+00:00
Rich Matheisen 45,096 Reputation points
2 answers

DFSR - Setting MaxOfflineTimeInDays resets RPC port

I am using Windows Server 2016 and am attempting to set the DFSR attribute MaxOfflineTimeInDays. The script line I am using is resetting the static RPC port I have set. To set the static RPC port I used the following cmdlet set-dfsrserviceconfiguration…

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,389 questions
asked 2021-03-16T15:57:46.427+00:00
Nick T 1 Reputation point
commented 2024-05-10T18:20:44.1266667+00:00
IGOR ADILSON ARAUJO DE MENDONCA 0 Reputation points
2 answers

How to use Get-AppXPackage to display only version?

Hi, When I run the "x" command, it shows the result below. Which parameter should I use so that it only shows the "Version" line? Name : Microsoft.Windows.NarratorQuickStart Publisher : CN=Microsoft Corporation,…

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,389 questions
asked 2023-01-22T14:26:13.9733333+00:00
Darien Chiba 41 Reputation points
answered 2024-05-10T06:27:48.5433333+00:00
Tyrone 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,932 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,389 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 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,664 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
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,808 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,389 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 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

How to access user details for those who have not logged in to Azure Virtual Desktop for 90 days

I am looking for information on how to access the details of inactive users who have not logged into Azure Virtual Desktop for 90 days. Specifically, I would like to know their usage in the file share as well as their last logon details.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,721 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,375 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,389 questions
asked 2024-05-07T04:33:28.7633333+00:00
Swaroop Gowda D 0 Reputation points
commented 2024-05-09T15:34:40.1+00:00
kobulloc-MSFT 23,646 Reputation points Microsoft Employee
0 answers

如何批量导出DFS服务器上文件夹ACL权限

如何批量导出DFS服务器上文件夹ACL权限。 是否有相应的脚本或者第三方工具可以实现。

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,480 questions
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,795 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,388 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,205 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,389 questions
asked 2024-05-09T09:20:39.99+00:00
添添 朱 0 Reputation points
commented 2024-05-09T15:07:55.4666667+00:00
Rich Matheisen 45,096 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,041 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,911 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,369 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,389 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 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

How to Delete Duplicate Documents / Files in sharepoint online?

There is too much duplicates files and documents in my company's sharepoint online. our company MS cloud space had reached its limit thus these duplicates files had to be delete to free up space. Thanks

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,236 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,737 questions
SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
513 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,818 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,389 questions
asked 2024-05-09T03:50:35.2466667+00:00
Joshua Lim 0 Reputation points
answered 2024-05-09T08:58:07.55+00:00
Jing Zhou 2,240 Reputation points Microsoft Vendor
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,389 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 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
5 answers

Map network drive to computer without user sign in

Hello all, I need to map a cloud drive to the file server. It works when I manually map it but it needs to be available after the server restarts without requiring user sign in. I created a PowerShell script and works when I run it with a regular user…

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,389 questions
asked 2021-11-15T12:26:39.567+00:00
IsacICT 1 Reputation point
commented 2024-05-08T18:13:01.96+00:00
RapidCloudIT 0 Reputation points
2 answers One of the answers was accepted by the question author.

Powershell to update Intune DevicemanagementName

Hi everyone, I'm looking to use powershell to modify some Android device Management Names in Intune. I've managed to figure out how to find the device I want to change using the Get-IntuneManagedDevice. $Device=Get-IntuneManagedDevice…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,715 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,389 questions
Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,734 questions
asked 2021-12-23T22:34:08.213+00:00
Ed K 21 Reputation points
commented 2024-05-08T15:28:59.7933333+00:00
Alan McCulloch 1 Reputation point
1 answer

Connect-OrganizationAddInService using Entra ServicePrincipal ID

I am trying to find if someone has successfully done this, basically automatize the deployment of an Add-in to Office 365 Client Secret: "1111111111111111111" (This is a secret that should be protected and not shown, I am having a look how to…

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.
4,210 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
516 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,389 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,664 questions
asked 2024-04-25T20:01:49.8666667+00:00
Juan Perez 0 Reputation points
edited a comment 2024-05-08T08:05:58.31+00:00
Juan Perez 0 Reputation points
2 answers

Issues to create or modify files in Scripts Folder in Sysvol, Windows server 2012 (Access denied)

Issues to create or modify files in Scripts Folder in Sysvol, Windows server 2019 (Access denied) after in-place upgrade the windows server from 2012 R2 to 2016 then 2019

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,480 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,205 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,932 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,389 questions
asked 2024-04-30T04:38:39.93+00:00
Sambhaji Khairnar 0 Reputation points
commented 2024-05-08T07:31:12.8966667+00:00
Daisy Zhou 18,721 Reputation points Microsoft Vendor
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,699 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,389 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 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,995 Reputation points
3 answers

How to prevent installation of application on system . using cmd or powershell or service?

Why disabling/stopping windows MSI service wont stop installing/uninstalling of the applications?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,480 questions
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,795 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,389 questions
asked 2024-05-02T10:04:32.0233333+00:00
commented 2024-05-07T15:12:33.19+00:00
3 answers

Using Get-Certificate with a Microsoft CA

I would like to use Get-Certificate with a Microsoft CA. https://learn.microsoft.com/en-us/powershell/module/pki/get-certificate?view=windowsserver2022-ps The documentation doesn't really show many examples. Does anyone know how to do this?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,205 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,389 questions
asked 2024-05-01T18:01:44.4466667+00:00
ComputerHabit 781 Reputation points
answered 2024-05-07T11:56:15.85+00:00
ComputerHabit 781 Reputation points
2 answers

PKI - Certification Authority (CA): IssuingCA, certificate with "unknown error"

Hi everyone, I have a couple of CAs that I manage, they are Enterprice CA with Root Server in workgroup (not in domain). I have an error in the IssuingCA regarding the certificate and I think it happens when the Root CRL expires, if I copy the Root…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,480 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,205 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,932 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,389 questions
asked 2024-04-28T13:56:17.1266667+00:00
49885604 145 Reputation points
commented 2024-05-07T07:59:14.9833333+00:00
49885604 145 Reputation points