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.

0
votes
0answers
9 views

Set IP, Subnet, Gateway with Powershell commands on Intel Net Adapter Team

I'm attempting to create a team of Intel Net Adapters. I've downloading and am using the Intel Powershell cmdlets to create the team but I would like to be able to assign the team an ip, subnet, ...
0
votes
0answers
7 views

PowerCLI Install fails

When I try to install PowerCLI in PowerShell with the command : Install-Module VMware.PowerCLI I get following error message : PackageManagement\Install-Package : Für die angegebenen ...
0
votes
2answers
21 views

Is there a way to enable tcp/ip protocol through powershell script or sql script?

The context: I got a Vagrantfile to provision a VM, this VM have SQL-SERVER 2012, 2014, 2016 and 2017 installed. When I check on the SQL SERVER CONFIGURATION MANAGER I saw that in every SQL-SERVER ...
2
votes
1answer
41 views

Cannot run cmd or powershell as NON-Admin

So this is an odd one... I need to run the 64-bit version of command prompt/powershell as non-admin. Unfortunately, no matter what I try, it will only run in elevated mode. From what I've seen, in ...
2
votes
2answers
26 views

Azure from Powershell, deploying to the wrong subscription

I'm trying to figure out if i deploy something from my powershell, that it is deploying to the wrong subscription which is in no way connected to eachother, except for that i have previously been ...
0
votes
1answer
46 views

Bash or Powershell to move files of a certain size to directories of a certain naming convention

We have a list of clients under a top level "Clients" folder on a filer. Under the Clients folder are the actual client folders, some with the naming convention "client_test" others "111_1111". I need ...
0
votes
0answers
11 views

Unable to install PIP on Windows 10 - Python 2.7

I am attempting to install PIP on my Windows 10 Laptop. I have attempted to install it using Command Prompt and PowerShell. I go to https://bootstrap.pypa.io/get-pip.py, copy it, paste it, then run ...
0
votes
0answers
14 views

Select different WSDL service in Powershell New-WebServiceProxy

I am currently trying to access an Oracle 11g Database via PowerShell using the SOAP API. The first thing I did was to acquire a session token which worked flawlessly, but now I am trying to execute a ...
0
votes
0answers
16 views

How to set default app per filetype programmatically?

I want to get independent of installed apps and share most of my apps as portable versions in a cloud drive. So my idea is whenever I sit on a new device I just sync my cloud drive and start some kind ...
1
vote
3answers
221 views
+50

Script to archive folder and rename files

My goal is to have a .bat that I can use to automatically archive folders via copy, rename the original folder and the files within with the current date and then clean out old production files. Copy ...
1
vote
0answers
37 views

WSL issue: cannot execute C:\Windows\System32\Bash.exe from elevated PowerShell - “access is denied” - works in normal CMD prompt (no admin rights)

I have an issue with WSL (Windows Subsystem for Linux) in PowerShell. If I run the Ubuntu 18.04 LTS app (the UWP app) it works as expected. However, if I run and run Bash.exe from an elevated ...
0
votes
1answer
33 views

Scheduled task after 24 Computer Uptime

I am trying to setup a scheduled task which runs a PowerShell script after 24 hours of Computer uptime, but i cant find any trigger for it in the assistant. Is there any way to realize this scheduled ...
0
votes
0answers
19 views

WinRM (HTTPS) destination computer returned an 'access denied' error

I just enabled WinRM service in my Windows 10 machine (Home edition - no group policy) for HTTPS. I first created a self signing test certificate through powershell and started a WinRM listener (port ...
1
vote
2answers
37 views

Use Powershell to copy files to current users logged in and users who login in the future

I want to create a script that copies a file to all user profiles both who have already logged and for a new user who log into the windows 10 pc. The location the files should be copied to is Users\...
0
votes
1answer
14 views

Running java from powershell with environment variables to specify the classpath

for the life of me I can't figure out how to convert this batch file to powershell. The java line is where I have the problems - I don't know how to insert environment variables correctly into it. @...

15 30 50 per page