Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
59 views

I am looking to bulk move the entire subdirectory containing a file to the root folder. Meaning if there are empty subdirectories in between, they will be deleted but everything beyond the level where ...
vav's user avatar
  • 43
1 vote
1 answer
248 views

I have this batch script, but it is not renaming the files at all. I have a list of documents that have been named in this format: yyyymmdd_docname1.pdf I try to rename all of the documents to ...
name_hidden's user avatar
0 votes
1 answer
56 views

I synced a SharePoint directory to my Windows file system using OneDrive. As seen in the image below, some files are available locally, while others are only available in the cloud: When I double-...
tail's user avatar
  • 481
0 votes
0 answers
90 views

After creating an ACCDE file from ACCDB, several events are throwing up errors - although they continue to work flawlessly in the ACCDB file. For example, in the ACCDB file - a user has clicked the&...
Apurva Singh's user avatar
1 vote
1 answer
739 views

I have a problem and don't know how to solve it myself. I haven't found anything on google either. I have a folder called Trace, in this folder several devices save their trace files. When the devices ...
Hagstuud 's user avatar
0 votes
1 answer
104 views

I am connecting to a windows device from the host using Open-Device in Powershell. i have to run a command in remote PC and capture the output into a variable to process further, unable to do so. ...
Santhosh Kumar's user avatar
-1 votes
1 answer
164 views

I have a thousands of JPG and corresponding JSON files in a Windows 10 directory, along with exiftool.exe: 0001.jpg 0001.jpg.json 0002.jpg 0002.jpg.json 0003.jpg 0003.jpg.json ...etc. exiftool.exe ...
Linh Son Nguyen's user avatar
0 votes
1 answer
494 views

Users must install Citrix Connection Manager to work from home. Often, their default program to open .ICA files is set to a browser or nothing at all. Some users don't know how to do this and still ...
TheTypist's user avatar
0 votes
2 answers
164 views

I need to display all elements of the $FileNames array in Powershell console. I am iterating in a For loop but i cant print double quotes to all Array index elements on the console. Please help. ...
user avatar
-2 votes
1 answer
1k views

I'm helping a user with a personal Windows 11 computer which, in addition to the built-in monitor, is connected via HDMI to a shared/public television display. When it comes time to stream a show or ...
user1870776's user avatar
1 vote
1 answer
130 views

I'm working on a PowerShell script that aims to find lines in HTML files containing angle brackets not belonging to HTML tags. The script should replace said angle brackets with < and >. ...
Bauda's user avatar
  • 33
-1 votes
2 answers
533 views

I have a folder which has multiple type of files (word/excel/pdf/notepad). i want to list the which has the string inside the file. eg: vijay - list the files only if it has a string anywhere inside ...
vijayakumar ponnusamy's user avatar
1 vote
1 answer
3k views

Trying to configure a logon script (via Group Policy) on a Windows AMI (running on AWS). One of the things the script does is prompt the user for credentials at logon (via $host.ui.PromptForCredential)...
BlueJ2598's user avatar
0 votes
0 answers
124 views

So I have a PowerShell script which copies the data from an source xls file to a destination xlsx file. Assume I have file named "3 ABC01.xls" and I have to insert the data present in this ...
Shyam Patadia's user avatar
1 vote
1 answer
400 views

Question How can I automatically set the password of the Application Pool Identity from within a Windows commandline interface or script? What I have Tried I have tried to following command in ...
Tyler's user avatar
  • 333
0 votes
1 answer
398 views

I'm using a modified version of the script I found at https://monadblog.blogspot.com/2006/02/msh-print-image.html. It allows you to print by using PowerShell. Something that I have been unable to ...
Manolis's user avatar
  • 167
0 votes
1 answer
81 views

I have been tasked with coming up with a PowerShell script that I can run on computers at my organization to cleanup old user profiles in Windows. The goal of the script is get a list of users on a pc,...
Sloan's user avatar
  • 1
