Posts

Showing posts from 2019

How to Switch Domain Controller or Logon server in client

To find the current logon server Open the command prompt and type echo %logonserver% To switch the Domain Controller Open the command prompt and type nltest /Server: ClientComputerName  /SC_RESET: DomainName \ DomainControllerName To set the Domain Controller Via Registry Open the registry editor Navigate to: HKEY_LOCAL_MACHINE/ SYSTEM/ CurrentControlSet/ Services/ Netlogon/ Parameters Create a String value called “SiteName“, and set it to the domain controller you wish the computer to connect to. (ie. DC1.domain.com)

Install .NET Framework 3.5 Offline

Connect a  Windows 10 installation USB  that is the exact same  build  as what is currently installed. Or,  Mount  a  Windows 10 ISO  that is the exact same  build  as what is currently installed. Open This PC in File Explorer (Win+E), and make note of the drive letter of this USB or mounted ISO. Open an elevated command prompt. Type the command below in the elevated command prompt, and press Enter Dism /online /enable-feature /featurename:NetFX3 /Source: <driveletter> :\sources\sxs /LimitAccess

WSUS - Bypass to windows updates online

Open CMD with admin privileges. REG ADD “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU” /v UseWUServer /t REG_DWORD /d 0 /f net stop “Windows Update” net start “Windows Update” Copy above and paste, press enter to run.

Active Directory User Management using Powershell

Image
Active Directory User Management using Powershell Creating a Single User New-ADUser –SamAccountName “username” –DisplayName “username” – givenName “Username” –Surname “surname” –AccountPassword ( ReadHost –AsSecureString “Message”) –Enabled $true –Path ‘CN=Users , DC=Doc , DC=Com’ –CannotChangePassword $false –ChangePasswordAtLogon $true –PasswordNeverExpires $false - EmailAddress “email” –EmployeeID “ID” –Department “string” SamAccountName   – Specifies the SAM Account name of the user. ”New-ADUser” command should have this parameter for creating a user. You can pass a string value in it. DisplayName   – Specifies the name to be displayed. Surname  – Specifies the surname of the user. AccountPassword   – Specifies the account password for the user. However, the password has to be provided after executing the command as a secured string. The default value for this parameter would be as follows . –AccountPassword ( ReadHost –AsSecureStri...