find users who have local administrator/Domain Admin rights through command line July 22, 2013 net localgroup "Administrators" for finding local admin users net group "Domain Admins" for finding domain admin users Share Get link Facebook X Pinterest Email Other Apps Labels Windows Server Share Get link Facebook X Pinterest Email Other Apps Comments
System information remotely April 16, 2014 systeminfo /s servername /u domainname\username /p userpassword /fo table systeminfo /s servername /u domainname\username /p userpassword /fo table >1.csv and then type 1.csv then we will get the results in CSV formate Read more
Create a list of local administrators with PowerShell September 05, 2014 1. Create folder : C:\Temp 2. Save a text file with the name servers.txt and add server names 3. Create a .PS1 file with the name “ Get-LocalGroupMembers . ps1 ”with below PowerShell code: ********************************************************** [ CmdletBinding () ] Param ( [ Parameter ( ValueFromPipeline = $true , ValueFromPipelineByPropertyName = $true ) ] [ string []] $ComputerName = $env:ComputerName , [ Parameter () ] [ string ] $LocalGroupName = "Administrators" , ... Read more
Comments