Posts

Counter

How to Reset Windows Server 2012 R2 Local Administrator Password

To reset the password on your Windows 2012 server, simply complete the following steps: Boot from the Micrsoft Windows Server 2012 DVD From the Windows Setup menu, click  “Next” . Select  “Repair your computer” Under Choose and option, click on  “Troubleshoot” . Under Advanced options, click  “Command Prompt” . At the command prompt, run the following commands: d: cd windows\system32 ren Utilman.exe Utilman.exe.old copy cmd.exe Utilman.exe Close the command prompt and then click  “Continue” . The server should now boot and present the logon screen. Here click  Windows Key + U . At the prompt you can now change the password, by typing the following command: net user administrator Password123 This will set the password for the Administrator user to be Password123 (case sensitive).

Transferring FSMO roles using cmd.

From the domain controller run cmd as administrator. Execute the following commands : - netdom query fsmo - ntdsutil - roles - connections - connect to server DC02      [Here give ADC name instead of DC02] - quit - transfer PDC - transfer rid master - transfer infrastructure master - transfer schema master - transfer naming master That's it!!! FSMO role has transferred to other domain controller. From Additional Domain Controller where you want to transfer FSMO, start cmd as administrator. - netdom query fsmo To check transfered fsmo: repadmin \syncall

Installing Distribution Point in SCCM using PowerShell

<# .SYNOPSIS Install Distribution Point role using PowerShell Script .DESCRIPTION This scripts lets you install the Distribution Point role on a server, Enable PXE, PXE password and Multicast options. .PARAMETER DistributionPoint This the server name where you would be installing Distribution Point role. .PARAMETER SiteCode This is the 3 letter site code. .PARAMETER PXEpass This is the PXE password. .NOTES Version: 1.0 Date: 8-Dec-2016 Author: Prajwal Desai Website: http://PrajwalDesai.com Script Download: https://gallery.technet.microsoft.com/Install-SCCM-Distribution-bc4e7d76/file/165501/1/Install_DP.ps1 #> #Load the Configuration Manager Module import-module ($Env:SMS_ADMIN_UI_PATH.Substring(0,$Env:SMS_ADMIN_UI_PATH.Length-5) + '\ConfigurationManager.psd1') $Drive = Get-PSDrive -PSProvider CMSite CD "$($Drive):" #Site Code and Distribution Point Server Information $SiteCode = 'AAA' $DistributionPoint = 'YOUR SERVER

Problem in opening Skype for Business? (skype for business flashes and disappears)

Image
Sometimes it seems that skype for business doesn't run in windows 7. After running the apps this screen appears and then it flashes and disappears.  All you need to do is just upgrade your Internet Explorer to latest version. Here is the link: https://www.microsoft.com/en-us/download/Internet-Explorer-11-for-Windows-7-details.aspx If IE11 doesn't support on your Windows 7, upgrade your windows first. Restart your computer and enjoy!!!

Adding Organizational Unit In Domain with PowerShell Command

Image
Copy the following command in Notepad: $basedn = "ou=Test,dc=yourdomain,dc=com" New-ADOrganizationalUnit -Name " Test1 " -Path $basedn ProtectedFromAccidentalDeletion $false New-ADOrganizationalUnit -Name " Test2 " -Path $basedn -ProtectedFromAccidentalDeletion $false New-ADOrganizationalUnit -Name " Test3 " -Path $basedn -ProtectedFromAccidentalDeletion $false Note: Suppose your ou name "Employee" and your domain name is yourdomain.com.au. Edit it like "ou=Employee,dc=yourdomain,dc=com,dc=au". Test1,  Test2,  Test3 are tree OU. Now Save the file as " test OU.ps1 ". Right click on the file and click on " Run as PowerShell ". Type Y and press Enter. Now you can see the desired OU in Active Directory Users and Computers.

Local Server Configuration with PowerShell Script.

Image
Write-Host "Attempting to disable IE Enhanced Security Configuration (ESC) " -ForegroundColor Green function Disable-IEESC { $AdminKey = “HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}” $UserKey = “HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}” Set-ItemProperty -Path $AdminKey -Name “IsInstalled” -Value 0 Set-ItemProperty -Path $UserKey -Name “IsInstalled” -Value 0 Stop-Process -Name Explorer } Disable-IEESC Write-Host "IE Enhanced Security Configuration (ESC) has been disabled." -ForegroundColor Green Write-Host "Attempting to Enable Remote Desktop " -ForegroundColor Green (Get-WmiObject Win32_TerminalServiceSetting -Namespace root\cimv2\TerminalServices).SetAllowTsConnections(1,1) | Out-Null (Get-WmiObject -Class "Win32_TSGeneralSetting" -Namespace root\cimv2\TerminalServices -Filter "TerminalName='RDP-tcp'").S

How to fix NSLOOKUP Default Server: UnKnown?

Image
Issue :  "Default Server:  UnKnown"  error on NSLOOKUP from Windows Server 2008 DNS Server. This issue is not a critical one. Even under this error your DNS resolution can work smoothly. But it's embarrassing when there are issues like this. Right?. Yes I know! me too. :D The reason for this is your DNS server does not posses a record for the server itself. Or simply it does not know what is it's own name. By creating a PTR static entry we can fix this and let DNS server know it's own name. 1. Open the DNS management console in the Server 2008          Start > Administrative Tools > DNS 2. Go to the your Reverse Lookup Zone icon and right click on it and select " New Pointer(PTR) ". 3. In the New PTR window enter the   IP address  of DNS server and enter(or select) the  host name  of the server. 4. Now click OK and  restart  the DNS server service. Now check to see if it is working.

Total Viewer