5,449 questions with Windows Server PowerShell tags

Sort by: Updated
2 answers

Get Last Update Installed

Hello, It's possible to get last update install date using powershell?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,577 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,449 questions
asked 2024-07-16T06:16:01.5766667+00:00
Handian Sudianto 4,431 Reputation points
edited a comment 2024-07-16T15:32:01.2666667+00:00
MotoX80 32,726 Reputation points
3 answers

Windows update agent api - Access denied on AddScanPackageService

Hi Together Could someone help me in this matter... I am trying to run following script block on remote system to get updates needed and getting access denied on following line: " $UpdateServiceManager.AddScanPackageService("Offline Sync…

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,449 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,297 questions
asked 2023-03-14T12:14:37.4066667+00:00
Zeljko Zaric 1 Reputation point
answered 2024-07-16T13:44:16.7066667+00:00
Jesper Arnecke 0 Reputation points
1 answer

Assistance Needed: GPO for DNS Suffix Registration Not Applying

Hello, We are working on creating a Group Policy to automatically enable the option "Use this connection's DNS suffix in DNS registration" when users log in to their domain accounts. We have created the GPO for this setting and tested it on one…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,577 questions
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
426 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,449 questions
asked 2024-07-11T12:55:01.8166667+00:00
Firoz Khan 0 Reputation points
commented 2024-07-16T11:24:38.76+00:00
Firoz Khan 0 Reputation points
2 answers

Powershell to reset AAD user password

Dear Experts, Recently, I’m trying to use PowerShell to reset new users' password online. The expected scenario is that the user will be given a one-time password, then login to office.com set up his MFA, and then he’s asked to change a new password. …

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,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,449 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,493 questions
asked 2023-05-10T06:00:53.75+00:00
Eaven HUANG 2,156 Reputation points
answered 2024-07-16T07:06:05.8466667+00:00
Eaven HUANG 2,156 Reputation points
2 answers

Logging the parameters of WMI Methods using WMI-Activity Trace logs

When logging WMI calls and queries via WMI-Activity Trace logs, I can see all the method invocations being logged, but not the method's parameters. As I'm looking to work around certain hardware/driver issues with my laptop, I absolutely must know what…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,577 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,511 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,311 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,899 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,449 questions
asked 2024-07-10T16:38:56.85+00:00
kassie 0 Reputation points
commented 2024-07-16T05:56:59.6666667+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
2 answers

Unicode in Console App - C#

Hello, I wrote a program to show UTF-16 emojis in Console App. When I ran the console app in PS from windows terminal, I can see emojis. But If I ran the program in PS without a windows terminal, I can't see it. Please see: …

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,612 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,449 questions
asked 2022-11-20T23:34:03.033+00:00
Shervan360 1,481 Reputation points
commented 2024-07-14T20:05:14.4666667+00:00
LUCAS BENTO DOS SANTOS FERNANDES 0 Reputation points
3 answers

How do I extract the last part of a url using PowerShell?

I want get the last part of a URL, how do I get this done? How do I extract just 002-122 from this url https://mycompany.sharepoint.com/sites/Asite/002-122 with 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,449 questions
asked 2020-12-31T14:21:10.727+00:00
Mohammed 81 Reputation points
commented 2024-07-13T05:52:58.2033333+00:00
Nula Mipa 15 Reputation points
2 answers

Enabling Managed Folder Assistant Error

When trying to start managed folder assistant on a shared mailbox with online archiving enabled, I am getting an error in powershell: The call to Mailbox Assistants Service on server: 'DM6PR07MB4555.namprd07.prod.outlook.com' failed. Error from RPC…

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,449 questions
asked 2022-08-15T16:44:17.76+00:00
Steven Ingram 16 Reputation points
commented 2024-07-11T11:45:01.4666667+00:00
xtruss 0 Reputation points
3 answers

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.
4,366 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,989 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,449 questions
asked 2022-09-26T17:20:13.937+00:00
Dane Briggs 211 Reputation points
commented 2024-07-11T07:08:24.0066667+00:00
Agnieszka Stojanik 0 Reputation points
0 answers

.exe files are not running in windows docker images

Hey There, I am trying to run the following Dockerfile to containerize the Netduino.exe file and would like to use it as a Gitlab runner. However, the .exe files are running in the following Docker Images. Not only Netduino.exe, other .exe files like…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,594 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,141 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,577 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,899 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,449 questions
asked 2024-07-09T01:00:22.78+00:00
Sunil Bhimanapalli 0 Reputation points
edited the question 2024-07-09T01:08:25.08+00:00
Sunil Bhimanapalli 0 Reputation points
1 answer

How can I connect tables on Power BI online

Hello, Is there a way to connect tables in a model I created on power BI online? The tables are on an excel workbook on sharepoint, and the model has been done on on power bi online. Any idea how to make the connection between tables? Thank you!

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,449 questions
asked 2023-12-01T10:42:04.2033333+00:00
Abdulla Moustafa 0 Reputation points
edited an answer 2024-07-07T08:24:22.3633333+00:00
Khaled Elsayed Mohamed 1,255 Reputation points
1 answer

