shell tag

84 questions


1 answers
287 views
0
I want to pass the variable as an argument for the variable that runs the script in powershell.

I am trying to do the following with powershell, but I will fail with でホスト Read the json file containing the hostname and IP ②Put the read value into the variable③The variable that runs the script fil...

2 years ago

1 answers
288 views
0
I would like to add contacts from PowerShell using the New-MailContact cmdlet.

I would like to create a batch to register Outlook destinations from PowerShell.If you run the following cmdlet from PowerShell, of course you won't get an Outlook instance, so US>Not recognized as a ...

2 years ago

1 answers
110 views
0
I want the console page code to be EUC.

The current PowerShell code page is shift-jis.I would like to log in to a remote server using the SSH feature of Powershell.However, the server environment is Linux and the character code is EUC.There...


2 answers
175 views
0
I would like to make a program to log and compare on bat every day.

A list of files in a storage is retrieved daily as the file name [yyyymmdd.log] log and Compare today's and yesterday's logs, and create a program that extracts differences that are in the log yesterd...

2 years ago

2 answers
53 views
0
I want to create a shell that extracts the difference that existed the other day and does not exist today by using the diff command.

The ability to retrieve a list of today's saved files in a directory that stores an archive and Use the diff command to compare the list of recent saved files to the list of today's saved files and I ...

2 years ago

1 answers
130 views
0
"When I press ""Enter"" after entering the command in the terminal, only "">"" appears repeatedly."

I'm a beginner.After entering the command at the terminal, press Enter to see only >, and no matter how many times you press Enter, the line breaks only >.What is the state of this?

2 years ago

1 answers
107 views
0
Common Variables for Multi-Thread Processing in Workflow in Powershell

You want to run multiple ps1 scripts in parallel with workflow and ForEach-parallel.Each ps1 script returns $True or $Flase as a return value.I'm trying to count $Flase, but the scope is unable to use...

2 years ago

1 answers
135 views
0
I would like to delete the string "(double quotation) using powershell.

As per the title, I'd like to use powershell to delete the string (double quotation).Current State $s=$(get-count c: wwork ssample.txt)$s$s.trim(``)However, I cannot make [] recognized.I look forward ...

2 years ago

1 answers
134 views
0
How to Configure PowerShell Execution Security Policy

Windows 7 64-bit environment.I have the Microsoft.PowerShell_profile.ps1 file ready for Import-Module.Set-ExecutionPolicy RemoteSignedWhen you run with administrator privileges and start PowerShell fr...

2 years ago

1 answers
63 views
0
How to Configure PowerShell Execution Security Policy

Windows 7 64-bit environment.I have the Microsoft.PowerShell_profile.ps1 file ready for Import-Module.Set-ExecutionPolicy RemoteSignedWhen you run with administrator privileges and start PowerShell fr...

2 years ago
« - 4 - »

© 2024 OneMinuteCode. All rights reserved.