powershell.exe -ExecutionPolicy bypass
Tuesday, March 25, 2025
Powershell hacks: How can I run powershell if I am not an admin
Dealing with admin restrictions on my laptop has become quite a hassle. My company won't allow me to have admin privileges, which means even running simple PowerShell commands requires me to ask for admin rights. This has added an extra layer of frustration to my workflow.
Why do I need PowerShell, you might ask, when Python can solve many problems with scripts? Well, the catch is that even installing Python and importing libraries requires admin rights—leaving me stuck in a loop of limitations.
After a bit of exploration, I found a way to work around this. Here's a simple trick:
Monday, April 27, 2020
Docker Diaries: Docker Pull Request for Ubuntu got Denied
Trying to install ubuntu image and executed the following command using Windows Power Shell. Apologies for not taking the screen capture. It looks something like this:
docker pull ubuntu default is latest Trying to pull ubuntu pull access denied for ubuntu does not exist or may |
So I exited from the Power Shell and logged in again to Docker. Then used docker pull command voila!! it worked. This time I took the screen capture of the output though :)
Windows PowerShell |
Tuesday, March 15, 2011
AMQ4036 Error connecting to queue manager on Linux using MQ Explorer or RFHUTILC
Issue: MQ Explorer fails to connect to a Queue manager located on Linux server. Fails with error AMQ4036 : Access not permitted. You are not authorized to perform this operation
Setup:
User has two IDs.
• Linux user ID: j1234d
• Windows ID: mydomain\jdove
Queue Manager (QM1) is on Linux machine and the Linux ID “j1234d” has access to the queue manager.
MQ Explorer is on Windows machine where the user is logged on with Windows ID “mydomain\jdove”.
When user tries to connect to QM1 from Windows machine using MQ Explorer, he/she gets the following error.
Resolution:
MQ Explorer makes a client connection and the credentials passed to the QM1 on Linux server would be “mydomain\jdove”. Since the ID “mydomain\jdove” is not defined on the Linux server, it fails to get authenticated.
Simple way to resolve:
1. Create ID “j1234d” on your Windows machine and use MQ Explorer to connect to the QM1 on Linux Server
However above fix would need you to log off current Windows session and sign in as “j1234d”. This is a pain.
Instead, do the following:
Create ID “j1234d” on your Windows machine and use MQ Explorer to connect to the QM1 on Linux Server
Create a Windows batch script as shown :
set APPDATA=
runas /env /user: "strmqcfg -d"
set APPDATA=D:\mqeclipse\mqcm5dev
runas /env /user:j1234d "strmqcfg -d"
The same solution can be used if you are getting error "Not authorized" with RFHUTILC utility. The following screen shows the error.
Use the above approach to circumvent the error.
Hope this helps!!!
Setup:
User has two IDs.
• Linux user ID: j1234d
• Windows ID: mydomain\jdove
Queue Manager (QM1) is on Linux machine and the Linux ID “j1234d” has access to the queue manager.
MQ Explorer is on Windows machine where the user is logged on with Windows ID “mydomain\jdove”.
When user tries to connect to QM1 from Windows machine using MQ Explorer, he/she gets the following error.
Resolution:
MQ Explorer makes a client connection and the credentials passed to the QM1 on Linux server would be “mydomain\jdove”. Since the ID “mydomain\jdove” is not defined on the Linux server, it fails to get authenticated.
Simple way to resolve:
1. Create ID “j1234d” on your Windows machine and use MQ Explorer to connect to the QM1 on Linux Server
However above fix would need you to log off current Windows session and sign in as “j1234d”. This is a pain.
Instead, do the following:
Create ID “j1234d” on your Windows machine and use MQ Explorer to connect to the QM1 on Linux Server
Create a Windows batch script as shown :
set APPDATA=
runas /env /user:
So for the above example it would be:
set APPDATA=D:\mqeclipse\mqcm5dev
runas /env /user:j1234d "strmqcfg -d"
When you run the above script, at the prompt enter the password you have set for the id you created for id ‘j1234d’
The runas command makes the MQ Explorer to run under the local id which is the equivalent of the Linux id. When we run the MQ Explorer process under the id , the credentials will be passed as is ( eg:’j1234d’) and you will be able to connect to the queue manager since this ID on Linux server has access to the queue manager QM1.
The same solution can be used if you are getting error "Not authorized" with RFHUTILC utility. The following screen shows the error.
Use the above approach to circumvent the error.
Hope this helps!!!
Sunday, June 20, 2010
wsgw (mywsproxy): Valid backside connection could not be established: Failed to establish a backside connection
Setup:
- Datapower XI50 is on corporate network
- Microsoft Virtual PC 2007 with Windows XP and hosting WebSphere application server 6.1 ( mywasnode)
- Web Service Proxy is virtualizing the Web services hosted on mywasnode.
Following is the Web Services proxy set up.
<remote-endpoint-host>:9080/EastAddress/Services/AddressSearch. This is a plain and simple setup. However, I have been encountering the following errors
After much head scratching, I found the solution and as it happens with all such issues, the resolution is very simple. The culprit was Windows XP firewall. Since I had WAS running locally, Windows XP firewall was obstructing all the requests coming from Datapower to my WAS Web Service. Added the Web services port (9080 in this case) to the firewall exception list, voila!! everything started working fine.
For those of you wondering where to add this, please see the following screen shots.
Go to Start> Settings. Control panel > Security center> click on Manage settings for Firewall, On the Windows firewall window , go to exceptions tab, click on Add Port button.
In the pop-up window enter the port number and give a description to your exception and click OK. You are done.
Hope this is helpful.
Thursday, August 27, 2009
WebLogic Server does not start
Issue: When you start WebLogic Server instance, the server would not come up and the start script hangs.
Symptoms:
In the /servers/AdminServer/logs/Adminserver.log you would find the following error.
####<Aug 27, 2009 3:47:58 PM EDT> <Critical> <WebLogicServer> <gaalpltapp0040> <AdminServer> <main> <<WLS Kernel>> <> <> <1251402478485> <BEA-000386> <Server subsystem failed. Reason: java.lang.NumberFormatException: null
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:415)
at java.lang.Integer.parseInt(Integer.java:497)
at weblogic.ldap.EmbeddedLDAP.validateVDEDirectories(EmbeddedLDAP.java:1035)
at weblogic.ldap.EmbeddedLDAP.start(EmbeddedLDAP.java:212)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
>
####<Aug 27, 2009 3:47:58 PM EDT> <Notice> <WebLogicServer> <gaalpltapp0040> <AdminServer> <main> <<WLS Kernel>> <> <> <1251402478508> <BEA-000365> <Server state changed to FAILED>
####<Aug 27, 2009 3:47:58 PM EDT> <Error> <WebLogicServer> <gaalpltapp0040> <AdminServer> <main> <<WLS Kernel>> <> <> <1251402478509> <BEA-000383> <A critical service failed. The server will shut itself down>
####<Aug 27, 2009 3:47:58 PM EDT> <Notice> <WebLogicServer> <gaalpltapp0040> <AdminServer> <main> <<WLS Kernel>> <> <> <1251402478511> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
Solution:
When you see above error, please check
1. if the disk space is full
2. if disk space is fine, then delete the following file
/servers/AdminServer/data/ldap/conf/replicas.prop
and restart the server. WLS sometimes corrupts the file replicas.prop and is often results in above error
Symptoms:
In the /servers/AdminServer/logs/Adminserver.log you would find the following error.
####<Aug 27, 2009 3:47:58 PM EDT> <Critical> <WebLogicServer> <gaalpltapp0040> <AdminServer> <main> <<WLS Kernel>> <> <> <1251402478485> <BEA-000386> <Server subsystem failed. Reason: java.lang.NumberFormatException: null
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:415)
at java.lang.Integer.parseInt(Integer.java:497)
at weblogic.ldap.EmbeddedLDAP.validateVDEDirectories(EmbeddedLDAP.java:1035)
at weblogic.ldap.EmbeddedLDAP.start(EmbeddedLDAP.java:212)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
>
####<Aug 27, 2009 3:47:58 PM EDT> <Notice> <WebLogicServer> <gaalpltapp0040> <AdminServer> <main> <<WLS Kernel>> <> <> <1251402478508> <BEA-000365> <Server state changed to FAILED>
####<Aug 27, 2009 3:47:58 PM EDT> <Error> <WebLogicServer> <gaalpltapp0040> <AdminServer> <main> <<WLS Kernel>> <> <> <1251402478509> <BEA-000383> <A critical service failed. The server will shut itself down>
####<Aug 27, 2009 3:47:58 PM EDT> <Notice> <WebLogicServer> <gaalpltapp0040> <AdminServer> <main> <<WLS Kernel>> <> <> <1251402478511> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
Solution:
When you see above error, please check
1. if the disk space is full
2. if disk space is fine, then delete the following file
/servers/AdminServer/data/ldap/conf/replicas.prop
and restart the server. WLS sometimes corrupts the file replicas.prop and is often results in above error
Tuesday, July 07, 2009
My New Love : Foxit PDF Reader
Long time no blogging. With lot happening in the job market, finance market, domestic front, I could not blog much. Hope you have been missing me :)
Anyways I just wanted to share my love for new pdf reader I have been using. I thought ADOBE was the only PDF reader available with the fancy features. Following have been my wish list items for ADOBE reader:
1.It should allow me to highlight the text, underline the text as I read my IBM red books
2. It should allow saving of any PDF forms with the filled in data so that I could re-use the data
Correct me if I am wrong, I could not do the above with ADOBE PDF reader. Then I came across Foxit reader which would perform the above and many more. If you know it already please spread the word. If not please try Foxit reader for Windows.
Hope you enjoy it.
Anyways I just wanted to share my love for new pdf reader I have been using. I thought ADOBE was the only PDF reader available with the fancy features. Following have been my wish list items for ADOBE reader:
1.It should allow me to highlight the text, underline the text as I read my IBM red books
2. It should allow saving of any PDF forms with the filled in data so that I could re-use the data
Correct me if I am wrong, I could not do the above with ADOBE PDF reader. Then I came across Foxit reader which would perform the above and many more. If you know it already please spread the word. If not please try Foxit reader for Windows.
Hope you enjoy it.
Friday, January 09, 2009
WebSphere, Middleware, MVS Magazines for FREE!!!
Xephon who used to publish MQ Update, MVS update etc ..( all IBM Middleware related magazines) apparently went out of business. But good folks there helped the IBM community by putting the magaizines for download at
www.cbttape.org/xephon for FREE.
You may down load all these for FREE which includes some of the work I have published :)
www.cbttape.org/xephon for FREE.
You may down load all these for FREE which includes some of the work I have published :)
Wednesday, April 16, 2008
WebSphere MQ
Here is link to quick reference guide for MQ RunMQSC commands RUNMQSC QuickReference
Thanks to Michael Dag of MQ Systems
Thanks to Michael Dag of MQ Systems
Monday, October 22, 2007
Java: Patterns
Found the following excellent book on Patterns:
http://www.patterndepot.com/put/8/JavaPatterns.htm
http://www.patterndepot.com/put/8/JavaPatterns.htm
Wednesday, March 21, 2007
Chat: Long time No blog!!!
Howdy visitor!!! I could recover my password. Thanks to my cousin who woke me up to return to the blog my chat. Will keep you posted with my next blog. Let me see.. WHat do I write about? I do not'know?!!!
Tuesday, May 02, 2006
Tech: Web Service interoperability part:2
Well, I thought the creation of Web service was simple. But creating a Web service to authenticate an user is not that simple. It involves encryption. So why to invent the wheel again. So I GOOGLED and voila I found a C# Web service on the internet that exactly what I had in mind.
So down load the code,install it and pose as if you developed. Simple!! Right? So I thought. First of all it is in C#. I am not familiar with C# ( is it C hash or sharp by the way?). So had to get a book from the library and got familiarized with C#. Convinced everybody that I would need .NET development environment. Failed to get IIS installed on my machine due to the BIG security concerns my company has. So used VS.net to connect to another server where IIS was there and deployed the Web service. Had to tweak the code to work with our AD set up. Got the Web service working.
Well!!! The application which is supposed to authenticate the user was written JSP/JAVA. So the plan is to make this JSP client to call ASP.net client which in turn would validate the users. Hmmmm... Clumsy . Don't you think?
Again.. I need to meet the dead line. What the heck as long as it is working. So went ahead and implemented the above method. Still at the back of my head I am still thinking there should be JSP interface for this. Let me see what I can come up with.
So down load the code,install it and pose as if you developed. Simple!! Right? So I thought. First of all it is in C#. I am not familiar with C# ( is it C hash or sharp by the way?). So had to get a book from the library and got familiarized with C#. Convinced everybody that I would need .NET development environment. Failed to get IIS installed on my machine due to the BIG security concerns my company has. So used VS.net to connect to another server where IIS was there and deployed the Web service. Had to tweak the code to work with our AD set up. Got the Web service working.
Well!!! The application which is supposed to authenticate the user was written JSP/JAVA. So the plan is to make this JSP client to call ASP.net client which in turn would validate the users. Hmmmm... Clumsy . Don't you think?
Again.. I need to meet the dead line. What the heck as long as it is working. So went ahead and implemented the above method. Still at the back of my head I am still thinking there should be JSP interface for this. Let me see what I can come up with.
Tuesday, January 10, 2006
Tech: Webservice interoperablity
Ain't it cool.. If one has a webservice that validates the users against active directory? Even better,if I have a java client and .net webservice to validate the users. I have googled like a fanatic and could not find a clean way to do this. My idea is simple.
.NET is a buddy to active directory. So to make it communicate with Active directory for user validation should be a piece of cake. Right?? Now add Java client/PHP client/xyz client.. voila you have got yourself an enterprise solution.
Enough of sweet talk. I have a 50% solution. WIll post once I have a working Java front end ready.
Keep your fingers crossed.....
.NET is a buddy to active directory. So to make it communicate with Active directory for user validation should be a piece of cake. Right?? Now add Java client/PHP client/xyz client.. voila you have got yourself an enterprise solution.
Enough of sweet talk. I have a 50% solution. WIll post once I have a working Java front end ready.
Keep your fingers crossed.....
Thursday, August 18, 2005
Rant: How come some companies hate Internet-1
Sorry!!! I am no longer having access to my blog from my office. The big brother is bit paranoid and cut access to all Web sites. Well !!! that is the reason for this rant. How come some copanies hate Internet?
My company pays me to do work. They have every right to deny the Internet. While they say how "not browsing the internet" improves the company productivity, I have my own reasons to say how it helps me.
1.Internet helps me to do my work easily. For example, I copy my code from google groups half the time. Am I not saving bunch of money for my employer, since he/she need not pay for the training?
2. Can you be really secure by not connecting to the outside world? If that is the case we should all live in the islands all by ourseleves. Even the concept of family/ society have to be redefined. Ain't it?
3. Do we really save time by not allowing the internet? Well I spend time in chatting with the team mates.. my coffee breaks have become longer..
Hey all the above reasons are null and void. Since at the end of the month my company pays for my bills. So..
My company pays me to do work. They have every right to deny the Internet. While they say how "not browsing the internet" improves the company productivity, I have my own reasons to say how it helps me.
1.Internet helps me to do my work easily. For example, I copy my code from google groups half the time. Am I not saving bunch of money for my employer, since he/she need not pay for the training?
2. Can you be really secure by not connecting to the outside world? If that is the case we should all live in the islands all by ourseleves. Even the concept of family/ society have to be redefined. Ain't it?
3. Do we really save time by not allowing the internet? Well I spend time in chatting with the team mates.. my coffee breaks have become longer..
Hey all the above reasons are null and void. Since at the end of the month my company pays for my bills. So..
Tuesday, July 26, 2005
Tech: dotnetnuke
Last month I was invited by one of my friends to attend a .NET user group where a user presented very good things about the dotnetnuke. It seems to be quite appealing. I ate the pizza and enjoyed the presentation.
Came back to home and decided to try the "dnn" thingy.
Down loaded it and tried configuring. First time it took five hours to configure. Because the documentation is not that helpful and user forums had more questions than the answers. SO what the heck. Tried it anyway.
Now I want to do this:
1. Have a portal with xyz.com
2. Have another portal with abc.com
3. Both would use one dnn configuration. I do not want to consume the the hosting space by installing another configuration
4. Use the same SQL server database. My hosting provides me only one database.
Any ideas how this can be achieved??????????
Came back to home and decided to try the "dnn" thingy.
Down loaded it and tried configuring. First time it took five hours to configure. Because the documentation is not that helpful and user forums had more questions than the answers. SO what the heck. Tried it anyway.
Now I want to do this:
1. Have a portal with xyz.com
2. Have another portal with abc.com
3. Both would use one dnn configuration. I do not want to consume the the hosting space by installing another configuration
4. Use the same SQL server database. My hosting provides me only one database.
Any ideas how this can be achieved??????????
Saturday, June 11, 2005
$$$: Fidelity Four-in-one index fund
I am at dilemma. It seems I am going to owe awful lot of money to uncle Sam. Ok... It's awful lot from my standards. May be peanuts for you...
I was suggested...
1. Have dependents ( Hey!!! I am working diligently)
2. Buy a house ( Do you listen to the NPR news.. The bubble is going to burst... I am waiting for it)
3. Increase my 401K retirement contribution
S0, I was suggested by Fidelity advisor to look for Fidelity Four-in-One ticker symbol : FFNOX
Will it be another fiasco for me or will it be a fortune?
I was suggested...
1. Have dependents ( Hey!!! I am working diligently)
2. Buy a house ( Do you listen to the NPR news.. The bubble is going to burst... I am waiting for it)
3. Increase my 401K retirement contribution
S0, I was suggested by Fidelity advisor to look for Fidelity Four-in-One ticker symbol : FFNOX
Will it be another fiasco for me or will it be a fortune?
Tuesday, May 31, 2005
Tech: FileNET to be or Not to be
We are going to make a transition from COM based FileNET interface to Java based API called ISRA. Its more of a managerial decision than a technical one. How stongly FilNET supports Java. Two days back they were ALL Microsoft , Today they are all Java . Will post you the updates
:)
:)
Thursday, May 26, 2005
Welcome to Chandralekha
Chandralekha: Chandra's Lekha
A letter from me to the reader/viewer/visitor.
Here you will find my ideas, useful links etc.. etc..
A letter from me to the reader/viewer/visitor.
Here you will find my ideas, useful links etc.. etc..
Tech: Unix utilities for Windows32
Hi all,
Recently I had to do file comparison on Windows. Its quite simple. Take a text file pick each line( record) and check in the other file if it is there. My friends suggested touse winmerge(??) to do thisUnfortunately I needed a standalone script to do this. I could write a brute-force program to pick each record and search on the other file. My COBOL wayof doing this. But I was lazy and wanted a ready to use script.Ultimately I had to write a Korn script on unix to do this. So I had to FTP my files from windows and do this on my unix box. What a pain!!!
During my search I thought how would it be, if we got all our unix utilities on Windows?After a day's googling ( Now this is considered as verb in the junkies world) Voila.... I found this interesting link.
GNU utilities for Win32
Cool.. Ain't it?
Caveat: Do not ask me how to use it. I just found it and wanted to share with y'all
Recently I had to do file comparison on Windows. Its quite simple. Take a text file pick each line( record) and check in the other file if it is there. My friends suggested touse winmerge(??) to do thisUnfortunately I needed a standalone script to do this. I could write a brute-force program to pick each record and search on the other file. My COBOL wayof doing this. But I was lazy and wanted a ready to use script.Ultimately I had to write a Korn script on unix to do this. So I had to FTP my files from windows and do this on my unix box. What a pain!!!
During my search I thought how would it be, if we got all our unix utilities on Windows?After a day's googling ( Now this is considered as verb in the junkies world) Voila.... I found this interesting link.
GNU utilities for Win32
Cool.. Ain't it?
Caveat: Do not ask me how to use it. I just found it and wanted to share with y'all
Subscribe to:
Posts (Atom)