Translate

maandag 23 maart 2020

Do you also get bored with the click to run feature in Microsoft Office 2016 for example?

Do you distribute\transmit roaming profiles over your big network?

Use a version of the latest Office that doesn't use the feature click to run.

Or follow the following steps to succeed with uninstallation of the unfriendly feature.

To uninstall Office 16 Click-to-Run Extensibility Component 64-bit Registration, please try the steps below:

1. Press Win + R to open the Run window, type “installer” and click Enter to open the folder in File Explorer.
2. Add the column “Subject”. Right click the column headers, then click More and select Subject
3. Sort on the Subject column and scroll down until you locate the name “Office 16 Click-to-Run Extensibility Component 64-bit Registration”.
4. Right click the MSI file and choose uninstall.

vrijdag 17 april 2015

Extract VM details from your XenServer pool

I've been searching for a while to get the VM details like CPU/RAM/Storage from a XenServer pool....

Thanks to my collegue Daniel Zwart we have created a script that will do the trick.

See below for the script:

#!/bin/sh
IFS=$','
vmuuidlist=$(xe vm-list params=uuid is-control-domain=false is-a-snapshot=false power-state=running --minimal)
poolname=$(xe pool-list params=name-label --minimal)
echo VMName,Pool,Host,vCPUs,RAM,Storage,Description > $poolname-vminfo.csv

for vmuuid in $vmuuidlist ; do
    vmname=$(xe vm-list params=name-label uuid=$vmuuid --minimal)
    hostuuid=$(xe vm-list params=resident-on uuid=$vmuuid --minimal)
    vmdescription=$(xe vm-list params=name-description uuid=$vmuuid --minimal)
    hostname=$(xe host-list params=name-label uuid=$hostuuid --minimal)
    vcpus=$(xe vm-list params=VCPUs-number uuid=$vmuuid --minimal)
    ram=$(xe vm-list params=memory-static-max uuid=$vmuuid --minimal)
    vdiuuidlist=$(xe vbd-list vm-uuid=$vmuuid type=Disk params=vdi-uuid --minimal)
    for vdiuuid in $vdiuuidlist ; do
        vdisize=$(xe vdi-list uuid=$vdiuuid params=virtual-size --minimal)
        totalsize=$((totalsize+vdisize))
    done
    totalsize=$((totalsize/1024/1024/1024))
    vmram=$((ram/1024/1024/1024))
    echo $vmname,$poolname,$hostname,$vcpus,$vmram,$totalsize,$vmdescription
done >> $poolname-vminfo.csv

Copy this text to notepad, save it as details.sh or whatever kinda name you want it to. Copy it with WinSCP to your XenServer.

Then issue the command chmod +x details.sh so you can use it.

To verify it has added the 'x' use ls -l

Setup a putty or kitty session to your XenServer, to run the script ./details.sh

The details are added in the CSV, you can copy the CSV with WinSCP, you probably have to refresh the screen before it's visible if you didn't close the earlier made session.

If you open up the file in Excel select the first row > data > text to column > next > select comma > next... Finish.

donderdag 16 april 2015

Adobe is leaving temporary files directory filled RDS\Citrix server

So ever looked at your C:\Users directory at your RDS\Citrix server and wondered why there so many folders with the same name but with extensions like name.000 name.001 etc....

This occured when uncle mickeysoft decided to bring out a patch that did a little tlc to the place where the fonts are stashed. The updates name is KB2993651.

But that update brings also something good, still trying to find out what, but it's unpredictable what happens or what gab exists when you remove the update....

So i created a little workaround here.

After this the user profile files will be deleted when a user presses log off. 

Download this file, no harm it's just a *.ini file ;-)
https://www.dropbox.com/s/qdiu6gctimftcty/acroct.ini?dl=0

Place the file in the netlogon folder \\yourdomain\netlogon

Then go to the GPMC, create a new distinctive name for your policy or add it to an existing computer policy. Go to Computer Configuration > Preferences > Windows Settings > Files > add new file. Then see below for the further details.

Name the full path including the file name, otherwise the magic ain't going to happen.




 



