Product:
Microsoft Windows 2019

Issue:
Message when you try to add a schedule

Solution:

On the local server use Local Security Policy manager:

  1. Click START and type secpol.msc then press Enter
  2. Expand Security Settings > Local Policies > User Rights Assignment node
  3. Double click Log on as a batch job
  4. Click the Add User or Group button and add your service account user
  5. Click OK

You should use a service account that is part of the administrator group, to ensure it have rights to do the task you have in your cmd script file.

More Information:
https://www.urtech.ca/2019/06/solved-this-task-requires-that-the-user-account-specified-has-log-on-as-batch-job-rights/

Product:
BigFix Client
Microsoft Windows 2012

Problem:
How install the Big Fix client/agent on the Windows server?

Solution:
On the ILMT linux server you can search for the client files with find . -name ClientMSI*

Copy the files you need over to your Windows server

Copy BigFixAgent.msi setup, its .mst files and the actionsite.afxm masthead file to a folder of your target computer, for instance C:\install\bigfix. Actionsite.afxm file is in the /var/opt/BESInstallers/Client folder of the Linux server.

Then create a CMD file with following content:

msiexec.exe /i “BigFixAgent.msi” TRANSFORMS=”1033.mst” REBOOT=ReallySuppress MSIRESTARTMANAGERCONTROL=Disable /qn

Start a DOS prompt as administrator and go to the \install\bigfix folder

Run your installagent.cmd file, to install.

If you run the BIGFIXAGENT.MSI it can look like this

You will have a new “BES Client” windows service on your computer after the installation.

You must copy the actionsite.afxm file to the folder C:\Program Files (x86)\BigFix Enterprise\BES Client to make the client start.

Client/Agent can be downloaded from https://support.bigfix.com/bes/release/10.0/patch2/

More information:

https://help.hcltechsw.com/bigfix/9.5/platform/Platform/Installation/c_installing_the_client_with_msi.html

https://help.hcltechsw.com/bigfix/9.5/platform/Platform/Installation/c_using_login_scripts.html

https://cdn2.hubspot.net/hubfs/1697611/Events/Webinar.%20Basic%20ILMT%20Skills%20for%20IT%203.16.17.pdf

https://www.ibm.com/software/passportadvantage/subcaplicensing.html

https://exploringtm1.com/tm1-ilmt/

Product:

Microsoft Powershell

Problem:
You are low on disk space, or the Cognos BI have created some large file (dump files or log files) and you want to know where they are.

Solution:
Enter below text in notepad++ and save as checksize.ps1 in your c:\temp folder

$folder = “C:\Program Files\ibm\cognos”
Get-ChildItem $folder -recurse -ErrorAction SilentlyContinue |Sort-Object length -descending| Select-Object -first 27 @{Name=”MegaBytes”;Expression={“{0:F2}” -f ($_.length/1MB)}} , Fullname | Export-Csv c:\temp\LargeFiles_Report.csv

Start Powershell from Start menu
Go to temp folder with command cd /temp
Enter ./checksize.ps1 to run the script


Open the Largefile_report.csv in notepad++

You need to change the first line to your folder for Cognos products e.g. $folder = “D:\Program Files\ibm\cognos\analytics”

Then you check the list to find the files that you do not need, and can remove them, to get more space.

More Information:
https://www.linkedin.com/pulse/powershell-script-finding-large-size-files-your-windows-milad-mousavi/?articleId=6610936483329257472

http://woshub.com/find-large-files-with-powershell/ 

https://blog.danskingdom.com/find-largest-or-smallest-files-in-a-directory-or-drive-with-powershell/