For most users this article only applies if you have Window 2003/ 2003 R2 Domain Controller in your enviornment that you are planning to get rid off. Pretty soon I hope! 😉 SYSVOL is a folder shared by domain controller to hold its logon scripts, group policies and other items related to AD. All the…
Tag: windows
Lists all users last logon time
As administrators we often want to check which users have not logged in for quite a while, or what accounts recently accessed a system, etc. The following script list all users and their last logon time. With the lastloggeduser.csv we can get fancy with excel to find differences based on age and more.
1 |
$([ADSI]"WinNT://$env:COMPUTERNAME").Children | where {$_.SchemaClassName -eq 'user'} | select @{l='name';e={$_.name}},@{l='LastLogin';e={$_.lastlogin}} | export-csv C:\scripts\lastloggedusers.csv |
A Beginner’s Guide to Checksum
Are you wondering what a checksum is? You may have noticed that when you download files from certain websites, they have a very long string of numbers and letters called a checksum or MD5 checksum or SHA-1, etc. These really long strings basically act as fingerprints for that particular file, whether it be an EXE,…
Reset Windows Server 2012 R2 RDS 120 Day Grace Period
The RD Licensing grace period has expired and the service has not registered with a license server with installed licenses. A RD Licensing server is required for continuous operation. A Remote Desktop Session Host server can operate without a license server for 120 days after initial start up. The official solution is to Activate the…
No remote Desktop License Server available on RD Session Host server 2012 R2
A fully functional and activated 2012 R2 Remote Desktop Session Host server displayed the following message: This was a simple setup on one server with the: connection broker, Session Host and Licensing server with 2012 R2 CAL’s installed. Even though the licensing seems to be configured correctly, in server manager: and PowerShell: Licensing diagnostics: everywhere…
Create A Dedicated Account To Join Computers To A Domain
Admins often need to automate things, like creating a dedicated account for joining machines to an Active Directory (AD) domain.  This is useful for things like System Center Configuration Manger task sequences and System Center Virtual Machine Manager templates or similar needs. First create a standard Windows user account.  Next, right-click on the Computers Organization…
Windows: Hide Internet Explorer 11 address bar & navigation bar
Applies to: Windows Server 2008R2, Windows Server 2012R2, Windows 10 There are two ways this can be accomplished depending on your needs for the controlled environment. GPO: I would like to first clarify that there is not a single GPO to just hide TABS in IE11. There is however a way you can enforce IE in Full…
DFS Namespace service could not initialize cross forest trust information
After you install Active Directory on Windows Server 2008 R2, you may start seeing the following error message after the server boots: The DFS Namespace service could not initialize cross forest trust information on this domain controller, but it will periodically retry the operation. The return code is in the record data. This occurs because…
DNS broken after Windows Update KB3145126
I noticed the DNS broke on my servers after Windows Update. The problem was KB3145126. Read more about it here. After a quick removal and reboot, DNS was operational again. To remove/uninstall KB3145126, open powershell and run the following:
1 |
wusa.exe /uninstall /KB:3145126 |
Hope this helps.
Check Proxy settings from Powershell
To check the proxy settings like ProxyOveride or if it is enabled or not:
1 |
Get-ItemProperty -Path "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" |
To disable proxy from PowerShell:
1 |
Set-ItemProperty -Path "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" ProxyEnable -value 0 |
To enable proxy from PowerShell:
1 |
Set-ItemProperty -Path "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" ProxyEnable -value 1 |