0 votes
0 answers
82 views

I solved a similar issue thanks to other user, but not works for folder. I have these folders: C:\Users\ge-15\documents\private C:\Users\te-98\documents\private C:\Users\ma-98\documents\private C:\...
Cronoping's user avatar
0 votes
1 answer
250 views

I am using below script to create backup file but it takes backup of all tables. I want backup of selected tables. how can I achieve this. imp <username>/<password>@<hostname> file=&...
Moin Ansari's user avatar
1 vote
1 answer
18 views

I'm writing a wsf that opens a csv, reads the contents and prints them like so: <job id="Test_Script"> <script language="VBScript"> Dim objFSO, strSourcePath, ...
Travis Heeter's user avatar
0 votes
0 answers
33 views

Apart from Batch script, which script I can use that don't need installation or configuration at client system and can be invoked from windows visual studio? powershell python etc. needs installation. ...
Peeyush's user avatar
  • 39
1 vote
1 answer
102 views

I have a production mapping where the folder does have more files to copy from one shared location to the other location. Location A: D:\UK\UK0623\Path\Temp_Variable\ORIGINAL\test1.pdf,test 2.pdf,........
Antony Prince Peter's user avatar
0 votes
1 answer
180 views

I am running a PowerShell script and calling $MyInvocation.PSCommandPath within the script and it returns null. The script is meant to be run within a PowerShell Console because it has command line ...
Wandering's user avatar
0 votes
0 answers
45 views

I am currently working on a project to help me with a job at work. Currently we are copying and pasting a command over and over and over and over (1800 times to be exact) into a mail server similar to ...
Sloppy_Salmon's user avatar
0 votes
2 answers
237 views

I am reaching out to seek your expertise and assistance with a task I'm currently working on. I have a text file containing log lines, and I need to scan these lines for specific destination IP ...
wannabemssp's user avatar
1 vote
0 answers
173 views

I am attempting to perform a quiet uninstall of a program using PowerShell. Winget is used to initiate the uninstall process. The UIAutomation features are used press a single button in the UI that ...
jonathan's user avatar
1 vote
0 answers
28 views

I'm a digital artist working from home. I have two monitors: one is an actual 1920p Philips monitor and the other one is a 1920p Huion Kamvas drawing tablet. I use the tablet both as a drawing surface ...
Ian Mendes's user avatar
1 vote
0 answers
320 views

I am working as an Automation engineer and am using the automation tool which only supports Head state(UI should be visible) which automatically requires Screen resolution in the perfect state. So to ...
Deepak Kumar's user avatar
0 votes
1 answer
837 views

I'm trying to figure out a way to script in PowerShell the creation of multiple SMB shares on a file server with different share names pointing to different paths. What I mean is having a variable ...
ShaynG's user avatar
  • 15
-2 votes
1 answer
59 views

I'm not a beginner to scripting with PowerShell and have discovered just how powerful and amazing it truly is. I get confused with some things though so I am here seeking help with a few things with ...
Manson Casey's user avatar
1 vote
1 answer
102 views

Suppose I have a workbook on my desktop with name Test.xlsm and I need to rename it to Test2.xlsm in the same path. I can rename it using Name statement as the following : Sub Rename_using_Name() ...
Waleed's user avatar
  • 931
0 votes
4 answers
295 views

I have used the below code to a workbook (SaveAs) and then delete the original file. The Windows OS put the new created file on the first left vacant space on My Desktop. What I need after using ...
Waleed's user avatar
  • 931
0 votes
0 answers
113 views

I am trying to copy a file from one location to another. There are two possible source destinations on the computer I would like the script to check if the folder exists (i.e. -eq 'True') if doesn't ...
daaqis's user avatar
  • 13
0 votes
0 answers
182 views

I have to restore bacpac file into SSMS in local machine using a script or a command line, Can someone please help me with this?
Moinuddin Tamboli's user avatar
1 vote
1 answer
399 views

