Tag Archives: Windows Server

Use Active Directory to retrieve computer last logon date

If you need to see when a computer last logged onto your domain, here is a quick command to achieve that using PowerShell Active Directory shell: Get-ADComputer -identity [COMPUTER NAME] -Properties * | FT Name, LastLogonDate To look at all computers in your network. Change the -Identity switch for the -Filter switch: Get-ADComputer -Filter *…
Read more

Partition Assistant – Manage your Space

If you are in need of increasing space on any drive (mainly in regards to servers), I highly recommend this tool: AOMEI Partition Assistant (PA) A great tool that is easy to use and works! Just a few notes: MAKE A BACKUP OF ALL DRIVES BEFORE STARTING! - DO THIS, don't be lazy and regret…
Read more

FTP PowerShell Script

Automated PS script to run a FTP via Windows Task Scheduler using: Powershell.exe -ExecutionPolicy Bypass -command ".'C:path\to\SCRIPTNAME.ps1' optional argument -WindowStyle Hidden For console testing, use Set-ExecutionPolicy RemoteSigned   or --bypass   [sourcecode language="plain"] # Location where csv file is to be created, with results from query. $dir = Get-ChildItem -Path "PATH TO DIRECTORY HERE" | Sort-Object…
Read more

How To Modify An Existing DHCP Scope and Subnet

After searching through a lot of tutorials and  how-to's I created a step-by-step tutorial of how to change a DHCP scope.  Probably because you are running out of IP's to had out from your DHCP server.  First here is a IP Subnet Calculator. CMD: netsh dhcp server \\”Server name” scope “scope subnet name” dump>c:\dhcp.txt Take…
Read more

Logon screen turns black in Windows Server 2012 R2

When you try to log on to a Windows Server 2012 R2-based computer, the logon screen turns black after you enter the credentials. Then, the computer becomes unresponsive. Note: The computer is unresponsive even if you press CTRL+ALT+DEL Here is the fix: https://support.microsoft.com/en-us/kb/2897632 This issue occurs because an error occurs when the system tries to…
Read more

Scheduling your Server to Automatically Reboot

Navigate to Start -> All Programs -> Accessories -> System Tools -> Scheduled Tasks. You should now see the Add Scheduled Task Wizard on the Right. Choose run a program when prompted on what to do... click the Browse button. By default, the browse button will bring you to the root of the C: drive. Navigate to WINDOWS -> system32 and locate the file named ‘shutdown.exe’. Highlight it,…
Read more

Restart a Remote Server Using Command Prompt

Sometimes your server will become unresponsive, most of the time you will notice this when you try and remote desktop on and you just get a black BLANK screen. To fix this: Launch command prompt (as administrator) and run the below command. User should have administrator permissions on the server. 1: SHUTDOWN /r /f /t…
Read more

Windows computer is not accessible on domain network error

If you get a message that says "Windows computer is not accessible..." and you are on a domain network here is the fix that generally works: Go to your DNS on your domain controller Look for the FQDN computer you are trying to access in the list.  It will MOST LIKELY be the wrong IP…
Read more

Deploying a Remote desktop session server (RDSH) Server in a Work-group

This Post will show you how to deploy a Remote desktop session server (RDSH) in a workgroup (non Domain). Credit: ryanmangansitblog.com This deployment is Session based and will allow the use of desktop sessions. The down side to having a none domain joined Session host is that you will need to create users on the host…
Read more

Specify a License Server for an RD Session Host Server to Use

A Remote Desktop Session Host (RD Session Host) server must be able to contact a Remote Desktop license server to request Remote Desktop Services client access licenses (RDS CALs) for users or computing devices that are connecting to the RD Session Host server. To specify a license server for the RD Session Host server to use On the…
Read more

Turn on Network Discovery for Windows Server 2008 – 2012

If you are unable to see your Windows Server 2008 - 2012 in your network, here is how to fix that: Make sure that the following dependency services are started: DNS Client Function Discovery Resource Publication SSDP Discovery UPnP Device Host Configure the Windows firewall to allow Network Discovery. To do this, follow these steps:…
Read more

How to disable shutdown for remote desktop user

This is the step to disable the shutdown/restart/suspend/hibernate options in the start menu. (1) Open the Local Group Policy Editor by Start > Run > Enter gpedit.msc (2) Go to User Configuration > Administrative Templates/ Start Menu and Taskbar (3) Enable “Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands” But…
Read more