Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [powershell]

Windows PowerShell is a command line shell and scripting language for Windows that supersedes the CMD.exe shell and batch language. PowerShell is also an automation engine for Windows that provides functionality similar to Windows Script Host and VBScript.

2
votes
2answers
130 views

Run a program and log to both screen and file in real time

I've written a very simple python program (in reality my program is a lot more complex): from time import sleep for i in range(10): print(i) sleep(1) to print the digits 0-9, 1 each second ...
0
votes
0answers
23 views

Cannot running powershell commands in windows 10 [on hold]

I have created a dll service with WinAPI and did all the instructions about service-dll and hosting with svcHost.exe and programming, Now I want to install my service with powershell command like ...
0
votes
0answers
19 views

Is it safe to assume Server can execute commands on successful ping after restart? [on hold]

I'm creating a script that remotely restarts several servers, then waits for them to be online again, and run some startup commands on them after they successfully restarted. Two questions are in my ...
0
votes
1answer
39 views

Powershell Script, to Convert jpg to pdf, using Adobe [on hold]

I'm very new to Powershell. I was able to develop a script to convert .RTF to .PDF documents, using Word. However I require assistance, in modifying it, I wish to be able to convert .JPG to .PDF, I ...
0
votes
0answers
13 views

PowerCLI Get VMs those fit some conditions

I'm trying to get our some Linux distros from vCenter by using PowerCLI. But I don't want to get Appliance VMs. So I have 2 different successful PowerCLI scripts those can find these machines. I want ...
0
votes
0answers
22 views

Invoke-comand - long executing time

I am working on the powershell script that will remotely turn on/off specific firewall rule on remote machine in local subnet. Here is the code: $pc="PC1" if (Test-Connection -ComputerName $pc -Count ...
2
votes
1answer
37 views

Powershell, pipe list of arguments to a command

I am working on a powershell v3 script to create users in Active Directory. I'm using the new-ADUser comlet for that. I want to execute one command to create the user and set all the options in one ...
0
votes
1answer
28 views

Close Windows Start Menu with powershell [on hold]

Am currently working on a business process automation software and literally user actions are simulated by robots. I need to pass some information to the start menu of my windows 10 and i was ...
-1
votes
0answers
21 views

Can I specify an application that isn't currently installed for a firewall rule?

Essentially, We deploy machines to clients. I want to know if I can pass through a firewall rule for a program that isn't currently installed. At the moment, my preparation script does not work unless ...
0
votes
1answer
92 views

Script on Ending Process according to memory consumption windows 10

I am looking for a batch or powershell script that if memory used by a process is less than 10 MB end that process and restart it.I tried searching a lot,but i could not find a ultimate solution. ...
2
votes
2answers
112 views

PowerShell Email with Text Input

I'm trying to write a script that will throw up four text input boxes and save their entered values into four variables, each representing Username, Phone PIN, Voicemail PIN and Phone extension - Once ...
1
vote
0answers
43 views

how best to locate openssh credentials for powershell script run by SYSTEM

I've got a powershell script in the form $commands = @" echo "1 + 2" | bc "@ $commands | ssh user@1.2.3.4 Right now what I'm doing is setting up ssh keys once ahead of time, but the problem is ...
0
votes
1answer
24 views

Enable NUMLOCK when computer wakes for sleep mode using Task Scheduler

I am from the Netherlands so apologies for my English in advance! I am doing everything that is mentioned in this post:click this link. The Powershell script works because when I go to the file and I ...
0
votes
0answers
50 views

Powershell command: resetting a counter for naming files

I have a thousand jpg file in a folder. I use the following command to name these files as: file-0, file-1, file-2, file-3, .... Dir | %{Rename-Item $_ -NewName ("file-{0}.jpg" -f $nr++)} However, ...
2
votes
1answer
30 views

Is there a Way to Print the Session in PowerShell to a .txt?

We are doing a lot of things in PowerShell in networking and in basic servers and our instructor is having us copy and paste sessions in PowerShell into a .txt file. This is well and fine, but is ...

15 30 50 per page
 Microsoft office activator |  windows activation crack |  windows product key |  windows 10 product key |  windows 7 ultimate product key |  windows 7 keygen |  activate office 2010 |  office Project keys |  project professional product key |  office 365 office 2016 office 2013 key |  office 2016 office 2013 key |  windows 7 professional product key |  windows 8 professional product key |  windows 10 professional product key |  office 2016 professional product key |