Загрузка...

Add User/Group To The Local Administrators/RDP Group On Multiple Computers

In this Video, you will learn how to remotely provide access to user or Security Group. You can specify any group like Administrator or Remote Desktop Users and account will be added into it. You get option to manually enter group name or account name so it will avoid mistakes happening due to pre-filled values. please user the script and let me know if you face any challenges.

========================================================
$Servers = Get-Content "C:\Scripts\livePCs.txt"
$Group = Read-Host "Enter Group Name of Remote Host"
$Account = Read-host "Enter Account/Group Name to add in remote Computer Group"
foreach ($Server in $Servers) {
Invoke-Command -ComputerName $Server -ScriptBlock{
if (Get-LocalGroupMember -Name $Using:Group | where{$_.Name -like "*$using:Account*"})
{Write-Host "$using:Server Account/Group - $using:Account Already Added"
}
else
{(Add-LocalGroupMember -Group $Using:Group -Member $using:Account -ErrorAction SilentlyContinue)
if (Get-LocalGroupMember -Name $Using:Group | where{$_.Name -like "*$using:Account*"})
{
(write-host "$using:Server Account/Group :- $using:Account Added Successfully")
}
}}}
========================================================
Get Windows Updates list from Remote Computer
https://youtu.be/A6kPDH_9pO4

PowerShell Remotely Uninstall Software from Multiple Computers
https://youtu.be/978myp7AD5s

PowerShell Search Specific KB Status on Remote Computers
https://youtu.be/9HtcVT_kifg

PowerShell Script to Connect Multiple Server's Remote Session
https://youtu.be/zaSxFqLTf0s

PowerCLI Script to power ON dedicated VMs listed in a text file
https://youtu.be/4DWVuFaSxYA

PowerCLI Script to power Off dedicated VMs listed in a text file
https://youtu.be/bcz_5QUEhR8

Delete Snapshot's from Multiple Virtual Machines
https://youtu.be/yfQ50dyEjSU

Create Snapshot on Multiple Virtual Machine
https://youtu.be/Nsmsa9FgFv4

How can I check if a port is open remotely
https://youtu.be/-JCKk9_vVBc

Installing software remotely on Multiple "Workgroup" Computers
https://youtu.be/QT4u74JWbOM

PowerShell Installing software remotely on Multiple Computers
https://youtu.be/E9yaYVbzgb4

Unable to move OU in Active Directory (Access is denied)
https://youtu.be/0XRizUBbj3s

PowerShell Installing software remotely on Multiple Computers
https://youtu.be/E9yaYVbzgb4

Get Multiple Services Status Remotely | Remotely Start or Stop Services
https://youtu.be/C8PrFNbdLj8

Get Date and Time from Multiple Remote Computers
https://youtu.be/ZpMio_y1zn8

PowerCLI - How to get HA restarted VM's List
https://youtu.be/0IRJvZH9paQ

Get-Childitem - Search file on Local and Remote Computers
https://youtu.be/kHkD5M-mk0A

Remotely Create Update Delete Registry Key on Multiple Computers
https://youtu.be/Hxlqr3zdxHM

Get service status from remote server's using PowerShell
https://youtu.be/7fIG_brMONU

Видео Add User/Group To The Local Administrators/RDP Group On Multiple Computers канала Swapnil Infotech
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять