Technology

PowerShell : Add a user to the local Administrators group

Add a user account to the local Administrators group : The following powershell commands add the given user account to local Admin group. $user = “ComputerName/user1”; $group = “Administrators”; $groupObj =[ADSI]”WinNT://./$group,group” $userObj = [ADSI]”WinNT://$user,user” $groupObj.Add($userObj.Path)

Read More
PowerShell

Powershell

Get Computer List from DC 删除输入文件的双引号 如果要删除首行 完整实例 PING IP and Send email

Read More
Technology

Add Environment Variable via Group Policy

Description: In this article I am going to explain about how to Create or Add System Environment variable and User Environment variable via Group Policy. Steps to Add System Environment variable through GPO 1. Open the Group Policy Management Console

Read More