Posts

PowerShell: Add bulk users in one AD group

 Add Multiple users in one AD group: Import-Module ActiveDirectory $grp = ‘test1‘ $comps=Get-Content C:\users.txt $grpDN = (get-adgroup $grp).distinguishedname foreach ($user in $users) { #$dns=get-aduser $user $b=$dns.distinguishedname Add-ADGroupMember -Identity $grpDN -member $user }

Powershell: Get-aduser filter with two conditions

 PowerShell to filter two conditions. $list = get-aduser -filter { enabled -eq "true" -and passwordNeverExpires -eq "false" } -properties Name , PasswordNeverExpires   #|  Select-Object DistinguishedName, Name, Enabled $count = $list . Count

Group policy CSE'S

List of CSEs Windows 8.1 the order is as follows: Administrative templates GUID: 35378EAC-683F-11D2-A89A-00C04FBBCFA2 Wireless Group Policy GUID: 0ACDD40C-75AC-47ab-BAA0-BF6DE7E7FE63 Citrix Group Policy GUID: 0D0C7034-2EBD-4A87-A9B9-9015E3F2E6E0 Group Policy Environment GUID: 0E28E245-9368-4853-AD84-6DA3BA35BB75 Central Access Policy Configuration GUID: 16BE69FA-4209-4250-88CB-716CF41954E0 Group Policy Local Users and Groups GUID: 17D89FEC-5C44-4972-B12D-241CAEF74509 Group Policy Device Settings GUID: 1A6364EB-776B-4120-ADE1-B63A406A76B5 Folder Redirection GUID: 25537BA6-77A8-11D2-9B6C-0000F8080861 Citrix Profile Management GUID: 26F29E43-DA55-459d-A045-5FEB25F8AB15 Microsoft Disk Quota GUID: 3610EDA5-77EF-11D2-8DC5-00C04FA31A66 Group Policy Network Options GUID: 3A0DBA37-F8B2-4356-83DE-3E90BD5C261F QoS Packet Scheduler GUID: 426031c0-0b47-4852-b0ca-ac3d37bfcb39 Scripts GUID: 42B5FAAE-6536-11d2-AE5A-0000F87571E3 Remote Desktop USB Redirection GUID: 4BCD6CDE-777B-48B6-9804-43568E23545D ...
Image
 Event ID 393 - The federation server proxy could not establish a trust with the Federation Service https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/dn584107(v=ws.11)?redirectedfrom=MSDN https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=ADFS ISSUE: We are performing a brand new deployment of Web Application proxy role on a Windows Server 2012 R2 machine. The Application Proxy Server is in a workgroup machine, while the ADFS server is running on a domain-joined windows 2012 R2 server. For information on the installation pre-requisites and steps, I would suggest you to review the TechNet documentation available  here.   Now back to the issue,we took the PowerShell approach to install the Web application Proxy role. Install –WebapplicationProxy –certificateThumbprint <Hashvalue> FederationServicename <name of the adfsservice > When we ran this command let, we encountered the follo...

ADFS Troubleshooting

ADFS/IdS Troubleshooting and Common Problems: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/ff641685(v=ws.10)?redirectedfrom=MSDN Applies To: Active Directory Federation Services (AD FS) 2.0 Before you begin the troubleshooting process, we recommend that you first try to configure Active Directory Federation Services (AD FS) 2.0 for troubleshooting and check for known common issues that might prevent normal functioning of the Federation Service. For detailed instructions for configuring and performing related system checks, see  Configuring Computers for Troubleshooting AD FS 2.0  and  Things to Check Before Troubleshooting AD FS 2.0 . Troubleshooting trust establishment failures The following table provides troubleshooting guidance for specific error event messages or other issues that you may encounter if you are having problems with establishing trusts with AD FS 2.0. TROUBLESHOOTING TRUST EST...
https://www.microsoftpressstore.com/articles/article.aspx?p=2224364&seqNum=4 https://www.faqforge.com/windows-server-2016/configure-credential-caching-read-domain-controller-windows-server-2016/

POWERSHELL PING CMD with date and time

CMD to run with date for PING CMD ping.exe -t COMPUTER-NAME | Foreach{"{0} - {1}" -f (Get-Date),$_} $timestamp = Get-Date -Format "yyyyMMdd" ping.exe -t gatewayx.us.ecp.ensono.com | Foreach{"{0} - {1}" -f (Get-Date),$_} >$env:COMPUTERNAME$timestamp.TXT