Posts

Netbackup Admin Script

Normal procedure for NetBackup with our Robot with 2 LTO4 tapes is physically adding media then do an inventory and then check in the gui your retention period for the tapes. I've written a script which does all that. The only thing you need to change part where I let findstr search for eg LTO4 (all our LTO4 tapedrives use a pool with LTO4 in the name) @echo off e: cd "\Program Files\Veritas\Volmgr\bin" Rem ***************** REM * Inventory Robot REM ***************** vmupdate -rt TLD -rn 1 -h hpbck01 -rh hpbck01 -use_barcode_rules Rem ************** Rem * Expire Media REM ************** for /f "delims=, " %%a in ('"vmquery -rn 1 -bx findstr /I "LTO4""') do "E:\Program Files\Veritas\NetBackup\bin\admincmd\bpexpdate.exe" -d 0 -ev %%a -force Rem **************************** Rem * Move media to scratch pool REM **************************** for /f "delims=, " %%b in ('"vmquery -rn 1 -bx findstr /I "NetB...

Recover Deleted Items Outlook 2000

By default, the Recover Deleted Items functionality is only enabled on the Deleted Items folder in a user's private folders. Items that are hard deleted cannot be recovered. To enable the Recover Deleted Items functionality on mail folders other than the Deleted Items folder (for example, for the Sent Items, Drafts, Outbox and Inbox folders), make the following changes to the registry: Start Registry Editor. Locate and then click the following key in the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\Client\Options On the Edit menu, click Add Value , and then add the following registry value: Value name: DumpsterAlwaysOn Data type: DWORD Value data: 1 Close Registry Editor. You can use an administrator's computer or a user's computer to make this change to the registry. After you change the registry, start Outlook, and then click Deleted Item Recovery on the Tools menu. A list of items that were hard deleted during the retention time that is set on the s...

Copy fonts using script for unattended vista install

I had to create a vbscript to copy fonts from a network share for an unattended vista (or windows 7) install Const FONTS = &H14& Set objShell = CreateObject("shell.Application") Set objFolder = objShell.Namespace(FONTS) strdir = "\\srv001\REMINST\Drivers\Finalize\Fonts" enumdir(strdir) Sub EnumDir(strdir) dim FSO,f,fc set FSO=Wscript.CreateObject("scripting.FileSystemObject") If fso.FolderExists(strDir) then set f=fso.GetFolder(strDir) set fc=f.files if fc.Count > 2 then for each fl in fc objFolder.CopyHere strdir & "\" & fl.name next End If else wscr...

Terminal Server Profile Path Woes

During a migration process I came accross this odd problem. I could not change a Terminal Server Profile Path for a couple of hundred users. I searched the microsoft site but I could not find anything that would help me quick. Yes I did find this link http://technet.microsoft.com/en-us/library/cc783578.aspx But my client did not have grouppolicies in place and I did not want to use the "Terminal Services Extension" I found several partly usefull scripts I combined the best of them in the script below. I really hope you will find this usefull. '****************************************************************************** Const ADS_SCOPE_SUBTREE = 2 Const ForAppending = 8 On Error Resume Next Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile ("c:\myusers.txt", ForAppending, True) Set objConnection = CreateObject("ADODB.Connection") Set objCommand = CreateObject("ADODB.Command") objConnect...

Monitoring your windows servers with email alerts from the commandline

Image
This is something that you will have to face allways. You must monitor all servers that are under your command this way ensuring that servers keep on running happily. For this I use the builtin perfmon and I use the opensource application SendEmail [you can download it here ] SendEmail is just an exe you don’t have to install it, just put in a folder lets say [ D:\SendEmail ] I use a complete seperate machine to monitor my network this way I keep the load off from monitoring and this ensures the most accurate data. In this example I want to monitor the free space on the c:\ drive of a remote server called “Fileserver” On the machine from which you want to monitor start perfmon just hit [ winkey + r and type perfmon ] this is the quickest way.   You will see this screen: In the left hand side expand performance logs and alerts. Right click alerts and choose [New Alert Settings]     give your alert a meaningfu...

How to delete the deleted Items folder in Exchange 2003

Image
  I had a problem that users used the deleted Items as a filing cabinet. This is how we got rid of that J There are 2 ways accomplishing this task one is via GroupPolicy and one is through Exchange System Manager. In this article I’ll discuss the latter because I love to use the tools builtin in ESM. Go to ESM Then go to the folder recipients in ESM and hit the right mousebutton. And choose [Recipient Policy] The dialogbox New Policy appears check the checkbox [Mailbox Manager Settings] and hit [OK] Now give the Policy a meaningfull name And Hit the [Modify] button because I want this policy only to be applied to the office department in Amsterdam. I’ll show you how I can do that. In the find Exchange Recipients dialogbox go to the dropdownbox find and choose Custom Search. In the Custom Search Tab choose Contact and select Department. (I use in ADUC the organization tab and I fill the department field with Amsterdam for users in the OU Am...

Openoffice 3.0.0 is out

You can grab the release here: http://ftp.tu-chemnitz.de/pub/openoffice-extended/stable/3.0.0/   Or choose a mirror close to you. http://distribution.openoffice.org/mirrors/

Microsoft Hyper-V Server FREE

Image
Free Download Get Hyper-V Server 2008 here! Microsoft Hyper-V Server 2008 provides a simplified, reliable, and optimized virtualization solution, enabling improved server utilization and reduced costs. Since Hyper-V Server is a dedicated stand-alone product, which contains only the Windows Hypervisor, Windows Server driver model and virtualization components, it provides a small footprint and minimal overhead. It easily plugs into customers’ existing IT environments, leveraging their existing patching, provisioning, management, support tools, processes, and skills. Key Benefits Improved server utilization Small footprint Minimal overhead IT Pros can easily to leverage their existing knowledge and skills with Microsoft virtualization products, as well as the collective knowledge of the community, minimizing any learning curve. In addition, with Microsoft providing comprehensive sup...

[Solved] The Group Policy client-side extension Internet Explorer Zonemapping failed to execute

Image
I had the error below in my application eventlog.     Event Type:    Error Event Source:    Userenv Event Category:    None Event ID:    1085 Date:        30-09-2008 Time:        15:20:30 User:        NT AUTHORITY\SYSTEM Computer:    TBG-TS01 Description: The Group Policy client-side extension Internet Explorer Zonemapping failed to execute. Please look for any errors reported earlier by that extension. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp .   My problem was with my site to zone assignment list I used a wildcard like this: “ *microsoft.com ” but what you need to do is this “ *.microsoft.com ” So it is safe to say that the documentation from microsoft needs some sort of an update stating that y...