• Cannot create a session collection on RDS Windows Server 2012R2

    If you create a session collection individually, you receive the following error message:

    Unable to configure the RD Session Host Server <server name>. Invalid operation


    Note The Group Policy settings are under the following Group Policy paths:

    • Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Security
    • Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Licensing
  • Blue Screen 0x9F: DRIVER_POWER_STATE_FAILURE

    In Windows Vista and later version of Windows, when the system changes power states i.e. transitions from a working state (S0) to a lower power state like standby (S3), hibernate (S4) or shutdown (S5) or vice versa, every driver in the system is notified about the transition via a system power IRP (S-IRP). In response to these system power state change requests, drivers power down their devices by requesting device power IRPs (D-IRP) and then sending them down to the underlying bus driver. For every power IRP that is sent to a driver, the power manager starts a watchdog timer that fires if the IRP is not completed within 10 minutes. The resultant timer DPC routine that runs at the end of this period crashes the system with the following bug-check code and parameters as displayed by the kernel debugger command "!analyze -v".

    Some tips to investigate the issue is:

    Arg1: - A device object has been blocking an Irp for too long a time
    Arg2: - Physical Device Object of the stack
    Arg3: - Functional Device Object of the stack
    Arg4: - The blocked IRP

    !poaction
    !analyze -v

    Additional info:

    http://www.nirsoft.net/utils/blue_screen_view.html#DownloadLinks
    http://social.technet.microsoft.com/wiki/contents/articles/6302.windows-bugcheck-analysis.aspx
    https://msdn.microsoft.com/en-us/windows/hardware/hh852365

  • Multiple NetBIOS names for Windows servers

    You can add another NetBIOS name in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters section of the Windows registry by adding the OptionalNames string value. If three or more NetBIOS names are required, use the multi-string value with the same name. 

     secondname

    This NetBIOS name is not treated the same as the server's "primary" name. To aid in name resolution, I recommend that you add a DNS CNAME record that points to the server's primary name. Note: Editing the registry is risky, so be sure you have a verified backup before making any changes.

  • Server 2012R2 “server specified requires restart” loop when installing WID

    1.        Open up your domain group policy editor.
    2.        Navigate to the Default Domain Policy
    3.        Navigate to Policies -> Windows Settings -> Security Settings -> Local Policy -> User Rights Assignment
    4.        Find the “Log on as a service” policy and edit it.
    5.        Click on “Add user or group” button.
    6.        Add the following users: NETWORK, NETWORK SERVICE, SERVICE, MSSQL$MICROSOFT##WID
    7.        Got to your Server 2012 machine and open an elevated command prompt.
    8.        Type in: gpupdate /force. Wait for it to successfully complete
    9.        Now try and install the WID . You should now have successfully completed the installation.
  • Additional RDP Listener in Windows Server 2012 / R2

    Issue: create same RDP on multiple ports.

    The below example will create a listener with the name RDP-Tcp-3390 that is listening on port 3390 (00000d3e).

    Windows Registry Editor Version 5.00

     [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp-3390]
    "fInheritMaxIdleTime"=dword:00000001
    "fPromptForPassword"=dword:00000000
    "fResetBroken"=dword:00000000
    "PdClass"=dword:00000002
    "LoadableProtocol_Object"="{5828227c-20cf-4408-b73f-73ab70b8849f}"
    "UserAuthentication"=dword:00000001
    "fDisableCam"=dword:00000000
    "fInheritAutoLogon"=dword:00000001
    "InteractiveDelay"=dword:00000032
    "Domain"=""
    "fInheritReconnectSame"=dword:00000001
    "SelectTransport"=dword:00000000
    "MinEncryptionLevel"=dword:00000002
    "fInheritShadow"=dword:00000001
    "WFProfilePath"=""
    "fReconnectSame"=dword:00000000
    "PdDLL"="tdtcp"
    "PortNumber"=dword:00000d3e
    "PdFlag1"=dword:00000000
    "WdName"="Microsoft RDP 8.0"
    "fInheritMaxSessionTime"=dword:00000001
    "WdFlag"=dword:00000036
    "SelectNetworkDetect"=dword:00000000
    "fLogonDisabled"=dword:00000000
    "MaxDisconnectionTime"=dword:00000000
    "Callback"=dword:00000000
    "PdDLL1"="tssecsrv"
    "NWLogonServer"=""
    "MaxIdleTime"=dword:00000000
    "fDisableEncryption"=dword:00000001
    "fInheritCallback"=dword:00000000
    "fDisableCcm"=dword:00000000
    "ColorDepth"=dword:00000003
    "PdName"="tcp"
    "fEnableWinStation"=dword:00000001
    "OutBufLength"=dword:00000212
    "PdFlag"=dword:0000004e
    "CallbackNumber"=""
    "CdClass"=dword:00000000
    "Shadow"=dword:00000001
    "fDisableCdm"=dword:00000000
    "PdName1"="tssecsrv"
    "fInheritSecurity"=dword:00000000
    "CdDLL"=""
    "LanAdapter"=dword:00000000
    "fInheritResetBroken"=dword:00000001
    "CfgDll"="RDPCFGEX.DLL"
    "InitialProgram"=""
    "fDisableClip"=dword:00000000
    "InputBufferLength"=dword:00000800
    "fAllowSecProtocolNegotiation"=dword:00000001
    "fDisableAudioCapture"=dword:00000000
    "Password"=""
    "CdName"=""
    "fDisableLPT"=dword:00000000
    "CdFlag"=dword:00000000
    "PdClass1"=dword:0000000b
    "fAutoClientLpts"=dword:00000001
    "fAutoClientDrives"=dword:00000001
    "fInheritCallbackNumber"=dword:00000001
    "OutBufCount"=dword:00000006
    "fInheritMaxDisconnectionTime"=dword:00000001
    "MaxInstanceCount"=dword:ffffffff
    "KeyboardLayout"=dword:00000000
    "fDisableExe"=dword:00000000
    "AudioEnumeratorDll"="rdpendp.dll"
    "Username"=""
    "KeepAliveTimeout"=dword:00000000
    "fUseDefaultGina"=dword:00000000
    "fHomeDirectoryMapRoot"=dword:00000000
    "fInheritColorDepth"=dword:00000000
    "fForceClientLptDef"=dword:00000001
    "WorkDirectory"=""
    "SecurityLayer"=dword:00000001
    "DrawGdiplusSupportLevel"=dword:00000001
    "WdPrefix"="RDP"
    "fInheritAutoClient"=dword:00000001
    "fDisableCpm"=dword:00000000
    "Comment"=""
    "OutBufDelay"=dword:00000064  "fInheritInitialProgram"=dword:00000001  "MaxConnectionTime"=dword:00000000

     [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp-3390\VideoRemotingWindowNames]  

    "AGFullScreenWinClass"="*"
    "MacromediaFlashPlayerActiveX"="*"  
    "EVRVideoHandler"="*"  "MicrosoftSilverlight"="*"  
    "ShockwaveFlashFullScreen"="*"

    Additional 2012 R2 values (was not needed for me):

    Windows Registry Editor Version 5.00

     [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]  

    "UserAuthenticationBackup"=dword:00000000  
    "MaxMonitors"=dword:00000004  
    "MaxXResolution"=dword:00000a00  
    "MaxYResolution"=dword:00000640

  • Changing the Product Key in Server 2012 Changing the Product Key in Server 2012 Changing the Product Key in Server 2012

    Server 2012’s system properties do not allow you to change the Product key.

    To change this you need to open power shell in privileged mode and enter the following cmd’s. slmgr -upk (this removes the current Product Key)

    slmgr -ipk XXXX-XXXX-XXXX-XXXX (this installs the new Product Key)

    Please see Microsoft’s Article ID: 2750773:

    http://support.microsoft.com/kb/2750773

    Happy activating.

  • Domain Controller not creating NETLOGON and SYSVOL shares

    When you add new DC to existing domain, you have issue that NETLOGON and SYSVOL shares not created.

    1. Make sure you have good ping between servers by names.

    2. Use net sheres

    3. Run the following command on all domain controllers in the forest.

    Net Stop NTFRS  (stop the file replication service)

    Go Into Registry Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NtFrs\Parameters\Backup/Restore\Process at Startup

    Change the BurFlags DWORD to = D4 on the Primary Domain Controller and change to D2 on all of the backup domain controllers.

    Start the NTFRS service again by using Net Start NTFRS command

    After I did this on all of the domain controllers it started working properly.

  • Windows 10 and logon.bat

    Find logon scripts in AD user properties through AD PowerShell:

    PS> Get-ADUser -filter * -properties scriptpath, homedrive, homedirectory | ft Name, scriptpath, homedrive, homedirectory

    Also check  GPO.

    Change your .bat script to .vbs and made changes inside by fllowing:

     

    Option Explicit
    Dim strDriveLetter
    Dim objShell, objNetwork
    Dim CheckDrive, AlreadyConnected, intDrive

    Set objShell = CreateObject("WScript.Shell")
    Set objNetwork = CreateObject("WScript.Network")
    Set CheckDrive = objNetwork.EnumNetworkDrives()

    REM --- Connect Drive W: \\SERVER\WORKSPACE ---

    strDriveLetter = "W:"

    On Error Resume Next
    AlreadyConnected = False
    For intDrive = 0 To CheckDrive.Count - 1 Step 2
    If CheckDrive.Item(intDrive) =strDriveLetter Then AlreadyConnected =True
    Next

    If AlreadyConnected = True then
    REM objShell.PopUp "Drive " & strDriveLetter & _ " is already connected"  
    Set objNetwork = CreateObject("Wscript.Network")   objNetwork.RemoveNetworkDrive "W:", True, True 
    objNetwork.MapNetworkDrive "W:", "\\CSNAS\WORKSPACE", True
    Else
    REM objShell.PopUp "Drive " & strDriveLetter & _ " is not connected."
    Set objNetwork = CreateObject("Wscript.Network")   objNetwork.RemoveNetworkDrive "W:", True, True
    objNetwork.MapNetworkDrive "W:", "\\CSNAS\WORKSPACE", True
    End if

     

    REM --- Connect Drive W: \\SERVER\UTILS ---

    strDriveLetter = "K:"

    On Error Resume
    Next AlreadyConnected = False
    For intDrive = 0 To CheckDrive.Count - 1 Step 2
    If CheckDrive.Item(intDrive) =strDriveLetter Then AlreadyConnected =True
    Next

    If AlreadyConnected = True then
    REM objShell.PopUp "Drive " & strDriveLetter & _ " is already connected"  
    Set objNetwork = CreateObject("Wscript.Network")   objNetwork.RemoveNetworkDrive "K:", True, True 
    objNetwork.MapNetworkDrive "K:", "\\CSNAS\UTILS", True
    Else
    REM objShell.PopUp "Drive " & strDriveLetter & _ " is not connected."
    Set objNetwork = CreateObject("Wscript.Network")   objNetwork.RemoveNetworkDrive "K:", True, True
    objNetwork.MapNetworkDrive "K:", "\\CSNAS\UTILS", True
    End if

    WScript.Quit

  • Schedule Server Restart

    To schedule server restart in 10 hours (36000 seconds) using command line:

    shutdown /r /t 36000

    If you need to restart server in particular time, please use excel formula to figured out how many seconds from now:

    =("28/02/2016  4:30:00 PM"-NOW())*86400

    After that use result with shutdowd cmd.

Google AdSence

AUST IT - Computer help out of hours, when you need it most.

Find out why we do it for less.

About

AUST IT will help you resolve any technical support issues you are facing onsite or remotely via remote desktop 24/7. More...

Contacts

Reservoir, Melbourne,
3073, VIC, Australia

Phone: 0422 348 882

This email address is being protected from spambots. You need JavaScript enabled to view it.

Sydney: 0481 837 077

Connect

Join us in social networks to be in touch.

Newsletter

Complete the form below, and we'll send you our emails with all the latest AUST IT news.