105 questions with Windows Server | Remote and virtual desktops | PowerShell tags

Sort by: Updated
1 answer

The /ga feature of RUNDLL32 PRINTUI.DLL PrintUIEntry is not functioning

I am trying to use the "/ga" feature of RUNDLL32 PRINTUI.DLL PrintUIEntry to install a shared printer for all users on the computer. For example: "rundll32 printui.dll PrintUIEntry /ga /n \client2\printer2". However, when I checked…

Windows Server Remote and virtual desktops PowerShell
asked 2024-02-10T11:39:34+00:00
Anonymous
answered 2024-02-14T06:29:02+00:00
Anonymous
20 answers

Quota error check

I'm copying a large number of folders from one server to another. Unfortunately the destination server has  the disk and the volume different (so I can't make a mirror copy with the same path..) With a little patience I can create the list of powershell…

Windows Server Remote and virtual desktops PowerShell
asked 2024-02-03T15:49:56+00:00
Anonymous
answered 2024-02-06T06:44:51+00:00
Anonymous
1 answer

Is there a script to pull First Name and Last Name and plug them into Display name field in AD?

Display names in our active directory are currently "Lastname, Firstname" format. I'd like to change this to "Firstname Lastname" format without doing one at a time. Is there a script to run that will pull the info from the First Name…

Windows Server Remote and virtual desktops PowerShell
asked 2024-01-29T20:25:00+00:00
Anonymous
answered 2024-01-30T03:01:28+00:00
Anonymous
1 answer

So i am having trouble with powershell when trying to install or update any module

I had an issue with changing the execution policy so I downloaded the PowerShell 7 zip and replaced all from it with the default install of PowerShell 5.1 now I can not install or update any module and the previous issue is not resolved until I import…

Windows Server Remote and virtual desktops PowerShell
asked 2024-01-16T14:34:23+00:00
Anonymous
answered 2024-01-18T06:04:59+00:00
Anonymous
1 answer

How to Get-Aduser password last set with Days since password last set

Hi Everyone, I ask about how to get aduser last password set with "days since password last set" Below is example when we use ManageEngine AD manager tool, but we need to know how when use powershell script : Display NameSAM Account…

Windows Server Remote and virtual desktops PowerShell
asked 2024-01-11T08:42:32+00:00
Anonymous
answered 2024-01-12T05:45:57+00:00
Anonymous
2 answers

I would like to create a csv file that would contain all the members of a particular AD group.

I need your help. I would like to create a csv file that would contain all the members of a particular AD group. In the csv file, there would be columns username, first and last name, and email address. Can you help me? Do you know of a GUI software…

Windows Server Remote and virtual desktops PowerShell
asked 2024-01-09T16:01:24+00:00
Anonymous
answered 2024-01-10T05:03:25+00:00
Anonymous
4 answers

Need a programmatic method to uninstall python on Windows Server 2022.

