I'm using Powershell 6b5 AppImage on Arch Linux (using the official AppIimage). I have no trouble using IPv4 and IPv6 networking outside of powershell, both URL and IP. However, in PS, when I invoke the following command:
iwr 'http://google.com',…
How to check registry key value on computer which is not in domain??
I think that I must use local admin credential for this but I dont know how
I tried this:
$user = "admin"
$password = "pass" | ConvertTo-SecureString -asPlainText -Force
$computer…
I want to import a CSV file with my working hours. Format is as follows:
Description;Start Time;End Time;Duration;Day
When I import the CSV, each object gets imported as string.
I try to convert the colmn 'Duration' as [timespan] in order to sum…
I have a bunch of XLS files. On opening the file I got the prompt: format and extension don't match
Later, I found out that this is an old XML based XLS file. For that reason I couldn't directly import those files into R or SAS.
I tried opening one…
Edited:
Originally, my question was why the first piece of code wont work. the unzip action was working if I run it on it own on on single file outside the loop. but once I wrapped it round with loop, it won't work, and there was no red error…
I registered a native application on Azure Active Directory via powershell 6 (module AzureAD.Standard.Preview) and I need to grant the permissions with powershell 6 code (Settings > Required permissions> Grant permissions). I'm using the AZ…
I'm porting lesspass password manager to powershell, but I'm having trouble when implementing the _consume_entropy() method, especially the Python divmod.
Reproduce
PS> [bigint]$EntropyAsInt =…
I have Azure account and I need to know how much memory is installed in all the VM's. For number of Cores, I use below command.
>Get-AzureRmVMUsage -Location WestUS
But how can I get the Memory details?
I work for a company that has a few web servers that is load-balanced. I've created a PowerShell script that goes against all our IIS servers and pulls the 500 error entries and then pulls the clients IP address' and shows me a count of how many…
I'm in the process of writing a powershell module, that aim to be distributed and I'm looking for a cross-platform (Win/Linux/MacOS) powershell ≥5.0 solution to copy a generated string to the system's clipboard.
Env
> $PSVersionTable
Name …
I'm using Visual Studio for Mac (7.7.2; build 21) to create a PowerShell provider using C#.
I'd like to have the IDE load PowerShell for debugging.
The project's run configuration:
Start external project: /usr/local/bin/pwsh
Arguments: -NoProfile…
I have 2 csv files and have file1.column1, file1.column2, file2.column1, file2.column2. I would like to have out put like below
File1:
Column1, Column2
1,a
2,b
3,c
File2:
Column1, Column2
x, abc
y, def
z, ghi
Output I am expecting…
I've been trying to build out some code in PowerShell (PowerShell 6 Core works, the following code didn't work in PowerShell 5),
$Token = ' Token Here ';
$Headers = @{
Method = 'POST'
Uri = ' URL Here '
Headers = @{Authorization =…
So what I'm trying to do is recreate a similar function as I would use in Bash, but in Powershell:
yell() { echo "$0: $*" >&2; }
die() { yell "$*"; exit 111; }
try() { "$@" || die "FAILED: $*"; }
The part that I'm most interested at the moment is…