PowerShell is a command line and scripting utility for use with Windows. PowerShell questions are for writing and executing scripts ONLY. Questions about administrating Windows should be asked on https://superuser.com.

learn more…| top users | synonyms (1)|powershell jobs

0
votes
0answers
14 views

Powershell GUI: User interaction while TextBox has infinite updates

I have a simple ping tool intended for end users to test connection to workstations. The tool should have -t option, that means the TextBox updates continuously. The problem is that the operation can ...
0
votes
1answer
12 views

Where is the option for PowerShell script in Azure Functions

I want to create Azure Function with PowerShell. When I get to the point Azure wants me to choose which type of function I want to create the only available languages are C#, F# and JavaScript. Have I ...
0
votes
1answer
11 views

PowerShell script to delete lines with timestamp and blank lines

I'm very new to PowerShell and i'm looking a way to read a file and delete the line if the timestamp is more than 20 days old or blank, and then rewrite it into a new file.My script is working but ...
1
vote
2answers
26 views

How to convert the array of datetime to get the time only (HH:mm)

Need your help on how to convert the datetime array results to get the time only HH:mm. Below is the sample result set:$tableRtRecordedTime ------------ 2/18/2018 1:18:04 PM2/...
0
votes
1answer
21 views

Script to download latest Adobe Reader DC Update

I wrote a script download the latest version of Adobe MUI DC but I am not really happy with the parsing. The script starts at https://supportdownloads.adobe.com/new.jsp, followed by some parsing, ...
0
votes
0answers
22 views

Powershell script to close COM port

I've written a java program which is using the Rxtx library to open a com port and to communicate with a motor. Now if I kill the programm unexpectedly then the port is not closed correctly. When I ...
0
votes
0answers
7 views

Azure Automation modules do not update to latest version

I'm trying to update Azure Automation modules using Azure web interface.Script Update-AutomationAzureModulesForAccount runs without errors, but modules do not update to latest version. For example, ...
0
votes
0answers
11 views

copy child nodes between 2 xmls in powershell

I have 2 XML filesFirst XML file : <task><name/><transfer><request version="6.00" xsi:noNamespaceSchemaLocation="FileTransfer.xsd"><managedTransfer>...
0
votes
1answer
43 views

Powershell: Safely Decoding SecureString

Please lay your expert opinion on the security of these two scripts:[Note: The output of these two scripts will be pipelined. They will not be assigned to any variable."]First :Function GetFrom-...
0
votes
1answer
31 views

Powershell with Git Command Error Handling

I use Git to deploy my web application. So in Teamcity I prepare my application (compilation, minify JS and HTML, delete unused files, etc...) and then I have a Powershell build step :$...
2
votes
1answer
33 views

Powershell Int variable with decimal number

I have a interesting question on ints with decimals. Assuming I do the following: [int] $a=5/2$aI've tried it 10 times to be sure, and powershell always returns 2Is there a way to force ...
0
votes
0answers
21 views

I need to Execute a command-line command inside my PowrShell script, but also to use a store variable from Powershell Inside that command

I'm kind of new to Powershell, but now I need to build a script which takes a backup and encrypts it using Veracrypt.Fortunately there is a command-line syntax to do that, but for my script I'll use ...
1
vote
0answers
19 views

Webcam Focus and exposure control using Command Line (or PHP)

I am currently developing a photobooth app using Laravel, and this app is hosted on my machine itself, so there is no problem in the command line control access (and atm, there are some functions ...
1
vote
2answers
34 views

What should I install to query SQL Server DB from Powershell - could not load file or assembly Microsoft.SqlServer.Types?

On my computer I have only SQL Server Management Studio installed.I use runas.exe /netonly /user:myDomain\myUser powershell.exe to open Powershell console (I need to authenticate to SQL Server using ...
0
votes
1answer
15 views

Run script as admin in Powershell [duplicate]

I have written a small Power Shell script which is installing certificate and appxupload file into the system but the problem is I want whenever user run the script it should run as admin mode.my ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,