Installing the windows patch using PSWindowsUpdate - patch

I am trying to install windows updates using PSWindowsUpdate module in powershell as:
Get-WindowsUpdate -Install -KBArticle 'KB4560960' and hit enter key but i am not getting any response. Then for confirmation whether the update has been installed or not i used Get-Hotfix command in powershell then it has displayed a list in that list the above update is not their. How to install the specific update using PSWindowsUpdate module in powershell.

After you install the module and then import it you can run the following command:
PS C:\Install-WindowsUpdate -MicrosoftUpdate -KBArticleID KB4560960 -AcceptAll -IgnoreReboot
It will show the progress of the install or you can type at the PS prompt.
Get-WUHistory. Keep in mind, you can't install updates with PSWindowsUpdates on remote boxes directly. Will have to use a Task Scheduler—which, in combination with Windows Admin Center, works beautifully.

Related

ProgMP page showing I'm not using MPTCP even when I'm using it

I'm started exploring MPTCP recently and started using it on my Ubuntu 18.04. My MPTCP version is 0.95. curl http://multipath-tcp.org on my terminal is returning Yay, you are MPTCP-capable! You can now rest in peace. I further checked it on http://amiusingmptcp.de/ which is telling me I'm using MPTCP. Now I want to write my own default scheduler. So I clicked on appropriate link on http://amiusingmptcp.de/ page which took me to http://progmp.net/progmp.html page. In this page it is showing that I'm not using MPTCP connection so the demo page is showing limited features. I have attached the relevant screenshots. Can someone please tell me how to make my own scheduler?
Thanks
It seems that you must be on multiple interface to do so. Also, for the local machine based setup without
internet (local network only) you can install the progmp kernel onto your own machine.
In order to do so in your terminal,
wget -c http://progmp.net/tools/linux-image-4.1.20-ProgMp.deb
# then
sudo dpkg -i linux-image-4.1.20-ProgMp.deb
to install the kernel
After that boot into grub menu and select the progMP kernel. the uname -a should prompt kernel version 4.1.20.
Now for writing your own scheduler you can download the example code from progmp.net site and use the python script to add it to the system.
here is the further documentation in order to proceed, along with detailed steps:
http://progmp.net/

When I hit ./iiq console in command prompt my Sailpoint says database version doesn't match the system version

I'm trying to run the training modules in sailpoint, where I was following the exercises. I was able to set up the database and all. When I try to run the Identityiq console, using ./iiq console, it flashes the error, the database version and the system version do not match. How do I change the versions to make them match?
I tried changing the schema version to the system version, but it doesn't match as it was checking database version and system version.
in the bin directory, i used the command
$./iiq console
This was the result: System version 6.1-64 doesn't match database version 6.2-32 Attached
Try to run command : iiq patch 6.2
There are two options here
Either install the patch for 6.2
Drop the database and run the database scripts from the web-inf/database folder.

run R as administrator

