Wednesday, 24 April 2013

#Hyper-V - Remove Hidden Network Adapter

Remove Hidden Network Adapter

-Cannot rename this connection. A connection with the name you specified already exists. Specify a different name.
-The IP address XXX.XXX.XXX you have entered for this network adapter is already assigned to another ....




1. System properties > Advanced > Environment Variables...


2. On System variables, select New..., on Variable Name enter devmgr_show_nonpresent_devices
on Variable Value enter 1




3. On Device Manager, click on view, select Show hidden devices.

4. Expend Network adapters, uninstall hidden network.
Hyper-V  (Microsoft Hyper-V Network Adapter)
Physical   (Physical Network Adapter)
*Don't uninstall RAS Async Adapter or any other than Microsoft Hyper-V Network Adapter/Physical Network adapter.





Thursday, 11 April 2013

#Windows Server - Reset Windows 2012 Domain Administrator Password

Reset Windows 2012 Domain Administrator Password

1. Boot Installation CD, select Repair your computer
2. Select Troubleshoot.

3. Select Command Prompt.

4. Change directory to d:\windows\system32

 5. Type copy utilman.exe utilman.exe.bak to Backup utilman.exe
     Type move cmd.exe utilman.exe to Move cmd.exe to utilman.exe
     Type Y to overwrite.

6. Restart server and boot windows as normal.
     Press “Windows Key + U” to open command prompt.

 7. Type net user administrator password
     Password = new password

8. Close command prompt and log in with new password.

Saturday, 20 October 2012

Enable Physical Address Extension (PAE)

For Windows Server 2008 Enterprise/Datacenter 32-bit RAM access more than 4GB of pysical memory.

Method:

1. Run command prompt as Administrator.
2. Type bcdedit /set PAE forceenable.
3. Restart Server.

Memory Limit for windows releases: http://msdn.microsoft.com/en-us/library/aa366778(VS.85).aspx#physical_memory_limits_windows_server_2008

Sources: http://msdn.microsoft.com/en-us/library/aa366796(v=vs.85).aspx

Sunday, 8 July 2012

#Microsoft Office 365 - Reset All Users Passwords in PowerShell - Additional for password never expired


     1.  Install Microsoft Online Services Module for Windows PowerShell
     2.  Run Microsoft Online Services Module for Windows PowerShell as Administrator
     3.  Type Import-Module MSOnline
     
     4.  Type Connect-MsolService -cred $cred
    
     5.  Insert Office365 admin user name and password

      6.  Type Get-Command -Module msonline

     7.  Type Get-msoluser |set-msoluserpassword -newpassword “password” -forcechangepassword $false
     8.  Password will start reset for all users                              


additional: Password never expired 
For all users: Type Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true
For individual user: Type Get-MSOLUser -example@domain.com -PasswordNeverExpires $true -StrongPasswordRequired $true


Tuesday, 26 June 2012

#Windows Task Scheduler - How to schedule Windows 7 or 2008 r2 restart or shutdown automatically

Create a .bat file 

1. Open new notepad, type c:\windows\system32\shutdown -r -f -t 10

      *For shutdown change -r  to -s
      

* -r : restart
* -s : shutdown
* -f : force all running application exit/terminate
* -t :specifies the countdown time(seconds) until the shutdown

2. Save the notepad as .bat file.

3. Go to Computer --> Manage --> right click Task Scheduler --> Create Task

4. In General, put a Task Name, set a user account running the task, configure for windows 7/windows server 2008 r2

5. In Triggers, click new

6. Set the schedule restart or shutdown time, click OK

7. In Actions, click new

8. Action as Start a program. Browse the created .bat file, click OK

9. Click OK.

Wednesday, 6 June 2012

Windows 2008 R2 - Synchronize time with external NTP server

1. On PDC server , stop the W32Time service , run command prompt as administrator, type net stop w32time

2. Configure the external time source, type w32tm /config /syncfromflags:manual /manualpeerlist:"net server"

    Example: w32tm /config /syncfromflags:manual /manualpeerlist:"my.pool.ntp.org"



3. Make PDC a reliable time source for the client, type w32tm /config /reliable:yes


4. 
On PDC server , start the W32Time service, type net start w32time

5. To check the status of your current time server settings, type w32tm /query /status

6. To display the configuration of run-time and where the setting come from, type w32tm /query /configuration





Sunday, 13 May 2012

Forcing Active Directory Replication by Using GUI

    1. Go Start, Administrative Tools, Active Directory Sites and Services.
    2. Expand Sites, expand Default-first-Site-Name, expand Servers.
    3. Select a DC, right click Replicate Now.