5,460 questions with Windows Server PowerShell tags

Sort by: Updated
0 answers

alerts for rdp disconnetion

Need a solution to monitor the Rdp

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,620 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,398 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,460 questions
asked 2024-07-24T11:28:18.1+00:00
kalyan kumar 0 Reputation points
1 answer

Issues Converting VHDX to VHD or VMDK to VHD

Hello, I'm having trouble converting VHDX files to VHD files and also VMDK files to VHD files. Here's a detailed breakdown of my situation: VHDX to VHD Conversion: I have a VHDX file located at C:\Users\azureadmin\Downloads\vhdx\Virtual Hard…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,620 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,633 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,460 questions
asked 2024-07-23T19:39:55.78+00:00
Niket Kumar Singh 300 Reputation points
commented 2024-07-24T10:39:19.72+00:00
Niket Kumar Singh 300 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,620 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.
428 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,460 questions
asked 2024-07-11T12:55:01.8166667+00:00
Firoz Khan 0 Reputation points
commented 2024-07-24T07:38:03.7533333+00:00
Daisy Zhou 21,276 Reputation points Microsoft Vendor
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,620 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,460 questions
asked 2024-07-16T06:16:01.5766667+00:00
Handian Sudianto 4,511 Reputation points
commented 2024-07-24T05:57:21.34+00:00
Hania Lian 11,036 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How do we fix ICMP Timestamp Request Remote Date Disclosure on Windows Server?

I would like to know if there is an effective way to fix the vulnerability "ICMP Timestamp Request Remote Date Disclosure". Any additional recommendations?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,607 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,434 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,620 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,780 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,460 questions
asked 2024-07-23T16:31:13.09+00:00
Valter, Humberto 0 Reputation points
commented 2024-07-23T20:00:02.46+00:00
Valter, Humberto 0 Reputation points
1 answer

Get Task Scheduler log and save into a table

Hello, How do I get windows server "Task Scheduler" history log using PowerShell script and save the schedulers details into table in SQL Server. I want the below information Task Name Task Schedule Time Task Start date and time Task…

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,460 questions
asked 2024-07-23T11:11:15.1633333+00:00
sourav dutta 231 Reputation points
commented 2024-07-23T19:07:05.7666667+00:00
Rich Matheisen 45,831 Reputation points
1 answer

Power BI vnet data gateway monitoring and statistics

I am trying to locate information on how to monitor an Azure vnet data gateway for power BI. Being a SAS service that deploys a container behind the scenes, I wonder if there is a process to monitor it or perhaps write a powershell script that would…

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,460 questions
asked 2024-07-22T11:32:11.8933333+00:00
MrFlinstone 531 Reputation points
answered 2024-07-23T02:15:45.1333333+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 34,271 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Display SSL certificate expiration dates via PowerShell

Hello! I'm trying to figure out how to display when SSL certificates expire. Currently, I have the following code (which was provided to me by a colleague) and I want to know how to display the certificate's expiration date. If possible I would also like…

Internet Information Services
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,620 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,972 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,460 questions
asked 2022-06-16T20:49:16.917+00:00
Jess13777 41 Reputation points
edited a comment 2024-07-22T14:45:41.74+00:00
DC-3711 1 Reputation point
1 answer

Invoke-PnPTenantTemplate is not performing any action.. "Access token acquired"

I have 2 SharePoint Online tenants which both have a modern communication sites. now i used this command to get the source site template:- PS C:\Users\mohan> Connect-PnPOnline -Url "https://ssms.sharepoint.com/sites/PPM-test/"…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,271 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,460 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,321 questions
asked 2024-07-17T18:01:50.68+00:00
john john Pter 155 Reputation points
commented 2024-07-22T08:35:26.88+00:00
RaytheonXie_MSFT 33,641 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

UWP re-Add-ProvisionedAppxPackage error 183

hello everyone I developed UWP packages and get 2 version appxupload_Windows10_PreinstallKit package from store like test_UWP_1.0.0.1 and test_UWP_1.0.0.2 and here's dism Provision cmds: test_UWP_1.0.0.1_pre_install.bat dism /online…

Universal Windows Platform (UWP)
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,460 questions
asked 2021-08-03T23:47:06.463+00:00
Divyns Lin 41 Reputation points
commented 2024-07-19T13:24:50.88+00:00
Rich M 0 Reputation points
1 answer

PowerShell Filter

Hello, I have powershell script like below output. The result is fine but when i want to filter only showing Type="Vmware Backup" and only to show "Job Name" and "Last Result" columns why i not get the result? Something…

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,460 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,321 questions
asked 2024-07-19T06:39:27.7333333+00:00
Handian Sudianto 4,511 Reputation points
answered 2024-07-19T07:38:43.04+00:00
Andreas Baumgarten 103.9K Reputation points MVP
1 answer One of the answers was accepted by the question author.

Problème réinstallation et fonctionnement Microsoft Print to PDF on WS2019

Bonjour, Je rencontre un problème lors de la réinstallation de L'imprimante Microsoft Print to PDF sur mes Windows serveurs 2019. J'aimerais refaire l'installe de l'imprimante de 0 mais j'ai plusieurs messages d'erreurs, par exemple, lorsque j'essaye de…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,607 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,620 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,460 questions
asked 2024-07-17T21:13:02.3166667+00:00
Alexis Glatre 20 Reputation points
commented 2024-07-19T07:18:29.5166667+00:00
Karlie Weng 16,351 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Check Internet Connectivity using Powershell

Hello, I want to make a powershell script to test is the server have internet connectivity or not by doing ICMP to 8.8.8.8 for example and the script will return 1 if get reply and 0 if not get the reply. Anyone know here how to make that script?

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,460 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,321 questions
asked 2024-07-19T00:53:03.6533333+00:00
Handian Sudianto 4,511 Reputation points
accepted 2024-07-19T03:03:09.7233333+00:00
Handian Sudianto 4,511 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,620 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,518 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,312 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,972 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,460 questions
asked 2024-07-10T16:38:56.85+00:00
kassie 0 Reputation points
commented 2024-07-19T01:16:49.7833333+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
1 answer

ports remote request powershell

Hello. I have executed the get-service -computername PC01 command Wireshark showed me that port 135 is used in the first…

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,460 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,321 questions
asked 2024-07-18T13:43:04.61+00:00
Андрей Михалевский 2,866 Reputation points
commented 2024-07-18T15:37:52.6366667+00:00
Rich Matheisen 45,831 Reputation points
2 answers

Unable to install PS module getting some issue

PS C:\Windows\system32> install-module azuread NuGet provider is required to continue PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories. The NuGet provider must be available in 'C:\Program…

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,460 questions
asked 2024-07-18T07:43:00.18+00:00
Sakura434 1 Reputation point
answered 2024-07-18T08:01:02.63+00:00
Manu Philip 17,591 Reputation points MVP
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,460 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,321 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
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,233 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,460 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,596 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

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,640 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,460 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,460 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