So if i use this powershell script to delete files every 15 days it works..
Tag : powershell
I have got a wrapper script which calls another powershell script that then calls a bicep deployment, I would like to implement a solution where I am not specifying the path of the file, as the solution would be moved onto github actions, with the current setup I have hardcoded the..
I’m trying to trap the errors and alert after invoking rest calls from Powershell. However I trtied the try/catch and trap Errorlevel $? nothing is wo..
I’m trying to import Excel into my SQL Database via PowerShell. This script worked last week without any issues, but since today it gives me an error that it cannot run the Import-Excel
command since it wasn’t found in module ImportExcel
. When I try to load the script it says the foll..
I want to remove the ControlBox (close, minimize, maximize buttons) from a window whose title I know. I can get the process involved with Get-Process, but don’t know how to access the window set..
We do have Sentinelone API from which we are trying to fetch applications list total records are more than 2000.
API Uri has 1000 as a limit which gives 1000 entries in Json format.
Json format gives data for pagination and nextC..
I have..
`I have below code to compare files inside zip folder. The code works fine for .csv, .xml. I have problem with .xlsx. The zip folder has .xlsx file which is system generated. By naked eye the content of excel look same but the Get-Content and Compare-Object identify them as different. The code works fine when I copy same file and compare. Any help is appreciated. ..
I want to remove the single quotes at the beginning and end like desired output. And I want to enclose this part “C:WindowsSystem32wusa.exe” in double quotes. How can I do ..
I’ve been trying to solve another problem for weeks. If I’m already in a remote pssession after the command Enter-pssession. How can I save the variable’s value after I Exit-psse..