We are wanting to automatically switch out our W4 URL from a update version to a read only version while payroll is processing. Would appreciate hearing from someone who is willing to share a powershell script that performs the Clear IOS Cache? We are unable to get past the required login that is required for Infor OS/LSF.
URL https://YourPortalServer:PortNumber/servlet/IOSCacheRefresh
Thank you in advance!
Are you using the Lawson provided bookmark for doing W-4 changes? If so, they have a built in function that you can use to disable that bookmark for specific times during the pay period. These are setup on HS18 (Payroll Lockout Rules)
We have considered the HS18 but our HR team wants these bookmarks available in an Inquiry only version while payroll is running.
I had a Perl script that did this with the utility wget. I believe this is available for Windows, and if not you should be able to do the same thing with PowerShell.
wget -nv --http-user=lawson --http-password=YoUrPaSsWoRd YourPortalServer:PortNumber/.../IOSCacheRefresh --no-check-certificate
I don't know why it's not showing the URL correctly. Trying again....
https://YourPortalServer:PortNumber/servlet/IOSCacheRefresh
is there a way to mask the password so it is not visible in the script? that is also another of our concerns.
There might be, but I'm not sure how that's done. The wget utility has an --ask-password switch that you can use, but that would require running the script and entering the password manuall -- entirely bypassing the idea of automating this.
I don't run Windows here and I don't even use it on my desktop, so I can't speak with authority, but I would expect there is a way for PowerShell to encrypt it. I found this article, so it sounds like you should be able to do this in a way that only the user "lawson" can decrypt the password and make the call -- probably will help to get you or one of your PowerShell programmers on the right track:
https://www.techtarget.com/searchitoperations/tutorial/How-to-secure-passwords-with-PowerShell
I will ask someone here who is more familiar -- I'll let you know what I find.