105 questions with Windows Server | Remote and virtual desktops | PowerShell tags
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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…