Questions tagged [PowerShell] (327)

2
answers

How to delete files when privyshenii a certain amount of them (with validation) script?

Good afternoon. You must leave in the folder latest 7 files by creation date and delete the rest, but before that check that the folder really has at least 7 files. How to remove like clear, how to count also seems to understand, but putting it all together can't. Thank you!
Mandy.Mills asked April 7th 20 at 16:09
3
answers

How to restart the service as administrator?

I work for a standard user. Service spinning on behalf of the administrator. To restart now take the following steps: click WinX Windows PowerShell (admin) I enter user/password Restart-Service wampapache64 Want to make an alias in PS on behalf of the user with the command service restart on behalf of the...
eliza_Schuli asked April 7th 20 at 11:41
1
answer

Forms.TextBox in PowerShell sends technical information how to upload text?

Hi all. Trying to write a small script to send messages to users on the local network. But somehow the TextBox is transmitted from the technical information together with the entered text. Any ideas how to fix? $ErrorActionPreference = "silentlycontinue" # Connected, by means of which we draw our form Add-Type-assembly...
spencer88 asked April 7th 20 at 10:32
1
answer

How to put teminal PowerShell for webstorm?

How to put teminal PowerShell for webstorm Windows 10kA
Timmy98 asked April 7th 20 at 10:00
1
answer

How to get list of site owners from all sites using Power Shell?

I tried to run the command, see Link below, however, encountered some problems. https://anandthearchitect.com/2017/03/14/sharepoin... Tell me how to do it
Cindy_Rowe14 asked April 7th 20 at 09:41
2
answers

How to insert a PowerShell command as the checkbox on the web site?

We need to create a web site (absolutely unpretentious) where there are users from AD and removed to him the check-boxes associated with the groups in AD. Conditionally The list of users: Go to the user see the list: BPX (pbx-users) Confluence (confluence-users) JIRA (jira-users) Active checkbox - the user added to the gro...
Agnes_McLaughl asked April 7th 20 at 09:32
2
answers

In PS the arrows to navigate?

Want to make interactive script menu, which in addition to 1...N takes even more control with the keyboard type of arrows etc. to navigate menus. Is there anything similar?
leif.Gibson asked April 7th 20 at 09:08
2
answers

How to register the script, so he waited for the service to stop?

There is a server that sometimes crashes the service, but it restart you have to restart a number of services in sequence. I decided I have written script .bat like this: Net stop "CSTA Mux" Net stop "TapiSrv" Net stop "ProstieZvonkiPanasonicService" Net stop "TAPIZWE" Net start "CSTA Mux" Net start "TapiSrv" Net start "Pro...
Sheridan asked April 7th 20 at 08:58
1
answer

Where the if condition, in powershell I'm wrong?

Check the instance firewall rules for ip: PS C:\Users\Administrator> Get-NetFirewallAddressFilter | where RemoteAddress -eq 10.15.0.71 | select InstanceID InstanceID ---------- {48F93E73-0AE8-476E-ADA3-86AC90361AFF} The same but for port: PS C:\Users\Administrator> Get-NetFirewallPortFilter | where RemotePort -eq 12...
jude_Ankunding asked April 7th 20 at 08:56
1
answer

How Syntactically correctly to execute the PowerShell script?

How Syntactically correctly to execute the PowerShell script? This folder of projects where each sub-folder has its name. You need to change access rights in each subfolder for example. That is, there is a folder with an empty project it vypolnyayutsya all the action. Exportitalia in the file with the command: cd D:\Proj...
joesph.Wintheiser74 asked April 4th 20 at 14:22