2,634 questions with PowerShell-related tags

Sort by: Updated
0 answers

Variable with Word's Content.Text has differences from its' Set-Content'ed simple text file; contents handelted differenly by regex

$documentText = @" Frau Anna Mustermanowa Hauptstr. 1 48996 Ministadt per beA per Mail: [email protected] AKTEN.NR: SACHBEARBEITER/SEKRETARIAT STÄDTL, 2904/24/SB Sonja Bearbeinenko +49 211 123190.00 21.11.2024 …

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
890 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-21T12:02:02.6566667+00:00
Evgeny Fishgalov 0 Reputation points
1 answer One of the answers was accepted by the question author.

Automating Daily Metric Collection and Storage in Private Azure Environment

I want to extract the metric values of VMs configured in the Azure environment and automatically save them as CSV files to a Storage Account on a daily basis. While my PowerShell script is working, I am facing difficulties in saving the data to the…

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.
3,243 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,264 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-19T01:45:20.81+00:00
Yu-Jeong Seo 130 Reputation points
commented 2024-11-21T11:54:10.2466667+00:00
Ashok Gandhi Kotnana 860 Reputation points Microsoft Vendor
2 answers

Guest access expiration report for SharePoint Online site?

Hi, In my tenant, Guest access expiration is set for 180 days. I need to generate report for a SPO site that how many guests' users already lost access and how many guest users going to lose the access in future. Is there a way to get this report using…

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,067 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-14T18:13:51.1166667+00:00
Prakash Kumar Singh 40 Reputation points
commented 2024-11-21T09:58:11.8466667+00:00
Yanli Jiang - MSFT 27,161 Reputation points Microsoft Vendor
1 answer

Get free/used disk space on all our VMs for reporting purposes

Hi, Within our corporate environment, we have hundreds of Windows Azure VMs deployed to users via Citrix DaaS. For monitoring purposes, we would like to see free/used space on C drive. The goal is to have a reports showing disk space status on C drive…

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,335 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,055 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-15T15:10:22.89+00:00
Mounir 0 Reputation points
edited a comment 2024-11-21T09:18:01.98+00:00
Sai Krishna Katakam 1,000 Reputation points Microsoft Vendor
1 answer

Set-PnPSiteVersionPolicy for thousands of sites in SharePoint Online - Cannot call this API with an app-only principal

We have 5000+ SharePoint Online sites in our tenant where i have to change the Site Version setting to automatic for all existing document libraries. I am using the below to connect using an Azure App and i get the error "Cannot call this API with…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,369 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,897 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,952 questions
asked 2024-11-20T23:28:44.3266667+00:00
PVK Kapardhi 0 Reputation points
answered 2024-11-21T06:06:50.39+00:00
AllenXu-MSFT 21,211 Reputation points Microsoft Vendor
2 answers

Why is my "help" command in Windows 11 Home powershell not giving a list of other commands to use with the "helped command"?

I am learning how to use the PS and whenever I use the "help" cmd, it does not display other commands. My PS is shown in the first image, and my online course is shown in the 2nd. In the 3rd image, I have already tried update-help and the…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-20T05:16:05.94+00:00
Ghxste 0 Reputation points
edited an answer 2024-11-21T01:40:48.0133333+00:00
Ian Xue 37,881 Reputation points Microsoft Vendor
2 answers

Writing a powershell script to add users from a csv to a group in Active Directory?

We are wanting to use a CSV file to bulk upload users to a certain security group. Some users in the CSV will already be in the group. Is there a good source to help write this powershell script?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,678 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-20T19:58:25.32+00:00
Elizabeth N. McClary 20 Reputation points
answered 2024-11-21T01:17:14.2233333+00:00
Ian Xue 37,881 Reputation points Microsoft Vendor
1 answer

Does verb 'pintohome' be fully disable since later version of win10?

I have a powershell script helps to pin some folder to Frequent Folder to quickly achieve them. It used to work well on win10. But recently i found it that the script will be fully stucked unless i kill the window or thread, but its still ok the do it…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,771 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-14T12:04:01.5066667+00:00
Steins 41 Reputation points
answered 2024-11-21T00:36:34.06+00:00
S.Sengupta 19,976 Reputation points MVP
0 answers

Set-PnPSiteVersionPolicy for thousands of sites in SharePoint Online - Cannot call this API with an app-only principal

We have 5000+ SharePoint Online sites in our tenant where i have to change the Site Version setting to automatic for all existing document libraries. I am using the below to connect using an Azure App and i get the error "Cannot call this API with…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,369 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,897 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,952 questions
asked 2024-11-20T22:17:09.5433333+00:00
PVK Kapardhi 0 Reputation points
1 answer

Microsoft Defender for Endpoint creates a large amount of Powershell Logs

Hello, we are using Defender for Endpoint and MS Sentinel. To enhance security, we would like to enable Powershell logging on all devices. But when we enable it, we get 10 times more logs than before. I analyzed the incomming logs and found out that…

