Search This Blog

Thursday, May 5, 2011

Cannot map to any network drive or shares/RPC server is unavailable

For me it was missing one registry key
REG_DWORD "DhcpNodeType" = 1
under
HKLM\SYSTEM\CurrentControlSet\Services\NetBT\Parameters

A easy trick is, if it worked before, you can look under
"HKLM\SYSTEM\ControlSet001\Services\NetBT\Parameters"
or
"HKLM\SYSTEM\ControlSet002\Services\NetBT\Parameters"
and compare the difference.

This also fixes an issue opening Group Policy Management showing "RPC server is unavailable"

Tuesday, May 3, 2011

Remote Desktop Not Working in Vista

Remote desktop is enabled, exception is checked, still remote desktop does not work.

"I've got the same problem: Vista+SP2, same event in logs, no access to remote desktop.

But, after some magic dances around my box with a process monitor, I found a solution. Basically all u need is to grant full control permission to HKLM\System\CurrentControlSet\Control\Terminal Server\RCM registry key to NETWORK SERVICE local account and restart "Terminal Services" service or reboot."

Tuesday, November 30, 2010

Boredom - msg

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v AllowRemoteRPC /t REG_DWORD /d 1
To each computer, msg /server:computername *

Saturday, September 25, 2010

Generate RDP Files for Remote Desktop

Barebones RDP File (3 lines)
full address:s:
username:s:
password 51:b:

Group Policy: Run his CMD script at beginning of user login to generate the RDP file for Remote Desktop.

VBS:
Set oExec = WshShell.Exec("cryptRDP5.exe password")
pwdhash = oExec.StdOut.readall

To prevent dialog box from coming up, decimal 76

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\LocalDevices]
"XXX.XXX.XXX"=dword:0000004c

Script below will encrypt the password into the RDP code, generate a RDP file on the desktop, and run the RDP file. Run script at user login.
-----

Set WshShell = CreateObject("WScript.Shell")
computername = WshShell.ExpandEnvironmentStrings("%COMPUTERNAME%")
Select Case computername
Case "COMPUTER1"
user = "user1"
Case "COMPUTER2"
user = "user2"
End Select
Set oExec = WshShell.Exec("\\server\cryptRDP5.exe password")
pwdhash = oExec.StdOut.readall
outputfile = WshShell.ExpandEnvironmentStrings("%USERPROFILE%") & "\Desktop\Remote.rdp"
Set fso = CreateObject("Scripting.FileSystemObject")
Set fsofile = fso.CreateTextFile(outputfile)
fsofile.WriteLine("full address:s:remoteaddress")
fsofile.WriteLine("username:s:" & user)
fsofile.WriteLine("password 51:b:" & pwdhash)
fsofile.Close
WshShell.Run("mstsc " & outputfile), 1, true

Wednesday, September 8, 2010

HP Web Jetadmin Deploy using MSI

Use Orca and open the MSI.
Not enought ram?
1) In "LaunchCondition", drop row "PhysicalMemory>=1024"
Accept the EULA
2) In "Property", change value of "WJA_EULA" to "ACCEPT"
Confirm that the database is backed up
3) In "Property", add row of "WJA_BACKUP_CONFIRM" to "YES"