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.

learn more… | top users | synonyms

0
votes
1answer
75 views

kill process by its own description

I need help for killing putty.exe by searching process for it's description even if the user change the name and the class name ( win title ) for the putty.exe if process description on process list ...
0
votes
0answers
65 views

Windows 10 search is broken

Since I ever started using windows, my go to method to open pretty much anything is to press the windows key and type whatever I am trying to find/open. However, since last week my windows search just ...
1
vote
1answer
54 views

How to install every printer (with wildcard) from PrintServer

is there a quick and easy way to install every printer from a print server over a console like PowerShell? Add-Printer from PowerShell does not support Wildcards. I tried it with Get-Printer and ...
1
vote
1answer
48 views

How to know from what microsoft package/update a .dll file comes from?

There are plenty of specific missing X.dll requests here. I would like to know how to get where does a .dll file should come from, especially a microsoft .dll. I have a missing assembly error on my ...
0
votes
1answer
77 views

Move file recursively to parent folder [duplicate]

I'm on windows 10, I need a batch script or a powershell script to solve this problem. I have downloaded the flash tv series, the structure looks like this flash tv series folder episode 1 ...
1
vote
3answers
52 views

Can I run PowerShell script of version 4.0 on windows server with powershell script version 2.0

Can I run PowerShell script of version 4.0 on windows server with powershell script version 2.0? I have developed script using PowerShell version 4.0 on local server. Now I want to test this script on ...
0
votes
1answer
113 views

Why Powershell is so slow?

I tried to make a simple thing with PowerShell, find files which take most space on the drive. I used ls + sort and....it took forever for me. Sometimes I use far manager and compared with ...
0
votes
1answer
85 views

Is there a way to uninstall a SPECIFIC provisioned app for all user accounts in Windows 10 using PowerShell?

So I looked up on the web and found PowerShell commands to uninstall: All Windows Store apps using PowerShell for all users A specific app using PowerShell for current user All apps for current user ...
1
vote
0answers
116 views

“AuthorizationManager check failed” in PowerShell, fixed after restarting WMI

About once a day, PowerShell scripts will stop working on my computer with an error that looks like this. AuthorizationManager check failed. At line:1 char:3 + . .\matt.ps1 + ~~~~~~~~~~ + ...
0
votes
1answer
40 views

Is it possible to get the Process ID of an Executable started in a PowerShell script using he 'Call' (`&`) operator?

Here is my issue. I run a command line application within a PowerShell script using the Call Operator (i.e. the & symbol), such that it is: & $PathToExe /switch:"lots of args" /anotherswitch:"...
1
vote
0answers
68 views

Find AD users with blank Password

Is there any way to find out users on my domain with blank password using powershell? We already have a policy set for this but with too many admin teams managing different parts of domain just want ...
1
vote
0answers
45 views

Java runs in batch but not Powershell

I have a batch file that runs a jar with a few parameters, works fine: @echo off java -cp bulkconfig.020.0005.jar com.hospira.bulkconfig.LoadConfig %* I would like to add some more cababilities ...
1
vote
0answers
40 views

Any way to do Linux-style sort --merge in Windows PowerShell?

In PowerShell, if I have two files that are already sorted and want to merge them into one big sorted file, it seems wasteful and inefficient to do gc file1, file2 | sort-object > newfile, ...
1
vote
1answer
54 views

Open the start menu using Powershell

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 7 and i was wondering ...
0
votes
1answer
44 views

PowerShell can't create folder on network mount

I've create a drive with the Letter Z: and shared it so that the Network Path is: \\GOELA2682012SRV\srv2012r2 I now want to create a folder on there using PowerShell. This doesn't work: New-Item -...
1
vote
1answer
111 views

How can I create a Windows 10 taskbar shortcut to launch PowerShell with Administrator privileges?

Whenever I run PowerShell I almost exclusively need to run it in Administrator mode, however the taskbar shortcut only seems to enable this by right-clicking on the icon and selecting Run as ...
0
votes
1answer
36 views

Choco Install Mongodb throws internal server error 500

I am stuck on installing mongodb with chocolatey. This is the command I use: choco install mongodb I execute it in powershell with administrative rights. This is the error (translated from german)...
0
votes
0answers
52 views