I have a folder in which I need to rename all of the files to replace a string with another string: File 01 (Something) ABC.txt ---> File 01 - ABC.txt File 02 (Something) DEF.txt ---> File 02 - ...
dokgu's user avatar
  • 6,200
3 votes
1 answer
3k views

New to PowerShell scripting. I am trying to run the following code in PowerShell and make a script out of it: md c:\\HWID Set-Location c:\\HWID Set-ExecutionPolicy -Scope Process -ExecutionPolicy ...
Zink's user avatar
  • 119
0 votes
0 answers
82 views

I have 2 pdf files (templates) from which I need to extract 1 page each and save as a combined pdf. Each pdf has a filename with a different 3 letter location indicator (e.g. LOC) for each of the ...
61912's user avatar
  • 1
4 votes
1 answer
167 views

I am trying to print parts of several docx files. The code below works in Windows PowerShell 5.1, but not in PowerShell 7.3. I would like to understand why and help updating the code so it works in ...
mwb9aa's user avatar
  • 41
1 vote
1 answer
71 views

I want to edit the DefaultValue for the Property name = "UseThis" using PowerShell script. Xml file : <?xml version="1.0"?> <ConfigFile xmlns:xsd="http://www.w3.org/...
Shivangi Rana's user avatar
-1 votes
1 answer
82 views

I have a log file that captures data and timestamps it, but it doesn't have a date stamp. So it ends up looking like the below with the newest information at the very bottom. [01:10:01:943] numbers/...
BluriteMelon's user avatar
0 votes
0 answers
822 views

I have exported task scheduler task in xml format and now i want to import it into different pc using cmd or powershell or any script only. How can i import task scheduler xml file into task scheduler ...
Bijis's user avatar
  • 1
0 votes
1 answer
1k views

I have some MS SQL backup files in different directories on windows server. I want to move all the files from different DB backups to S3 bucket. Can you please suggest what would be the best approach? ...
s c's user avatar
  • 11
0 votes
1 answer
374 views

I've created a code in PowerShell to search through files to find lines containing null values '000' and create a new file that replaces these values with a user input. I've included the code below ...
matt442's user avatar
  • 15
-2 votes
1 answer
1k views

I use ffmpeg -i input -map 0 -map -0:a:2 -c copy output to remove audio stream from a signle video. How can i apply this command to more than one video without duplicating the command. I am on windows....
Josh's user avatar
  • 1
1 vote
2 answers
5k views

I'm trying to make a batch script (called run_windows) that check if the python virtual environment exists and if not, create it then activate it, install the requirements and finally run some python ...
Fabio Magarelli's user avatar
-2 votes
3 answers
589 views

I am a newbie in batch script and I am trying to achieve the following: loop through multiple files, count the # of commas on each line then remove extra commas if it is greater than 10. I can only ...
SForum's user avatar
  • 3
-2 votes
2 answers
521 views

So my script currently stops on conditions if profit >= 0.1 then stop() end i want to implement this code into mine so after the target satified it will sleep for 30 secs and then restart my ...
Bobby Drake's user avatar
0 votes
1 answer
569 views

Im trying to get process id from my Get-Eventlog. I can not parse the process id from the message. How ı can get it from there ? I tried With Select string -Pattern but it did not worked. My ...
Faik SEVİM's user avatar
1 vote
0 answers
205 views

My goal is to be able to test a DB connection from Oracle, MySQL, PostgreSQL, SQL Server, etc., ideally without installing any drivers (probably not possible). I'm working on Inno Setup. The user ...
Giu's user avatar
  • 21
0 votes
2 answers
3k views

I'm trying to enable an excel add-in for all users in a given lab (Office 2019 is installed). The path to the add-in's "OPEN" string in the registry is HKEY_CURRENT_USER\SOFTWARE\Microsoft\...
riskybiscuit's user avatar

1
2 3 4 5
9