I was using my own laptop to install R and I found that it only has one library. Evne though this library is still read only, everytime when I use Rstudio: install.packages("abc"), I can see that the new packages are stored automatically into that read only library folder.
In my office's desktop, I "believe" I also have administrator role, as I can install and remove anything (by far). I download the latest version of R and I right click the R-3.4.1-win.exe, there is an item "run as administrator", then it is installed in my desktop. However, when I use R studio to install new packages as in my laptop, it always automatically create a personal folder to store the new packages. I don't know why. Is that a way to only have one folder for library? I also tried on the desktop in the plain R mode (without using Rstudio). When I want to install new packages, it always says
Warning in install.packages("devtools") :
'lib = "C:/Program Files/R/R-3.4.1/library"' is not writable
And there is a window pops up to ask me "would you like to create a personal folder?" And if I say no, then
Error in install.packages("devtools") : unable to install packages.
Is there a ways to solve this problem? To just maintain one folder for library
What version of Windows are you using? You should be able to right-click on the Rstudio.exe icon, click Properties, and select an option to always run Rstudio as administrator. Be sure you use that same icon whenever you want to open Rstudio.
Incase of Mac, go to Applications, then right click on RStudio and
Select "Show Package Contents"
Go to Contents/MacOS
Now open terminal(in bash mode). Type sudo and drag the RStudio.exec into terminal and press on ENTER
Now RStudio will have admin access!
For completeness, I think there should be an Ubuntu answer to go along with the Microsoft and Apple answers. (Note:I'm using 18.06, and not 20.x.)
What doesn't work:
On my Ubuntu/Linux system, when Rstudio is installed the call start RStudio from a terminal looks something like the following:
(base) username#sysname:~$ rstudio
It starts, but has the permissions of the user, and can have access errors.
What gives admin power:
To give it better permissions, you can use sudo.
(base) username#sysname:~$ sudo rstudio
[sudo] password for username: <enter password here>
It starts in a different user location, but has more power. After it is installed you can run it the regular way and the packages are still installed.
Extra credit:
Here are some (currently) relevant links for RStudio on Ubuntu:
https://linuxhint.com/rstudio-for-ubuntu/
https://www.r-bloggers.com/2013/03/download-and-install-r-in-ubuntu/
What is the command to invoke RStudio from Command Line in linux environment?
http://web.cs.ucla.edu/~gulzar/rstudio/index.html

Installing Python modules

I am trying to install the pyperclip module for Python 3.6 on Windows (32 bit). I have looked at various documentations (Python documentation, pypi.python.org and online courses) and they all said the same thing.
1) Install and update pip
I downloaded get-pip.py from python.org and it ran immediately, so pip should be updated.
2) Use the command python -m pip install SomePackage
Okay here is where I'm having issues. Everywhere says to run this in the command line, or doesn't specify a place to run it.
I ran this in the command prompt: python -m pip install pyperclip. But I got the error message "'python' is not recognized as an internal or external command, operable program or batch file.
If I run it in Python 3.6, it says pip is an invalid syntax. Running it in IDLE gives me the same message.
I have no idea where else to run it. I have the pyperclip module in my python folder. It looks like a really simple problem, but I have been stuck on this for ages!
You need to add the location of the python.exe to your $PATH variable. This depends on your installation location. In my case it is C:\Anaconda3. The default is C:\Python as far as I know.
To edit your path variable you can do the following thing. Go to your Control Panel then search for system. You should see something like: "Edit the system environment variables". Click on this and then click on environment variables in the panel that opened. There you have a list of system variables. You should now look for the Path variable. Now click edit and add the Python path at the end. Make sure that you added a semicolon before adding the path to not mess with your previous configuration.

When run the Connect to Oracle Database using jybot getting the error cx_Oracle is not found

I tried to run the Query from Oracle Database using jybot option as i have some java custom code, that need in my test script along with query from oracle database.
I got the error cx_Oracle is not found.
When run the same using pybot (removed the java custom code) then i didn't get any errors.
If i run the java custom code alone using jybot then also no errors.
Steps i followed to install Database Library are as follows:
Install Visual C++ Compiler
Download and Install VCForPython27.msi (If not have the executable file, please check Important URLs section for link to download)
Set Environment Variables ORACLE_HOME, TNS_ADMIN if not setup already.
Install Database Library
Open the command prompt and run the following command
pip install robotframework-databaselibrary
Install cx_Oracle
Open the command prompt and run the following command
pip install cx_Oracle
Connect to Oracle Database Code:
Connect To Database Using Custom Params cx_Oracle '${Username}/${Password}#${Host}:${Port}/${DatabaseName}'
#{Numbers} Query SELECT NUMBER_V from MASTER_DB WHERE STATUS_V='F' and ROWNUM <= 10
Log ${Numbers[0]}
Any one, please help me how to run the query from oracle database using jybot.
Thanks
Sarada
cx_Oracle can't be sucessfully used under the jybot
Here is my solution:
Install DatabaseLibrary module by
pip install robotframework-databaselibrary
Install JayDeBeApi module by
pip install JayDeBeApi
now you can put these libraries anywhere you like - just copy them from Python\Lib\site-packages
And here is going the trick!
The DatabaseLibrary usage have following sample for jaydebeapi connection:
Connect To Database Using Custom Params | JayDeBeApi | 'oracle.jdbc.driver.OracleDriver', 'my_db_test', 'system', 's3cr3t'
However this is wrong! You have to use the brackets over the username-pass pair! Like this:
Connect To Database Using Custom Params | JayDeBeApi | 'oracle.jdbc.driver.OracleDriver', 'my_db_test', ['system', 's3cr3t']
And please do not forget to use URL connection instead of my_db_test! It should be like this:
jdbc:oracle:thin:#//127.0.0.1:1521/my_db_test
Regards

Resources