Python tool uninstallation fails when tried using commandline method. [Uninstall-Package" or "& cmd /c $UninstallString /quiet /uninstall" ] Both the methods fail. Please suggest some alternate route to resolve this.

Windows Server Remote and virtual desktops PowerShell
asked 2023-12-08T08:10:20+00:00
Anonymous
answered 2023-12-15T17:05:25+00:00
Anonymous
3 answers

AD Account Expiry Powershell

hi All, am looking for a powershell script which can send email to our helpdesk with all the list of users whose accounts are expiring in next 7 or 10 days. the list or table should need to have Name, SamAccount, Expiry Date, Manager. Here is the…

Windows Server Remote and virtual desktops PowerShell
asked 2023-12-11T20:44:17+00:00
Anonymous
answered 2023-12-13T08:53:47+00:00
Anonymous
1 answer

Issue on Windows Server 2012 with Windows PowerShell Exchange Online V7

Whenever I try and run a command I get an error, the command will still go through if I am trying to make a shared email or something like that but running commands like get-mailbox and things that should return results will only give the following…

Windows Server Remote and virtual desktops PowerShell
asked 2023-12-12T13:16:46+00:00
Anonymous
answered 2023-12-13T07:32:49+00:00
Anonymous
1 answer

Error handling in GetQueuedCompletionStatusEx

So, I'm trying to use overlapped IO for file and network operations using IOCP. I noticed that at least some, if not all overlapped functions support the notion of a completion routine which receives both an error code as well the number of bytes…

Windows Server Remote and virtual desktops PowerShell
asked 2023-12-08T20:18:18+00:00
Anonymous
answered 2023-12-11T06:21:26+00:00
Anonymous
4 answers

Powershell 7.4 update help for ssh not available?

Hi I have recently been trying to update OpenSSH from version 8.1 and found I could do so via Powershell 7.4 running the Update-help ssh command. After trying to run it I get an error saying it is not available, so then I ran the Update-help command to…

Windows Server Remote and virtual desktops PowerShell
asked 2023-12-01T01:57:39+00:00
Anonymous
answered 2023-12-04T23:58:42+00:00
Anonymous
1 answer

Powershell v2 engine on windows server 2k22

Hello all, we have recently installed 3 new DCs on windows server 2k22 Datacenter Edition and we will decomission 3 old ones that run on windows server 2k19 Datacenter Edition. On all of our servers,the powershell version 2 engine is uninstalled. I am…

Windows Server Remote and virtual desktops PowerShell
asked 2023-12-01T07:59:51+00:00
Anonymous
answered 2023-12-04T06:16:55+00:00
Anonymous
7 answers

Issue installing RSAT features onto server 2022

Good day all. Operating system is Version server 2022 datacenter edition version: 10.0.20348 Build 20348 I have an issue with installing any RSAT packages onto a system using power shell. Following several sites regarding how to do this (including…

Windows Server Remote and virtual desktops PowerShell
asked 2023-11-28T18:29:14+00:00
Anonymous
answered 2023-11-29T06:04:45+00:00
Anonymous
3 answers

how can I proceed with gsuite assessment using powershell ?

I want to do the google worskspace assessment using powershell ise How I can proceed with that ?

Windows Server Remote and virtual desktops PowerShell
asked 2023-11-22T06:14:38+00:00
Anonymous
answered 2023-11-22T08:59:22+00:00
Anonymous
1 answer

if condition not working in my powershell script to match file contents

please help me for this script Requirements : 1. I need compare two file contents and if already exist then script should skip otherwise we need to add content to the file I need to add this content in file if not exist already…

Windows Server Remote and virtual desktops PowerShell
asked 2023-11-16T13:56:43+00:00
Anonymous
answered 2023-11-17T08:03:33+00:00
Anonymous
3 answers

I need to add properties in security.properties files using powershell script to make automate

Hi I have some servers and we have two properties file `1.security.properties and glb.properties. In those files i have to add environments like if our product is upsEnvironment=ups condition is if already environment/properties exist in server no need…

Windows Server Remote and virtual desktops PowerShell
asked 2023-11-15T19:06:17+00:00
Anonymous
answered 2023-11-16T07:02:44+00:00
Anonymous
1 answer

How to add computer to domain and ad group(s) simultaneously using a script?

Scenario: A new windows virtual machine is created in google cloud and logged into it with WORKGROUP as the scope. After login, connected the VM to the domain and have not restarted yet. Before restart, AD group(s) should be added to local admin group.…

Windows Server Remote and virtual desktops PowerShell
asked 2023-11-14T22:23:12+00:00
Anonymous
answered 2023-11-15T07:52:51+00:00
Anonymous
3 answers One of the answers was accepted by the question author.

I want to create a group in AD that has the permission to create group objects and edit group objects in a specific Organization Unit.

I want to create a group in AD that has the permission to create group objects and edit group objects in a specific Organizational Unit. I made a script that is able to do this. I created a group that can create object and edit them, but it isn't…

Windows Server Remote and virtual desktops PowerShell
asked 2023-11-09T18:25:19+00:00
Anonymous
answered 2023-11-10T08:12:54+00:00
Anonymous
3 answers

In Oct. 2023, what is the correct -ToAzVersion to be used with the Powershell command for planning the AzureRM to AZ Powershell module

I am trying to follow the instructions listed in this link for migrating PowerShell scripts from AzureRM to the Az PowerShell module: https://learn.microsoft.com/en-us/powershell/azure/quickstart-migrate-azurerm-to-az-automatically?view=azps-10.4.1 I…

Windows Server Remote and virtual desktops PowerShell
asked 2023-10-26T17:58:01+00:00
Anonymous
answered 2023-11-01T06:35:29+00:00
Anonymous
2 answers

Unable to create MetricAlert using Add-AzMetricAlertRuleV2

I am trying to create a MetricAlert using the following script Set-AzContext -Subscription "f0bXXXXXXX" $action = Get-AzActionGroup -ResourceGroupName gze-actgrp-pd-rgp-001 -Name UWDevOps_PD $actionID = New-AzActionGroup -ActionGroupId…

Windows Server Remote and virtual desktops PowerShell
asked 2023-10-30T13:34:53+00:00
Anonymous
answered 2023-11-01T06:31:33+00:00
Anonymous