Install-WindowsFeature Hyper-V-PowerSHell

Adding the Hyper-V administrative components. You can also add this role via PowerShell. These few lines will query to see what Hyper-V administrative components (the features) are added and then install the administration tool and the PowerShell extension for Hyper-V. The lines are below: Get-WindowsFeature Hyper-V* Install-WindowsFeature Hyper-V-Tools Install-WindowsFeature Hyper-V-PowerSHell

Read More

Batch Maintenance for GPO

Echo off clsipconfig /flushdnsipconfig /registerdns ipconfig /releaseipconfig /renewnetsh int ip reset reset.log netsh winsock reset catalogcd /d %temp%   for /r %%a in (*.*) do (   del /f /q %~a   cd /d “%UserProfile%Local SettingsTemporary Internet Files   for /r %%b in (*.*) do (   del /f /q %~b   echo y|chkdsk /fecho y | gpupdate /force /wait:0shutdown -r

Read More

Restart the computer automatically nightly

following steps to restart the computer automatically nightly. 1.   Launch Task Scheduler. 2.   Click Action and select Create Basic task. 3.   Type AutoRestart (or others you want) in the Name box and click Next. 4.   Select Daily and click Next 5.   Type the time you want to restart the computer and click Next. 6.   Select Start a program and click Next. 7.   Click Brower and navigate to %SystemRoot%System32 and selectShutdown.exe and click Open. Type –F –R in…

Read More

Speed up the logon process

If you are using  a domain environment with roaming profiles or home directories that are located on remote machines (servers) and experience slow log-on process this is probably because Windows 7 and Windows Server 2008 are configured not to detect to which Windows Domain Controller they belong to by default. Here’s how speed up the logon…

Read More