Skip to main content

All Questions

Tagged with
0 votes
0 answers
44 views

How can I make an automatic login with a user via a script?

I have created a GPO within a domain that runs a computer startup script (when the computer is turned on, it runs that script). What this script does is to create a scheduled task that restarts the ...
Joaquim Castanyer Vilalta's user avatar
0 votes
1 answer
56 views

Powershell Cannot find drive. A drive with the name ' C' does not exist

Wrote a PS script that reads a .ini file for certain parameters to copy files from folder_a to folder_b,c ..and so on. I get the dreaded " Cannot find drive. A drive with the name ' C' does not ...
NanoNet's user avatar
  • 258
-1 votes
1 answer
47 views

How to run a application (.exe) in PowerShell Script?

How to open or run an application using powershell script, ".ps1"?
X-VIPRIN's user avatar
0 votes
1 answer
51 views

How to make a script to automate taking the GET data from my wordpress site and POST to another server

I have this problem and I'm a newbie of REST API world. I have a Wordpress site in which I sell CD Albums, and I have to take every orders of the day and send some specific data (like the bardcode/ean,...
CuloAtomico's user avatar
0 votes
1 answer
40 views

Right click open new powershell file open in PSIDE

I'm still running windows 10 and I'm currently still running psh 5.6 due to company policy. I have local admin on my machine so I can write to the registry. I'm trying to figure out the quickest way ...
Matt Williamson's user avatar
1 vote
1 answer
78 views

PowerShell script doesn't work as it does in ISE

I've developed a program in ISE, but don't get the same behavior when running it from the command line (e.g., > .\script.ps1 -ProjectDirectoryPath .\project). Namely, exceptions are not redirected ...
user23357415's user avatar
0 votes
0 answers
36 views

Powershell script is holding a file during append resulting in error

I am trying to write script to extract some data from json and then append them to .txt file for my next Use-Case. When I execute code below: $columns = "ID_Report","Name","...
Tomáš Ulrich's user avatar
2 votes
1 answer
84 views

Install VMware Horizon Client via GPO

I need to install VMware Horizon Client silently on several computers, I wanted to do it through a GPO but I can't find the way. I guess the way to do it would be a PowerShell script that runs via GPO ...
Joaquim Castanyer Vilalta's user avatar
0 votes
0 answers
24 views

Why is this code not putting the ICON on the web shortcut>-?

When ran it make 2 seperate icons insead of setting the icon to the web shortcut I have rewritten this multiple times; I know I need a different host for the ICO file, but I still cannot figure this ...
Ayden Delk's user avatar
0 votes
0 answers
40 views

PowerShell Script for renaming multiple files with a common phrase in multiple folders

I have files within folders on a Windows 10 system that are template files. These files are all named xxxxxx[Vendor Name]. Is there a PowerShell script i can write that can search for files with "...
AM80's user avatar
  • 1
1 vote
0 answers
41 views

Setting background color in powershell window and colouring specific texts with regex

I have a couple of scripts written in powershell which are opening a window and showing some text. I would like for every of this windows to have a different background color. At the same time I would ...
fascynacja's user avatar
  • 2,456
0 votes
2 answers
47 views

How do I run my powershell script from any directory? (Like in $profile but in its own .ps1 file)

My .ps1 script is just a simple multi-argument function, but I want to run this function anywhere like functions in $PROFILE but for tidiness and organisation's sake, I want it to be its own file. If ...
ZΞN's user avatar
  • 3
0 votes
0 answers
36 views

powershell object: Write-Output returns elements of array, but ConvertTo-Html returns array

I'm having trouble understanding the values returned by Powershell. I'm trying to query an API and convert the result to a web page as list. The following actually produces the desired result: Invoke-...
Bennypr0fane's user avatar
1 vote
1 answer
51 views

Powershell script: I wanted to export duplicate IPs from a text file

I have a text file with IP addresses and time stamp. I wanted to export the duplicate IPs to a text file if their time stamp difference between the duplicates is greater than 10 mins. For example: ...
ela mamo's user avatar
0 votes
0 answers
47 views

Script for automatic Windows installation keeps restarting from the beginning of the setup

Whenever I start the script via the shell, it apparently executes the tasks and restarts as requested. However, it always restarts from the beginning of the setup as if it had done nothing at all. ...
Marvin Fratzke's user avatar

15 30 50 per page
1
2 3 4 5
54