2,272 questions with PowerShell-related tags

Sort by: Updated
2 answers

Auditing and verifying privileged account usage in Active Directory?

How can I check if the certain AD user account is still in use or not? I am in the process of auditing and validating thousands of users across all of these groups: Domain Admins Enterprise Admins Schema Admins Administrators Account…

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,997 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,147 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,774 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,445 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2023-01-25T00:56:57.3366667+00:00
EnterpriseArchitect 5,016 Reputation points
answered 2023-01-25T01:49:23.25+00:00
Thameur-BOURBITA 32,621 Reputation points
6 answers One of the answers was accepted by the question author.

Is it possible to make an RS232 mini char with PowerShell?

Good: I want to make a nice mini chat for the serial port between two PCs. Since I am not familiar, I want help. I have three programs that do the same thing in C#, VB .net and C++ .net in mini chat console mode and it works between them. At least I…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2023-01-21T10:45:55.7733333+00:00
Metaconta 41 Reputation points
commented 2023-01-23T22:02:52.2966667+00:00
Metaconta 41 Reputation points
1 answer

Powershell script + SMTP server does not work properly

WARNING! There was an error parsing the document Hello, I have the following script that I found online with my personal modification. I have basic skills in powershell so I'm not a master. The goal is to send an email to the user as soon as he hits a…

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,169 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,512 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,445 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2023-01-20T13:47:23.19+00:00
Kevin Savard Vertisoft 86 Reputation points
answered 2023-01-23T16:09:29.6566667+00:00
Limitless Technology 44,091 Reputation points
2 answers

It is not possible to identify the user of the actions referring to the powershell events (SecurityEvent Table) through the AMA via xpath

Hi,   Initially when I started the installation in the environment, I noticed that Microsoft's recommendation for collecting Windows logs would be through the AMA agent. However, when starting the collection operational powershell logs via xpath, I…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2023-01-19T12:34:56.9966667+00:00
Isaac Falcão 0 Reputation points
accepted 2023-01-23T13:01:56.7833333+00:00
Isaac Falcão 0 Reputation points
3 answers

Powershell script is not running via ps1 file

Hi Team, I wrote a simple script to delete all the files older than X days from my folders without deleting my Folders obviously , i'm able to run it through a command line powershell directly as a command but when i'm calling my ps1 script file in…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2023-01-19T13:43:43.3233333+00:00
Shahzeena 0 Reputation points
answered 2023-01-23T08:37:34.84+00:00
Limitless Technology 44,091 Reputation points
1 answer

Query regarding Error code : 87 - The Parameter is Incorrect

Hi, Recently I have faced an Error code 87 in two different instances. Instance 1 : I was trying to apply SACL of a folder named "Test_Folder" using Cacls.exe, It returned the error : 87 , Then I found that the folder is having 1820 DACL's…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,512 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,497 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,774 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2023-01-18T11:25:55.1966667+00:00
Paramesh T S 1 Reputation point
commented 2023-01-23T06:24:07.4333333+00:00
Paramesh T S 1 Reputation point
1 answer One of the answers was accepted by the question author.

Azure Automation powershell runbook issue

Hello, I am creating an Azure Automation account having a powershell runbook. The script is simply looping over each VM in a resource group and deleting all files under a particular folder. $ResourceGroup = '<<myResourceGroup>>' $TargetDir =…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,173 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2023-01-18T07:32:35.7566667+00:00
Atanu Gupta 141 Reputation points
accepted 2023-01-23T04:53:21.99+00:00
Atanu Gupta 141 Reputation points
0 answers

How to create a shortcut to a folder with PowerShell and Intune

I've been battling this for the past several hours, searching to no avail; there are a couple TechNet posts (e.g. this post ) that don't answer the question and tell the questioner to ask in a different forum, but maddeningly there's neither a link to…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,663 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2023-01-21T20:50:43.9266667+00:00
RH-8125 111 Reputation points
edited the question 2023-01-21T20:53:40.8133333+00:00
RH-8125 111 Reputation points
0 answers

How to create a shortcut to a folder with PowerShell and Intune

I've been battling this for the past several hours, searching to no avail; there are a couple TechNet posts (e.g.…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,663 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2023-01-21T20:48:37.98+00:00
RH-8125 111 Reputation points
edited the question 2023-01-21T20:49:24.3233333+00:00
RH-8125 111 Reputation points
2 answers

How to update data in azure AD from a csv file?

Need to update EmployeeID, Department,City,Country,State,StreetAddress,EmployeeType,EmployeeHireDate for 400 users. I keep seeing stuff about running Microsoft graph but I’m having issues with that

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,246 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2023-01-18T18:22:39.7366667+00:00
Azim Iqbal 0 Reputation points
edited the question 2023-01-19T22:59:33.5433333+00:00
Marilee Turscak-MSFT 36,061 Reputation points Microsoft Employee
1 answer

关于powershell的Get-WinEvent命令输出问题

powershell:Get-WinEvent -FilterHashtable @{LogName='Security';Id=5024} 输出: powershell:Get-WinEvent -FilterHashtable @{LogName='Security';StartTime=Get-Date;Id=4625} 输出: 上面两张图片中,我想实际的需求如下: 如果执行powershell时有匹配的数据,我想统计所匹配数据的行数; …

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,445 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2023-01-19T01:20:05.03+00:00
cscowx 0 Reputation points
answered 2023-01-19T03:28:12.5266667+00:00
Aung Zaw Min Thwin 306 Reputation points
2 answers

PowerShell Invoke-WebRequest : A positional parameter cannot be found that accepts argument XXXXX

Hello, I apologize if this is a basic question but I am very new to PowerShell and trying to learn. I have a script to get specific information about a pc. The script works and I get successfully export the data to a CSV. I am trying to use a webhook…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2023-01-18T17:35:11.2666667+00:00
Kyler Gilbert 0 Reputation points
answered 2023-01-19T00:33:47.48+00:00
MotoX80 32,551 Reputation points