woensdag 8 april 2015

Clear Exchange 2013 Logging periodic and automatically? Yes we can.

Ever wondered why Exchange 2013 is filling your disk, within most of our opinion rubbish.....

Microsoft intended these files for problem logging and BigData.

But i don't want them. And most of us don't want the C: disk blown up from a important server.

Let's start how to get rid of these logging.

First of all you can shut it partially off, but when doing this most of the powerfull tools in Exchange like diagnostics are also powered down.... So don't.

Create a scheduled task on your exchange server.

Go to your desktop and create a file called "clear log files Exchange.xml" then open it and paste the text from below in your document. Save it, then change the blue marked areas. The last green marked item is the amount of days for keeping the logs. I personally set them on 2 days, the - before the amount of days is the days to keep before deleting the logs.

If you want to set this up for the inetpub logs too just change the path. This is marked red.

“C:\inetpub\logs\LogFiles”

Start below here:

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2015-04-08T09:26:55.4403987</Date>
    <Author>"domain\User"</Author>
    <Description>cleares the log files from the exchange folder</Description>
  </RegistrationInfo>
  <Triggers>
    <CalendarTrigger>
      <StartBoundary>2015-04-08T09:24:04.030706</StartBoundary>
      <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
      <Enabled>true</Enabled>
      <ScheduleByWeek>
        <DaysOfWeek>
          <Monday />
        </DaysOfWeek>
        <WeeksInterval>1</WeeksInterval>
      </ScheduleByWeek>
    </CalendarTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>"domain\User"</UserId>
      <LogonType>S4U</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>true</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
    <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>C:\Windows\System32\forfiles.exe</Command>
      <Arguments>/p “C:\Program Files\Microsoft\Exchange Server\V15\Logging” /s /m *.* /c “cmd /c Del @path” /d -2</Arguments>
    </Exec>
  </Actions>
</Task>


donderdag 3 juli 2014

Exchange diagnostic error 1006

Every quarter of an hour it's bigtime the 1006 diagnostic error appears in our log files.

What does it do en why it's bothering my eventlog with this message.

The drive space checker is checking if enough drive space is left to function. If it's getting full the database is getting dismounted before corruption could happen to it. Also the mailflow will be stopped.

Always separate the log files from the database, also a best practice from Microsoft will help.

But back to the logfiles messages. Why does it happen? It's malfunction from Microsoft that should be fixed with the first CU..... But you guess it right, they didn't fix it.

Even with CU 5 installed it ain't fixed.

Hereby the errors:

Log Name:      Application
Source:        MSExchangeDiagnostics
Date:          6/02/2014 03:24:01 PM
Event ID:      1006
Task Category: Triggers
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      SERVER.DOMAIN.local
Description:
The performance counter ‘\\SERVER\LogicalDisk(HarddiskVolume2)\Free Megabytes’ sustained a value of ‘108.00′, for the ‘15′ minute(s) interval starting at ‘6/02/2014 3:38:00 AM’. Additional information: None. Trigger Name:DatabaseDriveSpaceTrigger.

Instance:harddiskvolume2
Log Name:      Application
Source:        MSExchangeDiagnostics
Date:          6/02/2014 2:55:49 PM
Event ID:      1006
Task Category: Triggers
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      SERVER.DOMAIN.local
Description:
The performance counter ‘\\SERVER\MSExchangeIS Store(Test 2 MBX Database)\Logical To Physical Size Ratio’ sustained a value of ‘0.00′, for the ‘10′ minute(s) interval starting at ‘6/02/2014 3:45:00 AM’. Additional information: None. Trigger Name:DatabaseLogicalPhysicalSizeRatioTrigger. Instance:test 2 mbx database


So you choose:

Disable it and take care of enough drive space yourself or let it happen and fill up your logs/disk.