How can I send Outlook (Microsoft 365) meeting invitations from one email account to multiple email accounts using PowerShell?

I need your help to create a PowerShell script to send invitations to an Outlook (Microsoft 365) meeting from an email account user@domino to multiple email accounts (user1@domino, user2@domino...) through from PowerShell I hope you can help me.

Outlook
Outlook
A family of Microsoft email and calendar products.
3,389 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.
5,056 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,449 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,297 questions
asked 2024-01-18T21:19:08.5933333+00:00
Jairo Javier Baleta Cali 131 Reputation points
answered 2024-07-07T06:44:40.2266667+00:00
Khaled Elsayed Mohamed 1,255 Reputation points
1 answer One of the answers was accepted by the question author.

Disable WinRM PowerShell Remoting

Hi All I have a requirement to Disable or Harden PowerShell Remoting and WinRM Services. The impact what i see is one server cannot connect to another server using remote powershell scripts. Please also let me know what possible issues we can come across…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,594 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,429 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,777 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,449 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,297 questions
asked 2023-12-30T11:24:40.5166667+00:00
Roger Roger 5,446 Reputation points
accepted 2024-07-06T09:29:44.6566667+00:00
Roger Roger 5,446 Reputation points
1 answer

Powershell on Mac/Linux - New-PSSession to Exchange Server -> MI_RESULT_FAILED Error

How can the following error be resolved when trying to connect to an Exchange server via PowerShell from a Mac/Linux machine? (working fine from windows machine though) "New-PSSession: [<exchangeserver.domain>] Connecting to remote server…

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,183 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,577 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,485 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,449 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,297 questions
asked 2024-07-03T08:53:54.16+00:00
ITS ByteSec 0 Reputation points
answered 2024-07-05T15:37:17.6666667+00:00
Rich Matheisen 45,671 Reputation points
4 answers

Unable to install IIS on Server 2019 DC error 0x800f081f

I`m getting this error: I tried the following commands: Microsoft Windows [Version 10.0.17763.3650] (c) 2018 Microsoft Corporation. All rights reserved. C:\Users\Administrator.WIN-ONA542MGLKP>dism /online /enable-feature…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,594 questions
Internet Information Services
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
426 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,449 questions
asked 2022-12-03T00:32:53.737+00:00
Lucas Paixao Soares Ribeiro 1 Reputation point
answered 2024-07-05T07:53:36.93+00:00
Samuel Fikiru 0 Reputation points
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,294 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,236 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.
549 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,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.
5,449 questions
asked 2024-05-09T03:50:35.2466667+00:00
Joshua Lim 0 Reputation points
commented 2024-07-03T15:36:59.67+00:00
Paul Tansey 0 Reputation points
3 answers

How to add a Sql code to a powershell script

backup_report.txtI have the below sql script to check if any failover happened on the last 24 hrs and we want to use that in the existing powershell backup report script to check that condition before it reports, the below sql code only returns a…

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,449 questions
asked 2024-06-28T14:46:35.28+00:00
Sara 421 Reputation points
edited an answer 2024-07-03T07:51:29.82+00:00
Neuvi Jiang 685 Reputation points Microsoft Vendor
1 answer

Azure cli behind corporate proxy not working (SSL: WRONG_VERSION_NUMBER)

I have my C:\Users\xxxx\cacert-with-corp-proxy-cert.pem file updated with corporate ssl proxy certificate. To confirm that pem file updated properly and corporate proxy ssl certificates are valid I performed the check with python.exe (Microsoft…

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,449 questions
asked 2021-12-22T18:25:45.547+00:00
Lavrenty Eskin 1 Reputation point
commented 2024-07-03T02:43:38.8866667+00:00
Gaudet, Michael 0 Reputation points
1 answer One of the answers was accepted by the question author.

Powershell - Cannot convert value to type "System.Int32"

Dear experts, I'm working on below script trying to replace the value of mailNickName with the prefix part of UPN value. It works great if we had EMPTY mailNickName field (where it showed <not set>). However, if there was value already existing in…

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,449 questions
asked 2021-07-27T06:45:52.713+00:00
Eaven HUANG 2,156 Reputation points
edited a comment 2024-07-02T20:02:39.78+00:00
Matt Sheehan 0 Reputation points
2 answers One of the answers was accepted by the question author.

Enable and Disable WinRM

Hi, For security reasons, our company wants to disable the WinRM service, but we don't know the impact of disabling it on the production platform. So we thought about the ability to disable the service and re-enable it automatically via GPO as needed…

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,449 questions
asked 2023-06-23T10:09:38.4566667+00:00
Ines ROUISSI 20 Reputation points
edited a comment 2024-07-02T13:14:12.9533333+00:00
AnnaG 131 Reputation points