How to direct (Python) error messages printed in a PowerShell console to a text file

Firstly, the errors I'm interested in redirecting are NOT PowerShell errors, but those generated by a Python script that is called within my PowerShell script. I have read multiple post on here (and ...
0
votes
0answers
23 views

Accessing underlying object of SWbemObject instance [duplicate]

I'm using vbscript to interact with the WMI classes. I am querying the Win32_GroupUser class which is defined here https://msdn.microsoft.com/en-us/library/windows/desktop/aa394153%28v=vs.85%29.aspx. ...
0
votes
0answers
41 views

Looking to rename large amount of files using bat script

I'm still pretty new to the use of powershell, scripts, and the like, so I'm sorry that I don't have some form of script to start with. All I have is the specifics on my problem. I have a large ...
3
votes
0answers
58 views

Complex wmi queries using execquery

In powershell I can do a query like > get-wmiobject -query 'select * from win32_groupuser' | % {[wmi]$_.partcomponent|select domain,name,SID} Which will list for each wmi, the domain, name and ...
0
votes
0answers
56 views

How to find mp3 files on a remote server using Powershell

I have created a powershell script to search for mp3 files on my workstation. This is successful on my workstation, how can I run this on my network of 80 workstations? $strComputers = Get-Content -...
3
votes
1answer
90 views

Getting SID from win32_groupuser

I am trying to get the SIDs of users and groups by querying get-wmiobject -query 'select groupcomponent,partcomponent from win32_groupuser` output: __GENUS : 2 __CLASS : ...
0
votes
1answer
59 views

Script to get a list of users allowed to connect computer

I would like to inventory the users and groups that are allowed to connect to a computer (interactively or remotely). The computer can be either in a workgroup or in an active directory but primarily ...
1
vote
1answer
46 views

Powershell KeyPress Modifiers

$Textbox.Add_Keydown({ If ($Args[1].key -eq 'Shift' -and $Args[1].key -eq 'Return'){Function A} ElseIf ($Args[1].key -eq 'Return'){Function B} }) I want to be able to make it do X on Shift+Enter ...
0
votes
0answers
36 views

Powershell keydown Shift+Enter

