‘vbscript Set Append DNS Suffixes (in order)On Error Resume Next strComputer = “.” arrNewDNSSuffixSearchOrder = Array(“internal.domain.local.1”, “internal.domain.local.2”)Set objWMIService = GetObject(“winmgmts:” _ & “{impersonationLevel=impersonate}!\” & strComputer & “rootcimv2”) Set objNetworkSettings = _ objWMIService.Get(“Win32_NetworkAdapterConfiguration”)intSetSuffixes = _ objNetworkSettings.SetDNSSuffixSearchOrder(arrNewDNSSuffixSearchOrder)
bcdedit.exe /set nx OptIn = “Turn on DEP for essential Windows programs and services only” bcdedit.exe /set ns OptOut = “Turn on DEP for all programs and services except those I select” bcdedit.exe /enum = Query Settings bcdedit.exe /set nx AlwaysOff = “Disable DEP entirely” To disable DEP just to internet Explorer 8 – see this article […]
C:WindowsSystem32cscript C:WindowsSystem32slmgr.vbs -ato
Problem: Appsense database is growing over time. The EVENTS table is huge. Solution: (at the time of writing this article) Appsense do not have an event management / retention period. It simply records all events indefinitely. Run the following script on the database server. —–Begin SQL script, select and copy into a text file and […]
This script will run for all listed citrix servers to check if logons are enabled or disabled remotely.its just a remote registry query coupled with an array, basic but functional.. 🙂 —————————————————————————————————-‘START SCRIPTconst HKEY_LOCAL_MACHINE = &H80000002 Dim oReg, strKeyPath, strValueName, strDisabled, objArgs, strComputer, arrComputersarrComputers = Array(“server1″,”server2″”) sOutput = “Logons Enabled(0) or Disabled(1)” & VBCRLF & […]
Thjis was a script that was accessing AD to export a list of usersSome user had the “/” character in the name – the following addition fixed the script to run correctly For Each strMemberDN in objGroup.MemberstrMemberDN = Replace(strMemberDN, “/”, “/”)Set objMember = GetObject(“LDAP://” & strMemberDN)Wscript.Echo objMember.cnNext
Description of Error: Windows could not start the application virualization client service on local computer. Error 1114: A dynamic link library (DLL) initilization routine failed. Solution1: Our previous global data directory was set ioncorrectly and preventing the service from starting (weird I know) Change the Previous GLobal Data Dir to match that of GlobalDataDirectory in the […]
@font-face { font-family: “Verdana”;}p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: “Times New Roman”; }div.Section1 { page: Section1;Open Internet Information Services management on a test or a no prod server and create a new website. @font-face { font-family: “Verdana”;}p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: “Times New Roman”; […]
Dim strFolder Dim arrServers Dim strProfile strProfile = inputbox(“Enter path to file to check I.E: c$program filesinternet exploreriexplore.exe”,”File Check”) arrComputers = Array(“server1″,”server2”) Set objFSO = CreateObject(“Scripting.FileSystemObject”) sOutput=”Script Results for:” & strprofile & vbcrlf & vbcrlf For EACH strComputer in arrComputers […]
Dim strFolder Dim arrServers Dim strProfile strProfile = inputbox(“Enter path to file to check I.E: c$program filesinternex exploreriexplore.exe”,”File Check”) arrComputers = Array(“server1″,”server2”) Set objFSO = CreateObject(“Scripting.FileSystemObject”) sOutput=”Script Results for:” & strprofile & vbcrlf & vbcrlf For EACH strComputer in arrComputers […]