Disable steps:

  1. Go to the path C:\Program Files\Microsoft\Exchange Server\V15\Bin
  2. Locate the Microsoft.Exchange.Diagnostics.Service.exe.config file and open it with Notepad
  3. Locate the line that starts with “<addName="Microsoft.Exchange.Diagnostics.Service.ExchangeJobs.Triggers.DatabaseDriveSpaceTrigger"  and at the end of the line you will see Enabled=”True”.  Change it to be Enabled=”False
  4. If you have the second error above then also locate the line that starts with <add Name="Microsoft.Exchange.Diagnostics.Service.ExchangeJobs.Triggers.DatabaseLogicalPhysicalSizeRatioTrigger" and change the Enabled=”True” to Enabled=”False”
  5. Save the file
  6. Restart the Microsoft Exchange Diagnostics service and the errors should be gone.


dinsdag 20 mei 2014

Installing MUI and OMUI on your server, after reading it's simple

It was quite hard to get all the info from Microsoft to install MUI and OMUI for Office.

But after a while it installed and ran!

First download and copy all the LP files to a network share.

Then copy in the next line to proceed:

lpksetup /i cs-cz de-de es-es fr-fr nl-nl /r /s /p \\Servername\Systemlangpacks

The desired languages, que them like above. If you need other languages just change the phrases fr-fr to the desired language.



For Office it ain't that hard too.

Open Notepad++ or any other textr editor, copy and paste the text below. Save it as czech.xml for example. If other languages are needed just change cs-cz to en-us or whatsoever you need.

For Office:   OMUI.**-**
For Project: PMUI.**-**
For Visio:    VISMUI.**-**

<Configuration Product="OMUI.cs-cz">
 <Display Level="basic" CompletionNotice="no" SuppressModal="no" AcceptEula="yes" />
 <Logging Type="verbose" Path="%systemroot%\Temp" Template="Microsoft_Office-Multi-Language-Pack-2010.log" />
 <AddLanguage Id="cs-cz"/>
</Configuration>

In the script the're some commands for detailed view like "Display Level= none, basic or full" The rest is "yes" or "no" for some troubleshoot reasons you can set SuppressModal to no like above. If all is running you can set it back to yes.

The same step for DisplayLevel to none. But sometimes you want to see what's going on. But when you know it works shut it off. The most things you want to install run silent ;-)

The command to kickoff the languagepacks is: (below command is splitted due screen width limitations, just divide the command with a space and paste it in a command prompt.)

\\servername\Office_2010_langpacks\setup.exe /Config \\servername\Office_2010_langpacks\czech.xml

For example it's czech again, edit the command to run a XML wit another language.

Don't try to stack the installation, the command can only run once per language. After the first is finished, kickoff the next one.


vrijdag 17 januari 2014

Inplace upgrade server 2008 R2

Inplace upgrade Server 2008 R2 to Enterprise or Datacenter Edition

Hereby some steps to upgrade the server version 2008 R2 from Standard Edition to Enterprise or Datacenter Edition.

If you're using VMware just create a snapshot before the upgrade process, while the VM is offline is the advise. If the VM is holding some application that needs consistency power it off. The advise for AD/SQL/Exchange/DFRS is do not roll-back you destroy the data.

You can process the upgrade while the VM is online, after the upgrade a reboot is needed to apply the just amde changes.

Open up a elevated Command Prompt:

DISM /Online /Get-CurrentEdition

Aboven command will show you the current version.

This will return
http://richardstk.files.wordpress.com/2012/04/online-server-2008-r2-upgrade-11.jpg
 In the same box type: DISM /Online /Get-TargetEditions

This will give you the output of the versions where you can go at.

http://richardstk.files.wordpress.com/2012/04/online-server-2008-r2-upgrade-21.jpg

Choose the desired Server Edition and proceed with the next command:

DISM /Online /Set-Edition:ServerDataCenter /ProductKey:xxxx

 If you use KMS from Microsoft, type in the KMS key on the xxxx.

Enterprise 
489J6-VHDMP-X63PK-3K798-CPX3Y

Datacenter

74YFP-3QFB3-KQT8W-PMXWJ-7M648





After thse steps the VM will boot and apply the changes, when changes are applied the VM will boot again.

The log in and open up a elevated Command Prompt, if you're using KMS.

Then type:


Slmgr –skms kms.address.you.got.in.dns:1688
Slmgr.vbs /ato