Foreach ($Var in $UserVariables){ $Var.Add_Keydown({ If ($Args[1].key -eq 'Shift' -and $Args[1].key -eq 'Return'){Export} ElseIf ($Args[1].key -eq 'Return'){Display} }) ...
0
votes
0answers
19 views

powershell or netcat over ADSL

is there anyway to use powershell for getting access to my office pc from home via my RDP Server i have 2 pc's : pc1 ( office ) connected via ADSL with dynamic ip pc2 ( RDP server ) static ip i ...
1
vote
1answer
30 views

simple batch script not working PS, but works in cmd [duplicate]

I have a .bat script that just cds into a directory cddocs.bat cd \Users\Me\Documents\NetBeansProjects\ It is in my home folder. (C:\Users\Me) In cmd when I run it C:\Users\Me>cddocs C:\...
0
votes
1answer
123 views

How can I see users' Office 365 Password date (date last changed, date it will expire, etc.)?

I know I can see the password dates (date last changed, date it will expire, etc.) for our in-house Active Directory. How do I see this information for Office 365 accounts, either with PowerShell or ...
0
votes
0answers
20 views

powershell session in conemu is not seeing an odbc driver

If I open a powershell session normally I can run a script that uses the "PostgreSQL ANSI" odbc driver without issue. If I open a powershell session in conemu (same arch, same user) I get a "data ...
6
votes
1answer
800 views

Renaming files in a folder in Windows using Powershell

In a directory, I have some .jpg files. The file names are integers starting from 1.jpg to 150.jpg. I would like to subtract 1 from each file name. So the file names would be 0.jpg to 149.jpg. I ...
1
vote
0answers
29 views

Automated XP Mode install

I manage a conference lab environment, and one thing we would like to do is install the 1.0 version of our primary software, as a bit of a nostalgia playground. The thing is, this old version really ...
0
votes
1answer
132 views

ErrorCode: TargetDiskBlobAlreadyExists

I am creating an AzureRM VM using existing VHD, the error which I received is New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $vm New-AzureRmVM : Long running operation failed with ...
2
votes
1answer
47 views

Removing lines from powershell txt file

I'm having to simulate killing of task from process list. I get process list, send it to the text file process.txt and then have user input the task they want to kill. My main problem, is I have to do ...
0
votes
0answers
119 views

What is the difference in Windows CMD and PowerShell redirection and text Encoding?

Granted, this is not a great title, but to be honest I was unsure how to word the question without posting an essay as the question. This description should add some flesh. Problem: I have a Python ...
0
votes
1answer
138 views

What is psprovider in powershell?

I am new to PowerShell and trying to understand the concept of psprovider. I know I can use Get-PSProvider to show a list of available psproviders All of the help I am finding, assumes I know things ...
1
vote
1answer
100 views

Powershell equivalent of 'msconfig'?

I use 'msconfig' to control what programs startup at boot (etc) - is there a powershell way of doing the same ? I tried: get-help startup This brings up: Register-PSSessionConfiguration Get-...
0
votes
0answers
29 views

Move-item with control if directory exist wont move the stuff inside this directory if the name contains a 1 infront

My code will move items from an existing structure to a new one. For this it has to take many folders and merge it to one. Sometimes there is a folder which exists. My script will now go inside the ...
0
votes
1answer
64 views

Windows 10 Bing Metro UI apps no longer open (e.g. News, Weather, Sport)

I recently did an upgrade to the latest Windows 10 insider preview (to test out the Ubuntu Bash on Windows). After testing I rolled back to a previous stable version (then disabled the insider ...
3
votes
2answers
144 views

How to list windows privileges for any user

I am trying to write a script to list the privileges (eg SeShutDownPrivilege etc) of all user accounts. I'd prefer it if my script could be run as a standard user, but I can run it as an admin account ...
0
votes
0answers
150 views

How to read pdf custom properties using Powershell

I am trying to read custom Document properties of PDF file using PowerShell script. I could able to read Microsoft documents, but I am unable to read PDF metadata. Your reply is highly appreciated. I ...
1
vote
1answer
49 views

How to recursively delete directories skipping some directories/files from command line in windows?

Suppose I have a complex path of directories: <ROOT> folder1 folder2 sub1 sub2 folder3 sub1 sub2 ... and suppose in some folders there are files named "skip.me" How ...
0
votes
1answer
41 views

PowerShell environment variable missing

I have the situation. One of PowerShell environment variable has been missing several times. I have to manually add it ($env:path +=';C:\Program Files\Docker Toolbox') and reboot my desktop. I am ...
0
votes
0answers
31 views

Monitoring file activity - bulk renaming, creating - Ransomware activity

Masters, I need some suggestion how to monitor the disks for bulk file activity like bulk renaming, bulk creating..etc.. Is it possible with performance monitor or should i use powershell? I would ...
0
votes
0answers
59 views

Transfer file to Windows Server 2008 R2

In a LAN, I have a Windows Server 2008 R2 machine; access to server through Remote Desktop is granted both 1) from a LAN host 2) from the internet, thanks to a virtual server configured in the ...
0
votes
0answers
110 views

How do I tail Windows 10 Update Log

I have a following batch file that runs on startup wuauclt.exe /detectnow /updatenow start /min C:\Windows\WindowsUpdate.log But now in Windows 10 log file simply has the following Windows ...
0
votes
1answer
71 views

HTTP request from PowerShell has wrong remote IP

I am trying to write a PowerShell script that performs an HTTP request. The request is handled by a PHP script which needs to know the IP address of the client. To this end, it reads $_SERVER['...
1
vote
1answer
62 views

wmic command returns no instance when accessing Win32_BaseBoard class

Why does Win32_BaseBoard return no instances in PowerShell? wmic path "Win32_BaseBoard" get "Model"
0
votes
0answers
32 views

Passing parameters to powershell script

I've been trying to create a small powershell script that upgrades all my packages using Chocolatey on Windows. Here's what I've already got: param( [string]$mode = "upgrade" ) //This I use to ...
1
vote
1answer
48 views

Powershell console not updating with latest Windows Management Framework installs

I am using Windows 7 SP 1 64 bit. When I installed Windows Management Framework 4, the nice new blue consoles have not been installed. I even further upgraded to Windows Management Framework 5 and ...