Microsoft Sentinel
Microsoft Sentinel
A scalable, cloud-native solution for security information event management and security orchestration automated response. Previously known as Azure Sentinel.
1,172 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
Microsoft Defender for Endpoint Training
Microsoft Defender for Endpoint Training
Microsoft Defender for Endpoint: A Microsoft unified security platform for preventative protection, postbreach detection, and automated investigation and response. Previously known as Microsoft Defender Advanced Threat Protection.Training: Instruction to develop new skills.
50 questions
asked 2024-11-18T15:23:36.6133333+00:00
Wankmüller, David (BAGHUS GmbH) 0 Reputation points
edited a comment 2024-11-20T18:05:15.0733333+00:00
Raja Pothuraju 8,265 Reputation points Microsoft Vendor
1 answer

Re-labeling Sensitivity labels quickly through powershell

I need a way to use powershell to change the sensitivity label of some files that have an old label applied to them to the current label I have for all files.

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
925 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-18T16:32:23.6633333+00:00
Aaron Schulte 0 Reputation points
commented 2024-11-20T17:09:27.7433333+00:00
Pavan Minukuri 440 Reputation points Microsoft Vendor
1 answer

Help sideloading eappx file via powershell for multi users

I'm trying to sideload an encrypted appx (eappx) app via powershell. Add-AppxPackage -Path ./Appfile.eappx works fine. However it only installs the app for the current user. To install for all users on the machine I've seen suggestions to use…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-16T17:03:48.04+00:00
Schaffer 0 Reputation points
commented 2024-11-20T16:53:41.93+00:00
Schaffer 0 Reputation points
4 answers One of the answers was accepted by the question author.

Users with MFA: Enabled, Disabled, Enforced

I manage a Azure AD Does anyone have a PowerShell script that can help me get all users from Azure Active directory with MFA: Enabled, Disabled, Enforced Thanks for the help.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,261 questions
asked 2023-08-09T19:25:14.8066667+00:00
GuestGuivenchi 105 Reputation points
edited a comment 2024-11-20T11:17:51.56+00:00
Michael 0 Reputation points
1 answer

DBATools fails with network path not found error.

I want to use DBATools to get details of and configure my Always On cluster. I successfully installed DBATools, DBATools.Library, and Sqlserver modules and verify with Get-Module -ListAvailable. When I run Get-DbaAgReplica -SqlInstance…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,059 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-19T22:17:34.0166667+00:00
answered 2024-11-20T06:25:53.0333333+00:00
Olaf Helper 45,126 Reputation points
0 answers

Adding Shared Mailbox to the Outlook Application using powershell

Adding Shared Mailbox to the Outlook Application using powershell Open Microsoft Outlook click on file menu account settings select Email tab doubleclick on Email In Exchange Account settings select more settings Go to advanced add…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-20T06:16:50.0233333+00:00
Ved Prakash Tiwari 0 Reputation points
1 answer

How to rename a large amount of photographs with Windows Powershell using exif data?

Hi to all, as in the subject I would like to ask for help on how to rename a large amount of photographs using Windows Powershell. Specifically I was currently using this string: " Get-ChildItem | Rename-Item -NewName {"IMG_" +…

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.
5,535 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-19T12:36:17.27+00:00
Roberto 0 Reputation points
commented 2024-11-20T02:00:22.7166667+00:00
MotoX80 34,516 Reputation points
1 answer

How to enable cloud kerberos via powershell

I am looking for the proper scripts to install cloud kerberos to use for WHFB in a Hybrid environment. I have found a few but none are the same. Also are there any security impacts to do this for already established on prem certs or…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,243 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-10-17T01:19:44.56+00:00
Michael Steszewski 20 Reputation points
answered 2024-11-19T20:54:58.0466667+00:00
Nick Eckermann 591 Reputation points
2 answers One of the answers was accepted by the question author.

Assign S/MIME certificates (.cer files) to multiple Exchange Mailboxes using Set-Mailbox cmdlet and UserSMIMECertificate parameter

Hi all, I have a CSV input file which contains a number of mailbox PrimarySMTPAddress values e.g. PrimarySMTPAddress [email protected] [email protected] [email protected] I also have corresponding .cer (S/MIME Public certificates) stored on a file server for…

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,608 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-16T17:13:56.38+00:00
mark terry 85 Reputation points
commented 2024-11-19T16:25:52.1066667+00:00
mark terry 85 Reputation points
2 answers One of the answers was accepted by the question author.

create external user

I would like to invite an external user via PowerShell. Can anyone help me with the PowerShell syntax for the required settings? I am mostly using the default settings.

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,608 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,934 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.
22,261 questions
asked 2024-11-18T22:34:34.3833333+00:00
Glenn Maxwell 11,621 Reputation points
accepted 2024-11-19T04:37:00.6366667+00:00
Glenn Maxwell 11,621 Reputation points
0 answers

create external user

Hi I would like to invite an external user via PowerShell. Can anyone help me with the PowerShell syntax for the required settings?I am mostly using the default settings.

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,608 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,934 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.
22,261 questions
asked 2024-11-18T22:36:32.9933333+00:00
Glenn Maxwell 11,621 Reputation points
commented 2024-11-19T02:55:03.76+00:00
Xintao Qiao-MSFT 4,235 Reputation points Microsoft Vendor