Saturday, December 20, 2014
How to Remotely Manage AD from a Member Server
Wednesday, March 26, 2014
Faster Active Directory Replication - Decrease Intersite Replication Interval to Seconds
Enable Fast Domain Controller Replication
![]() |
Active Directory Intersite Replication Interval Enable Faster AD and DNS updates |
Enable Faster Active Directory AD and DNS Replication Updates Between Sites
Fast Intersite Replication Interval - Speed up DC Replication, Updates are in Seconds
Start ADSI edit and go to
Configuration > then Sites > Inter Site Transports > IP.
Note this setting cannot be enabled for SMTP InterSite links.
Faster AD DNS Replication Updates Between Sites and Domain Controllers.
Thursday, January 23, 2014
Updating SSL Certificate on Netscaler VPX Resource Already Exists Error
Updating or Replacing an SSL Certificate on Netscaler VPX 10
Resource Already Exists error Citrix Netscaler
When replacing or updating an SSL certificate on a Netscaler VPX version 10 appliance you get a Resource Already Exists error message. even when you try to add the certificate as a new certificate bypassing the update option in the Netscaler the message persists.
This can be caused by the same serial number or thumbprint on the re-issued certificate. This scenario is rare and most often occurs if there are two or more Netscalers in a load balance fail over configuration.
Oddly enough , this error can also occur if there is a problem with the SSL certificate itself. The cert can be from any CA and although it seemingly looks okay, closer inspection will reveal the certificate was generated with SHA2 encryption algorithm. Have the certificate re-issued using SHA1. The Netscaler version 10 does not support SHA2 for SSL certs on virtual servers yet. Most likely, Netscaler 9 also does not support SHA1.
Contact your CA certificate provider and ask them to re-issue the certificate but generate it using SHA1 .
Friday, May 18, 2012
Create Network Printers at Logon With vbs and Batch File
Create Network Printers at Logon With vbs and Batch File
The following vbs script can be run from a batch file like a logon.bat file that you may already have in your NETLOGON folder. Or simply create a new one. Be sure to add the logon.bat to your users' account profiles in AD. You'll need to get the fmember exe from Microsoft, or you may already have it.
Set WshNetwork = CreateObject("WScript.Network")
Set objShell = CreateObject("Wscript.Shell")
WSHNetwork.MapNetworkDrive "N:", \\DC01\Netlogon
WshNetwork.RemovePrinterConnection \\PrintServer01\Printer1
WshNetwork.RemovePrinterConnection \\PrintServer01\Printer2
strCommand = "%comspec% /c N:\IfMember.exe FirstFloor"
intReturn = objShell.Run(strCommand, 2, True)
If intReturn = 1 Then
WshNetwork.AddWindowsPrinterConnection \\PrintServer01\Printer1
WshNetwork.SetDefaultPrinter \\PrintServer01\Printer1
End If
strCommand = "%comspec% /c N:\IfMember.exe SecondFloor"
intReturn = objShell.Run(strCommand, 2, True)
If intReturn = 1 Then
WshNetwork.AddWindowsPrinterConnection \\PrintServer01\Printer2
WshNetwork.SetDefaultPrinter \\PrintServer01\Printer2
End If
WshNetwork.RemoveNetworkDrive "N:"
The above logon vbs script works great but you may encounter and issue with Windows 7 computers.
For Windows 7 use the following in a batch file:
@echo off
rundll32 printui.dll,PrintUIEntry /q /ga /n \\dc01\Printer-duplex
exit
The above will add a printer at the machine level quietly - No user messages. If run without the quiet switch, the user will will see a message indicating the printer already exists upon logon. The first user will not see the message of course when the entry is first added to the logon script. I used a .cmd file.
PRINTUI.EXE can be used instead of RUNDLL32 PRINTUI.DLL,PrintUIEntry on Windows 7 but then you'll have to add some conditional code to determine if the user is loging in from a windows 7 computer or not.
Create Network Printers with a Logon script batch (.bat) file or cmd file
RUNDLL32 PRINTUI.DLL command line options / switches
Usage:
RUNDLL32 PRINTUI.DLL,PrintUIEntry [ options ] [ @commandfile ]/a[file] binary file name
/b[name] base printer name
/c[name] unc machine name if the action is on a remote machine
/dl delete local printer
/dn delete network printer connection
/dd delete printer driver
/e display printing preferences
/f[file] either inf file or output file
/ga add per machine printer connections
/ge enum per machine printer connections
/gd delete per machine printer connections
/h[arch] driver architecture, one of the following:
Alpha
Intel
Mips
PowerPC
/ia install printer driver using inf file
/id install printer driver using add printer driver wizard
/if install printer using inf file
/ii install printer using add printer wizard with an inf file
/il install printer using add printer wizard
/in add network printer connection
/j[provider] print provider name
/k print test page to specified printer, cannot be combined with command when installing a printer
/l[path] printer driver source path
/m[model] printer driver model name
/n[name] printer name
/o display printer queue view
/p display printer properties
/q quiet mode, do not display error messages
/r[port] port name
/s display server properties
/Ss Store printer settings into a file
/Sr Restore printer settings from a file
Store or restore printer settings option flags that must be placed at the end of command:
2 PRINTER_INFO_2
7 PRINTER_INFO_7
c Color Profile
d PrinterData
s Security descriptor
g Global DevMode
m Minimal settings
u User DevMode
r Resolve name conflicts
f Force name
p Resolve port
/u use the existing printer driver if it's already installed
/t[#] zero based index page to start on
/v[version] driver version, one of the following:
Windows 95 or 98
Windows NT 3.1
Windows NT 3.5 or 3.51
Windows NT 3.51
Windows NT 4.0
Windows NT 4.0 or 2000
Windows 2000
/w prompt the user for a driver if specified driver is not found in the inf
/y set printer as the default
/Xg get printer settings
/Xs set printer settings
/z do not auto share this printer
/Z share this printer, can only be used with the /if option
/? help this message
@[file] command line argument file
Tuesday, January 24, 2012
Basic Differences Between CAT5, CAT5E, CAT6, CAT6e, CAT6a Cables
RJ45 Pin-out for Network Connection
Wednesday, January 18, 2012
Exchange Management Shell Create New User with Exchange 2010 Shell
Exchange Management Shell Create New User with Exchange 2010 Shell
Command:
New-Mailbox -Name 'new user' -Alias 'nuser' -UserPrincipalName 'nuser@your-domain.com' -SamAccountName 'nuser' -FirstName 'new' -Initials '' -LastName 'user' -Password 'System.Security.SecureString' -ResetPasswordOnNextLogon $false
I used this just today and it worked very nicely. I suspect the command can be oput into a script or batch file to create many accounts without the need for exchange 2010 Managment console.
Tuesday, December 6, 2011
Enable SSH on VMWare 5 ESXi
How to Enable SSH Access on VMWare vSphere 5 ESXi
Enabling SSH remote access to the console of an esxi 5.0 vmware host server is the same as in ESXi 4.1 (not 4.0 and earlier). In 5.0 vmware vSphere ESXi and 4.1 vmware vSphere ESXi it can be accomplished using the vSphere client. With earlier versions, like enabling SSH on ESXi 4.0, it had to be done via the server console.
How to Enable SSH Access on VMWare 5 ESXi
Enable SSH for remote connections from the vSphere Client
perform the following short steps to enable access to the ESXi Shell using the vSphere Client:
- Logon to the up to date VSphere client
- Select from the list of hosts the ESXi host you want to configure and choose Configuration then -> Security profile
- From the Services section under Security Profile, select Properties
- Select the SSH option in Properties and choose Options
- Select Start to start SSH on the host.
- Repeat the process for each ESXi 5 host.
There is no global or farm-like setting that would allow you to do all your hosts at once. Perhaps that will come in the next version ESXi 6 .