Search This Blog

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"

Monday, September 6, 2010

Virtual PC Console Window Missing When Launched

Virtual PC Console went missing, caused by a setting in,
C:\Users\XXX\AppData\Roaming\Microsoft\Virtual PC\Options.xml

< console>
< height type="integer">27< /height>
< left_position type="integer">4294935296< /left_position>
< top_position type="integer">4294935296< /top_position>
< visible type="boolean">true< /visible>
< width type="integer">160< /width>
< /console>

Change the gigantic numbers to something more sensible and save

Tuesday, August 17, 2010

Microsoft Office 2007 GPO Deploy Using MSI only

Add these lines to "config.xml" in "ProPlus.WW" directory,
add "<" to the front of each line. Deploy using the "ProPlusWW.msi"

Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
PIDKEY Value="XXXXXXXXXXXXXXXXXXXXXXXXX" />
OptionState Id="ACCESSFiles" State="local" Children="force" />
OptionState Id="EXCELFiles" State="local" Children="force" />
OptionState Id="OneNoteFiles" State="local" Children="force" />
OptionState Id="OUTLOOKFiles" State="local" Children="force" />
OptionState Id="PPTFiles" State="local" Children="force" />
OptionState Id="PubPrimary" State="local" Children="force" />
OptionState Id="SHAREDFiles" State="local" Children="force" />
OptionState Id="TOOLSFiles" State="local" Children="force" />
OptionState Id="WORDFiles" State="local" Children="force" />
OptionState Id="XDOCSFiles" State="local" Children="force" />

Sunday, February 21, 2010

Brother MFC Maintenance Codes

Press Menu * 2 8 6 4
"Maintenance" appears
01 Parameter Init
11 Configuration List
55 Scan Area Set
66 Media Sensor Adj (Left: 10, Right: 10)
74 Country Code
77 Status Page
88 AMS00
91 Parameter Init
99 Exit

Wednesday, February 17, 2010

Vista Infinite Update Loop

Fixed reboot loop by using Vista CD to enter recovery command prompt, renamed C:\Windows\WinSxS\pending.xml to pending.xml.OLD
booted fine to login screen.